/*
Theme Name: Storefront X
Theme URI: https://example.com/storefront-x
Author: Your Name
Author URI: https://example.com
Description: Fully custom WooCommerce theme combining Storefront X and ShopKart styles. Default WooCommerce templates and styles are bypassed.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: storefront-x
Tags: e-commerce, custom-colors, responsive-layout, custom-menu, woocommerce
*/

/* =========================================================
   1. DESIGN TOKENS & VARIABLES
   ========================================================= */
:root {
  --sx-bg: #f6f7fb;
  --sx-surface: #ffffff;
  --sx-ink: #0e1320;
  --sx-ink-2: #48506a;
  --sx-ink-3: #8a92a8;
  --sx-line: #e6e8ef;
  --sx-brand: #4f46e5;
  --sx-brand-dark: #3f37c9;
  --sx-brand-soft: #eef0ff;
  --sx-brand-2: #7c3aed;
  --sx-accent: #ff5468;
  --sx-mint: #e6f8ef;
  --sx-dark: #0b1020;
  
  /* ShopKart Secondary Compatibility Variables */
  --sk-primary: #4f46e5;
  --sk-primary-dark: #3f37c9;
  --sk-dark: #0e1320;
  --sk-text: #48506a;
  --sk-muted: #8a92a8;
  --sk-line: #e6e8ef;
  --sk-bg: #f6f7fb;
  --sk-bg-alt: #ffffff;
  --sk-price: #ff5468;

  --sx-radius-s: 10px;
  --sx-radius: 16px;
  --sx-radius-l: 26px;
  --sx-shadow-s: 0 1px 2px rgba(14, 19, 32, .06), 0 6px 16px -8px rgba(14, 19, 32, .14);
  --sx-shadow: 0 12px 32px -14px rgba(14, 19, 32, .24);
  --sx-shadow-l: 0 34px 80px -34px rgba(14, 19, 32, .45);
  --sx-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --sx-font-head: "Manrope", var(--sx-font);
  --sx-container: 1240px;
  --sx-ease: cubic-bezier(.4, 0, .2, 1);
}

/* =========================================================
   2. RESET & BASE
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--sx-bg);
  color: var(--sx-ink);
  font-family: var(--sx-font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  font-family: var(--sx-font-head);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.02em;
  color: var(--sx-ink);
  margin: 0 0 .5em;
}

p { margin: 0 0 1em; }

a { color: var(--sx-brand); text-decoration: none; transition: color .2s var(--sx-ease); }
a:hover { color: var(--sx-brand-dark); }

img, svg { max-width: 100%; height: auto; display: block; }

button { font: inherit; cursor: pointer; }

input, select, textarea { font: inherit; color: inherit; }

ul, ol { margin: 0; padding: 0; list-style: none; }

.sx-svg { display: inline-block; vertical-align: middle; flex: 0 0 auto; }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

.skip-link:focus {
  position: fixed; top: 12px; left: 12px;
  width: auto; height: auto;
  clip: auto; clip-path: none;
  background: #fff; color: var(--sx-dark);
  padding: 12px 18px; border-radius: 8px; z-index: 9999;
  box-shadow: var(--sx-shadow);
}

/* =========================================================
   3. LAYOUT HELPERS
   ========================================================= */
.sx-main, .main { display: block; }

.sx-container, .container {
  width: 100%;
  max-width: var(--sx-container);
  margin-inline: auto;
  padding-inline: 24px;
}

.sx-section { padding: 76px 0; }

.sx-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--sx-brand);
  background: var(--sx-brand-soft);
  border-radius: 999px;
  padding: 7px 14px;
  margin-bottom: 18px;
}

.sx-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--sx-accent);
  box-shadow: 0 0 0 4px rgba(255, 84, 104, .18);
}

.sx-title {
  font-size: clamp(1.65rem, 1.1rem + 1.9vw, 2.5rem);
  margin: 0;
}

.sx-title--sm { font-size: clamp(1.35rem, 1rem + 1vw, 1.85rem); }

.sx-grad {
  background: linear-gradient(100deg, var(--sx-brand) 0%, var(--sx-brand-2) 55%, var(--sx-accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.sx-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}

.sx-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: .95rem;
  color: var(--sx-ink);
  padding-bottom: 4px;
  border-bottom: 1.5px solid transparent;
  transition: border-color .2s var(--sx-ease), gap .2s var(--sx-ease);
}
.sx-link:hover { border-color: var(--sx-ink); gap: 12px; color: var(--sx-ink); }

/* =========================================================
   4. BUTTONS / BADGES / STARS / INPUTS
   ========================================================= */
.sx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  background: var(--sx-brand-soft);
  color: var(--sx-ink);
  font-family: var(--sx-font-head);
  font-weight: 700;
  font-size: .93rem;
  line-height: 1.2;
  cursor: pointer;
  transition: transform .2s var(--sx-ease), box-shadow .2s var(--sx-ease), background .2s var(--sx-ease), color .2s var(--sx-ease);
}
.sx-btn:hover { transform: translateY(-2px); color: var(--sx-ink); }
.sx-btn:active { transform: translateY(0); }

.sx-btn--lg { padding: 16px 30px; font-size: 1rem; }

.sx-btn--primary {
  background: linear-gradient(135deg, var(--sx-brand) 0%, var(--sx-brand-2) 100%);
  color: #fff;
  box-shadow: 0 16px 34px -16px rgba(79, 70, 229, .85);
}
.sx-btn--primary:hover { color: #fff; box-shadow: 0 22px 44px -18px rgba(79, 70, 229, .95); }

.sx-btn--ghost {
  background: transparent;
  border-color: var(--sx-line);
  color: var(--sx-ink);
}
.sx-btn--ghost:hover { border-color: var(--sx-ink); }

.sx-btn--dark { background: var(--sx-ink); color: #fff; }
.sx-btn--dark:hover { color: #fff; background: #000; }

.sx-btn--light { background: #fff; color: var(--sx-ink); }
.sx-btn--light:hover { color: var(--sx-ink); }

.sx-btn.is-disabled { opacity: .45; pointer-events: none; }

.sx-badge {
  display: inline-block;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: var(--sx-ink);
  color: #fff;
}
.sx-badge--sale { background: var(--sx-accent); }
.sx-badge--hot { background: var(--sx-brand); }
.sx-badge--out { background: #4a5265; }

.sx-stars { display: flex; align-items: center; gap: 2px; font-size: .85rem; }
.sx-star { color: #d5d9e3; line-height: 1; }
.sx-star.is-filled { color: #ffb020; }
.sx-stars__count { margin-left: 6px; color: var(--sx-ink-3); font-size: .78rem; font-weight: 600; }

.sx-input {
  width: 100%;
  padding: 14px 18px;
  border: 1.5px solid var(--sx-line);
  border-radius: 999px;
  background: #fff;
  color: var(--sx-ink);
  outline: none;
  transition: border-color .2s var(--sx-ease), box-shadow .2s var(--sx-ease);
}
.sx-input:focus { border-color: var(--sx-brand); box-shadow: 0 0 0 4px rgba(79, 70, 229, .14); }

.sx-note { margin: 10px 0 0; font-size: .85rem; font-weight: 600; }
.sx-note--ok { color: #12855a; }
.sx-note--err { color: var(--sx-accent); }

/* =========================================================
   5. TOPBAR & HEADER
   ========================================================= */
.topbar { background: var(--sk-dark); color: #cbd5e1; font-size: .82rem; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; }
.topbar__note { margin: 0; }
.topbar__links { display: flex; gap: 18px; }
.topbar__links a { color: #cbd5e1; }
.topbar__links a:hover { color: #fff; }

.site-header {
  position: sticky; top: 0; z-index: 90;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--sx-line);
}
.site-header__inner { display: flex; align-items: center; gap: 28px; min-height: 76px; }

.site-branding { display: flex; flex-direction: column; }
.site-title { font-size: 1.4rem; font-weight: 800; letter-spacing: -.02em; color: var(--sx-dark); }
.site-title:hover { color: var(--sx-primary); }
.site-description { margin: 0; font-size: .78rem; color: var(--sx-muted); }
.custom-logo-link img { max-height: 48px; width: auto; }

.main-navigation { margin-left: auto; }
.primary-menu { display: flex; align-items: center; gap: 6px; }
.primary-menu > li > a {
  display: block; padding: 10px 14px; border-radius: 10px;
  color: var(--sx-dark); font-weight: 600; font-size: .94rem;
}
.primary-menu > li > a:hover,
.primary-menu > li.current-menu-item > a { background: var(--sx-brand-soft); color: var(--sx-primary); }
.primary-menu .sub-menu {
  display: none; position: absolute; min-width: 210px; padding: 8px;
  background: #fff; border: 1px solid var(--sx-line); border-radius: 12px;
  box-shadow: var(--sx-shadow); z-index: 99;
}
.primary-menu li { position: relative; }
.primary-menu li:hover > .sub-menu { display: block; }
.primary-menu .sub-menu a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--sx-ink-2); font-size: .9rem; }
.primary-menu .sub-menu a:hover { background: var(--sx-brand-soft); color: var(--sx-primary); }

.menu-toggle {
  display: none; padding: 10px; border: 1px solid var(--sx-line);
  background: #fff; border-radius: 10px; cursor: pointer;
}
.menu-toggle__bars,
.menu-toggle__bars::before,
.menu-toggle__bars::after {
  display: block; width: 20px; height: 2px; background: var(--sk-dark); border-radius: 2px;
}
.menu-toggle__bars { position: relative; }
.menu-toggle__bars::before,
.menu-toggle__bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle__bars::before { top: -6px; }
.menu-toggle__bars::after { top: 6px; }

.header-actions { display: flex; align-items: center; gap: 8px; }
.header-action {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 12px;
  color: var(--sk-dark); border: 1px solid var(--sx-line);
}
.header-action:hover { background: var(--sx-brand-soft); color: var(--sx-primary); }
.cart-count, .sx-cart-count {
  position: absolute; top: -6px; right: -6px;
  min-width: 20px; height: 20px; padding: 0 5px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--sx-brand); color: #fff;
  font-size: .7rem; font-weight: 700; border-radius: 999px;
}

/* =========================================================
   6. HERO SECTION
   ========================================================= */
.sx-hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 84px;
  background:
    radial-gradient(900px 420px at 82% 8%, rgba(124, 58, 237, .16), transparent 62%),
    radial-gradient(700px 380px at 6% 92%, rgba(79, 70, 229, .12), transparent 62%),
    linear-gradient(180deg, #ffffff 0%, var(--sx-bg) 100%);
}

.sx-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center;
  gap: 56px;
}

.sx-hero__title {
  font-size: clamp(2.2rem, 1.2rem + 3.6vw, 3.9rem);
  margin: 0 0 18px;
}

.sx-hero__text {
  font-size: clamp(1rem, .96rem + .25vw, 1.12rem);
  color: var(--sx-ink-2);
  max-width: 46ch;
  margin-bottom: 30px;
}

.sx-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 44px; }

.sx-hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
  list-style: none;
}
.sx-hero__stats li { display: flex; flex-direction: column; }
.sx-hero__stats strong {
  font-family: var(--sx-font-head);
  font-size: 1.4rem;
  letter-spacing: -.02em;
}
.sx-hero__stats span { font-size: .84rem; color: var(--sx-ink-3); font-weight: 500; }

.sx-hero__media {
  position: relative;
  min-height: 440px;
}

.sx-hero__glow {
  position: absolute;
  inset: 8% 6% 12% 10%;
  background: linear-gradient(135deg, rgba(79, 70, 229, .35), rgba(255, 84, 104, .28));
  filter: blur(56px);
  border-radius: 50%;
  z-index: 0;
}

.sx-hero__card {
  position: absolute;
  z-index: 1;
  display: block;
  background: #fff;
  border-radius: var(--sx-radius-l);
  box-shadow: var(--sx-shadow-l);
  overflow: hidden;
  transition: transform .4s var(--sx-ease);
}
.sx-hero__card--1 { top: 0; left: 0; width: 57%; transform: rotate(-4deg); }
.sx-hero__card--2 { right: 0; bottom: 0; width: 53%; transform: rotate(4deg); }
.sx-hero__card:hover { transform: rotate(0) translateY(-6px); }

.sx-hero__img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: #f1f2f7;
}

.sx-hero__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
}
.sx-hero__name { font-weight: 600; font-size: .9rem; color: var(--sx-ink); }
.sx-hero__price { font-weight: 800; font-size: .9rem; color: var(--sx-brand); white-space: nowrap; }

/* =========================================================
   7. TRUST BADGES
   ========================================================= */
.sx-trust { padding: 0 0 8px; }

.sx-trust__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--sx-line);
  border: 1px solid var(--sx-line);
  border-radius: var(--sx-radius-l);
  overflow: hidden;
}

.sx-trust__item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 24px;
  background: #fff;
}

.sx-trust__icon {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 14px;
  background: var(--sx-brand-soft);
  color: var(--sx-brand);
  flex: 0 0 auto;
}

.sx-trust__body { display: flex; flex-direction: column; line-height: 1.4; }
.sx-trust__body strong { font-family: var(--sx-font-head); font-size: .95rem; }
.sx-trust__body span { font-size: .82rem; color: var(--sx-ink-3); }

/* =========================================================
   8. CATEGORY GRID
   ========================================================= */
.sx-cats__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.sx-cat {
  position: relative;
  display: block;
  border-radius: var(--sx-radius-l);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--sx-line);
  box-shadow: var(--sx-shadow-s);
  transition: transform .3s var(--sx-ease), box-shadow .3s var(--sx-ease);
}
.sx-cat:hover { transform: translateY(-5px); box-shadow: var(--sx-shadow); }

.sx-cat__media {
  display: block;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--sx-brand-soft), #f7f8fd);
  overflow: hidden;
}
.sx-cat__img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .55s var(--sx-ease);
}
.sx-cat:hover .sx-cat__img { transform: scale(1.06); }

.sx-cat__body {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px 18px;
}
.sx-cat__name { font-family: var(--sx-font-head); font-weight: 800; font-size: 1.05rem; color: var(--sx-ink); }
.sx-cat__count { font-size: .8rem; color: var(--sx-ink-3); font-weight: 600; white-space: nowrap; }

/* =========================================================
   9. SHOP LAYOUT & ARCHIVE TOOLBAR
   ========================================================= */
.shop-hero {
  background: linear-gradient(180deg, var(--sx-bg), #fff);
  border-bottom: 1px solid var(--sx-line);
  padding: 34px 0 30px;
}
.shop-hero__title { margin: 6px 0 0; }
.woocommerce-breadcrumb { font-size: .82rem; color: var(--sx-ink-3); margin: 0 0 4px; }
.woocommerce-breadcrumb a { color: var(--sx-ink-3); }
.woocommerce-breadcrumb a:hover { color: var(--sx-brand); }
.term-description { margin: 10px 0 0; color: var(--sx-ink-2); max-width: 70ch; }

.shop-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 36px;
  align-items: start;
  padding-top: 34px;
  padding-bottom: 70px;
}

.shop-sidebar { position: sticky; top: 96px; }
.shop-sidebar__inner {
  background: #fff; border: 1px solid var(--sx-line);
  border-radius: var(--sx-radius); padding: 18px;
}
.shop-sidebar .widget + .widget { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--sx-line); }
.shop-sidebar .widget-title { font-size: .95rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px; }
.shop-sidebar ul li { margin-bottom: 8px; font-size: .92rem; }
.shop-sidebar ul li a { color: var(--sx-ink-2); }
.shop-sidebar ul li a:hover { color: var(--sx-brand); }
.shop-filter-toggle {
  display: none; width: 100%; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 16px; margin-bottom: 12px;
  font-weight: 600; font-size: .92rem; cursor: pointer;
  background: #fff; color: var(--sx-dark);
  border: 1px solid var(--sx-line); border-radius: 12px;
}

.shop-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  margin-bottom: 22px;
}
.shop-toolbar .woocommerce-result-count { margin: 0; font-size: .88rem; color: var(--sx-ink-3); }
.shop-toolbar .woocommerce-ordering { margin: 0; }
.shop-toolbar select {
  padding: 10px 34px 10px 14px;
  font-size: .88rem; color: var(--sx-ink);
  background: #fff url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b7280' d='M1 1l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 14px center;
  border: 1px solid var(--sx-line); border-radius: 10px;
  -webkit-appearance: none; appearance: none; cursor: pointer;
}

/* =========================================================
   10. PRODUCT GRID + CUSTOM PRODUCT CARD
   ========================================================= */
.sx-grid--products,
.woocommerce ul.products,
ul.products {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 22px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}
.woocommerce ul.products::before,
.woocommerce ul.products::after { display: none; }

.sx-card,
.woocommerce ul.products li.product,
ul.products li.product {
  width: 100% !important;
  margin: 0 !important;
  float: none !important;
  display: flex !important;
  flex-direction: column !important;
  background: #fff !important;
  border: 1px solid var(--sx-line) !important;
  border-radius: var(--sx-radius-l) !important;
  overflow: hidden !important;
  box-shadow: var(--sx-shadow-s) !important;
  text-align: left !important;
  position: relative !important;
  transition: transform .3s var(--sx-ease), box-shadow .3s var(--sx-ease), border-color .3s var(--sx-ease) !important;
}
.sx-card:hover,
.woocommerce ul.products li.product:hover {
  transform: translateY(-6px) !important;
  box-shadow: var(--sx-shadow) !important;
  border-color: #dfe2ec !important;
}

.sx-card__media,
.woocommerce ul.products li.product a img {
  position: relative !important;
  display: block !important;
  aspect-ratio: 4 / 5 !important;
  background: #f3f4f9 !important;
  overflow: hidden !important;
  width: 100% !important;
  object-fit: cover !important;
  margin: 0 !important;
}

.sx-card__img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s var(--sx-ease);
}
.sx-card:hover .sx-card__img,
.woocommerce ul.products li.product:hover img { transform: scale(1.07); }

.sx-card__badges,
.woocommerce ul.products li.product .onsale {
  position: absolute !important;
  top: 14px !important; left: 14px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 6px !important;
  z-index: 2 !important;
  margin: 0 !important;
  padding: 5px 12px !important;
  background: var(--sx-accent) !important;
  color: #fff !important;
  font-size: .72rem !important;
  font-weight: 700 !important;
  letter-spacing: .04em !important;
  border-radius: 999px !important;
  line-height: 1.6 !important;
}

.sx-card__quick {
  position: absolute;
  left: 14px; right: 14px; bottom: 14px;
  padding: 11px 16px;
  border-radius: 999px;
  background: rgba(14, 19, 32, .88);
  color: #fff;
  font-family: var(--sx-font-head);
  font-size: .82rem;
  font-weight: 700;
  text-align: center;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .25s var(--sx-ease), transform .25s var(--sx-ease);
  backdrop-filter: blur(6px);
}
.sx-card:hover .sx-card__quick { opacity: 1; transform: translateY(0); }

.sx-card__body,
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product .price {
  padding: 0 !important;
}

.sx-card__body {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  padding: 18px 20px 20px !important;
  flex: 1 1 auto !important;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-size: 1rem !important;
  font-weight: 800 !important;
  padding: 0 !important;
  margin: 0 0 6px !important;
  color: var(--sx-ink) !important;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title a { color: var(--sx-ink); }
.woocommerce ul.products li.product .woocommerce-loop-product__title a:hover { color: var(--sx-brand); }

.sx-card__cat {
  margin: 0;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--sx-ink-3);
}
.sx-card__cat a { color: inherit; }
.sx-card__cat a:hover { color: var(--sx-brand); }

.sx-card__title { margin: 0; font-size: 1rem; line-height: 1.35; }
.sx-card__title a { color: var(--sx-ink); }
.sx-card__title a:hover { color: var(--sx-brand); }

.woocommerce ul.products li.product .star-rating {
  margin: 0 0 8px !important;
  font-size: .72rem !important;
  color: #ffb020 !important;
}

.sx-card__foot,
.woocommerce ul.products li.product .price {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  margin-top: auto !important;
}

.sx-card__foot {
  padding-top: 12px;
  border-top: 1px dashed var(--sx-line);
}

.woocommerce ul.products li.product .price {
  padding: 0 !important;
  margin: 0 !important;
  font-size: 1.02rem !important;
  font-weight: 800 !important;
  color: var(--sx-ink) !important;
}
.sx-card__price del, .woocommerce ul.products li.product .price del { color: var(--sx-ink-3) !important; font-weight: 500 !important; font-size: .84rem !important; margin-right: 6px !important; }
.sx-card__price ins, .woocommerce ul.products li.product .price ins { text-decoration: none !important; color: var(--sx-accent) !important; }

.sx-btn--cart,
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .added_to_cart {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 10px 16px !important;
  font-size: .82rem !important;
  font-family: var(--sx-font-head) !important;
  font-weight: 700 !important;
  background: var(--sx-ink) !important;
  color: #fff !important;
  border-radius: 999px !important;
  border: 0 !important;
  cursor: pointer !important;
  margin: 0 !important;
  transition: background .2s var(--sx-ease) !important;
}
.sx-btn--cart:hover,
.woocommerce ul.products li.product .button:hover { color: #fff !important; background: var(--sx-brand) !important; }
.woocommerce ul.products li.product .added_to_cart { background: var(--sx-brand-soft) !important; color: var(--sx-ink) !important; border: 1px solid var(--sx-line) !important; }

/* Pagination */
.woocommerce nav.woocommerce-pagination { margin-top: 40px; text-align: center; }
.woocommerce nav.woocommerce-pagination ul { display: inline-flex; gap: 8px; border: 0; }
.woocommerce nav.woocommerce-pagination ul li { border: 0; }
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 42px; height: 42px; padding: 0 12px;
  border: 1px solid var(--sx-line); border-radius: 10px;
  color: var(--sx-ink-2); font-weight: 600; font-size: .9rem;
}
.woocommerce nav.woocommerce-pagination ul li a:hover,
.woocommerce nav.woocommerce-pagination ul li span.current { background: var(--sx-ink); color: #fff; border-color: var(--sx-ink); }

.woocommerce-info,
.woocommerce-message,
.woocommerce-error {
  border: 1px solid var(--sx-line); border-top: 3px solid var(--sx-brand);
  background: #fff; border-radius: 12px; padding: 16px 20px;
}

/* =========================================================
   11. PROMO BANNERS
   ========================================================= */
.sx-promos__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.sx-promo {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 46px 42px;
  border-radius: var(--sx-radius-l);
  overflow: hidden;
  min-height: 260px;
  transition: transform .3s var(--sx-ease), box-shadow .3s var(--sx-ease);
}
.sx-promo:hover { transform: translateY(-5px); box-shadow: var(--sx-shadow); }

.sx-promo--dark {
  background:
    radial-gradient(420px 220px at 88% 12%, rgba(124, 58, 237, .55), transparent 70%),
    linear-gradient(140deg, #0b1020 0%, #1b1f38 100%);
  color: #fff;
}
.sx-promo--dark .sx-promo__title { color: #fff; }
.sx-promo--dark .sx-promo__text { color: rgba(255, 255, 255, .72); }

.sx-promo--mint {
  background:
    radial-gradient(400px 220px at 90% 10%, rgba(255, 176, 32, .35), transparent 70%),
    linear-gradient(140deg, #e6f8ef 0%, #d8f2ff 100%);
  color: var(--sx-ink);
}

.sx-promo__tag {
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .16);
}
.sx-promo--mint .sx-promo__tag { background: rgba(14, 19, 32, .1); }

.sx-promo__title {
  font-size: clamp(1.3rem, 1rem + 1.1vw, 1.75rem);
  max-width: 18ch;
  margin: 0;
}

.sx-promo__text { margin: 0 0 12px; font-size: .95rem; max-width: 30ch; }

/* =========================================================
   12. NEWSLETTER
   ========================================================= */
.sx-newsletter__box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 40px;
  padding: 52px;
  border-radius: var(--sx-radius-l);
  background:
    radial-gradient(600px 260px at 90% 0%, rgba(79, 70, 229, .14), transparent 70%),
    #fff;
  border: 1px solid var(--sx-line);
  box-shadow: var(--sx-shadow-s);
}

.sx-newsletter__copy p { color: var(--sx-ink-2); margin: 0; max-width: 46ch; }

.sx-newsletter__form, .newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.sx-newsletter__form .sx-input, .newsletter-form input[type="email"] { flex: 1 1 220px; width: auto; }
.sx-newsletter__form .sx-btn, .newsletter-form button { flex: 0 0 auto; }
.sx-newsletter__form .sx-note { flex: 1 1 100%; }

/* =========================================================
   13. QUANTITY STEPPER & ACCORDIONS
   ========================================================= */
.sx-qty {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--sx-line);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}
.sx-qty button {
  width: 42px; height: 44px;
  border: 0;
  background: transparent;
  color: var(--sx-ink-2);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
}
.sx-qty button:hover { background: var(--sx-brand-soft); color: var(--sx-brand); }
.sx-qty input {
  width: 52px;
  height: 44px;
  border: 0;
  text-align: center;
  font-weight: 700;
  background: transparent;
  -moz-appearance: textfield;
}
.sx-qty input::-webkit-outer-spin-button,
.sx-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.sx-acc { border-top: 1px solid var(--sx-line); }
.sx-acc__item { border-bottom: 1px solid var(--sx-line); }
.sx-acc__head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 4px;
  border: 0;
  background: transparent;
  text-align: left;
  font-family: var(--sx-font-head);
  font-weight: 800;
  font-size: 1rem;
  color: var(--sx-ink);
}
.sx-acc__head::after {
  content: "+";
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--sx-ink-3);
  transition: transform .25s var(--sx-ease);
}
.sx-acc__item.is-open .sx-acc__head::after { content: "\2212"; }
.sx-acc__body {
  display: none;
  padding: 0 4px 22px;
  color: var(--sx-ink-2);
}
.sx-acc__item.is-open .sx-acc__body { display: block; }

/* =========================================================
   14. WIDGETS & FOOTER
   ========================================================= */
.sx-widget { background: #fff; border: 1px solid var(--sx-line); border-radius: var(--sx-radius); padding: 22px; }
.sx-widget + .sx-widget { margin-top: 18px; }
.sx-widget__title { font-size: .95rem; margin: 0 0 14px; }
.sx-widget ul { list-style: none; }
.sx-widget ul li { padding: 7px 0; border-bottom: 1px dashed var(--sx-line); font-size: .92rem; }
.sx-widget ul li:last-child { border-bottom: 0; }
.sx-widget--footer { background: transparent; border: 0; padding: 0; }

.site-footer { background: var(--sk-dark); color: #cbd5e1; margin-top: auto; }
.footer-widgets {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: 40px;
  padding-top: 56px;
  padding-bottom: 44px;
}
.footer-title { color: #fff; font-size: .92rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 16px; }
.footer-text { color: #94a3b8; font-size: .9rem; margin: 0 0 16px; max-width: 36ch; }
.footer-menu li { margin-bottom: 10px; }
.footer-menu a { color: #cbd5e1; font-size: .9rem; }
.footer-menu a:hover { color: #fff; }

.footer-social { display: flex; gap: 10px; }
.footer-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 10px;
  background: rgba(255, 255, 255, .08); color: #e2e8f0;
  font-size: .72rem; font-weight: 700;
}
.footer-social a:hover { background: var(--sx-brand); color: #fff; }

.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); }
.footer-bottom__inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 14px; padding: 18px 20px;
}
.copyrights { margin: 0; font-size: .82rem; color: #94a3b8; }
.copyrights a { color: #e2e8f0; }
.payment-icons { display: flex; gap: 8px; flex-wrap: wrap; }
.payment-icons li {
  padding: 5px 10px; font-size: .7rem; font-weight: 700; letter-spacing: .04em;
  color: #e2e8f0; background: rgba(255, 255, 255, .08); border-radius: 6px;
}

.to-top {
  position: fixed; right: 20px; bottom: 24px; z-index: 80;
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 0; cursor: pointer;
  background: var(--sk-dark); color: #fff; border-radius: 12px;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--sx-brand); }

/* =========================================================
   15. RESPONSIVE BREAKPOINTS
   ========================================================= */
@media (max-width: 1080px) {
  .sx-hero__inner { gap: 34px; }
  .sx-grid--products,
  .woocommerce ul.products,
  ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .sx-trust__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sx-cats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sx-newsletter__box { padding: 40px; }
  .footer-widgets { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 900px) {
  .sx-section { padding: 60px 0; }
  .sx-hero { padding: 44px 0 64px; }
  .sx-hero__inner { grid-template-columns: 1fr; }
  .sx-hero__media { order: -1; min-height: 360px; max-width: 520px; }
  .sx-hero__text { max-width: none; }
  .sx-newsletter__box { grid-template-columns: 1fr; gap: 26px; }
  .shop-layout { grid-template-columns: minmax(0, 1fr); }
  .shop-sidebar { position: static; }
  .shop-filter-toggle { display: inline-flex; }
  .shop-sidebar__inner { display: none; }
  .shop-sidebar.is-open .shop-sidebar__inner { display: block; }
  .primary-menu {
    display: none;
    flex-direction: column; align-items: stretch; gap: 2px;
    position: absolute; left: 20px; right: 20px; top: 100%;
    padding: 12px; margin-top: 8px;
    background: #fff; border: 1px solid var(--sx-line);
    border-radius: var(--sx-radius); box-shadow: var(--sx-shadow);
  }
  .main-navigation.is-open .primary-menu { display: flex; }
  .main-navigation { margin-left: auto; position: relative; }
  .menu-toggle { display: inline-flex; }
  .site-header__inner { gap: 12px; }
}

@media (max-width: 768px) {
  .sx-container, .container { padding-inline: 18px; }
  .sx-grid--products,
  .woocommerce ul.products,
  ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 16px !important; }
  .sx-promos__grid { grid-template-columns: 1fr; }
  .sx-promo { padding: 34px 28px; min-height: 220px; }
  .sx-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .sx-card__body { padding: 14px 15px 16px; }
  .sx-card__title { font-size: .94rem; }
  .sx-card__foot { flex-direction: column; align-items: stretch; gap: 10px; }
  .sx-btn--cart { width: 100%; }
  .sx-card__quick { display: none; }
}

@media (max-width: 560px) {
  .sx-hero__stats { gap: 22px; }
  .sx-trust__grid { grid-template-columns: 1fr; }
  .sx-trust__item { padding: 18px; }
  .sx-cats__grid { grid-template-columns: 1fr; }
  .sx-hero__media { min-height: 300px; }
  .sx-hero__card--1 { width: 62%; }
  .sx-hero__card--2 { width: 58%; }
  .sx-newsletter__box { padding: 28px 22px; }
  .sx-newsletter__form .sx-btn { width: 100%; }
  .sx-promo__title { max-width: none; }
  .footer-widgets { grid-template-columns: 1fr; gap: 28px; padding-top: 40px; }
  .footer-bottom__inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 420px) {
  .sx-grid--products,
  .woocommerce ul.products,
  ul.products { grid-template-columns: minmax(0, 1fr) !important; }
}

/* =========================================================
   16. ACCESSIBILITY / MOTION
   ========================================================= */
a:focus-visible,
button:focus-visible,
.sx-btn:focus-visible,
.sx-input:focus-visible {
  outline: 3px solid rgba(79, 70, 229, .45);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}