/*!
Theme Name: ATLASKECH
Theme URI: http://underscores.me/
Author: Wavebyn
Author URI: http://underscores.me/
Description: Description
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: atlaskech
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.

ATLASKECH is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
*/

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #111111;
  --surface: #1a1a1a;
  --white: #ffffff;
  --black: #080808;
  --accent: #d29b3c;
  --muted: rgba(255, 255, 255, 0.45);
  --border: rgba(255, 255, 255, 0.08);
  --pill-bg: rgba(255, 255, 255, 0.03);
  --pill-hover: rgba(255, 255, 255, 0.08);
  --glass: rgba(255, 255, 255, 0.02);
  --gold-gradient: linear-gradient(135deg, #f3d0a2 0%, #d29b3c 100%);
  --card-radius: 160px 160px 20px 20px;
}

/* noise overlay and gradients */
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: 
    url("https://grainy-gradients.vercel.app/noise.svg"),
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(255,255,255,0.04) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 80% 80%, rgba(180,140,100,0.06) 0%, transparent 60%);
  opacity: 0.04;
  pointer-events: none;
  z-index: 9999;
}

body {
  margin: 0;
  background-color: var(--black);
  background-image: 
    linear-gradient(rgba(0,0,0,0.85), rgba(0,0,0,0.85)),
    url('assets/images/background.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Diagonal decorative lines */
.bg-lines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.bg-lines::before,
.bg-lines::after {
  content: '';
  position: absolute;
  width: 1px;
  height: 200%;
  background: rgba(255,255,255,0.04);
  transform-origin: top center;
}
.bg-lines::before {
  left: 8%;
  top: -50%;
  transform: rotate(15deg);
}
.bg-lines::after {
  right: 8%;
  top: -50%;
  transform: rotate(-15deg);
}

/* ── Wrapper ── */
.page {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ── Container (for section boxing) ── */
.container {
  padding-left: 40px;
  padding-right: 40px;
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* ── NAV ── */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0 0;
  animation: fadeDown 0.6s ease both;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 18px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
}

.logo-icon {
  width: 28px;
  height: 28px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--pill-bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px;
  backdrop-filter: blur(10px);
  min-height: 44px; /* Ensure visibility if empty */
}

.nav-links a, 
.nav-links ul li a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  padding: 8px 20px;
  border-radius: 999px;
  transition: all 0.2s ease;
  display: inline-block;
}
.nav-links a:hover,
.nav-links ul li a:hover { color: var(--white); background: var(--pill-hover); }
.nav-links a.active,
.nav-links ul li.current-menu-item a,
.nav-links .current_page_item a {
  background: var(--white);
  color: #111;
  font-weight: 500;
}

/* WP Nav Menu resets */
.nav-links ul {
    list-style: none;
    display: flex;
    gap: 4px;
    margin: 0;
    padding: 0;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cart-btn {
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: transparent;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.2s;
}
.cart-btn:hover { background: var(--pill-hover); }
.cart-btn svg { stroke: var(--white); }

.btn-login {
  background: transparent;
  border: none;
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  cursor: pointer;
  padding: 8px 4px;
  transition: opacity 0.2s;
}
.btn-login:hover { opacity: 0.7; }

.btn-signup {
  background: var(--white);
  color: #111;
  border: none;
  border-radius: 999px;
  padding: 10px 24px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.2s, opacity 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-signup:hover { opacity: 0.9; transform: scale(1.03); }

/* ── BURGER MENU ── */
.burger-menu {
  display: none;
  width: 44px;
  height: 44px;
  background: var(--pill-bg);
  border: 1px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
  position: relative;
  z-index: 1001;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.3s ease;
}

.burger-menu span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
}

.burger-menu.is-active span:nth-child(1) {
  transform: translateY(4px) rotate(45deg);
  width: 20px;
}

.burger-menu.is-active span:nth-child(2) {
  transform: translateY(-4px) rotate(-45deg);
  width: 20px;
}

/* ── MOBILE MENU OVERLAY ── */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  background: rgba(14, 11, 8, 0.92);
  backdrop-filter: blur(28px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
  transform: translateY(-20px);
}

.mobile-menu-overlay.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mobile-menu-content {
  text-align: center;
  width: 100%;
  padding: 40px;
}

.mobile-nav-links {
  list-style: none;
  padding: 0;
  margin: 0 0 48px;
}

.mobile-nav-links li {
  margin-bottom: 24px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.mobile-menu-overlay.is-active .mobile-nav-links li {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu-overlay.is-active .mobile-nav-links li:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu-overlay.is-active .mobile-nav-links li:nth-child(2) { transition-delay: 0.2s; }
.mobile-menu-overlay.is-active .mobile-nav-links li:nth-child(3) { transition-delay: 0.3s; }
.mobile-menu-overlay.is-active .mobile-nav-links li:nth-child(4) { transition-delay: 0.4s; }

.mobile-nav-links a {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  transition: color 0.3s;
}

.mobile-nav-links a:hover {
  color: #c89137;
}

.mobile-menu-footer {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.mobile-menu-overlay.is-active .mobile-menu-footer {
  opacity: 1;
  transform: translateY(0);
}

.btn-login-mobile {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--white);
  width: 240px;
}

.btn-signup-mobile {
  background: var(--white);
  color: var(--black);
  width: 240px;
}

/* ── MOBILE BOTTOM NAV BAR ── */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10001;
  background: rgba(14, 11, 8, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px 0;
  padding-bottom: calc(8px + env(safe-area-inset-bottom));
  justify-content: space-around;
  align-items: center;
  pointer-events: auto;
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.4);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 6px 16px;
  border-radius: 12px;
  transition: all 0.25s ease;
  position: relative;
  pointer-events: auto;
  cursor: pointer;
}

.mobile-nav-item svg {
  transition: all 0.25s ease;
}

.mobile-nav-item.active {
  color: var(--white);
}

.mobile-nav-item.active svg {
  stroke: var(--white);
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.25));
}

.mobile-nav-item.active::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: var(--white);
}

.mobile-nav-cart-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-nav-badge {
  position: absolute;
  top: -6px;
  right: -10px;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #c84830;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: grid;
  place-items: center;
  padding: 0 5px;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(200, 72, 48, 0.4);
}

/* ── Moroccan Hero Background ── */
@keyframes medalSpin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}
@keyframes medalSpinSlow {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(-360deg); }
}
@keyframes heroPulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.7; }
}
/* ── HERO ── */
.hero {
  position: relative;
  padding: 40px 0 20px;
  overflow: hidden;
  animation: fadeUp 0.7s 0.1s ease both;
}

.hero-moroccan {
  position: absolute;
  inset: -80px -160px;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.moroccan-pattern {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
/* spinning medallion layers */
.hero-medallion-outer {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 820px;
  height: 820px;
  transform: translate(-50%, -50%);
  animation: medalSpin 120s linear infinite;
}
.hero-medallion-mid {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 560px;
  height: 560px;
  transform: translate(-50%, -50%);
  animation: medalSpinSlow 80s linear infinite;
}
.hero-medallion-inner {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300px;
  height: 300px;
  transform: translate(-50%, -50%);
  animation: medalSpin 50s linear infinite;
}
.moroccan-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 42%,
      rgba(200, 145, 55, 0.18) 0%,
      rgba(180, 110, 30, 0.08) 50%,
      transparent 75%),
    radial-gradient(ellipse 35% 25% at 12% 90%,
      rgba(180, 100, 40, 0.10) 0%,
      transparent 55%),
    radial-gradient(ellipse 35% 25% at 88% 90%,
      rgba(160, 80, 20, 0.10) 0%,
      transparent 55%);
  animation: heroPulse 8s ease-in-out infinite;
}
.hero > *:not(.hero-moroccan) {
  position: relative;
  z-index: 1;
}

/* ── TICKER SECTION ── */
.ticker-section {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  overflow: hidden;
  background: rgba(255,255,255,0.02);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
  margin-bottom: 40px;
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.ticker-wrap {
  display: flex;
  white-space: nowrap;
}

.ticker {
  display: flex;
  animation: tickerScroll 40s linear infinite;
}

.ticker span {
  font-family: 'Playfair Display', serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  padding-right: 20px;
}

@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 18px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 28px;
  letter-spacing: 0.02em;
}
.badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(40px, 7vw, 92px);
  font-weight: 900;
  line-height: 1;
  margin-bottom: 24px;
  letter-spacing: -0.04em;
  background: linear-gradient(to bottom, #fff 40%, rgba(255,255,255,0.6));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  font-size: 16px;
  color: var(--muted);
  max-width: 500px;
  margin: 0 auto 40px;
  font-weight: 300;
  letter-spacing: 0.01em;
  text-wrap: balance;
}

/* SHIMMER EFFECT */
.floating-3d-card::after {
  content: "";
  position: absolute;
  top: -100%; left: -100%; width: 300%; height: 300%;
  background: linear-gradient(45deg, transparent 45%, rgba(255,255,255,0.1) 50%, transparent 55%);
  animation: shimmer 6s infinite linear;
}

@keyframes shimmer {
  0% { transform: translate(-30%, -30%); }
  100% { transform: translate(30%, 30%); }
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--white);
  color: var(--black);
  border: none;
  border-radius: 999px;
  padding: 14px 28px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none;
}
.btn-cta:hover {
  transform: scale(1.04);
  box-shadow: 0 8px 32px rgba(255,255,255,0.15);
}
.btn-cta .arrow {
  width: 30px; height: 30px;
  background: #111;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: transform 0.25s ease;
}
.btn-cta:hover .arrow { transform: translateX(3px); }

/* ── CAROUSEL ── */
.carousel-section {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 20px;
  animation: fadeUp 0.8s 0.2s ease both;
}

.carousel-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0 40px;
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}
.carousel-track::-webkit-scrollbar {
  display: none;
}

.card {
  flex: 0 0 calc(20% - 16px);
  position: relative;
  border-radius: var(--card-radius);
  overflow: hidden;
  aspect-ratio: 3/4;
  cursor: pointer;
  transition: transform 0.35s ease;
  background: #2a2218;
}
.card:hover { transform: translateY(-6px); }

/* Gradient placeholder backgrounds to simulate fashion photos */
.card:nth-child(1) .card-img { background: linear-gradient(160deg, #3a3228 0%, #5c4a38 50%, #2e2620 100%); }
.card:nth-child(2) .card-img { background: linear-gradient(160deg, #6b4c2a 0%, #c47c3c 50%, #8b5e2e 100%); }
.card:nth-child(3) .card-img { background: linear-gradient(160deg, #4a4030 0%, #9c8c6c 50%, #6a5e48 100%); }
.card:nth-child(4) .card-img { background: linear-gradient(160deg, #5c2820 0%, #c84830 50%, #3e1c14 100%); }
.card:nth-child(5) .card-img { background: linear-gradient(160deg, #d0ccc8 0%, #f0ece8 50%, #b0aca8 100%); }

.card-img {
  position: absolute;
  inset: 0;
}

/* Silhouette figures */
.card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: inherit;
  opacity: 0.3;
}

.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, transparent 50%);
}

.card-name {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  white-space: nowrap;
  background: rgba(0,0,0,0.28);
  backdrop-filter: blur(6px);
  border-radius: 999px;
  padding: 4px 14px;
  border: 1px solid rgba(255,255,255,0.1);
}

.card-price {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 12px;
  padding: 10px 18px;
  text-align: center;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.card:hover .card-price,
.card.featured .card-price { opacity: 1; }
.card-price .label {
  font-size: 11px;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 2px;
}
.card-price .price {
  font-size: 15px;
  font-weight: 500;
  color: #fff;
}
.card-price .old {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  text-decoration: line-through;
  margin-left: 6px;
}

/* Arrow buttons */
.carousel-nav {
  position: absolute;
  bottom: 50%;
  transform: translateY(50%);
  display: flex;
  justify-content: space-between;
  width: 100%;
  pointer-events: none;
  padding: 0 4px;
}

.nav-arrow {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  cursor: pointer;
  pointer-events: all;
  transition: background 0.2s, transform 0.2s;
  z-index: 10;
  position: relative;
}
.nav-arrow:hover {
  background: rgba(255,255,255,0.22);
  transform: scale(1.08);
}

/* ── Keyframes ── */
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Figure shapes inside cards ── */
.figure {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 55%;
  height: 80%;
  border-radius: 100px 100px 0 0;
  opacity: 0.22;
}
.card:nth-child(1) .figure { background: rgba(30,25,20,0.9); }
.card:nth-child(2) .figure { background: rgba(20,15,10,0.9); }
.card:nth-child(3) .figure { background: rgba(20,18,14,0.9); }
.card:nth-child(4) .figure { background: rgba(18,10,8,0.9); }
.card:nth-child(5) .figure { background: rgba(80,70,65,0.7); }

/* ════════════════════════════════════════
   SHARED PAGE STYLES (shop / sale / blog / product)
   ════════════════════════════════════════ */

/* ── Page header ── */
.page-header {
  padding: 24px 0 16px;
  animation: fadeUp 0.7s 0.1s ease both;
}
.page-header .badge { margin-bottom: 18px; }
.page-header h1 {
  font-size: clamp(32px, 4vw, 54px);
  margin-bottom: 12px;
  text-align: left;
  margin-left: 0;
  margin-right: 0;
  max-width: 100%;
}
.page-header p {
  font-size: 15px;
  color: var(--muted);
  font-weight: 300;
  max-width: 480px;
}

/* ── Toolbar (filters + sort) ── */
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 36px;
  flex-wrap: wrap;
  animation: fadeUp 0.7s 0.15s ease both;
}
.filter-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.pill {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 20px;
  font-size: 13px;
  font-family: 'DM Sans', sans-serif;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}
.pill:hover { color: var(--white); border-color: rgba(255,255,255,0.3); }
.pill.active {
  background: var(--white);
  color: #111;
  border-color: var(--white);
  font-weight: 500;
}
.sort-select {
  background: var(--pill-bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  padding: 8px 20px;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s;
}
.sort-select:hover { border-color: rgba(255,255,255,0.3); }

/* ── Product grid ── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  padding-top: 24px;
  animation: fadeUp 0.8s 0.2s ease both;
}

.prod-card {
  position: relative;
  border-radius: 120px 120px 16px 16px;
  overflow: hidden;
  aspect-ratio: 3/4;
  cursor: pointer;
  background: #2a2218;
  transition: transform 0.35s ease;
}
.prod-card:hover { transform: translateY(-6px); }

.prod-card .card-img {
  position: absolute;
  inset: 0;
  transition: transform 0.5s ease;
}
.prod-card:hover .card-img { transform: scale(1.04); }

.hero-moroccan {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(circle at 20% 30%, rgba(210,155,60,0.08) 0%, transparent 40%),
              radial-gradient(circle at 80% 70%, rgba(210,155,60,0.05) 0%, transparent 40%),
              radial-gradient(circle at 50% 50%, rgba(8,8,8,1) 0% , rgba(8,8,8,1) 100%);
  animation: meshMove 20s infinite alternate ease-in-out;
}

@keyframes meshMove {
  0% { transform: scale(1) translate(0,0); }
  100% { transform: scale(1.1) translate(20px, 10px); }
}

/* REFINED MOROCCAN PATTERN LAYER */
.moroccan-pattern-overlay {
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0l15 30-15 30-15-30z' fill='%23d29b3c' fill-opacity='0.4' fill-rule='evenodd'/%3E%3C/svg%3E");
  background-size: 40px 40px;
  pointer-events: none;
  animation: patternFloat 60s infinite linear;
}

@keyframes patternFloat {
  from { background-position: 0 0; }
  to { background-position: 500px 500px; }
}

.moroccan-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(210,155,60,0.15) 0%, transparent 70%);
  filter: blur(80px);
  animation: glowPulse 8s infinite ease-in-out;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.4; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.2); }
}

.prod-card .card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, transparent 55%);
}
.prod-card .figure {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 55%;
  height: 80%;
  border-radius: 100px 100px 0 0;
  opacity: 0.22;
}

.prod-card-body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px 14px 12px;
}
.prod-card-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 4px;
}
.prod-card-sub {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}
.prod-card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.prod-card-price {
  font-size: 15px;
  font-weight: 500;
  color: var(--white);
}
.prod-card-price .old {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  text-decoration: line-through;
  margin-left: 6px;
}
.prod-card-add {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--white);
  border: none;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.2s, opacity 0.2s;
  flex-shrink: 0;
}
.prod-card-add:hover { transform: scale(1.1); opacity: 0.85; }

.prod-badge {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--white);
  color: #111;
}
.prod-badge.sale { background: #c84830; color: #fff; }
.prod-badge.new  { background: rgba(255,255,255,0.12); color: var(--white); border: 1px solid rgba(255,255,255,0.2); }

/* ── Gradient palettes for prod cards ── */
.bg-1  .card-img { background: linear-gradient(160deg, #3a3228 0%, #5c4a38 50%, #2e2620 100%); }
.bg-2  .card-img { background: linear-gradient(160deg, #6b4c2a 0%, #c47c3c 50%, #8b5e2e 100%); }
.bg-3  .card-img { background: linear-gradient(160deg, #4a4030 0%, #9c8c6c 50%, #6a5e48 100%); }
.bg-4  .card-img { background: linear-gradient(160deg, #5c2820 0%, #c84830 50%, #3e1c14 100%); }
.bg-5  .card-img { background: linear-gradient(160deg, #d0ccc8 0%, #f0ece8 50%, #b0aca8 100%); }
.bg-6  .card-img { background: linear-gradient(160deg, #1a2a3a 0%, #2a4a6a 50%, #1a2a3a 100%); }
.bg-7  .card-img { background: linear-gradient(160deg, #2a1a3a 0%, #6a2a8a 50%, #2a1a3a 100%); }
.bg-8  .card-img { background: linear-gradient(160deg, #1a3a2a 0%, #2a8a5a 50%, #1a3a2a 100%); }
.bg-1  .figure { background: rgba(30,25,20,0.9); }
.bg-2  .figure { background: rgba(20,15,10,0.9); }
.bg-3  .figure { background: rgba(20,18,14,0.9); }
.bg-4  .figure { background: rgba(18,10,8,0.9); }
.bg-5  .figure { background: rgba(80,70,65,0.7); }
.bg-6  .figure { background: rgba(10,15,22,0.9); }
.bg-7  .figure { background: rgba(15,8,22,0.9); }
.bg-8  .figure { background: rgba(8,22,14,0.9); }

/* ── Sale discount badge ── */
.discount-ring {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: #c84830;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.03em;
}

/* ── PRODUCT DETAIL PAGE ── */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  padding: 48px 0 80px;
  animation: fadeUp 0.7s 0.1s ease both;
}

.product-gallery {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 12px;
}
.gallery-thumbs {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.gallery-thumb {
  aspect-ratio: 3/4;
  border-radius: 40px 40px 8px 8px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid transparent;
  transition: border-color 0.2s;
  background: #2a2218;
}
.gallery-thumb.active { border-color: rgba(255,255,255,0.5); }
.gallery-thumb .card-img {
  position: relative;
  height: 100%;
  width: 100%;
}
.gallery-main {
  border-radius: 120px 120px 20px 20px;
  overflow: hidden;
  aspect-ratio: 3/4;
  background: #2a2218;
  position: relative;
}
.gallery-main .card-img { position: absolute; inset: 0; }
.gallery-main .figure  { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 55%; height: 80%; border-radius: 100px 100px 0 0; opacity: 0.22; }

.product-info { display: flex; flex-direction: column; justify-content: center; gap: 0; }
.product-info .badge { margin-bottom: 16px; align-self: flex-start; }
.product-info h1 {
  font-size: clamp(28px, 3vw, 44px);
  margin-bottom: 8px;
  text-align: left;
  margin-left: 0; margin-right: 0;
  max-width: 100%;
}
.product-tagline {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 28px;
  font-weight: 300;
  line-height: 1.6;
}
.product-price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 28px;
}
.product-price {
  font-size: 32px;
  font-weight: 700;
  font-family: 'Playfair Display', serif;
  color: var(--white);
}
.product-price-old {
  font-size: 18px;
  color: var(--muted);
  text-decoration: line-through;
}
.product-save {
  font-size: 12px;
  background: #c84830;
  color: #fff;
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 600;
}

.product-divider {
  height: 1px;
  background: var(--border);
  margin: 24px 0;
}

.option-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.size-options {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}
.size-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}
.size-btn:hover { border-color: rgba(255,255,255,0.4); color: var(--white); }
.size-btn.active { background: var(--white); color: #111; border-color: var(--white); font-weight: 600; }

.color-options {
  display: flex;
  gap: 10px;
  margin-bottom: 28px;
}
.color-swatch {
  width: 28px; height: 28px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s, transform 0.2s;
}
.color-swatch:hover { transform: scale(1.15); }
.color-swatch.active { border-color: var(--white); }

.product-actions {
  display: flex;
  gap: 12px;
}
.hero {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 40px 0;
  perspective: 1200px;
  position: relative;
  overflow: hidden;
  color: var(--white);
}

.hero-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 5;
}

.hero-visual {
  position: relative;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1000px;
}

.hero-content {
  text-align: left;
  animation: fadeRight 1s ease both;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px, 5vw, 68px);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 24px;
  letter-spacing: -0.04em;
  background: linear-gradient(to bottom, #fff 40%, rgba(255,255,255,0.6));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero .badge {
  color: var(--muted);
  border-color: var(--border);
}

.hero .hero-sub {
  color: var(--muted);
}

.hero .btn-cta {
  background: var(--white);
  color: var(--black);
  box-shadow: 0 10px 30px rgba(255,255,255,0.1);
}
.hero .btn-cta .arrow {
  background: var(--black);
}
.hero .btn-cta .arrow svg {
  stroke: var(--white);
}

/* 3D Visual Section */
.hero-3d-container {
  position: relative;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.floating-3d-card {
  position: relative;
  width: 320px;
  height: 440px;
  background: var(--pill-bg); /* Revert to subtle transparent background */
  border: 1px solid var(--border);
  border-radius: 30px;
  box-shadow: 0 50px 100px rgba(0,0,0,0.5);
  transform-style: preserve-3d;
  transform: rotateY(15deg) rotateX(5deg);
  overflow: hidden;
}

.floating-3d-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
  transform: translateZ(20px);
}

.floating-3d-card .card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #111 0%, transparent 60%);
  transform: translateZ(30px);
}

.secondary-3d-element {
  position: absolute;
  width: 180px;
  height: 180px;
  background: var(--pill-bg);
  border: 1px solid var(--border);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  z-index: -1;
  animation: heroElementFloat 12s infinite ease-in-out;
}

.el-1 { top: 20%; left: 15%; animation-delay: 0s; }
.el-2 { bottom: 20%; right: 15%; animation-delay: -3s; }

@keyframes heroFloating {
  0%, 100% { transform: translate(-50%, -50%) rotateY(15deg) rotateX(5deg) translateY(0); }
  50% { transform: translate(-50%, -50%) rotateY(-15deg) rotateX(-5deg) translateY(-30px); }
}

@keyframes heroElementFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-40px) rotate(15deg); }
}
.btn-add-cart {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--white);
  color: #111;
  border: none;
  border-radius: 999px;
  padding: 16px 28px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-add-cart:hover { transform: scale(1.02); box-shadow: 0 8px 28px rgba(255,255,255,0.12); }
.btn-wishlist {
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-wishlist:hover { background: var(--pill-hover); }
.btn-wishlist svg { stroke: var(--white); }

.product-meta {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
}
.meta-row svg { stroke: var(--muted); flex-shrink: 0; }

/* Related products section */
.section-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 28px;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--white);
}
.section-link {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.section-link:hover { color: var(--white); }

/* ── BLOG PAGE ── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  animation: fadeUp 0.8s 0.2s ease both;
}
.blog-card {
  border-radius: 80px 80px 16px 16px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.blog-card:hover { transform: translateY(-5px); border-color: rgba(255,255,255,0.22); }
.blog-card-img {
  aspect-ratio: 3/2;
  position: relative;
  overflow: hidden;
}
.blog-card-img .card-img { position: absolute; inset: 0; }
.blog-card-img .card-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 60%); }
.blog-card-body { padding: 22px 22px 24px; }
.blog-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 12px;
  margin-bottom: 12px;
}
.blog-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 10px;
}
.blog-card-excerpt {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  font-weight: 300;
  margin-bottom: 18px;
}
.blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.blog-meta {
  font-size: 12px;
  color: rgba(255,255,255,0.3);
}
.blog-read-more {
  font-size: 12px;
  font-weight: 500;
  color: var(--white);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: gap 0.2s;
}
.blog-read-more:hover { gap: 8px; }

/* ── SHOWCASE / Lookbook page ── */
.lookbook-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 120px;
  gap: 16px;
  animation: fadeUp 0.8s 0.2s ease both;
}
.look-item {
  border-radius: 60px 60px 12px 12px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  background: #2a2218;
  transition: transform 0.3s ease;
}
.look-item:hover { transform: scale(1.02); }
.look-item .card-img  { position: absolute; inset: 0; }
.look-item .card-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 60%); }
.look-item .figure { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 55%; height: 80%; border-radius: 100px 100px 0 0; opacity: 0.22; }
.look-item-label {
  position: absolute;
  bottom: 14px;
  left: 18px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
}
.look-a { grid-column: span 4; grid-row: span 4; }
.look-b { grid-column: span 3; grid-row: span 3; }
.look-c { grid-column: span 5; grid-row: span 3; }
.look-d { grid-column: span 4; grid-row: span 3; }
.look-e { grid-column: span 3; grid-row: span 4; }
.look-f { grid-column: span 5; grid-row: span 4; }

/* ── Pagination ── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 48px 0 64px;
}
.page-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.2s;
}
.page-btn:hover { border-color: rgba(255,255,255,0.3); color: var(--white); }
.page-btn.active { background: var(--white); color: #111; border-color: var(--white); font-weight: 600; }

/* ── Footer ── */
footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
  margin-top: 24px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 40px;
  padding-right: 40px;
}
.footer-brand .logo { margin-bottom: 14px; display: inline-flex; }
.footer-brand p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 240px;
  font-weight: 300;
}
.footer-col h4 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 10px;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 40px;
  padding-right: 40px;
}

/* ── Responsive ── */

/* Tablet: ≤ 1024px */
@media (max-width: 1024px) {
  .carousel-track { overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
  .carousel-track::-webkit-scrollbar { display: none; }
  .card { flex: 0 0 calc(33.333% - 14px); }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-inner { grid-template-columns: 2fr 1fr 1fr; gap: 28px; }
  .footer-inner .footer-col:last-child { grid-column: span 3; }
}

/* Small tablet / large phone: ≤ 900px */
@media (max-width: 900px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .product-detail { grid-template-columns: 1fr; gap: 36px; }
  .product-gallery { grid-template-columns: 64px 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-inner .footer-col:last-child { grid-column: auto; }
  .lookbook-grid { grid-auto-rows: 100px; }
  .hero-medallion-outer { width: 600px; height: 600px; }
  .hero-medallion-mid  { width: 400px; height: 400px; }
  .hero-medallion-inner{ width: 220px; height: 220px; }
}

/* Mobile: ≤ 640px */
@media (max-width: 640px) {
  .page { padding: 0 16px; }
  .container { padding-left: 20px; padding-right: 20px; }

  /* Nav */
  .nav-links { display: none; }
  .cart-btn { margin-right: 8px; }
  .nav-actions .btn-login,
  .nav-actions .btn-signup { display: none; }
  .burger-menu { display: none; }
  .mobile-bottom-nav { display: flex; }
  nav { padding: 20px 0 0; }
  body { padding-bottom: 72px; }

  /* Hero */
  .hero { padding-top: 48px; }
  .hero-moroccan { inset: -40px -16px; }
  .hero-medallion-outer { width: 360px; height: 360px; }
  .hero-medallion-mid  { width: 240px; height: 240px; }
  .hero-medallion-inner{ width: 130px; height: 130px; }

  /* Carousel */
  .carousel-section { margin-top: 36px; }
  .carousel-track { overflow-x: auto; scrollbar-width: none; gap: 12px; padding: 0 4px 8px; }
  .carousel-track::-webkit-scrollbar { display: none; }
  .card { flex: 0 0 60vw; }
  .card.featured { flex: 0 0 70vw; }
  .carousel-nav { display: none; }

  /* Grids */
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .blog-grid { grid-template-columns: 1fr; }

  /* Lookbook */
  .lookbook-grid {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 90px;
  }
  .look-a { grid-column: span 2; grid-row: span 3; }
  .look-b { grid-column: span 2; grid-row: span 2; }
  .look-c { grid-column: span 2; grid-row: span 2; }
  .look-d { grid-column: span 2; grid-row: span 2; }
  .look-e { grid-column: span 2; grid-row: span 3; }
  .look-f { grid-column: span 2; grid-row: span 3; }

  /* Product detail */
  .product-detail { padding: 24px 0 48px; }
  .product-gallery { grid-template-columns: 1fr; }
  .gallery-thumbs { flex-direction: row; overflow-x: auto; }
  .gallery-thumb { flex: 0 0 56px; aspect-ratio: 3/4; }

  /* Footer */
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 20px; }
  .footer-brand { grid-column: span 2; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  /* Toolbar */
  .toolbar { flex-direction: column; align-items: flex-start; }
  .sort-select { width: 100%; }
  .pagination { padding: 32px 0 48px; }
}

/* LIGHT BEAM FLARE */
.hero-flare {
  position: absolute;
  top: -10%; left: -10%; width: 50%; height: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.03) 0%, transparent 70%);
  transform: rotate(-45deg);
  pointer-events: none;
  animation: flareMove 15s infinite alternate ease-in-out;
}

@keyframes flareMove {
  from { transform: translate(0,0) rotate(-45deg); opacity: 0.2; }
  to { transform: translate(100px, 50px) rotate(-40deg); opacity: 0.5; }
}

/* PARTICLES */
.particles-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.particle {
  position: absolute;
  width: 2px; height: 2px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  animation: floatParticle 10s infinite linear;
}

@keyframes floatParticle {
  from { transform: translateY(0) rotate(0); opacity: 0; }
  20% { opacity: 0.5; }
  80% { opacity: 0.5; }
  to { transform: translateY(-200px) rotate(360deg); opacity: 0; }
}

/* ── Premium Product Cards ── */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 60px; /* More "breathing room" */
    justify-content: center;
    margin-bottom: 80px;
}

.prod-card {
    position: relative;
    aspect-ratio: 3 / 4.2;
    border-radius: var(--card-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px 24px 16px 24px;
    transition: all 0.8s cubic-bezier(0.19, 1, 0.22, 1);
    border: 1px solid var(--border);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    transform-style: preserve-3d;
    perspective: 1000px;
}

.prod-card-link-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    bottom: 80px;
    z-index: 2;
}

.prod-card:hover {
    transform: translateY(-20px) rotateX(4deg) rotateY(2deg) scale(1.02);
    box-shadow: 
        0 30px 60px rgba(0,0,0,0.5),
        0 10px 20px rgba(255,255,255,0.05); /* Adds a "top light" effect */
    border-color: rgba(255,255,255,0.3);
}

.prod-card .card-img {
    position: absolute;
    inset: 0;
    transition: transform 0.8s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: 0;
}

.prod-card:hover .card-img {
    transform: scale(1.08);
}

.prod-card .figure {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(200,145,55,0.15) 0%, transparent 70%);
    z-index: 1;
    pointer-events: none;
}

.prod-card .card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10,10,10,0.9) 0%, rgba(10,10,10,0.2) 40%, transparent 100%);
    z-index: 2;
}

.prod-card-body {
    position: relative;
    z-index: 3;
}

.prod-card-name {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    color: var(--white);
    margin-bottom: 8px;
    line-height: 1.2;
}

.prod-card-sub {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 12px;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.prod-card-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.prod-card-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--white);
}

.prod-card-add {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--white);
    border: none;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    z-index: 5; /* Above link overlay */
}

.prod-card:hover .prod-card-add {
    background: #c89137;
    transform: rotate(90deg);
}

/* Dynamic Backgrounds */
.bg-1 { background-color: rgba(26,26,26, 0.4); }
.bg-2 { background-color: rgba(42,34,26, 0.4); }
.bg-3 { background-color: rgba(26,42,34, 0.4); }
.bg-4 { background-color: rgba(42,26,26, 0.4); }
.bg-5 { background-color: rgba(26,26,42, 0.4); }
.bg-6 { background-color: rgba(42,42,26, 0.4); }
.bg-7 { background-color: rgba(26,42,42, 0.4); }
.bg-8 { background-color: rgba(42,26,42, 0.4); }

.prod-badge {
    position: absolute;
    top: 50%;
    left: 20px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 18px 6px;
    border-radius: 99px;
    font-size: 9px;
    color: var(--white);
    z-index: 5; /* Above link overlay */
    border: 1px solid rgba(255,255,255,0.1);
    text-transform: uppercase;
    letter-spacing: 0.25em;
    writing-mode: vertical-rl;
    transform: translateY(-50%) rotate(180deg);
    display: flex;
    align-items: center;
    font-weight: 500;
}

.prod-badge.sale { background: rgba(200,72,48,0.3); color: #ff6b6b; border-color: rgba(200,72,48,0.4); }
.prod-badge.new { background: rgba(37,211,102,0.1); color: #25D366; border-color: rgba(37,211,102,0.2); }

/* ── Header Actions ── */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-icon {
    position: relative;
    color: var(--white);
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    border-radius: 50%;
}

.nav-icon:hover {
    background: rgba(255,255,255,0.06);
    color: #c89137;
    transform: translateY(-2px);
}

.cart-icon .cart-count {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #c84830;
    color: white;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    border: 2px solid #0a0a0a;
}

.btn-login, .btn-signup {
    padding: 10px 24px;
    border-radius: 99px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-login {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--white);
}

.btn-login:hover {
    border-color: var(--white);
}

.btn-logout {
    border-color: rgba(255, 77, 77, 0.2) !important;
    color: #ff4d4d !important;
}

.btn-logout:hover {
    background: rgba(255, 77, 77, 0.05) !important;
    border-color: #ff4d4d !important;
}

.btn-signup {
    background: var(--white);
    color: var(--black);
    border: 1px solid var(--white);
}

.btn-signup:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255,255,255,0.1);
}

/* ── Pagination ── */
.pagination {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 60px;
    margin-bottom: 100px;
    animation: fadeUp 0.8s 0.2s ease both;
}

.pagination .page-numbers {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border);
    display: grid;
    place-items: center;
    color: var(--muted);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
}

.pagination .page-numbers:hover {
    border-color: var(--white);
    color: var(--white);
    transform: translateY(-2px);
}

.pagination .page-numbers.current {
    background: var(--white);
    color: var(--black);
    border-color: var(--white);
    font-weight: 600;
}

.pagination .page-numbers.dots {
    border: none;
    background: transparent;
}
