/* SG Automations "Top Brands" mega menu, redesigned 2026-11-24.
   Markup comes from getTableList() in app/Helpers/helpers.php. Desktop only (1200px and up);
   the mobile menu uses getTableListMobile() and is unchanged. */
.header-support .vega-menu-area .vegawrap { border-radius: 0 0 14px 14px; overflow: visible; box-shadow: 0 18px 40px rgba(17, 12, 46, .12); }
.header-support .vega-menu-area ul.vega-menu.sgm { position: relative; padding: 6px 0; }
.header-support .vega-menu-area ul.vega-menu.sgm > li.menu-link { position: static; }
.header-support .vega-menu-area ul.vega-menu.sgm > li.menu-link > a.link-title { height: 48px; border-top: 0; margin: 0 8px; padding: 0 12px; border-radius: 10px; transition: background-color .2s, color .2s; }
.header-support .vega-menu-area ul.vega-menu.sgm > li.menu-link:hover > a.link-title { background: #f3f0ff; color: var(--primary-font-color); }
.header-support .vega-menu-area ul.vega-menu.sgm > li.menu-link > a.link-title .menu-arrow { color: #b5b0c8; }
.header-support .vega-menu-area ul.vega-menu.sgm > li.menu-link:hover > a.link-title .menu-arrow { transform: translateX(3px); color: var(--primary-font-color); }
.sgm .sgm-soon { font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #8a84a3; background: #f1f0f5; border-radius: 20px; padding: 3px 8px; margin-right: 8px; }

/* panel: hidden until its brand is hovered (the old markup relied on Bootstrap .collapse for this) */
.header-support .vega-menu-area ul.vega-menu.sgm > li.menu-link > .sgm-panel { display: none; }
.header-support .vega-menu-area ul.vega-menu.sgm > li.menu-link:hover > .sgm-panel,
.header-support .vega-menu-area ul.vega-menu.sgm > li.menu-link:focus-within > .sgm-panel { display: block; opacity: 1; visibility: visible; }
.header-support .vega-menu-area ul.vega-menu.sgm li.menu-link .menu-dropdown.sgm-panel {
    top: 0; left: 100%; min-height: 100%; width: 920px; max-width: calc(100vw - 360px);
    padding: 0; border-radius: 0 14px 14px 14px; overflow: hidden;
    box-shadow: 18px 18px 40px rgba(17, 12, 46, .14); border-left: 1px solid #eeeaf7;
}
.sgm-panel .sgm-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 24px; background: linear-gradient(100deg, #512ec3 0%, #6d4be0 70%, #7b5cf0 100%); color: #fff; }
.sgm-panel .sgm-head-text { display: flex; flex-direction: column; line-height: 1.2; }
.sgm-panel .sgm-eyebrow { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.75); }
.sgm-panel .sgm-brand { font-size: 22px; font-weight: 700; color: #fff; }
.sgm-panel a.sgm-all { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: #1d1a2b; background: var(--extra-font-color); padding: 9px 16px; border-radius: 30px; white-space: nowrap; transition: transform .2s; }
.sgm-panel a.sgm-all:hover { transform: translateX(2px); color: #1d1a2b; }

.sgm-panel .sgm-body { display: flex; gap: 0; padding: 0; }
.sgm-panel .sgm-col { padding: 20px 22px; }
.sgm-panel .sgm-col + .sgm-col { border-left: 1px solid #f0edf7; }
.sgm-panel .sgm-label { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #9a95ad; margin-bottom: 12px; }
.sgm-panel ul { list-style: none; margin: 0; padding: 0; }

/* categories */
.sgm-panel .sgm-cats { flex: 0 0 220px; }
.sgm-panel .sgm-cats li a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 10px; margin: 0 -10px; border-radius: 8px; font-size: 14px; font-weight: 600; color: #333; transition: background-color .2s, color .2s; }
.sgm-panel .sgm-cats li a em { font-style: normal; font-size: 11px; font-weight: 700; color: #7d7896; background: #f3f1f8; border-radius: 20px; min-width: 24px; text-align: center; padding: 2px 7px; }
.sgm-panel .sgm-cats li a:hover { background: #f3f0ff; color: var(--primary-font-color); }
.sgm-panel .sgm-cats li a:hover em { background: var(--primary-font-color); color: #fff; }

/* popular products */
.sgm-panel .sgm-popular { flex: 1 1 auto; min-width: 0; }
.sgm-panel .sgm-popular li + li { margin-top: 4px; }
.sgm-panel .sgm-popular li a { display: flex; align-items: center; gap: 12px; padding: 8px; margin: 0 -8px; border-radius: 10px; transition: background-color .2s; }
.sgm-panel .sgm-popular li a:hover { background: #f7f6fb; }
.sgm-panel .sgm-thumb { flex: 0 0 56px; height: 56px; border-radius: 10px; background: #f5f5f7; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.sgm-panel .sgm-thumb img { max-width: 48px; max-height: 48px; object-fit: contain; }
.sgm-panel .sgm-info { display: flex; flex-direction: column; min-width: 0; gap: 3px; }
.sgm-panel .sgm-name { font-size: 13.5px; font-weight: 600; line-height: 1.35; color: #2b2838; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sgm-panel .sgm-popular li a:hover .sgm-name { color: var(--primary-font-color); }
.sgm-panel .sgm-prices { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 8px; white-space: nowrap; }
.sgm-panel .sgm-price { font-size: 13.5px; font-weight: 700; color: var(--primary-font-color); }
.sgm-panel .sgm-was { font-size: 12px; color: #a6a2b5; text-decoration: line-through; }

/* featured card */
.sgm-panel .sgm-feature { flex: 0 0 260px; background: #faf9fd; display: flex; flex-direction: column; gap: 12px; }
.sgm-panel a.sgm-card { position: relative; display: flex; flex-direction: column; gap: 6px; background: #fff; border: 1px solid #eeeaf7; border-radius: 14px; padding: 14px; transition: box-shadow .2s, transform .2s; }
.sgm-panel a.sgm-card:hover { box-shadow: 0 10px 24px rgba(81, 46, 195, .14); transform: translateY(-2px); }
.sgm-panel .sgm-card-tag { position: absolute; top: 12px; left: 12px; z-index: 1; font-size: 11px; font-weight: 700; color: #fff; background: #16b36e; border-radius: 20px; padding: 3px 9px; }
.sgm-panel .sgm-card-img { height: 130px; display: flex; align-items: center; justify-content: center; }
.sgm-panel .sgm-card-img img { max-height: 120px; max-width: 100%; object-fit: contain; }
.sgm-panel .sgm-btn, .sgm-panel a.sgm-btn { display: inline-flex; justify-content: center; align-items: center; margin-top: 6px; font-size: 13px; font-weight: 700; color: #fff; background: var(--primary-font-color); border-radius: 30px; padding: 9px 16px; transition: background-color .2s; }
.sgm-panel a.sgm-card:hover .sgm-btn, .sgm-panel a.sgm-btn:hover { background: #3f22a0; color: #fff; }
.sgm-panel a.sgm-help { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 12px; background: #fffbd6; color: #4a4530; font-size: 12px; line-height: 1.4; }
.sgm-panel a.sgm-help i { font-size: 16px; color: #1d1a2b; margin-top: 2px; }
.sgm-panel a.sgm-help strong { display: block; font-size: 13px; color: #1d1a2b; margin-bottom: 2px; }
.sgm-panel a.sgm-help:hover strong { color: var(--primary-font-color); }

/* brands without products yet */
.sgm-panel .sgm-empty { padding: 28px 24px; max-width: 460px; }
.sgm-panel .sgm-empty p { font-size: 14px; line-height: 1.6; color: #555; margin: 0 0 14px; }

@media (max-width: 1399px) {
    .sgm-panel .sgm-cats { flex-basis: 190px; }
    .sgm-panel .sgm-feature { flex-basis: 230px; }
    .sgm-panel .sgm-col { padding: 18px; }
}

/* ===== Footer bottom bar, redesigned 2026-11-24 (markup in web/layouts/app.blade.php) ===== */
.ft-copyright-area.sgf { padding: 18px 0; background: #f5f5f7; border-top: 1px solid #e9e7f0; }
.sgf .sgf-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px 28px; flex-wrap: wrap; }
.sgf .sgf-copy { margin: 0; font-size: 13.5px; line-height: 1.5; color: #6b6880; }
.sgf .sgf-pay { display: flex; align-items: center; gap: 12px; }
.sgf .sgf-label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: #8d8aa0; }
.sgf ul.sgf-pay-list { display: flex; gap: 8px; margin: 0; padding: 0; list-style: none; }
.sgf ul.sgf-pay-list li img { width: 46px; height: 30px; object-fit: contain; background: #fff; border: 1px solid #e4e2ec; border-radius: 6px; padding: 3px; display: block; }
.sgf .sgf-help { display: flex; align-items: center; gap: 14px; }
.sgf .sgf-help > span { font-size: 15px; font-weight: 700; color: #2b2838; }
.sgf a.sgf-wa { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; color: #fff; background: #512ec3; border-radius: 30px; padding: 10px 18px; white-space: nowrap; transition: background-color .2s; }
.sgf a.sgf-wa:hover { background: #3f22a0; color: #fff; }
.sgf a.sgf-wa i { font-size: 17px; }
@media (max-width: 991px) {
    .sgf .sgf-bar { flex-direction: column; text-align: center; gap: 14px; }
    .sgf .sgf-help { order: -1; flex-wrap: wrap; justify-content: center; }
    .sgf .sgf-pay { flex-wrap: wrap; justify-content: center; }
    /* leave room for the floating WhatsApp button */
    .ft-copyright-area.sgf { padding-bottom: 84px; }
}

/* ===== Previous / next product buttons on product pages ===== */
a.next-prev-product, a.next-prev-product:hover {
    writing-mode: horizontal-tb !important; transform: translateY(-50%) !important; top: 50% !important; bottom: auto !important;
    display: inline-flex !important; align-items: center; gap: 6px; height: 40px; padding: 0 14px !important;
    background: #fff; border: 1px solid #e4e2ec; border-radius: 30px; box-shadow: 0 6px 18px rgba(17, 12, 46, .10);
    font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #512ec3 !important; z-index: 50;
    opacity: .85; transition: opacity .2s, box-shadow .2s;
}
a.next-prev-product span, a.next-prev-product span:hover { writing-mode: horizontal-tb !important; transform: none !important; color: inherit !important; letter-spacing: inherit; }
a.next-prev-product:hover { opacity: 1; box-shadow: 0 8px 22px rgba(81, 46, 195, .2); }
a.next-prev-product.prev { left: 12px !important; right: auto !important; }
a.next-prev-product.next { right: 12px !important; left: auto !important; }
@media (max-width: 1499px) { a.next-prev-product { display: none !important; } }
.sgf .sgf-credit { display: block; font-size: 12.5px; color: #8d8aa0; }
.sgf .sgf-credit a { color: #512ec3; font-weight: 600; }
.sgf .sgf-credit a:hover { text-decoration: underline; }
