/* ============================================================
   KOUNOUZ — Shared Stylesheet
   Stack: Vanilla CSS3 | Mobile-first | Luxury Minimalism
   Colors: Black #000 | Pink #FF1493 | White #FFF | Gray tones
   Fonts : Playfair Display (serif) + Poppins (sans-serif)
   ============================================================ */

/* ── 0. Google Fonts ────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Poppins:wght@300;400;500;600;700&display=swap');

/* ── 1. CSS Custom Properties ───────────────────────────────── */
:root {
  --black: #000000;
  --white: #ffffff;
  --pink: #FF1493;
  --pink-d: #d4007a;
  --pink-l: #ff5cb3;
  --gray-1: #999999;
  --gray-2: #e5e5e5;
  --gray-3: #f5f5f5;
  --gray-4: #333333;
  --text: #1a1a1a;

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Poppins', system-ui, sans-serif;

  --max-w: 1400px;
  --px: clamp(1rem, 4vw, 2.5rem);
  --radius: 2px;

  --transition: 0.28s ease;
  --shadow-sm: 0 2px 12px rgba(0, 0, 0, .08);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, .14);
}

/* ── 2. Reset & Base ────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

select,
input {
  font-family: inherit;
}

ul,
ol {
  list-style: none;
}

/* ── 3. Typography ──────────────────────────────────────────── */
.serif {
  font-family: var(--font-serif);
}

.sans {
  font-family: var(--font-sans);
}

.uppercase {
  text-transform: uppercase;
}

.tracking-wide {
  letter-spacing: 0.12em;
}

.tracking-wider {
  letter-spacing: 0.2em;
}

/* ── Shimmer Animation for better UX ── */
@keyframes shimmer {
  0% { background-position: -468px 0; }
  100% { background-position: 468px 0; }
}

.shimmer {
  background: #f6f7f8;
  background-image: linear-gradient(to right, #f6f7f8 0%, #edeef1 20%, #f6f7f8 40%, #f6f7f8 100%);
  background-repeat: no-repeat;
  background-size: 800px 100%;
  animation: shimmer 1.5s linear infinite forwards;
}

/* ── 4. Layout Utilities ────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--px);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

/* ── 5. HEADER / NAV ────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: var(--white);
  border-bottom: 1px solid var(--gray-2);
  transition: box-shadow var(--transition);
}

.site-header.scrolled {
  box-shadow: var(--shadow-sm);
}

/* Top utility bar */
.header-top {
  border-bottom: 1px solid var(--gray-2);
  padding: 6px 0;
}

.header-top .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.header-top-left {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-1);
}

.header-top-right {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.header-top-right a,
.header-top-left a {
  color: var(--gray-1);
  transition: color var(--transition);
}

.header-top-right a:hover,
.header-top-left a:hover {
  color: var(--black);
}

/* Main header row */
.header-main {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 72px;
  gap: 16px;
}

/* Left nav */
.nav-main {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-main a {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--black);
  position: relative;
  padding-bottom: 2px;
  transition: color var(--transition);
}

.nav-main a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: var(--pink);
  transition: width var(--transition);
}

.nav-main a:hover {
  color: var(--pink);
}

.nav-main a:hover::after,
.nav-main a.active::after {
  width: 100%;
}

/* Logo */
.logo {
  font-family: var(--font-serif);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--black);
  text-align: center;
  white-space: nowrap;
  transition: opacity var(--transition);
}

.logo:hover {
  opacity: 0.75;
}

/* Right actions */
.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.header-sep {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-1);
  cursor: pointer;
  padding: 4px 2px;
  transition: color var(--transition);
}

.header-sep:hover {
  color: var(--black);
}

.header-sep+.header-sep::before {
  content: '|';
  margin-right: 12px;
  color: var(--gray-2);
}

/* ── Currency / Language Dropdown Switcher ── */
.ky-dropdown-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.ky-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-1);
  cursor: pointer;
  padding: 4px 2px;
  transition: color var(--transition);
  background: none;
  border: none;
  font-family: inherit;
}

.ky-dropdown-trigger:hover {
  color: var(--black);
}

.ky-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 100px;
  background: var(--white);
  border: 1px solid var(--gray-2);
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  z-index: 9999;
  animation: dropdownFadeIn 0.15s ease;
}

@keyframes dropdownFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.ky-dropdown-item {
  padding: 9px 16px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-4);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}

.ky-dropdown-item:hover {
  background: var(--gray-3);
  color: var(--pink);
}

.icon-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--black);
  border-radius: 50%;
  transition: background var(--transition), color var(--transition);
  font-size: 16px;
  position: relative;
}

.icon-btn:hover {
  background: var(--gray-3);
  color: var(--pink);
}

.cart-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 17px;
  height: 17px;
  background: var(--pink);
  color: var(--white);
  font-size: 9px;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: transform 0.2s ease;
}

.cart-badge.bounce {
  animation: cartBounce 0.4s ease;
}

@keyframes cartBounce {
  0% {
    transform: scale(1);
  }

  40% {
    transform: scale(1.5);
  }

  70% {
    transform: scale(0.9);
  }

  100% {
    transform: scale(1);
  }
}

/* Dropdown */
.has-dropdown {
  position: relative;
}

.dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  background: var(--white);
  border: 1px solid var(--gray-2);
  box-shadow: var(--shadow-md);
  min-width: 200px;
  padding: 8px 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 800;
}

.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.dropdown a {
  display: block;
  padding: 9px 20px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-4);
  transition: background var(--transition), color var(--transition);
}

.dropdown a:hover {
  background: var(--gray-3);
  color: var(--pink);
}

/* Mobile hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--black);
  transition: all 0.3s ease;
  transform-origin: center;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav drawer */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 950;
  pointer-events: none;
}

.mobile-nav-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .5);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-nav-drawer {
  position: absolute;
  top: 0;
  left: 0;
  width: min(320px, 100vw);
  height: 100%;
  background: var(--white);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.mobile-nav.open {
  pointer-events: auto;
}

.mobile-nav.open .mobile-nav-overlay {
  opacity: 1;
}

.mobile-nav.open .mobile-nav-drawer {
  transform: translateX(0);
}

.mobile-nav-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--gray-2);
}

.mobile-nav-head .logo {
  font-size: 20px;
}

.mobile-nav-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--gray-1);
  transition: color var(--transition);
}

.mobile-nav-close:hover {
  color: var(--black);
}

.mobile-nav-links {
  padding: 16px 24px;
  flex: 1;
}

.mobile-nav-links a {
  display: block;
  padding: 13px 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--black);
  border-bottom: 1px solid var(--gray-2);
  transition: color var(--transition);
}

.mobile-nav-links a:hover {
  color: var(--pink);
}

.mobile-nav-utils {
  display: flex;
  gap: 16px;
  padding: 16px 24px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-1);
}

/* ── 6. BREADCRUMB ──────────────────────────────────────────── */
.breadcrumb {
  padding: 14px 0;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-1);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.breadcrumb li+li::before {
  content: '›';
  margin-right: 8px;
  color: var(--gray-2);
}

.breadcrumb a {
  transition: color var(--transition);
}

.breadcrumb a:hover {
  color: var(--pink);
}

.breadcrumb li:last-child {
  color: var(--black);
  font-weight: 500;
}

/* ── 7. PAGE TITLE ──────────────────────────────────────────── */
.page-title {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-serif);
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--black);
  line-height: 1.1;
}

.page-title-bar {
  width: 4px;
  height: 1.2em;
  background: linear-gradient(180deg, var(--pink), var(--pink-d));
  flex-shrink: 0;
  border-radius: 2px;
}

/* ── 8. PRODUCT LISTING PAGE ────────────────────────────────── */
.listing-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--gray-2);
}

.listing-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.sort-select {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid var(--gray-2);
  padding: 9px 36px 9px 14px;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%23999' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E") no-repeat right 14px center;
  cursor: pointer;
  transition: border-color var(--transition);
}

.sort-select:focus {
  outline: none;
  border-color: var(--pink);
}

/* Grid / List toggle */
.view-toggle-group {
  display: flex;
  gap: 4px;
}

.view-toggle-btn {
  width: 36px;
  height: 36px;
  border: 1px solid var(--gray-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--gray-1);
  transition: all var(--transition);
}

.view-toggle-btn.active,
.view-toggle-btn:hover {
  border-color: var(--black);
  color: var(--black);
  background: var(--black);
  color: var(--white);
}

.results-count {
  font-size: 12px;
  color: var(--gray-1);
  letter-spacing: 0.04em;
}

/* Product grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 24px;
}

@media (min-width: 600px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }
}

/* List view modifier */
.product-grid.list-view {
  grid-template-columns: 1fr;
}

.product-grid.list-view .product-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 20px;
  align-items: center;
}

.product-grid.list-view .product-card-image {
  aspect-ratio: 3/4;
}

/* ── Product Card ── */
.product-card {
  position: relative;
}

.product-card-image {
  position: relative;
  overflow: hidden;
  background: #fafafa;
  aspect-ratio: 1 / 1;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}

.product-card-image::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #f6f7f8;
  background-image: linear-gradient(to right, #f6f7f8 0%, #edeef1 20%, #f6f7f8 40%, #f6f7f8 100%);
  background-repeat: no-repeat;
  background-size: 800px 100%;
  animation: shimmer 1.5s linear infinite forwards;
}

.product-card-image .placeholder-img {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #ececec 0%, #e0e0e0 100%);
  color: var(--gray-1);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-card-image .placeholder-img i {
  font-size: 40px;
  opacity: 0.35;
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: filter 0.3s ease;
  transform: none !important;
}

.product-card-image .placeholder-img {
  transition: filter 0.3s ease;
}

.product-card:hover .product-card-image img {
  filter: brightness(0.96);
}

.product-card:hover .product-card-image .placeholder-img {
  filter: brightness(0.92);
}

/* Quick actions overlay */
.card-actions {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px;
  background: linear-gradient(to top, rgba(0, 0, 0, .55), transparent);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.product-card:hover .card-actions {
  opacity: 1;
  transform: translateY(0);
}

.card-action-btn {
  width: 42px;
  height: 42px;
  background: var(--white);
  color: var(--black);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: background var(--transition), color var(--transition), transform 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
}

.card-action-btn:hover {
  background: var(--pink);
  color: var(--white);
  transform: scale(1.1);
}

/* Badges */
.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  z-index: 2;
}

.badge-new {
  background: var(--black);
  color: var(--white);
}

.badge-promo {
  background: var(--pink);
  color: var(--white);
}

/* Product card info */
.product-card-info {
  padding: 14px 0 0;
}

.product-card-category {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-1);
  margin-bottom: 4px;
}

.product-card-name {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 600;
  color: var(--black);
  line-height: 1.3;
  margin-bottom: 6px;
  transition: color var(--transition);
}

.product-card:hover .product-card-name {
  color: var(--pink);
}

.product-card-price {
  font-size: 15px;
  font-weight: 600;
  color: var(--black);
}

.product-card-price .old-price {
  font-size: 12px;
  color: var(--gray-1);
  text-decoration: line-through;
  margin-left: 6px;
  font-weight: 400;
}

/* ── Product Photo Container (used in shop.html) ── */
.product-ph {
  position: relative;
  overflow: hidden;
  background: #fafafa;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-ph img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: filter 0.3s ease;
}

.group:hover .product-ph img {
  filter: brightness(0.92);
}

/* Add to cart animation */
.fly-dot {
  position: fixed;
  width: 10px;
  height: 10px;
  background: var(--pink);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transition: none;
}

/* ── 9. PRODUCT DETAIL PAGE ─────────────────────────────────── */
.product-detail {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding: 40px 0;
}

@media (min-width: 900px) {
  .product-detail {
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    padding: 60px 0;
  }
}

/* Gallery */
.product-gallery {}

.gallery-main {
  position: relative;
  overflow: hidden;
  background: #fafafa;
  aspect-ratio: 1 / 1;
  cursor: default;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.gallery-main::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #f6f7f8;
  background-image: linear-gradient(to right, #f6f7f8 0%, #edeef1 20%, #f6f7f8 40%, #f6f7f8 100%);
  background-repeat: no-repeat;
  background-size: 800px 100%;
  animation: shimmer 1.5s linear infinite forwards;
}

.gallery-main .placeholder-img {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(135deg, #ebebeb 0%, #dcdcdc 100%);
  color: var(--gray-1);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.gallery-main .placeholder-img i {
  font-size: 64px;
  opacity: 0.3;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transform: none !important;
  transition: filter 0.3s ease;
}

.gallery-main:hover img {
  filter: brightness(0.97);
}

.gallery-zoom-hint {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(4px);
  padding: 6px 12px;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--black);
  pointer-events: none;
}

.gallery-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
  scrollbar-color: var(--gray-2) transparent;
}

.gallery-thumbs::-webkit-scrollbar {
  height: 4px;
}

.gallery-thumbs::-webkit-scrollbar-thumb {
  background: var(--gray-2);
  border-radius: 2px;
}

.thumb-btn {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  overflow: hidden;
  border: 2px solid transparent;
  background: var(--gray-3);
  transition: border-color var(--transition);
  cursor: pointer;
}

.thumb-btn:hover,
.thumb-btn.active {
  border-color: var(--pink);
}

.thumb-btn .placeholder-img {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--gray-1);
  background: linear-gradient(135deg, #e8e8e8, #d8d8d8);
}

.thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Product info panel */
.product-info {}

.product-info-category {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 8px;
}

.product-info-title {
  font-family: var(--font-serif);
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 700;
  color: var(--black);
  line-height: 1.15;
  margin-bottom: 16px;
}

.product-info-price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 6px;
}

.product-price {
  font-size: 28px;
  font-weight: 700;
  color: var(--black);
}

.product-price-label {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-1);
}

.product-stock-warning {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 20px;
}

/* Social share */
.social-share {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--gray-2);
}

.social-share-label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-1);
  margin-right: 4px;
}

.social-share-btn {
  width: 34px;
  height: 34px;
  border: 1px solid var(--gray-2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--gray-4);
  transition: all var(--transition);
}

.social-share-btn:hover {
  border-color: var(--pink);
  color: var(--pink);
  transform: translateY(-2px);
}

/* Form controls */
.form-field {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-4);
  margin-bottom: 8px;
}

.form-select,
.form-input {
  width: 100%;
  border: 1px solid var(--gray-2);
  padding: 13px 16px;
  font-size: 14px;
  color: var(--text);
  background: var(--white);
  appearance: none;
  -webkit-appearance: none;
  transition: border-color var(--transition);
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%23999' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-select:focus,
.form-input:focus {
  outline: none;
  border-color: var(--pink);
}

/* Quantity */
.qty-wrapper {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--gray-2);
  width: fit-content;
}

.qty-btn {
  width: 46px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 300;
  color: var(--black);
  background: var(--gray-3);
  transition: background var(--transition);
}

.qty-btn:hover {
  background: var(--gray-2);
}

.qty-input {
  width: 60px;
  border: none;
  border-left: 1px solid var(--gray-2);
  border-right: 1px solid var(--gray-2);
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  -moz-appearance: textfield;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
}

.qty-input:focus {
  outline: none;
}

/* Add to cart button */
.btn-atc {
  width: 100%;
  background: var(--black);
  color: var(--white);
  padding: 18px 24px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
  position: relative;
  overflow: hidden;
  transition: background var(--transition), transform 0.15s ease;
}

.btn-atc::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--pink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.btn-atc:hover::before {
  transform: scaleX(1);
}

.btn-atc:hover {
  color: var(--white);
}

.btn-atc span,
.btn-atc i {
  position: relative;
  z-index: 1;
}

.btn-atc:active {
  transform: scale(0.98);
}

/* Info box */
.info-box {
  border: 1px solid var(--gray-2);
  margin-top: 24px;
}

.info-box-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  font-size: 13px;
  color: var(--gray-4);
  border-bottom: 1px solid var(--gray-2);
  transition: background var(--transition);
}

.info-box-item:last-child {
  border-bottom: none;
}

.info-box-item:hover {
  background: var(--gray-3);
}

.info-box-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  background: var(--gray-3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: var(--black);
}

.info-box-text strong {
  display: block;
  font-size: 12px;
  margin-bottom: 2px;
}

.info-box-text small {
  font-size: 11px;
  color: var(--gray-1);
}

/* ── 10. PRODUCT TABS ───────────────────────────────────────── */
.product-tabs {
  margin-top: 64px;
  border-top: 1px solid var(--gray-2);
  padding-top: 48px;
}

.tabs-nav {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--gray-2);
  margin-bottom: 32px;
  overflow-x: auto;
  scrollbar-width: none;
}

.tabs-nav::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  flex-shrink: 0;
  padding: 14px 24px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gray-1);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color var(--transition), border-color var(--transition);
}

.tab-btn:hover {
  color: var(--black);
}

.tab-btn.active {
  color: var(--black);
  border-bottom-color: var(--pink);
}

.tab-panel {
  display: none;
  font-size: 14px;
  line-height: 1.8;
  color: var(--gray-4);
}

.tab-panel.active {
  display: block;
}

.tab-panel p+p {
  margin-top: 12px;
}

.product-ref {
  margin-top: 20px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-1);
}

/* ── 11. ALSO BOUGHT / CAROUSEL ─────────────────────────────── */
.section-heading {
  font-family: var(--font-serif);
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 600;
  text-align: center;
  color: var(--black);
  margin-bottom: 32px;
  position: relative;
}

.section-heading::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: var(--pink);
  margin: 10px auto 0;
}

.also-bought-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.also-bought-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--gray-3);
}

.also-bought-item .placeholder-img {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #e8e8e8, #d8d8d8);
  color: var(--gray-1);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.also-bought-item .placeholder-img i {
  font-size: 36px;
  opacity: 0.3;
}

.also-bought-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.also-bought-item:hover img {
  transform: scale(1.05);
}

/* Related carousel */
.carousel-section {
  margin-top: 64px;
}

.carousel-wrapper {
  position: relative;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  gap: 20px;
  transition: transform 0.4s ease;
}

.carousel-slide {
  flex-shrink: 0;
  width: calc(50% - 10px);
}

@media (min-width: 768px) {
  .carousel-slide {
    width: calc(25% - 15px);
  }
}

.carousel-slide .product-card-image {
  aspect-ratio: 3/4;
}

.carousel-slide .product-card-name {
  font-size: 13px;
}

.carousel-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.carousel-arrow {
  width: 42px;
  height: 42px;
  border: 1px solid var(--gray-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--black);
  transition: all var(--transition);
}

.carousel-arrow:hover {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

.carousel-arrow:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.carousel-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gray-2);
  transition: all var(--transition);
  cursor: pointer;
}

.carousel-dot.active {
  background: var(--pink);
  width: 20px;
  border-radius: 3px;
}

/* ── 12. FOOTER ─────────────────────────────────────────────── */
.site-footer {
  background: #0a0a0a;
  color: rgba(255, 255, 255, .75);
  margin-top: 80px;
}

.footer-main {
  padding: 64px 0 48px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 640px) {
  .footer-main {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-main {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer-col {}

.footer-logo {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--white);
  display: block;
  margin-bottom: 4px;
}

.footer-tagline {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 20px;
}

.footer-col-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 12px;
  color: rgba(255, 255, 255, .6);
  letter-spacing: 0.04em;
  transition: color var(--transition), transform var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-links a:hover {
  color: var(--white);
  transform: translateX(4px);
}

.footer-links a i {
  font-size: 14px;
  width: 16px;
  color: var(--pink);
}

/* Newsletter */
.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

.newsletter-input {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .15);
  color: var(--white);
  padding: 12px 16px;
  font-size: 13px;
  transition: border-color var(--transition);
}

.newsletter-input::placeholder {
  color: rgba(255, 255, 255, .35);
}

.newsletter-input:focus {
  outline: none;
  border-color: var(--pink);
}

.newsletter-btn {
  background: var(--pink);
  color: var(--white);
  padding: 12px 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: background var(--transition), transform 0.15s ease;
}

.newsletter-btn:hover {
  background: var(--pink-d);
}

.newsletter-btn:active {
  transform: scale(0.98);
}

.newsletter-consent {
  font-size: 10px;
  color: rgba(255, 255, 255, .35);
  line-height: 1.5;
  margin-top: 4px;
}

/* Footer bottom */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding: 20px 0;
}

.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.payment-icons {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pay-badge {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .7);
  padding: 5px 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  border-radius: 3px;
}

.pay-badge-visa {
  color: #1a1f71;
  background: rgba(255, 255, 255, .9);
}

.pay-badge-mc {
  color: #eb001b;
  background: rgba(255, 255, 255, .9);
}

.pay-badge-amex {
  color: #2e77bc;
  background: rgba(255, 255, 255, .9);
}

.pay-badge-pp {
  color: #003087;
  background: rgba(255, 255, 255, .9);
}

.pay-badge-cmi {
  color: #009f6b;
  background: rgba(255, 255, 255, .9);
}

.footer-copyright {
  font-size: 11px;
  color: rgba(255, 255, 255, .3);
  letter-spacing: 0.04em;
}

/* ── 13. FLOATING BUTTONS ────────────────────────────────────── */
.floating-btns {
  position: fixed;
  bottom: 28px;
  z-index: 800;
}

.floating-btns.left {
  left: 24px;
}

.floating-btns.right {
  right: 24px;
}

.float-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: var(--shadow-md);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.float-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .25);
}

.float-cart {
  background: var(--black);
  color: var(--white);
  position: relative;
}

.float-cart-badge {
  position: absolute;
  top: 0;
  right: 0;
  width: 20px;
  height: 20px;
  background: var(--pink);
  color: var(--white);
  font-size: 9px;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.float-wa {
  background: #25D366;
  color: var(--white);
}

/* ── 14. CART PANEL ─────────────────────────────────────────── */
.cart-panel {
  position: fixed;
  inset: 0;
  z-index: 1000;
  pointer-events: none;
}

.cart-panel.open {
  pointer-events: auto;
}

.cart-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .5);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cart-panel.open .cart-overlay {
  opacity: 1;
}

.cart-drawer {
  position: absolute;
  top: 0;
  right: 0;
  width: min(420px, 100vw);
  height: 100%;
  background: var(--white);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.4, 0, .2, 1);
  display: flex;
  flex-direction: column;
}

.cart-panel.open .cart-drawer {
  transform: translateX(0);
}

.cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--gray-2);
}

.cart-title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
}

.cart-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--gray-1);
  transition: color var(--transition);
}

.cart-close:hover {
  color: var(--black);
}

.cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px;
}

.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 12px;
  color: var(--gray-1);
  font-size: 13px;
  text-align: center;
}

.cart-empty i {
  font-size: 48px;
  opacity: 0.3;
}

.cart-item {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--gray-2);
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateX(12px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.cart-item-img {
  width: 72px;
  height: 96px;
  flex-shrink: 0;
  background: var(--gray-3);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--gray-2);
}

.cart-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-info {
  flex: 1;
  min-width: 0;
}

.cart-item-name {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
  line-height: 1.3;
}

.cart-item-meta {
  font-size: 11px;
  color: var(--gray-1);
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.cart-item-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.cart-item-price {
  font-size: 14px;
  font-weight: 700;
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.cart-qty-btn {
  width: 26px;
  height: 26px;
  border: 1px solid var(--gray-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all var(--transition);
}

.cart-qty-btn:hover {
  border-color: var(--black);
  background: var(--black);
  color: var(--white);
}

.cart-item-remove {
  font-size: 12px;
  color: var(--gray-1);
  transition: color var(--transition);
}

.cart-item-remove:hover {
  color: var(--pink);
}

.cart-foot {
  padding: 20px 24px;
  border-top: 1px solid var(--gray-2);
}

.cart-subtotal {
  margin-bottom: 16px;
}

.cart-subtotal-label {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cart-subtotal-amount {
  font-size: 22px;
  font-weight: 700;
  font-family: var(--font-serif);
}

.btn-checkout {
  display: block;
  width: 100%;
  background: var(--pink);
  color: var(--white);
  padding: 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-align: center;
  transition: background var(--transition);
}

.btn-checkout:hover {
  background: var(--pink-d);
}

/* ── 15. TOAST NOTIFICATION ─────────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: 90px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  background: var(--black);
  color: var(--white);
  padding: 14px 20px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-md);
  animation: slideInRight 0.3s ease, fadeOut 0.4s ease 2.6s forwards;
  pointer-events: none;
  max-width: 300px;
}

.toast i {
  color: var(--pink);
  font-size: 16px;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; transform: translateX(20px); }
}

/* ── 16. MISC & UTILITIES ────────────────────────────────────── */
.section { padding: 48px 0; }
.divider { border: none; border-top: 1px solid var(--gray-2); margin: 48px 0; }
#scroll-progress { position: fixed; top: 0; left: 0; height: 2px; background: linear-gradient(90deg, var(--pink), var(--pink-l)); width: 0%; z-index: 9999; transition: width 0.1s linear; }

/* ── 17. RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .header-top { display: none; }
  .header-main { grid-template-columns: auto 1fr auto; height: 60px; }
  .nav-main { display: none; }
  .hamburger { display: flex; }
  .logo { font-size: 20px; letter-spacing: 0.22em; }
  .header-sep { display: none; }
  .product-detail { padding: 24px 0; gap: 28px; }
  .footer-main { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .floating-btns.left { bottom: 80px; }
}
@media (max-width: 480px) {
  .footer-main { grid-template-columns: 1fr; }
  .also-bought-grid { grid-template-columns: 1fr; }
  .carousel-slide { width: calc(80% - 10px); }
}

/* ── 18. REVIEWS / TESTIMONIALS ────────────────────────────── */
.ky-reviews-section { background: var(--white); }
.ky-review-card { height: 100%; display: flex; flex-direction: column; cursor: default; }
.ky-review-card:hover { transform: translateY(-5px); border-color: var(--pink); box-shadow: var(--shadow-md) !important; }
.ky-reviews-track { display: flex; transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1); }
#review-modal { transition: opacity 0.3s ease; position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; }
#review-modal.hidden { display: none !important; }
#review-modal:not(.hidden) { display: flex !important; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
#star-selector i { transition: transform 0.2s ease, color 0.2s ease; }
#star-selector i:hover { transform: scale(1.2); }
@media (max-width: 640px) { .ky-review-card-outer { width: 100%; } }
@media (min-width: 641px) and (max-width: 1024px) { .ky-review-card-outer { width: 50%; } }
@media (min-width: 1025px) { .ky-review-card-outer { width: 33.333%; } }

.group-card:hover .rev-actions {
  opacity: 1;
}

.edit-rev, .delete-rev {
  font-size: 14px;
}
