﻿/* =========================================================
   LAYOUT (merged: nav/header + footer)
   =========================================================

/* Shared tokens */
:root {
  --page-max: 1240px;
  --gutter: clamp(16px, 4vw, 56px);
  --section-y: clamp(48px, 7vw, 96px);
  --section-y-sm: clamp(32px, 5vw, 64px);
  --gg-purple:#692c91;
  --gg-purple-dark:#4f216e;
  --brand: var(--gg-purple);
  --brand-dark: var(--gg-purple-dark);
  --brand-soft:#f1e7f8;
  --gg-topbar:#692c91;
  --gg-bg:#f9f7fc;
  --gg-search-bg:#ececf1;
  --gg-text:#2b2b36;
  --gg-muted:#6b6b7a;
  --gg-active-bg:#e7e4ee;
  --gg-green:#0f8a4b;
  --gg-hot-bg:#8df0a9;
  --gg-hot-text:#14532d;
  --gg-radius:10px;
}
.page-wrap {
  width: 100%;
  max-width: calc(var(--page-max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
  box-sizing: border-box;
}

/* -------------------- NAV / HEADER -------------------- */
/* =========================================================
   GG NAV  (all classes prefixed gg- so nothing else is touched)
   ========================================================= */
:root{
  --gg-purple:#692c91;      /* the project's brand purple (theme CSS + footer) */
  --gg-purple-dark:#4f216e; /* same hue/saturation, lightness 37% -> 28% */
  --gg-topbar:#692c91;
  --gg-bg:#f9f7fc;
  --gg-search-bg:#ececf1;
  --gg-text:#2b2b36;
  --gg-muted:#6b6b7a;
  --gg-active-bg:#e7e4ee;
  --gg-green:#0f8a4b;
  --gg-hot-bg:#8df0a9;
  --gg-hot-text:#14532d;
  --gg-radius:10px;
  --page-max: 1240px;
  --gutter: clamp(16px, 4vw, 56px);
  --section-y: clamp(48px, 7vw, 96px);
  --section-y-sm: clamp(32px, 5vw, 64px);
}
.page-wrap {
  width: 100%;
  max-width: calc(var(--page-max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
  box-sizing: border-box;
}

.gg-header,.gg-header *{box-sizing:border-box}
.gg-header{
  font-family:"Plus Jakarta Sans",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  color:var(--gg-text);
  background:var(--gg-bg);
  position:relative;
  /* No z-index: the header must NOT create a stacking context, otherwise the
     fixed #ec-mobile-menu inside it (z-index 1000) is trapped below the
     .ec-side-cart-overlay (16). Stacking order is content < header < overlay
     (16) < side panels (1000); the desktop dropdowns carry their own z-index. */
}
.gg-header a{text-decoration:none;color:inherit}
.gg-header ul{list-style:none;margin:0;padding:0}
.gg-container{width:100%;max-width:var(--page-max);margin:0 auto;padding:0 var(--gutter)}

/* ---------- top bar ---------- */
.gg-topbar{background:var(--gg-topbar);color:#fff;font-size:14px;font-weight:500}
.gg-topbar .gg-container{
  display:flex;align-items:center;justify-content:space-between;
  min-height:36px;height:36px;gap:16px;
}
.gg-topbar__phone{display:inline-flex;align-items:center;gap:8px;white-space:nowrap;flex-shrink:0}
.gg-topbar svg{width:20px;height:20px;flex:none}
.gg-topbar__msg{white-space:nowrap;flex-shrink:0}

/* ---------- main row: logo / search / actions ---------- */
.gg-main__row{
  display:flex;align-items:center;gap:28px;
  padding-top:16px;padding-bottom:10px;
}
.gg-logo{flex:none;display:flex;align-items:center}
.gg-logo img{height:48px;width:auto;display:block}

.gg-search{
  flex:1 1 auto;max-width:560px;
  display:flex;align-items:center;gap:10px;
  background:var(--gg-search-bg);
  border-radius:var(--gg-radius);
  padding:5px 5px 5px 14px;
  margin:0;
}
.gg-search__icon{width:18px;height:18px;color:var(--gg-muted);flex:none}
.gg-search input{
  flex:1;min-width:0;border:0;outline:0;background:transparent;
  font:inherit;font-size:14px;color:var(--gg-text);padding:8px 0;
}
.gg-search input::placeholder{color:var(--gg-muted)}
.gg-search button{
  border:0;cursor:pointer;font:inherit;font-size:14px;font-weight:600;
  color:#fff;background:var(--gg-purple);
  padding:8px 18px;border-radius:8px;transition:background .2s;
}
.gg-search button:hover{background:var(--gg-purple-dark)}

.gg-actions{margin-left:auto;display:flex;align-items:center;gap:22px}

.gg-icon-btn{position:relative;display:inline-flex;color:var(--gg-text)}
.gg-icon-btn svg{width:24px;height:24px}
.gg-count{
  position:absolute;top:-8px;right:-8px;
  min-width:20px;height:20px;padding:0 5px;
  border-radius:999px;color:#fff;
  font-size:11px;font-weight:700;line-height:20px;text-align:center;
  background:var(--gg-green);
}
.gg-count:empty{display:none}

.gg-login-btn{
  display:inline-block;background:var(--gg-purple);color:#fff !important;
  font-size:14px;font-weight:600;padding:10px 18px;border-radius:var(--gg-radius);
  border:0;cursor:pointer;font-family:inherit;white-space:nowrap;transition:background .2s;
}
.gg-login-btn:hover{background:var(--gg-purple-dark)}

.gg-cart{display:inline-flex;align-items:center;gap:0}
.gg-cart .gg-count{background:var(--gg-purple)}
.gg-cart__text{display:flex;flex-direction:column;justify-content:center;margin-left:14px;line-height:1.15;white-space:nowrap}
.gg-cart__label{font-size:11px;color:var(--gg-muted)}
.gg-cart__total{font-size:15px;font-weight:700;color:var(--gg-purple);white-space:nowrap}

/* ---------- menu row ---------- */
.gg-nav .gg-container{padding-top:4px;padding-bottom:14px}
.gg-menu{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.gg-menu > li{position:relative}
.gg-menu > li > a,
.gg-menu > li > button,
.gg-menu > li > .gg-menu-parent{
  display:inline-flex;align-items:center;gap:6px;
  font:inherit;font-size:16px;font-weight:400;color:var(--gg-muted);
  background:none;border:0;cursor:default;
  padding:8px 12px;border-radius:8px;transition:background .2s,color .2s;
}
.gg-menu > li > a{
  cursor:pointer;
}
.gg-menu > li > a.is-active,
.gg-menu > li.active > a{
  background:var(--gg-active-bg);color:var(--gg-purple-dark);font-weight:400;
}

/* ---------- menu hover: the same pill as the active item ---------- */
.gg-header .gg-menu > li > a,
.gg-header .gg-menu > li > .gg-menu-parent{
  transition:background-color .2s ease, color .2s ease;
}
.gg-header .gg-menu > li:hover > a,
.gg-header .gg-menu > li:hover > .gg-menu-parent,
.gg-header .gg-menu > li:focus-within > a,
.gg-header .gg-menu > li > a:hover,
.gg-header .gg-menu > li > a:focus-visible{
  background:var(--gg-active-bg);
  color:var(--gg-purple-dark);
  font-weight:600;
}
/* the active item stays bold */
.gg-header .gg-menu > li > a.is-active{
  font-weight:600;
}
/* Sale stays red, only the pill appears; !important because the legacy
   .text-danger utility it also carries is red with !important */
.gg-header .gg-menu > li > a.gg-sale,
.gg-header .gg-menu > li:hover > a.gg-sale,
.gg-header .gg-menu > li:focus-within > a.gg-sale{
  color:#e11d48 !important;
}
.gg-hot{
  font-size:10px;font-weight:600;line-height:1;
  background:var(--gg-hot-bg);color:var(--gg-hot-text);
  padding:3px 6px;border-radius:6px;
}

/* dropdown (works with existing li.dropdown > ul.sub-menu markup) */
.gg-menu .sub-menu{
  position:absolute;top:100%;left:0;min-width:210px;
  background:#fff;border-radius:var(--gg-radius);
  box-shadow:0 12px 32px rgba(40,20,80,.14);
  padding:8px;margin-top:4px;
  opacity:0;visibility:hidden;transform:translateY(6px);
  transition:all .18s ease;z-index:50;
}
.gg-menu li:hover > .sub-menu,
.gg-menu li:focus-within > .sub-menu{opacity:1;visibility:visible;transform:none}
.gg-menu .sub-menu a{display:block;padding:9px 12px;border-radius:8px;font-size:15px;font-weight:400;color:var(--gg-muted)}
.gg-header .gg-menu .sub-menu a:hover{background:var(--gg-active-bg);color:var(--gg-purple-dark)}

/* ---------- responsive ---------- */
@media (max-width:991px){
  .gg-main__row{flex-wrap:wrap;gap:14px}
  .gg-search{order:3;flex:1 1 100%;max-width:none}
  .gg-actions{gap:16px}
  .gg-nav .gg-container{overflow-x:auto;-webkit-overflow-scrolling:touch}
  .gg-menu{flex-wrap:nowrap;white-space:nowrap}
  .gg-menu .sub-menu{display:none}
}
@media (max-width:575px){
  .gg-topbar{font-size:12px}
  .gg-topbar__phone span{display:none}
  .gg-cart__text{display:none}
  .gg-login-btn{padding:9px 12px;font-size:13px}
}

/* =========================================================
   Mapping helpers for existing markup
   ========================================================= */
/* the existing announcement marquee is kept as the middle flex item */
.gg-topbar__marquee{flex:1 1 auto;min-width:0;white-space:nowrap;overflow:hidden}

/* =========================================================
   Overrides for legacy theme rules
   The old ekka/theme CSS targets the very same elements (the gg-
   classes are added on top of them), and several of those rules are
   more specific than a single gg- class, so they are re-asserted
   here. Without this block the old header styling wins.
   ========================================================= */
/* top bar */
.gg-header .gg-topbar{padding:0;border-bottom:0}
.gg-header .gg-main__row{padding-top:16px;padding-bottom:10px}
.gg-header .gg-logo{margin-bottom:0}
.gg-header .gg-topbar .header-top-message{color:inherit}
.gg-header .gg-topbar .header-top-message span{color:inherit}

/* search: .header-search .form-control / .submit outrank the gg- rules */
.gg-header .gg-search{width:auto;min-width:0}
.gg-header .gg-search .form-control{
  height:auto;min-height:0;padding:8px 0;
  border:0;border-radius:0;background:transparent;
  color:var(--gg-text);box-shadow:none;
}
.gg-header .gg-search .form-control:focus{
  border:0;box-shadow:none;outline:0;
}
.gg-header .gg-search .submit{
  position:static;width:auto;height:auto;
  color:#fff;background:var(--gg-purple);
  padding:8px 18px;border-radius:8px;
}
.gg-header .gg-search .submit:hover{background:var(--gg-purple-dark)}

/* action buttons: .ec-header-bottons .ec-header-btn* outrank gg- classes */
.gg-header .gg-actions.ec-header-bottons > * + *{margin-left:0;padding-right:0}
.gg-header .gg-actions.ec-header-bottons .ec-header-btn{
  color:var(--gg-text);margin:0;padding:0;
}
.gg-header .gg-actions.ec-header-bottons .ec-header-btn.ec-header-wishlist{
  margin:0;padding:0;
}
/* theme moves the last action button out of flow on small screens
   (order is set by the responsive block at the end of this file) */
.gg-header .gg-actions.ec-header-bottons .ec-header-btn:last-child{
  flex:0 0 auto;position:relative;left:auto;
}
/* theme adds margin/padding to every action button except the last one below 992px */
.gg-header .gg-actions.ec-header-bottons .ec-header-btn:not(:last-child){
  margin-left:0;padding:0;
}
.gg-header .gg-actions.ec-header-bottons .ec-header-btn i{
  color:inherit;font-size:24px;
}
.gg-header .gg-actions.ec-header-bottons .ec-header-btn .ec-header-count{
  top:-8px;right:-8px;bottom:auto;
  height:20px;min-width:20px;line-height:20px;
  padding:0 5px;font-size:11px;font-weight:700;
  border-radius:999px;color:#fff;background:var(--gg-green);
}
.gg-header .gg-actions.ec-header-bottons .ec-header-count:empty{display:none}
.gg-header .gg-actions.ec-header-bottons .gg-cart .ec-header-count{
  background:var(--gg-purple);
}

/* user dropdown toggle keeps the gg-login-btn pill look */
.gg-header .gg-actions .ec-header-user .dropdown-toggle{
  padding:10px 18px;border:0;border-radius:var(--gg-radius);
  margin-top:0;background:var(--gg-purple);color:#fff;
}
.gg-header .gg-actions .ec-header-user .dropdown-toggle:hover{
  background:var(--gg-purple-dark);color:#fff;
}
.gg-header .gg-actions .ec-header-user .dropdown-toggle i{
  color:inherit;font-size:14px;margin-left:5px;
}

/* account dropdown matches the main-nav submenu */
.gg-header .ec-header-user .gg-account-menu{
  min-width:210px;padding:8px;margin-top:6px;
  background:#fff;border:0;border-radius:var(--gg-radius);
  box-shadow:0 12px 32px rgba(40,20,80,.14);
}
.gg-header .ec-header-user .gg-account-menu li{border:0;margin:0}
.gg-header .ec-header-user .gg-account-menu form{margin:0}
.gg-header .ec-header-user .gg-account-menu .dropdown-item{
  display:block;width:100%;padding:9px 12px;
  border-radius:8px;background:transparent;
  color:var(--gg-muted);font-family:inherit;
  font-size:15px;font-weight:400;line-height:1.3;
  text-align:left;text-transform:none;white-space:normal;
  transition:background-color .18s ease,color .18s ease;
}
.gg-header .ec-header-user .gg-account-menu .dropdown-item:hover,
.gg-header .ec-header-user .gg-account-menu .dropdown-item:focus{
  background:var(--gg-active-bg);color:var(--gg-purple-dark);
}
.gg-header .ec-header-user .gg-account-menu .gg-logout-item{
  color:#dc2626;
}
.gg-header .ec-header-user .gg-account-menu .gg-logout-item:hover,
.gg-header .ec-header-user .gg-account-menu .gg-logout-item:focus{
  background:#fee2e2;color:#dc2626;
}

/* shared logout confirmation modal */
.gg-confirm-modal .modal-dialog{max-width:420px}
.gg-confirm-modal .modal-content{
  border:0;border-radius:12px;overflow:hidden;
  box-shadow:0 10px 30px rgba(27,21,48,.08);
  font-family:"Plus Jakarta Sans",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  color:#1b1530;
}
.gg-confirm-modal .modal-body{padding:30px 26px 10px;text-align:center}
.gg-confirm__icon{
  display:grid;place-items:center;
  width:58px;height:58px;margin:0 auto;border-radius:50%;
  background:#fee2e2;color:#dc2626;font-size:22px;
}
.gg-confirm-modal .modal-title{margin:14px 0 6px;font-size:1.1rem;font-weight:700}
.gg-confirm-modal p{margin:0;color:#6b6b7a;font-size:.875rem;line-height:1.6}
.gg-confirm-modal .modal-footer{
  display:flex;gap:10px;padding:18px 26px 26px;
  border-top:0;background:transparent;
}
.gg-confirm__form{display:flex;flex:1;margin:0}
.gg-confirm__btn{
  display:inline-flex;align-items:center;justify-content:center;
  flex:1;min-height:44px;padding:0 16px;border:0;border-radius:8px;
  font-family:inherit;font-size:14px;font-weight:600;line-height:1;
  cursor:pointer;transition:background-color .18s ease,color .18s ease;
}
.gg-confirm__btn--ghost{background:#fff;color:#1b1530;border:1px solid rgba(109,40,217,.25)}
.gg-confirm__btn--ghost:hover{background:#f3e8ff;color:var(--gg-purple)}
.gg-confirm__btn--danger{background:#dc2626;color:#fff}
.gg-confirm__btn--danger:hover{background:#b91c1c;color:#fff}
.gg-confirm__btn:focus-visible{outline:2px solid #dc2626;outline-offset:2px}

/* the mobile menu keeps its own look: restore the list reset gg-header applies */
.gg-header #ec-mobile-menu .ec-menu-content > ul{padding-left:2rem;margin:0 0 1rem}

/* =========================================================
   Header width
   .gg-container sits on the same element as Bootstrap's .container, whose
   responsive max-widths (up to 1320px) and 12px gutters would otherwise cap
   the row. Scoped under .gg-header so no .container rule used elsewhere on
   the site is touched.
   ========================================================= */
.gg-header .gg-container,
.gg-header .container,
.gg-header .container-fluid{
  width:100%;
  max-width:calc(var(--page-max) + 2 * var(--gutter));
  margin-left:auto;
  margin-right:auto;
  padding-left:var(--gutter);
  padding-right:var(--gutter);
}
/* a container nested inside another must not add gutters or its own width cap */
.gg-header .gg-container .container,
.gg-header .container .gg-container{max-width:none;padding-left:0;padding-right:0}

/* =========================================================
   Icon-only user button
The text versions ("Login / Register" / "My Account") stay in the markup;
these icons are the replacement below 992px.
   ========================================================= */
.gg-header .gg-actions .gg-user-icon{display:none}
.gg-header .gg-actions .ec-header-user .gg-login-btn .fi-rr-user{display:none}

/* =========================================================
   RESPONSIVE - tablet & mobile (< 992px)
   All scoped under .gg-header. The desktop layout (>= 992px) is untouched.
   ========================================================= */
@media (max-width:991px){

  /* ---------- top bar: one line, message truncates, phone = icon ---------- */
  .gg-header .gg-topbar .gg-container{flex-wrap:nowrap;gap:10px;min-height:44px}
  .gg-header .gg-topbar__msg{
    flex:0 1 auto;min-width:0;max-width:52%;
    overflow:hidden;white-space:nowrap;text-overflow:ellipsis;
  }
  .gg-header .gg-topbar__marquee{flex:1 1 0;min-width:0;overflow:hidden}
  .gg-header .gg-topbar__marquee marquee,
  .gg-header .gg-topbar__marquee span,
  .gg-header .gg-topbar__marquee a{white-space:nowrap}
  .gg-header .gg-topbar__phone{
    flex:none;min-width:44px;min-height:44px;justify-content:center;
  }
  .gg-header .gg-topbar__phone span{display:none}

  /* ---------- main row: hamburger | logo | ... | icons ---------- */
.gg-header .gg-main__row{
  display:flex;align-items:center;gap:28px;
  padding-top:18px;padding-bottom:14px;
}
  /* .gg-actions stops generating a box so the hamburger and the icons
     become items of this row and can be ordered around the logo */
  .gg-header .gg-actions{display:contents}
  .gg-header .gg-logo{order:2;flex:0 1 auto;min-width:0}
  .gg-header .gg-logo img{height:36px;max-width:100%;object-fit:contain}
  .gg-header .gg-actions .ec-side-toggle[href="#ec-mobile-menu"]{order:1}
  .gg-header .ec-header-wishlist{order:3;margin-left:auto}
  .gg-header .gg-actions .gg-user-icon{order:3;margin-left:auto;display:inline-flex}
  .gg-header .ec-header-user{display:contents}
  .gg-header .ec-header-user .gg-login-btn{order:4}
  .gg-header .gg-cart{order:5}
  .gg-header .gg-search{order:6}

  /* tap areas: 44px here, 40px on small phones (media query below) */
  .gg-header .gg-actions .ec-header-btn,
  .gg-header .gg-actions .gg-icon-btn,
  .gg-header .gg-actions .gg-user-icon{
    flex:0 0 auto;min-width:44px;min-height:44px;
    align-items:center;justify-content:center;
  }
  .gg-header .gg-actions .ec-header-user .gg-login-btn{
    display:inline-flex;align-items:center;justify-content:center;
    min-width:44px;min-height:44px;padding:0;
  }
  /* hide the text versions, show the icons */
  .gg-header .gg-actions .ec-header-user a.gg-login-btn{display:none}
  .gg-header .gg-actions .ec-header-user .gg-login-btn span,
  .gg-header .gg-actions .ec-header-user .gg-login-btn i{display:none}
  .gg-header .gg-actions .ec-header-user .gg-login-btn i.fi-rr-user{
    display:inline-flex;font-size:22px;color:inherit;margin-left:0;
  }
  .gg-header .gg-cart__text{display:none}

  /* .ec-header-user no longer has a box, so the account dropdown is
     anchored to the header (the theme's top/right are !important) */
  .gg-header .ec-header-user .dropdown-menu{
    top:100% !important;right:0 !important;left:auto !important;
    margin-top:6px !important;transform:none !important;
  }

  /* ---------- search: its own full-width row ---------- */
  .gg-header .gg-search{
    flex:1 1 100%;width:100%;max-width:none;
    min-height:50px;padding:3px 3px 3px 12px;gap:8px;
  }
  .gg-header .gg-search .form-control{min-height:44px;padding:0}
  .gg-header .gg-search .submit{min-height:44px;padding:0 16px}

  /* ---------- desktop menu row is gone; the panel is the only nav ---------- */
  .gg-header .gg-nav{display:none}

  /* ---------- mobile menu panel ---------- */
  .gg-header #ec-mobile-menu{width:min(340px, 86vw)}
  .gg-header #ec-mobile-menu .ec-menu-title{padding:4px 0 12px}
  .gg-header #ec-mobile-menu .ec-menu-title .menu_title{
    font-size:17px;font-weight:600;color:var(--gg-purple-dark);
  }
  .gg-header #ec-mobile-menu .ec-close{
    min-width:44px;min-height:44px;font-size:26px;line-height:1;
    color:var(--gg-text);background:none;border:0;
  }
  .gg-header #ec-mobile-menu .ec-menu-content > ul{padding-left:0;margin:0}
  .gg-header #ec-mobile-menu .ec-menu-content ul li a{
    display:flex;align-items:center;min-height:48px;padding:0 14px;
    border-bottom:1px solid #ecebf2;border-radius:8px;
    color:var(--gg-text);font-size:15px;font-weight:500;
  }
  .gg-header #ec-mobile-menu .ec-menu-content ul li a:hover,
  .gg-header #ec-mobile-menu .ec-menu-content ul li:hover > a,
  .gg-header #ec-mobile-menu .ec-menu-content ul li.active > a{
    background:var(--gg-active-bg);color:var(--gg-purple-dark);
  }
  .gg-header #ec-mobile-menu .ec-menu-content ul li .sub-menu{padding:0 0 4px 8px}
  .gg-header #ec-mobile-menu .ec-menu-content ul li .sub-menu li a{
    min-height:44px;border-bottom:0;color:var(--gg-muted);
  }
  /* the collapse toggle the JS injects gets a 44px tap area */
  .gg-header #ec-mobile-menu .ec-menu-content > ul > li .menu-toggle{
    width:44px;height:100%;min-height:44px;right:0;
  }
}

/* ---------- small phones ---------- */
@media (max-width:575px){
  .gg-header .gg-container{padding-left:12px;padding-right:12px}
  .gg-header .gg-main__row{gap:8px;padding-top:8px;padding-bottom:8px}
  .gg-header .gg-logo img{height:36px}
  .gg-header .gg-actions .ec-header-btn,
  .gg-header .gg-actions .gg-icon-btn,
  .gg-header .gg-actions .gg-user-icon,
  .gg-header .gg-actions .ec-header-user .gg-login-btn{min-width:40px;min-height:40px}
  .gg-header .gg-topbar{font-size:12px}
  .gg-header .gg-topbar__msg{max-width:46%}
}

@media (max-width:991px){
  .gg-header,
  .gg-header *{box-sizing:border-box}
  .gg-header{max-width:100vw;overflow-x:clip}

  .gg-header .gg-main__row{
    display:flex;align-items:center;gap:12px;flex-wrap:wrap;
  }
  .gg-header .gg-logo{flex:1 1 0;min-width:0;max-width:130px}
  .gg-header .gg-actions{display:contents}
  .gg-header .gg-actions.ec-header-bottons .ec-header-btn.ec-header-wishlist,
  .gg-header .gg-actions.ec-header-bottons .ec-header-btn.gg-user-icon{margin-left:auto}

  .gg-header .gg-search{
    order:6;flex:1 1 100%;width:100%;max-width:100%;min-width:0;margin:0;
  }
  .gg-header .gg-search .form-control{flex:1 1 auto;min-width:0;width:100%}
  .gg-header .gg-search .submit{flex:none;white-space:nowrap}
}

@media (max-width:575px){
  .gg-header .gg-container{padding-left:14px;padding-right:14px}
  .gg-header .gg-actions{gap:12px}
  .gg-header .gg-search .submit{padding:8px 14px}
}

/* =========================================================
   Mobile search bar: a plain flex row with an even 5px inner space.
   The theme rules fight the bar in three places: `.submit` is absolutely
   positioned (right:0; height:100%), `.header-search` gets padding:0, and
   below 576px `.header-search .form-control` gets margin-top:15px â€” which
   pushed the input down and inflated the bar. Neutralising them leaves the
   icon, the input and the purple button in one row, 5px from the bar's
   right/top/bottom edges. Desktop (>= 992px) is untouched.
   ========================================================= */
@media (max-width:991px){
 .gg-header .gg-search{
  position:relative;
  display:flex;align-items:center;gap:8px;
  width:100%;max-width:100%;min-width:0;margin:0;
  min-height:0;
  padding:5px 5px 5px 14px;           /* equal 5px space around the button */
 }
 .gg-header .gg-search__icon{flex:none}
 .gg-header .gg-search input,
 .gg-header .gg-search .form-control{
  position:static;flex:1 1 auto;min-width:0;width:auto;height:auto;
  min-height:0;
  margin:0;padding:8px 0;border:0;background:transparent;box-shadow:none;outline:0;
 }
 .gg-header .gg-search button,
 .gg-header .gg-search button.submit,
 .gg-header .gg-search .submit{
  position:static;inset:auto;transform:none;float:none;
  flex:none;width:auto;height:auto;min-height:0;margin:0;
  padding:9px 16px;white-space:nowrap;
 }
}

/* =========================================================
   Mobile menu panel (#ec-mobile-menu)
   The panel is fixed inside the header, so the header must stay out of the
   stacking-context business (see .gg-header above): overlay 16 < panel 1000.
   The title text is hidden with CSS because the theme's own rules reference
   .menu_title; only the close button keeps that row.
   ========================================================= */
.gg-header #ec-mobile-menu .ec-menu-title{display:flex;justify-content:flex-end}
.gg-header #ec-mobile-menu .ec-menu-title .menu_title{display:none}

/* every top-level row looks the same, whether it is a link or a parent <span> */
.gg-header #ec-mobile-menu .ec-menu-content > ul > li{position:relative}
.gg-header #ec-mobile-menu .ec-menu-content > ul > li > a,
.gg-header #ec-mobile-menu .ec-menu-content > ul > li > span:not(.menu-toggle){
  display:flex;align-items:center;min-height:48px;padding:0 4px;
  font-size:15px;font-weight:500;line-height:1.2;
  color:var(--gg-ink,#14141c);border-bottom:1px solid #ecebf2;border-radius:0;
}
.gg-header #ec-mobile-menu .ec-menu-content > ul > li > a{text-decoration:none}

/* the JS-injected "+" sits on the right edge, centred on the 48px row */
.gg-header #ec-mobile-menu .ec-menu-content > ul > li > .menu-toggle{
  position:absolute;top:0;right:0;bottom:auto;
  display:flex;align-items:center;justify-content:center;
  width:44px;height:48px;margin:0;
}

/* sub-menu: 16px indent, 14px text */
.gg-header #ec-mobile-menu .ec-menu-content > ul > li > .sub-menu{padding:0 0 4px}
.gg-header #ec-mobile-menu .ec-menu-content > ul > li > .sub-menu li a{
  display:flex;align-items:center;padding:0 4px 0 16px;
  font-size:14px;font-weight:400;border-bottom:0;
}

html { background: var(--gg-footer-bg, #f6f1fb); }
body { background: #ffffff; }

/* -------------------- FOOTER -------------------- */
.gg-footer {
    --gg-footer-bg: #f6f1fb;
    --gg-footer-surface: #ffffff;
    --gg-footer-purple: #692c91;
    --gg-footer-purple-dark: #4f216e;
    --gg-footer-text: #2b2b36;
    --gg-footer-muted: #6b6b7a;
    --gg-footer-line: rgba(105, 44, 145, 0.14);
    position: relative;
    overflow: hidden;
    padding: var(--section-y) 0 clamp(28px, 4vw, 32px);
    margin-top: auto;
    color: var(--gg-footer-text);
    background:
        radial-gradient(circle at 88% 0%, rgba(105, 44, 145, 0.06), transparent 32%),
        var(--gg-footer-bg);
    font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.gg-footer *,
.gg-footer *::before,
.gg-footer *::after {
    box-sizing: border-box;
}

.gg-footer a {
    text-decoration: none;
}

.gg-footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.gg-footer p {
    margin: 0;
}

.gg-footer a:focus-visible {
    outline: 2px solid var(--gg-footer-purple);
    outline-offset: 3px;
}

.gg-footer-inner {
    width: 100%;
    max-width: calc(var(--page-max, 1240px) + 2 * var(--gutter, clamp(16px, 4vw, 56px)));
    margin: 0 auto;
    padding: 0 var(--gutter, clamp(16px, 4vw, 56px));
}

.gg-footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 0.8fr 0.8fr 1.4fr;
    gap: clamp(32px, 4vw, 48px);
    align-items: start;
}

.gg-footer-grid > * {
    min-width: 0;
}

.gg-footer-brand {
    max-width: 360px;
}

.gg-footer-logo {
    margin: 0 0 20px;
}

.gg-footer-logo img {
    display: block;
    width: 142px;
    height: auto;
}

.gg-footer-logo .dark-logo {
    display: none;
}

.gg-footer-desc {
    margin: 0 0 18px;
    font-size: 14px;
    line-height: 1.85;
    color: var(--gg-footer-muted);
    text-align: justify;
    text-justify: inter-word;
}

.gg-footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.gg-footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--gg-footer-line);
    border-radius: 50%;
    color: var(--gg-footer-purple);
    background: var(--gg-footer-surface);
    box-shadow: 0 4px 12px rgba(74, 38, 102, 0.06);
    font-size: 14px;
    line-height: 1;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.gg-footer-social a:hover {
    color: #ffffff;
    background: var(--gg-footer-purple);
    box-shadow: 0 8px 18px rgba(74, 38, 102, 0.18);
    transform: translateY(-2px);
}

.gg-footer-title {
    margin: 4px 0 20px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.01em;
    color: var(--gg-footer-text);
}

.gg-footer-links {
    display: block;
}

.gg-footer-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gg-footer-list .ec-footer-link {
    display: block;
    margin: 0;
    padding: 0;
    border: 0;
}

.gg-footer-link {
    display: inline-block;
    font-size: 14px;
    line-height: 1.5;
    color: var(--gg-footer-muted);
    word-break: break-word;
    transition: color 0.2s ease;
}

.gg-footer-link:hover {
    color: var(--gg-footer-purple);
}

.gg-footer-contact {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.gg-footer-contact li { display: flex; align-items: flex-start; gap: 11px; font-size: 14px; line-height: 1.65; color: var(--gg-footer-muted); white-space: nowrap; }

.gg-footer-contact i {
    flex: 0 0 18px;
    width: 18px;
    margin-top: 4px;
    text-align: center;
    color: var(--gg-footer-purple);
    font-size: 15px;
}

.gg-footer-contact a {
    color: var(--gg-footer-muted);
    word-break: break-word;
    transition: color 0.2s ease;
}

.gg-footer-contact a:hover {
    color: var(--gg-footer-purple);
}

.gg-footer-divider {
    height: 1px;
    margin: 40px 0 22px;
    background: var(--gg-footer-line);
}

.gg-footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px 24px;
}

.gg-footer-copy {
    font-size: 13px;
    line-height: 1.7;
    color: var(--gg-footer-muted);
}

.gg-footer-copy-link {
    font-weight: 600;
    color: var(--gg-footer-purple);
}

.gg-footer-copy-link:hover {
    color: var(--gg-footer-purple-dark);
    text-decoration: underline;
}

.gg-footer-legal {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 20px;
}

.gg-footer-legal a {
    font-size: 13px;
    color: var(--gg-footer-muted);
    transition: color 0.2s ease;
}

.gg-footer-legal a:hover {
    color: var(--gg-footer-purple);
}

.gg-footer .ec-footer-links.ec-footer-dropdown {
    display: block !important;
    padding: 0;
}

.gg-footer .ec-heading-res {
    display: none !important;
}

.gg-footer .ec-footer-heading {
    position: relative;
}

@media (max-width: 1279px) {
    .gg-footer-grid {
        gap: 32px;
    }
}

@media (max-width: 991px) { .gg-footer-contact li { white-space: normal; }
    .gg-footer {
        padding-bottom: 90px;
    }

    .gg-footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 34px 32px;
    }

    .gg-footer-brand {
        grid-column: 1 / -1;
        max-width: 560px;
    }

    .gg-footer-contact-col {
        grid-column: 1 / -1;
    }

    .gg-footer-contact {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px 28px;
    }

    .gg-footer-title {
        margin-bottom: 16px;
    }

    .gg-footer-divider {
        margin-top: 34px;
    }
}

@media (max-width: 575px) {
    .gg-footer {
        padding-top: 42px;
    }

    .gg-footer-inner {
        padding: 0 24px;
    }

    /* two-column grid: brand on top, Quick Links + Categories side by side, contact below */
    .gg-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 28px 20px;
    }

    .gg-footer-brand {
        grid-column: 1 / -1;
    }

    .gg-footer-contact-col {
        grid-column: 1 / -1;
    }

    /* brand block: logo centered, text justified inside a centered block, icons centered */
    .gg-footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .gg-footer-logo {
        display: flex;
        justify-content: center;
    }

    .gg-footer-logo img {
        width: 130px;
        margin: 0 auto 16px;
    }

    .gg-footer-desc {
        max-width: 360px;
        margin: 0 auto 22px;
        font-size: 13.5px;
        text-align: justify;
        text-align-last: center;
        hyphens: auto;
    }

    .gg-footer-social {
        justify-content: center;
        width: 100%;
    }

    .gg-footer-social a {
        width: 36px;
        height: 36px;
    }

    /* the two link columns stay left aligned, with a tighter title */
    .gg-footer-title {
        margin-bottom: 14px;
    }

    .gg-footer-list {
        gap: 0;
    }

    .gg-footer-list .ec-footer-link {
        margin-bottom: 10px;
    }

    .gg-footer-list .ec-footer-link:last-child {
        margin-bottom: 0;
    }

    .gg-footer-link {
        font-size: 14px;
    }

    .gg-footer-contact {
        grid-template-columns: 1fr;
    }

    .gg-footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .gg-footer-legal {
        gap: 8px 18px;
    }
}
html { background: var(--gg-footer-bg, #f6f1fb); }
body { background: #ffffff; }

/* =========================================================
   Side cart (#ec-side-cart): empty state
   Only the empty branch of home/mycart.blade.php renders an <img> inside the
   list, and the JS empty branch renders the same block, so :has(> img) is
   true exactly while the cart is empty - on page load and after the last item
   is removed. The totals row and the View Cart / Checkout buttons disappear
   and the illustration + Continue Shopping take over that space.
   ========================================================= */
#ec-side-cart:has(.eccart-pro-items > img) .ec-cart-bottom { display: none; }

#ec-side-cart:has(.eccart-pro-items > img) .ec-cart-top {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    padding-bottom: 0;
    border-bottom: 0;
}

#ec-side-cart:has(.eccart-pro-items > img) .eccart-pro-items {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1 1 auto;
    min-height: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* illustration and button read as one centred block */
#ec-side-cart:has(.eccart-pro-items > img) .eccart-pro-items > img { margin-bottom: 0; }

#ec-side-cart .gg-cart__continue {
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    height: 44px;
    margin: 16px 18px 0;
    padding: 0 20px;
    border-radius: 8px;
    background: var(--gg-purple, #6d28d9);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}
#ec-side-cart .gg-cart__continue:hover {
    background: var(--gg-purple-dark, #5b21b6);
    color: #fff;
}

/* =========================================================
   Checkout page - order Summary box (user/checkout.blade.php)
   Base rules, no media query, so mobile and desktop look the same.
   The item card carries style="border-radius:0" inline, hence the single
   !important (inline beats any stylesheet rule).
   ========================================================= */
.ec-checkout-rightside .ec-sidebar-block { border-radius: 12px; }
.ec-checkout-rightside .ec-product-inner { border-radius: 12px !important; }
.ec-checkout-rightside .ec-pro-image,
.ec-checkout-rightside .ec-pro-image img { border-radius: 8px; }

/* every field on the checkout form */
.ec-page-content .ec-checkout-leftside input,
.ec-page-content .ec-checkout-leftside select,
.ec-page-content .ec-checkout-leftside textarea,
.ec-page-content .ec-checkout-leftside .ec-bl-select-inner,
.ec-page-content .ec-checkout-rightside input,
.ec-page-content .ec-checkout-rightside select,
.ec-page-content .ec-checkout-rightside textarea { border-radius: 8px; }

/* colours: no pink, black name / title / total, purple price line */
.ec-checkout-rightside .ec-sidebar-block .ec-sb-title .ec-sidebar-title { color: #14141c; }
.ec-checkout-rightside .ec-product-inner .ec-pro-content .ec-pro-title4,
.ec-checkout-rightside .ec-product-inner .ec-pro-content .ec-pro-title4 a { color: #14141c; }
.ec-checkout-rightside .ec-product-inner .ec-pro-content .ec-price span.new-price { color: #6d28d9; }
.ec-checkout-rightside .ec-checkout-summary .ec-checkout-summary-total .text-right { color: #14141c; }





