/* Aqua Store 3.3 — Premium storefront redesign
 * Full light/dark surfaces, editorial header, premium footer.
 * Loaded last so it wins over legacy visual rules without changing commerce logic.
 */

:root {
  --bg: #f6f5fb;
  --card: #ffffff;
  --subtle: #f1eff8;
  --ink: #17151f;
  --ink-2: #4f4a5d;
  --mute: #777184;
  --line: rgba(35, 24, 60, .09);
  --line-2: rgba(35, 24, 60, .15);
  --header-surface: rgba(255,255,255,.82);
  --footer-surface: #11101a;
  --shadow: 0 12px 34px rgba(41, 26, 72, .07);
  --shadow-hover: 0 22px 55px rgba(67, 35, 110, .15);
}

/* ---------- Global light mode ---------- */
html[data-aqua-theme="light"], html:not([data-aqua-theme="dark"]) {
  color-scheme: light;
}
html[data-aqua-theme="light"] body,
html:not([data-aqua-theme="dark"]) body {
  background-color: var(--bg) !important;
  color: var(--ink) !important;
  background-image:
    radial-gradient(900px 430px at 7% -8%, rgba(139,92,246,.12), transparent 60%),
    radial-gradient(700px 360px at 100% 5%, rgba(168,85,247,.07), transparent 55%) !important;
}

/* ---------- Header ---------- */
.site-header {
  height: 72px !important;
  min-height: 72px !important;
  max-height: 72px !important;
  background: rgba(255,255,255,.76) !important;
  border-bottom: 1px solid rgba(35,24,60,.08) !important;
  box-shadow: 0 8px 30px rgba(36,24,59,.045) !important;
  backdrop-filter: blur(22px) saturate(170%) !important;
  -webkit-backdrop-filter: blur(22px) saturate(170%) !important;
}
.header-inner {
  height: 72px !important;
  min-height: 72px !important;
  gap: 14px !important;
}
.site-header .brand {
  height: 48px;
  padding: 6px 10px 6px 7px;
  gap: 9px;
  border: 1px solid rgba(139,92,246,.13);
  border-radius: 16px;
  background: rgba(255,255,255,.72);
  box-shadow: 0 7px 22px rgba(80,52,120,.06);
}
.site-header .brand img,
.site-header .site-logo-img {
  width: 36px !important;
  height: 36px !important;
  border-radius: 11px !important;
}
.brand-name { font-size: 15px !important; gap: 4px !important; }
.brand-name .brand-brl { color: #8b5cf6 !important; }
.brand-name .brand-store { color: #1b1823 !important; }

.nav-main { justify-content: center !important; }
.nav-main ul { gap: 4px !important; }
.nav-main a {
  display: inline-flex !important;
  align-items: center;
  min-height: 40px;
  padding: 0 14px !important;
  border-radius: 12px !important;
  color: #5e586b !important;
  font-size: 13px !important;
  font-weight: 600 !important;
}
.nav-main a:hover,
.nav-main a.active {
  color: #6d28d9 !important;
  background: #f0eafd !important;
}

.header-search { flex-basis: 220px !important; }
.header-search input {
  height: 42px !important;
  border: 1px solid rgba(35,24,60,.09) !important;
  border-radius: 14px !important;
  background: #f7f5fb !important;
  padding-inline: 14px 40px !important;
  font-size: 13px !important;
}
.header-search input:focus {
  background: #fff !important;
  border-color: rgba(139,92,246,.38) !important;
  box-shadow: 0 0 0 4px rgba(139,92,246,.10) !important;
}
.header-actions { gap: 6px !important; }
.header-actions .icon-btn,
.header-actions .user-chip {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border: 1px solid rgba(35,24,60,.08) !important;
  background: #fff !important;
  border-radius: 13px !important;
  color: #514b5e !important;
  box-shadow: 0 5px 16px rgba(45,28,75,.045);
}
.header-actions .user-chip {
  width: auto;
  padding: 0 13px;
  font-weight: 700;
}
.header-actions .icon-btn:hover,
.header-actions .user-chip:hover {
  color: #6d28d9 !important;
  border-color: rgba(139,92,246,.25) !important;
  background: #f5f0ff !important;
  transform: translateY(-1px);
}
.header-actions .avatar { background: #8b5cf6 !important; }
.cart-count { background: #8b5cf6 !important; box-shadow: 0 0 0 3px #fff; }

/* ---------- Main visual language ---------- */
.site-content { padding-block: 18px 60px !important; }
.page-hero,
.hero.hero-pro {
  border-radius: 28px !important;
}
.btn-primary,
.btn-add-cart,
.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
  background: linear-gradient(135deg,#8b5cf6,#7c3aed) !important;
  color: #fff !important;
  box-shadow: 0 10px 24px rgba(124,58,237,.20) !important;
}
.btn-primary:hover,
.btn-add-cart:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
  background: linear-gradient(135deg,#996cf7,#6d28d9) !important;
  transform: translateY(-1px);
}
.product-card,
.post-card,
.cat-card,
.feature-card,
.panel,
.account-card,
.faq-item,
.ticket-card,
.auth-card,
.woocommerce ul.products li.product {
  border: 1px solid rgba(35,24,60,.075) !important;
  box-shadow: 0 10px 30px rgba(45,28,75,.055) !important;
}
.product-card:hover,
.post-card:hover,
.cat-card:hover,
.feature-card:hover,
.woocommerce ul.products li.product:hover {
  border-color: rgba(139,92,246,.20) !important;
  box-shadow: var(--shadow-hover) !important;
  transform: translateY(-3px);
}

/* ---------- Footer: no boxed text, no inherited black links ---------- */
.site-footer {
  position: relative;
  margin-top: 64px !important;
  padding: 64px 0 24px !important;
  background:
    radial-gradient(600px 260px at 85% 0%, rgba(139,92,246,.16), transparent 60%),
    linear-gradient(180deg,#171522 0%,#0e0d15 100%) !important;
  border-top: 1px solid rgba(255,255,255,.08) !important;
  color: #d9d5e4 !important;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0; left: 7%; right: 7%; height: 1px;
  background: linear-gradient(90deg,transparent,rgba(167,139,250,.55),transparent);
}
.site-footer .container { position: relative; z-index: 1; }
.footer-grid {
  grid-template-columns: minmax(240px,1.6fr) repeat(3,minmax(150px,1fr)) !important;
  gap: 46px !important;
  margin-bottom: 46px !important;
}
.footer-brand { max-width: 360px; }
.footer-logo-row {
  gap: 10px !important;
  margin-bottom: 15px !important;
}
.footer-logo-row img,
.footer-logo-img {
  width: 46px !important;
  height: 46px !important;
  border-radius: 13px !important;
  box-shadow: 0 8px 24px rgba(139,92,246,.20);
}
.footer-brand-name { font-size: 17px !important; color: #fff !important; }
.footer-brand-name .brand-brl { color: #a78bfa !important; }
.footer-brand-name .brand-store { color: #fff !important; }
.footer-brand p {
  max-width: 330px !important;
  color: #9f98ad !important;
  font-size: 13px !important;
  line-height: 2 !important;
}
.footer-col h4 {
  position: relative;
  display: inline-block;
  margin-bottom: 17px !important;
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 800 !important;
}
.footer-col h4::after {
  content: "";
  position: absolute;
  right: 0; bottom: -7px;
  width: 24px; height: 2px;
  border-radius: 99px;
  background: #8b5cf6;
}
.site-footer .footer-col ul {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}
.site-footer .footer-col li,
.site-footer .footer-col a {
  display: block !important;
  width: auto !important;
  max-width: none !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 6px 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #aaa3b6 !important;
  font-size: 13px !important;
  line-height: 1.7 !important;
  text-decoration: none !important;
}
.site-footer .footer-col a:hover {
  color: #c4b5fd !important;
  transform: translateX(-3px);
}
.site-footer .enamad-box {
  min-height: 105px !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
.site-footer .enamad-box a {
  display: inline-block !important;
  padding: 0 !important;
  background: transparent !important;
}
.site-footer .enamad-box img {
  width: 125px !important;
  min-height: 80px !important;
  background: #fff !important;
  border-radius: 12px !important;
  padding: 7px !important;
}
.footer-bottom {
  padding-top: 22px !important;
  border-top: 1px solid rgba(255,255,255,.08) !important;
}
.footer-copy {
  color: #80798d !important;
  font-size: 12px !important;
}

/* ---------- Full dark mode ---------- */
html[data-aqua-theme="dark"],
body.aqua-mode-dark {
  color-scheme: dark;
  --bg: #08070d;
  --card: #12101b;
  --subtle: #191623;
  --ink: #f4f1fb;
  --ink-2: #d0cadb;
  --mute: #91899e;
  --line: rgba(255,255,255,.08);
  --line-2: rgba(255,255,255,.13);
  --header-surface: rgba(10,9,16,.78);
  --shadow: 0 14px 40px rgba(0,0,0,.28);
  --shadow-hover: 0 24px 60px rgba(0,0,0,.42), 0 0 0 1px rgba(139,92,246,.14);
}
html[data-aqua-theme="dark"] body,
body.aqua-mode-dark {
  background: #08070d !important;
  color: #f4f1fb !important;
  background-image:
    radial-gradient(850px 430px at 7% -10%, rgba(139,92,246,.18), transparent 60%),
    radial-gradient(650px 380px at 100% 0%, rgba(168,85,247,.11), transparent 56%),
    linear-gradient(180deg,#08070d 0%,#0d0b14 60%,#08070d 100%) !important;
}
html[data-aqua-theme="dark"] .site-header,
body.aqua-mode-dark .site-header {
  background: rgba(10,9,16,.76) !important;
  border-bottom-color: rgba(255,255,255,.08) !important;
  box-shadow: 0 10px 32px rgba(0,0,0,.25) !important;
}
html[data-aqua-theme="dark"] .site-header .brand,
body.aqua-mode-dark .site-header .brand {
  background: rgba(255,255,255,.045) !important;
  border-color: rgba(255,255,255,.08) !important;
}
html[data-aqua-theme="dark"] .brand-name .brand-store,
body.aqua-mode-dark .brand-name .brand-store,
html[data-aqua-theme="dark"] .brand,
body.aqua-mode-dark .brand { color: #f4f1fb !important; }
html[data-aqua-theme="dark"] .nav-main a,
body.aqua-mode-dark .nav-main a { color: #bcb4c9 !important; }
html[data-aqua-theme="dark"] .nav-main a:hover,
html[data-aqua-theme="dark"] .nav-main a.active,
body.aqua-mode-dark .nav-main a:hover,
body.aqua-mode-dark .nav-main a.active {
  color: #e9ddff !important;
  background: rgba(139,92,246,.14) !important;
}
html[data-aqua-theme="dark"] .header-search input,
body.aqua-mode-dark .header-search input {
  background: #14111d !important;
  color: #f4f1fb !important;
  border-color: rgba(255,255,255,.08) !important;
}
html[data-aqua-theme="dark"] .header-actions .icon-btn,
html[data-aqua-theme="dark"] .header-actions .user-chip,
body.aqua-mode-dark .header-actions .icon-btn,
body.aqua-mode-dark .header-actions .user-chip {
  background: #14111d !important;
  color: #c9c1d4 !important;
  border-color: rgba(255,255,255,.08) !important;
}
html[data-aqua-theme="dark"] .header-actions .icon-btn:hover,
html[data-aqua-theme="dark"] .header-actions .user-chip:hover,
body.aqua-mode-dark .header-actions .icon-btn:hover,
body.aqua-mode-dark .header-actions .user-chip:hover {
  background: #20182e !important;
  color: #e9ddff !important;
  border-color: rgba(139,92,246,.35) !important;
}
html[data-aqua-theme="dark"] .cart-count,
body.aqua-mode-dark .cart-count { box-shadow: 0 0 0 3px #14111d; }

html[data-aqua-theme="dark"] .product-card,
html[data-aqua-theme="dark"] .post-card,
html[data-aqua-theme="dark"] .cat-card,
html[data-aqua-theme="dark"] .feature-card,
html[data-aqua-theme="dark"] .panel,
html[data-aqua-theme="dark"] .account-card,
html[data-aqua-theme="dark"] .faq-item,
html[data-aqua-theme="dark"] .ticket-card,
html[data-aqua-theme="dark"] .auth-card,
html[data-aqua-theme="dark"] .woocommerce ul.products li.product,
body.aqua-mode-dark .product-card,
body.aqua-mode-dark .post-card,
body.aqua-mode-dark .cat-card,
body.aqua-mode-dark .feature-card,
body.aqua-mode-dark .panel,
body.aqua-mode-dark .account-card,
body.aqua-mode-dark .faq-item,
body.aqua-mode-dark .ticket-card,
body.aqua-mode-dark .auth-card,
body.aqua-mode-dark .woocommerce ul.products li.product {
  background: #12101b !important;
  color: #f4f1fb !important;
  border-color: rgba(255,255,255,.075) !important;
  box-shadow: var(--shadow) !important;
}
html[data-aqua-theme="dark"] input,
html[data-aqua-theme="dark"] select,
html[data-aqua-theme="dark"] textarea,
body.aqua-mode-dark input,
body.aqua-mode-dark select,
body.aqua-mode-dark textarea {
  background: #100e18 !important;
  color: #f4f1fb !important;
  border-color: rgba(255,255,255,.10) !important;
}
html[data-aqua-theme="dark"] .site-footer,
body.aqua-mode-dark .site-footer {
  background:
    radial-gradient(600px 260px at 85% 0%, rgba(139,92,246,.18), transparent 60%),
    linear-gradient(180deg,#100e18 0%,#07060b 100%) !important;
  color: #d9d2e4 !important;
}

/* ---------- Mobile ---------- */
@media (max-width: 980px) {
  .site-header, .header-inner { height: 64px !important; min-height: 64px !important; max-height: 64px !important; }
  .site-header .brand { height: 46px; }
  .nav-main { order: 5; }
  .header-search { flex: 1 1 180px; }
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr !important; }
}
@media (max-width: 760px) {
  .header-inner { gap: 8px !important; }
  .site-header .brand { padding-right: 6px; }
  .brand-name { display: none !important; }
  .header-search { display: none !important; }
  .header-actions { margin-right: auto; }
  .header-actions .user-chip { width: 42px; padding: 0; justify-content: center; font-size: 0; }
  .header-actions .user-chip .avatar { margin: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr !important; gap: 32px 24px !important; }
  .footer-brand { grid-column: 1 / -1; max-width: none; }
}
@media (max-width: 480px) {
  .site-footer { padding: 48px 0 20px !important; }
  .footer-grid { grid-template-columns: 1fr 1fr !important; }
  .footer-col a, .footer-col li { font-size: 12px !important; }
}
