/* ============================================================
   TopGSM — Redesigned Header System 2026
   RTL · Bootstrap 5.3 · Yekan font
   Palette: Navy #102c57 · Coral #ff5e57 · Surface #ffffff
   ============================================================ */

/* ── Neutralise legacy desktop-header card look ───────────── */
header.tgh-header {
  width: 100%;
  margin: 0;
  border-radius: 0;
  box-shadow: none; /* controlled by .is-scrolled */
}

/* ── Shared tokens ────────────────────────────────────────── */
:root {
  --tgh-navy: #102c57;
  --tgh-coral: #ff5e57;
  --tgh-bg: #ffffff;
  --tgh-surface: #f4f7fb;
  --tgh-border: #e8edf3;
  --tgh-text-muted: #9aabb8;
  --tgh-radius: 12px;
  --tgh-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --tgh-h-main: 68px;
  --tgh-h-nav: 46px;
  --tgh-shadow-resting: 0 1px 0 var(--tgh-border);
  --tgh-shadow-scrolled: 0 4px 24px rgba(16, 44, 87, 0.1);
}

/* ============================================================
   TOP BANNER
   ============================================================ */
.tgh-topbanner-link {
  display: block;
  text-decoration: none;
}

/* ============================================================
   DESKTOP HEADER
   ============================================================ */
.tgh-header {
  position: sticky;
  top: 0;
  z-index: 990;
  background: var(--tgh-bg);
  box-shadow: var(--tgh-shadow-resting);
  transition:
    box-shadow 0.3s var(--tgh-ease),
    background 0.3s var(--tgh-ease);
  will-change: box-shadow;
}

.tgh-header.is-scrolled {
  box-shadow: var(--tgh-shadow-scrolled);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* ── Row 1: Logo · Search · Actions ──────────────────────── */
.tgh-main {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: var(--tgh-h-main);
  width: 100%;
  max-width: 1280px;
  margin-right: auto;
  margin-left: auto;
  padding-right: 1.25rem;
  padding-left: 1.25rem;
  box-sizing: border-box;
}

/* ── Logo ──────────────────────────────────────────────────── */
.tgh-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  text-decoration: none;
  outline-offset: 4px;
}

.tgh-logo img {
  height: 40px !important;
  width: auto;
  display: block;
  object-fit: contain;
}

/* ── Search wrapper ────────────────────────────────────────── */
.tgh-search-wrap {
  flex: 1;
  max-width: 540px;
  margin-right: auto;
  margin-left: auto;
}

/* ── Search form (shared between desktop wrap, mobile, offcanvas) */
.tgh-search-form {
  display: flex;
  align-items: center;
  background: var(--tgh-surface);
  border: 1.5px solid var(--tgh-border);
  border-radius: 100px;
  overflow: hidden;
  height: 44px;
  transition:
    border-color 0.2s,
    box-shadow 0.2s,
    background 0.2s;
}

.tgh-search-form:focus-within {
  border-color: var(--tgh-navy);
  box-shadow: 0 0 0 3px rgba(16, 44, 87, 0.08);
  background: #fff;
}

.tgh-search-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0 1rem;
  font-size: 0.875rem;
  font-family: inherit;
  color: var(--tgh-navy);
  outline: none;
  min-width: 0;
  /* RTL — text flows right naturally with html[dir="rtl"] */
}

.tgh-search-input::placeholder {
  color: var(--tgh-text-muted);
}

.tgh-search-submit {
  flex-shrink: 0;
  border: none;
  background: var(--tgh-navy);
  color: #fff;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
  border-radius: 0; /* contained within pill parent */
}

.tgh-search-submit:hover {
  background: #183e73;
}

.tgh-search-submit:active {
  transform: scale(0.96);
}

/* ── Actions bar ───────────────────────────────────────────── */
.tgh-actions {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.tgh-action-item {
  position: relative;
}

.tgh-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.22rem;
  padding: 0.5rem 0.8rem;
  border-radius: 10px;
  color: var(--tgh-navy);
  text-decoration: none;
  font-size: 0.7rem;
  font-weight: 700;
  white-space: nowrap;
  line-height: 1.1;
  transition:
    background 0.18s,
    color 0.18s,
    transform 0.15s;
  position: relative;
}

.tgh-action-btn:hover {
  background: var(--tgh-surface);
  color: var(--tgh-navy);
  transform: translateY(-1px);
}

.tgh-action-btn:active {
  transform: scale(0.97);
}

.tgh-action-btn svg {
  flex-shrink: 0;
}

/* ── Cart badge ────────────────────────────────────────────── */
.tgh-cart-badge {
  position: absolute;
  top: 4px;
  right: 2px; /* sits at corner of the icon in RTL */
  min-width: 18px;
  height: 18px;
  line-height: 18px;
  border-radius: 100px;
  background: var(--tgh-coral);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  text-align: center;
  padding: 0 4px;
  pointer-events: none;
  border: 2px solid #fff;
  transition: transform 0.2s var(--tgh-ease);
}

/* pulse when cart count > 0 */
.tgh-cart-badge:not(:empty):not([data-count="0"]) {
  animation: tghBadgePop 0.35s var(--tgh-ease) both;
}

@keyframes tghBadgePop {
  0% {
    transform: scale(0.5);
  }
  70% {
    transform: scale(1.15);
  }
  100% {
    transform: scale(1);
  }
}

/* ── Mini-cart panel ───────────────────────────────────────── */
.tgh-mini-cart {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 320px;
  max-width: 360px;
  background: #fff;
  border-radius: var(--tgh-radius);
  border: 1px solid var(--tgh-border);
  box-shadow:
    0 4px 6px -1px rgba(16, 44, 87, 0.06),
    0 16px 40px -8px rgba(16, 44, 87, 0.14);
  z-index: 1100;
  overflow: hidden;
  display: none;
}

.header-card-div:hover .tgh-mini-cart,
.tgh-mini-cart.d-block {
  display: block;
  animation: tghSlideDown 0.22s var(--tgh-ease) both;
}

@keyframes tghSlideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Row 2: Nav menu ───────────────────────────────────────── */
.tgh-nav-row {
  border-top: 1px solid var(--tgh-border);
  max-height: var(--tgh-h-nav);
  opacity: 1;
  visibility: visible;
  transition:
    max-height 0.3s var(--tgh-ease),
    opacity 0.25s var(--tgh-ease),
    visibility 0.25s;
}

/* JS adds this class on scroll */
.tgh-nav-row.tgh-nav-hidden {
  max-height: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Suppress old style.css hidden utility on our nav row */
.tgh-nav-row.hidden {
  visibility: visible; /* only tgh-nav-hidden controls hiding */
}

/* Hard reset: prevent any legacy absolute/contents positioning */
.tgh-nav-row {
  position: relative !important;
  display: block !important;
  left: auto !important;
  top: auto !important;
}

.tgh-nav {
  display: block;
  height: var(--tgh-h-nav);
  padding: 0;
  max-width: 1280px;
  margin-right: auto;
  margin-left: auto;
  padding-right: 0.5rem;
  padding-left: 0.5rem;
}

/* Nav list — the walker outputs <ul class="tgh-nav-list"> */
.tgh-nav-list {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  height: var(--tgh-h-nav);
  margin: 0;
  padding: 0;
  list-style: none;
  gap: 1.5rem;
}

/* Each nav item — walker adds .nav-item and .menu-item to <li> */
.tgh-nav-list > .nav-item,
.tgh-nav-list > .menu-item {
  position: relative;
  height: 100%;
  display: flex;
  align-items: stretch;
}

/* Nav links — walker adds .nav-link to <a> */
.tgh-nav-list > .nav-item > .nav-link,
.tgh-nav-list > .nav-item > a,
.tgh-nav-list > .menu-item > a {
  display: flex;
  align-items: center;
  height: 100%;
  padding-right: 0.9rem;
  padding-left: 0.9rem;
  color: #27405e;
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  transition: color 0.18s;
}

/* Sliding underline indicator */
.tgh-nav-list > .nav-item > .nav-link::after,
.tgh-nav-list > .nav-item > a::after,
.tgh-nav-list > .menu-item > a::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0.9rem;
  left: 0.9rem;
  height: 2.5px;
  background: var(--tgh-coral);
  border-radius: 2px 2px 0 0;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.22s var(--tgh-ease);
}

.tgh-nav-list > .nav-item:hover > .nav-link::after,
.tgh-nav-list > .nav-item:hover > a::after,
.tgh-nav-list > .menu-item:hover > a::after,
.tgh-nav-list > .current-menu-item > a::after,
.tgh-nav-list > .nav-item.active > .nav-link::after,
.tgh-nav-list > .current-menu-ancestor > a::after {
  transform: scaleX(1);
}

.tgh-nav-list > .nav-item:hover > .nav-link,
.tgh-nav-list > .nav-item:hover > a,
.tgh-nav-list > .menu-item:hover > a {
  color: var(--tgh-coral);
}

.tgh-nav-list > .current-menu-item > a,
.tgh-nav-list > .current-menu-ancestor > a {
  color: var(--tgh-coral);
}

/* Suppress old style.css underline rule inside nav */
.tgh-nav-list > .current-menu-item::after {
  display: none;
}

/* Dropdown menus — Bootstrap walker generates .dropdown-menu */
.tgh-nav-list .dropdown-menu {
  border: 1px solid var(--tgh-border);
  border-radius: var(--tgh-radius);
  box-shadow:
    0 4px 6px -1px rgba(16, 44, 87, 0.06),
    0 16px 32px -8px rgba(16, 44, 87, 0.12);
  padding: 0.5rem;
  min-width: 190px;
  margin-top: 0;
  animation: tghSlideDown 0.18s var(--tgh-ease) both;
}

.tgh-nav-list .dropdown-item {
  border-radius: 8px;
  padding: 0.5rem 0.9rem;
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--tgh-navy);
  transition:
    background 0.15s,
    color 0.15s;
}

.tgh-nav-list .dropdown-item:hover,
.tgh-nav-list .dropdown-item:focus {
  background: var(--tgh-surface);
  color: var(--tgh-coral);
}

/* Submenu arrow */
.tgh-nav-list .dropdown-toggle::after {
  margin-right: 0.35em; /* RTL: arrow to the right of the text */
  vertical-align: middle;
  opacity: 0.55;
}

/* ============================================================
   MOBILE HEADER
   ============================================================ */
.tgh-header-mob {
  background: #fff;
  box-shadow: 0 1px 0 var(--tgh-border);
  z-index: 990;
}

/* Sticky bar row */
.tgh-mob-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 58px;
  padding-right: 0.75rem;
  padding-left: 0.75rem;
  gap: 0.5rem;
  width: 100%;
  box-sizing: border-box;
}

/* Logo centered */
.tgh-mob-logo {
  flex: 1;
  display: flex;
  justify-content: center;
  text-decoration: none;
}

.tgh-mob-logo img {
  height: 34px !important;
  width: auto;
  display: block;
  object-fit: contain;
}

/* Icon buttons */
.tgh-mob-toggle,
.tgh-mob-search-toggle {
  background: none;
  border: none;
  padding: 0.45rem;
  color: var(--tgh-navy);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  flex-shrink: 0;
  transition: background 0.15s;
  line-height: 1;
}

.tgh-mob-toggle:hover,
.tgh-mob-search-toggle:hover {
  background: var(--tgh-surface);
}

.tgh-mob-toggle:active,
.tgh-mob-search-toggle:active {
  transform: scale(0.94);
}

/* Right-side action group */
.tgh-mob-actions {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  flex-shrink: 0;
}

/* Mobile cart link */
.tgh-mob-cart {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem;
  color: var(--tgh-navy);
  text-decoration: none;
  border-radius: 8px;
  position: relative;
  transition: background 0.15s;
  line-height: 1;
}

.tgh-mob-cart:hover {
  background: var(--tgh-surface);
  color: var(--tgh-navy);
}

/* Cart badge inherits .tgh-cart-badge styles above */

/* ── Expandable search row ─────────────────────────────────── */
.tgh-mob-search {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition:
    max-height 0.3s var(--tgh-ease),
    opacity 0.25s var(--tgh-ease),
    padding 0.3s var(--tgh-ease);
  padding-top: 0;
  padding-bottom: 0;
  padding-right: 0.85rem;
  padding-left: 0.85rem;
  background: #fff;
  border-top: 1px solid transparent;
}

.tgh-mob-search.is-open {
  max-height: 72px;
  opacity: 1;
  padding-top: 0.5rem;
  padding-bottom: 0.65rem;
  border-top-color: var(--tgh-border);
}

/* Smaller search form in mobile rows */
.tgh-mob-search .tgh-search-form,
.tgh-offcanvas-search .tgh-search-form {
  height: 42px;
}

.tgh-mob-search .tgh-search-submit,
.tgh-offcanvas-search .tgh-search-submit {
  width: 42px;
  height: 42px;
}

/* ============================================================
   OFFCANVAS MOBILE MENU
   ============================================================ */
.tgh-offcanvas {
  max-width: 88vw;
  width: 320px;
}

.tgh-offcanvas-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--tgh-border);
}

.tgh-offcanvas-close {
  background: none;
  border: none;
  padding: 0.4rem;
  cursor: pointer;
  color: var(--tgh-navy);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  line-height: 1;
}

.tgh-offcanvas-close:hover {
  background: var(--tgh-surface);
}

.tgh-offcanvas-body {
  padding: 1.25rem;
  overflow-y: auto;
}

.tgh-offcanvas-search {
  /* inherits .tgh-search-form via child form */
}

/* Offcanvas nav — vertical stack, icon on the right of each link (RTL) */
.tgh-offcanvas-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.tgh-offcanvas-nav > li,
.tgh-offcanvas-nav .sub-menu > li,
.tgh-offcanvas-nav .dropdown-menu > li {
  display: block;
  width: 100%;
  float: none;
  flex: 0 0 auto;
}

.tgh-offcanvas-nav > li {
  border-bottom: 1px solid var(--tgh-border);
  position: static;
}

.tgh-offcanvas-nav > li:last-child {
  border-bottom: none;
}

/* Row: [chevron] ··· text · icon — all on one line */
.tgh-offcanvas-nav a.nav-link,
.tgh-offcanvas-nav a.dropdown-item,
.tgh-offcanvas-nav > li > a {
  display: flex !important;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: nowrap;
  width: 100%;
  box-sizing: border-box;
  padding: 0.9rem 0.75rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--tgh-navy);
  text-decoration: none;
  gap: 0.55rem;
  text-align: right;
  margin: 0 !important;
  transition: color 0.15s;
  direction: rtl;
}

.tgh-offcanvas-nav > li > a:hover,
.tgh-offcanvas-nav a.nav-link:hover,
.tgh-offcanvas-nav a.dropdown-item:hover {
  color: var(--tgh-coral);
}

/* Icon sits on the right (first flex item in RTL row) */
.tgh-offcanvas-nav a i,
.tgh-offcanvas-nav a [class*="fa-"],
.tgh-offcanvas-nav a .menu-item-icon,
.tgh-offcanvas-nav a img {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 1.25rem !important;
  min-width: 1.25rem;
  height: 1.25rem;
  font-size: 1rem !important;
  line-height: 1;
  margin: 0 !important;
  padding: 0;
  float: none !important;
  text-align: center;
  vertical-align: middle;
}

.tgh-offcanvas-nav a svg {
  flex: 0 0 auto;
  width: 1.25rem !important;
  height: 1.25rem !important;
  font-size: inherit !important;
}

/* Hide Bootstrap dropdown caret — we use our own chevron */
.tgh-offcanvas-nav .dropdown-toggle::after {
  display: none !important;
}

/* Expand chevron on the left */
.tgh-offcanvas-nav > .menu-item-has-children > a::before,
.tgh-offcanvas-nav > .dropdown > a.tgh-oc-toggle::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  transform-origin: center;
  transition: transform 0.22s var(--tgh-ease);
  flex-shrink: 0;
  margin-left: auto;
  opacity: 0.45;
  order: 99;
}

.tgh-offcanvas-nav > .menu-item-has-children.tgh-sub-open > a::before,
.tgh-offcanvas-nav > .dropdown.tgh-sub-open > a.tgh-oc-toggle::before {
  transform: rotate(45deg);
  opacity: 0.7;
}

/* Active / current item */
.tgh-offcanvas-nav > .current-menu-item > a,
.tgh-offcanvas-nav > .current-menu-ancestor > a,
.tgh-offcanvas-nav > .current-menu-parent > a {
  color: var(--tgh-coral);
}
/* عکس بالا هدر */

.baner-up-of-header {
  height: 100px;
  background-image: url(https://top-gsm.ir/wp-content/uploads/2026/05/ChatGPT-Image-May-15-2026-09_35_52-PM.png); /* دسکتاپ */
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

/* موبایل */
@media (max-width: 768px) {
  .baner-up-of-header {
    background-image: url(https://top-gsm.ir/wp-content/uploads/2026/05/ChatGPT-Image-May-15-2026-11_02_18-PM-e1778873633193.png); /* عکس موبایل */
    background-size: cover;
    background-position: center;
  }
}
/* ── Submenu (depth 2) — inline accordion under parent row ─── */
.tgh-offcanvas-nav > li > .sub-menu,
.tgh-offcanvas-nav > li > .dropdown-menu {
  list-style: none;
  padding: 0;
  margin: 0 !important;
  width: 100% !important;
  min-width: 0 !important;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  /* kill Bootstrap Popper + legacy flyout (style.css) */
  position: static !important;
  inset: auto !important;
  top: auto !important;
  right: auto !important;
  left: auto !important;
  bottom: auto !important;
  transform: none !important;
  float: none !important;
  box-shadow: none !important;
  border: none !important;
  display: block !important;
  border-radius: 0 !important;
  animation: none !important;
  background: #f8fafc;
  border-top: 0 solid var(--tgh-border) !important;
  transition:
    max-height 0.28s var(--tgh-ease),
    opacity 0.2s ease,
    border-top-width 0.2s ease;
}

/* Open — expand in document flow (no display:none / Popper) */
.tgh-offcanvas-nav > li.tgh-sub-open > .sub-menu,
.tgh-offcanvas-nav > li.tgh-sub-open > .dropdown-menu {
  max-height: 80vh;
  opacity: 1;
  visibility: visible;
  overflow: visible;
  border-top-width: 1px !important;
}

.tgh-offcanvas-nav .sub-menu li,
.tgh-offcanvas-nav .dropdown-menu li {
  border-bottom: 1px solid rgba(16, 44, 87, 0.06);
}

.tgh-offcanvas-nav .sub-menu li:last-child,
.tgh-offcanvas-nav .dropdown-menu li:last-child {
  border-bottom: none;
}

.tgh-offcanvas-nav .sub-menu a,
.tgh-offcanvas-nav .dropdown-menu a {
  padding: 0.65rem 1.5rem 0.65rem 0.75rem;
  font-size: 0.83rem;
  font-weight: 600;
  color: #546a82;
  text-decoration: none;
  transition:
    color 0.15s,
    background 0.15s;
}

/* No bullet pseudo on child links — keeps icon + text layout clean */
.tgh-offcanvas-nav .sub-menu a::before,
.tgh-offcanvas-nav .dropdown-menu a::before,
.tgh-offcanvas-nav .dropdown-menu a.dropdown-toggle::before {
  display: none !important;
  content: none !important;
}

.tgh-offcanvas-nav .sub-menu a:hover,
.tgh-offcanvas-nav .dropdown-menu a:hover {
  color: var(--tgh-coral);
  background: rgba(255, 94, 87, 0.05);
}

/* Account row at bottom of offcanvas */
.tgh-offcanvas-account {
  padding-top: 1rem;
  padding-bottom: 1rem;
  margin-top: 0.5rem;
  border-top: 1px solid var(--tgh-border);
}

.tgh-offcanvas-account a {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--tgh-navy);
  text-decoration: none;
  padding: 0.6rem 0.2rem;
  border-radius: 10px;
  transition:
    color 0.15s,
    background 0.15s,
    padding-right 0.2s;
}

.tgh-offcanvas-account a:hover {
  color: var(--tgh-coral);
  background: var(--tgh-surface);
  padding-right: 0.6rem; /* RTL: indent from right */
}

/* ============================================================
   Override legacy mini-cart rules from style.css
   ============================================================ */

/* The panel itself: ensure absolute positioning wins */
header .mini-cart.tgh-mini-cart {
  position: absolute !important;
  top: calc(100% + 6px) !important;
  left: 0 !important;
  z-index: 1100 !important;
}

/* Inner WooCommerce widget wrapper: must be static, not absolute */
.tgh-mini-cart .widget_shopping_cart_content {
  position: static !important;
  left: auto !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  width: 100% !important;
}

/* Woo cart list */
.tgh-mini-cart .woocommerce-mini-cart {
  display: block !important;
  background: transparent !important;
  min-width: unset !important;
  padding: 0.75rem 1rem !important;
}

/* ============================================================
   WooCommerce Mini Cart — inside .tgh-mini-cart
   ============================================================ */
.tgh-mini-cart .woocommerce-mini-cart {
  padding: 0.75rem 1rem;
  max-height: 320px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--tgh-border) transparent;
}

.tgh-mini-cart .woocommerce-mini-cart__empty-message {
  text-align: center;
  color: var(--tgh-text-muted);
  font-size: 0.875rem;
  padding: 1.5rem 1rem;
  margin: 0;
}

.tgh-mini-cart .woocommerce-mini-cart__total,
.tgh-mini-cart .mini-cart .total {
  border-top: 1px solid var(--tgh-border);
  padding: 0.75rem 1rem;
  font-weight: 700;
  font-size: 0.875rem;
}

.tgh-mini-cart .woocommerce-mini-cart__buttons,
.tgh-mini-cart .mini-cart .buttons {
  display: flex;
  gap: 0.5rem;
  padding: 0.5rem 1rem 1rem;
}

.tgh-mini-cart .woocommerce-mini-cart__buttons a,
.tgh-mini-cart .mini-cart .buttons a {
  flex: 1;
  text-align: center;
  padding: 0.55rem 0.5rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  transition:
    background 0.18s,
    color 0.18s,
    transform 0.15s;
}

.tgh-mini-cart .mini-cart .buttons a:first-child {
  background: var(--tgh-surface);
  color: var(--tgh-navy);
  border: 1.5px solid var(--tgh-border);
}

.tgh-mini-cart .mini-cart .buttons a:first-child:hover {
  background: #e8edf3;
}

.tgh-mini-cart .mini-cart .buttons a:last-child {
  background: var(--tgh-navy);
  color: #fff;
}

.tgh-mini-cart .mini-cart .buttons a:last-child:hover {
  background: #183e73;
}

.tgh-mini-cart .mini-cart .buttons a:active {
  transform: scale(0.97);
}

/* ============================================================
   RESPONSIVE OVERRIDES
   ============================================================ */

/* Tablet adjustments */
@media (min-width: 768px) and (max-width: 991px) {
  .tgh-main {
    gap: 1rem;
  }

  .tgh-search-wrap {
    max-width: 360px;
  }

  .tgh-action-btn span {
    display: none; /* icon-only on tablet */
  }
}

/* Large desktop — more breathing room */
@media (min-width: 1280px) {
  .tgh-main {
    gap: 2rem;
  }

  .tgh-search-wrap {
    max-width: 600px;
  }
}
