/*
Theme Name: Beautcian
Theme URI: https://beautcian.com
Author: Beautcian
Author URI: https://beautcian.com
Description: A premium WooCommerce theme for Beautcian – matching the mobile app UI/UX with modern design, smooth animations, and a mobile-first approach.
Version: 1.0.11
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: beautcian
Tags: woocommerce, e-commerce, beauty, skincare, mobile-first, responsive
WooCommerce: 8.0
*/

/* ==========================================================================
   CSS Custom Properties (Design Tokens from Android App)
   ========================================================================== */
:root {
  /* Primary Colors */
  --primary-orange: #FF6659;
  --primary-pink: #FF9AB3;
  --primary-red: #FF3B30;
  --primary-green: #0B735F;
  --primary-blue: #3373F2;
  --primary-turquoise: #344B73;

  /* Active Theme Color — defaults to orange */
  --primary: var(--primary-orange);
  --primary-light: rgba(255, 102, 89, 0.15);
  --primary-hover: #e85a4e;

  /* Accent */
  --accent-orange: #FF8C00;
  --secondary-orange: #FFD6B3;

  /* Backgrounds */
  --bg-main: #F8FAFC;
  --bg-card: #FFFFFF;
  --bg-secondary: #F1F5F9;
  --bg-system: #F2F2F7;
  --bg-input: #F5F5F5;

  /* Text */
  --text-primary: #1E293B;
  --text-secondary: #64748B;
  --text-tertiary: #94A3B8;
  --text-white: #FFFFFF;

  /* Borders & Dividers */
  --border: #E2E8F0;
  --divider: #F1F5F9;

  /* Status Colors */
  --success: #4CAF50;
  --error: #E53935;
  --warning: #FFC107;
  --info: #2196F3;

  /* Sale */
  --sale-red: #E53935;
  --sale-bg: #FFEBEE;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 12px;
  --space-lg: 16px;
  --space-xl: 20px;
  --space-2xl: 24px;
  --space-3xl: 32px;
  --space-4xl: 48px;
  --space-5xl: 64px;
  --accent: var(--accent-orange);

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 10px;
  --radius-xl: 12px;
  --radius-2xl: 16px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 8px 24px rgba(0, 0, 0, 0.12);

  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-arabic: 'Tajawal', 'Inter', sans-serif;

  /* Bottom nav height */
  --bottom-nav-height: 64px;

  /* Top bar height */
  --top-bar-height: 56px;

  /* Transition */
  --transition: 0.2s ease;
  --transition-slow: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-family);
  color: var(--text-primary);
  background-color: var(--bg-system);
  line-height: 1.5;
  padding-bottom: var(--bottom-nav-height);
  padding-top: 0;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
}

ul,
ol {
  list-style: none;
}

/* ==========================================================================
   Typography
   ========================================================================== */
h1,
.h1 {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.01em;
}

h2,
.h2 {
  font-size: 28px;
  font-weight: 600;
  line-height: 1.29;
}

h3,
.h3 {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.33;
}

h4,
.h4 {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.27;
}

h5,
.h5 {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.01em;
}

h6,
.h6 {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.43;
  letter-spacing: 0.006em;
}

.text-lg {
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.03em;
}

.text-md {
  font-size: 14px;
  line-height: 1.43;
  letter-spacing: 0.016em;
}

.text-sm {
  font-size: 12px;
  line-height: 1.33;
  letter-spacing: 0.025em;
}

.text-xs {
  font-size: 11px;
  line-height: 1.45;
  letter-spacing: 0.03em;
}

.font-bold {
  font-weight: 700;
}

.font-semibold {
  font-weight: 600;
}

.font-medium {
  font-weight: 500;
}

.font-normal {
  font-weight: 400;
}

.text-primary {
  color: var(--text-primary);
}

.text-secondary {
  color: var(--text-secondary);
}

.text-tertiary {
  color: var(--text-tertiary);
}

.text-accent {
  color: var(--primary);
}

.text-white {
  color: var(--text-white);
}

.text-sale {
  color: var(--sale-red);
}

.text-success {
  color: var(--success);
}

/* ==========================================================================
   Top App Bar
   ========================================================================== */
.top-app-bar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-card);
  box-shadow: var(--shadow-md);
  height: var(--top-bar-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-lg);
}

.top-app-bar__title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
}

.top-app-bar__actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.top-app-bar__btn {
  position: relative;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  transition: background var(--transition);
}

.top-app-bar__btn:hover {
  background: var(--bg-secondary);
}

.top-app-bar__btn svg {
  width: 24px;
  height: 24px;
  color: var(--text-primary);
}

.top-app-bar__badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  background: red;
  color: white;
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* Back button in inner pages */
.top-app-bar__back {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: var(--space-sm);
  border-radius: var(--radius-full);
  transition: background var(--transition);
}

.top-app-bar__back:hover {
  background: var(--bg-secondary);
}

.top-app-bar__back svg {
  width: 24px;
  height: 24px;
}

.top-app-bar__left {
  display: flex;
  align-items: center;
}

/* ==========================================================================
   Bottom Navigation (matching app's 5-tab nav)
   ========================================================================== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--bg-card);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08);
  min-height: var(--bottom-nav-height);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 8px var(--space-sm);
  padding-bottom: calc(8px + env(safe-area-inset-bottom, 0));
  box-sizing: border-box;
}

.bottom-nav__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  flex: 1;
  color: #64748B;
  /* was var(--text-tertiary) #94A3B8 — improved for WCAG AA 4.5:1 contrast */
  font-size: 10px;
  font-weight: 500;
  transition: color var(--transition);
  text-decoration: none;
  position: relative;
}

.bottom-nav__item svg {
  width: 24px;
  height: 24px;
  transition: color var(--transition);
}

.bottom-nav__item.active,
.bottom-nav__item:hover {
  color: var(--primary);
}

.bottom-nav__item.active svg {
  color: var(--primary);
}

.bottom-nav__cart-count {
  position: absolute;
  top: 6px;
  right: calc(50% - 18px);
  min-width: 16px;
  height: 16px;
  background: var(--primary);
  color: white;
  border-radius: var(--radius-full);
  font-size: 9px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
}

/* ==========================================================================
   Hero Carousel
   ========================================================================== */
.hero-carousel {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
  background: var(--bg-secondary);
}

.hero-carousel__track {
  display: flex;
  height: 100%;
  transition: transform var(--transition-slow);
}

.hero-carousel__slide {
  position: relative;
  min-width: 100%;
  height: 100%;
  flex-shrink: 0;
}

.hero-carousel__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-carousel__gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.2) 50%, transparent 100%);
  pointer-events: none;
}

.hero-carousel__content {
  position: absolute;
  bottom: 60px;
  left: var(--space-xl);
  right: var(--space-xl);
  z-index: 2;
}

.hero-carousel__title {
  font-size: 36px;
  font-weight: 800;
  color: white;
  line-height: 1.22;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  margin-bottom: var(--space-sm);
}

.hero-carousel__subtitle {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-xl);
}

.hero-carousel__cta {
  display: inline-block;
  background: white;
  color: black;
  padding: 10px 32px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 14px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.hero-carousel__cta:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.hero-carousel__dots {
  position: absolute;
  bottom: 30px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  z-index: 3;
}

.hero-carousel__dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}

.hero-carousel__dot.active {
  background: white;
  transform: scale(1.2);
}

/* ==========================================================================
   Section Headers
   ========================================================================== */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-xl);
  margin-bottom: var(--space-xl);
}

.section-header__title {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-primary);
}

.section-header__view-all {
  font-size: 16px;
  font-weight: 500;
  color: var(--primary);
  transition: opacity var(--transition);
}

.section-header__view-all:hover {
  opacity: 0.8;
}

.section {
  padding-top: var(--space-lg);
  padding-bottom: 30px;
}

/* ==========================================================================
   Product Card – Grid (2-column)
   ========================================================================== */
.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  padding: 0 var(--space-lg);
}

.product-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: block;
  position: relative;
  will-change: transform;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.product-card:active {
  transform: scale(0.97);
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.product-card__image-wrap {
  position: relative;
  width: 100%;
  padding: 10px 10px 0;
  box-sizing: border-box;
  overflow: hidden;
  background: var(--bg-card);
}

.product-card__image-wrap::before {
  content: "";
  display: block;
  padding-bottom: 100%;
}

.product-card__image {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  bottom: 0;
  width: calc(100% - 20px);
  height: calc(100% - 10px);
  object-fit: contain;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-card__image {
  transform: scale(1.05);
}

/* Sale badge */
.product-card__sale-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(229, 57, 53, 0.95);
  color: white;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 8px;
  border-radius: 5px;
  z-index: 2;
  letter-spacing: 0.02em;
}

/* Out-of-stock overlay */
.product-card__out-of-stock {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}

.product-card__out-of-stock span {
  background: rgba(0, 0, 0, 0.7);
  color: white;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  letter-spacing: 0.03em;
}

/* Wishlist heart button */
.product-card__wishlist {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  width: 30px;
  height: 30px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: var(--radius-full);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  z-index: 4;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1),
    background 0.2s ease;
  padding: 0;
}

.product-card__wishlist:hover {
  transform: scale(1.12);
  background: rgba(255, 255, 255, 1);
}

.product-card__wishlist:active {
  transform: scale(0.9);
}

.product-card__wishlist svg {
  width: 16px;
  height: 16px;
  color: var(--text-tertiary);
  fill: none;
  stroke-width: 2;
  transition: color 0.2s ease, fill 0.2s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.product-card__wishlist.active svg {
  color: var(--sale-red);
  fill: var(--sale-red);
  transform: scale(1.1);
}

/* Pop animation when toggling wishlist */
@keyframes wishlistPop {
  0% {
    transform: scale(1);
  }

  30% {
    transform: scale(1.35);
  }

  60% {
    transform: scale(0.9);
  }

  100% {
    transform: scale(1);
  }
}

.product-card__wishlist.pop {
  animation: wishlistPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Info section */
.product-card__info {
  padding: 10px var(--space-md) var(--space-md);
}

.product-card__name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 6px;
  min-height: 35px;
}

.product-card__price-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.product-card__price-row {
  display: flex;
  align-items: baseline;
  gap: 2px;
  flex-wrap: wrap;
}

.product-card__price {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.product-card__price--sale {
  color: #e53935;
}

.product-card__price-original {
  font-size: 12px;
  color: var(--text-tertiary);
  text-decoration: line-through;
  font-weight: 400;
}

.product-card__price-original-currency {
  font-size: 9px;
  color: var(--text-tertiary);
  text-decoration: line-through;
  font-weight: 400;
}

.product-card__price-currency {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-primary);
}

.product-card__price-currency--sale {
  color: #e53935;
}

/* ==========================================================================
   Product Card – Carousel (small horizontal scroll)
   ========================================================================== */
.product-carousel {
  display: flex;
  gap: var(--space-md);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 0 var(--space-lg);
  scrollbar-width: none;
}

.product-carousel::-webkit-scrollbar {
  display: none;
}

.product-carousel .product-card {
  min-width: 140px;
  max-width: 148px;
  scroll-snap-align: start;
  flex-shrink: 0;
}

.product-carousel .product-card__image-wrap {
  padding: 0;
}

.product-carousel .product-card__image-wrap::before {
  padding-bottom: 100%;
}

.product-carousel .product-card__image {
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
}

.product-carousel .product-card__wishlist {
  width: 26px;
  height: 26px;
  top: 6px;
  right: 6px;
}

.product-carousel .product-card__wishlist svg {
  width: 13px;
  height: 13px;
}

.product-carousel .product-card__name {
  font-size: 12px;
  min-height: 31px;
}

.product-carousel .product-card__price {
  font-size: 13px;
}

/* ==========================================================================
   Category Cards (Store Page – Mosaic Layout)
   ========================================================================== */
.category-mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: var(--space-md);
  padding: 0 var(--space-md);
}

.category-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: transform var(--transition);
}

.category-card:hover {
  transform: scale(1.02);
}

.category-card--large {
  grid-row: 1 / 3;
}

.category-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-card__title {
  position: absolute;
  top: 15px;
  left: 15px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  z-index: 2;
}

/* ==========================================================================
   Brand Grid
   ========================================================================== */
.brand-group {
  margin-bottom: var(--space-2xl);
}

.brand-group__header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  padding: 0 var(--space-md);
}

.brand-group__flag {
  font-size: 20px;
}

.brand-group__country {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-secondary);
}

.brand-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  padding: 0 var(--space-md);
}

.brand-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  aspect-ratio: 0.85;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-sm);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}

.brand-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.brand-card__image {
  flex: 1;
  width: 100%;
  object-fit: contain;
  padding: var(--space-sm);
  border-radius: var(--radius-md);
}

.brand-card__name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  padding: var(--space-xs) 0;
}

/* ==========================================================================
   Product Detail Page
   ========================================================================== */
.product-detail {
  background: var(--bg-card);
}

.product-gallery {
  position: relative;
  width: 100%;
  background: #ffffff;
}

.product-gallery__main {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
}

.product-gallery__main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-gallery__thumbs {
  display: flex;
  gap: var(--space-sm);
  padding: var(--space-md);
  overflow-x: auto;
  scrollbar-width: none;
}

.product-gallery__thumbs::-webkit-scrollbar {
  display: none;
}

.product-gallery__thumb {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color var(--transition);
}

.product-gallery__thumb.active {
  border-color: var(--primary);
}

.product-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-detail__info {
  padding: var(--space-xl);
}

.product-detail__name {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.27;
  margin-bottom: var(--space-md);
}

.product-detail__price {
  display: flex;
  align-items: baseline;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.product-detail__price-current {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
}

.product-detail__price-original {
  font-size: 18px;
  color: var(--text-tertiary);
  text-decoration: line-through;
}

.product-detail__price-badge {
  background: var(--sale-bg);
  color: var(--sale-red);
  font-size: 13px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}

.product-detail__price-currency {
  font-size: 16px;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Category + Origin Section — matches iOS categoryAndOriginSection: VStack(spacing:10), padding(.vertical,8) */
.product-detail__category-origin-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 8px 0;
  background: var(--bg-card);
}

/* Categories Badges — matches iOS: primaryColor.opacity(0.1) bg, cornerRadius(8) */
.product-detail__categories {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0 16px;
  margin-bottom: 0;
}

.product-detail__categories::-webkit-scrollbar {
  display: none;
}

.product-detail__category-badge {
  display: inline-block;
  padding: 10px 16px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 14px;
  font-weight: 400;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all var(--transition);
}

.product-detail__category-badge:hover {
  background: var(--primary);
  color: white;
}

/* Brand + Origin Badges — matches iOS: specialTurquoise.opacity(0.08) bg, cornerRadius(8) */
.product-detail__badges {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0 16px;
  margin-bottom: 0;
}

.product-detail__badges::-webkit-scrollbar {
  display: none;
}

.product-detail__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  background: rgba(30, 58, 138, 0.08);
  color: #1e3a8a;
  transition: all var(--transition);
}

.product-detail__badge--brand:hover {
  background: rgba(30, 58, 138, 0.16);
}

.product-detail__badge--brand svg {
  flex-shrink: 0;
}

.product-detail__badge--origin {
  background: rgba(30, 58, 138, 0.08);
  color: #1e3a8a;
}

/* Short Description (Inline paragraph) */
.product-detail__short-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
}

.product-detail__short-desc p {
  margin: 0 0 var(--space-sm) 0;
}

.product-detail__short-desc p:last-child {
  margin-bottom: 0;
}

/* Variation Selector */
.variation-selector {
  margin-bottom: var(--space-xl);
}

.variation-selector__label {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: var(--space-md);
  color: var(--text-primary);
}

.variation-selector__options {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.variation-option {
  padding: 8px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  background: var(--bg-card);
  cursor: pointer;
  transition: all var(--transition);
}

.variation-option:hover {
  border-color: var(--primary);
}

.variation-option.selected {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary);
}

.variation-option.out-of-stock {
  opacity: 0.4;
  cursor: not-allowed;
  text-decoration: line-through;
}

/* Add to Cart */
.add-to-cart-btn {
  width: 100%;
  height: 52px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius-xl);
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  transition: all var(--transition);
}

.add-to-cart-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.add-to-cart-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.add-to-cart-btn--out-of-stock {
  background: #B0B0B0 !important;
  opacity: 1 !important;
  cursor: not-allowed;
  color: white;
}

.add-to-cart-btn--out-of-stock:hover {
  background: #B0B0B0 !important;
  transform: none !important;
  box-shadow: none !important;
}

@keyframes shake {

  0%,
  100% {
    transform: translateX(0);
  }

  15% {
    transform: translateX(-6px);
  }

  30% {
    transform: translateX(5px);
  }

  45% {
    transform: translateX(-4px);
  }

  60% {
    transform: translateX(3px);
  }

  75% {
    transform: translateX(-2px);
  }
}

.add-to-cart-btn svg {
  width: 20px;
  height: 20px;
}

/* Expandable Description */
.expandable-section {
  border-top: 1px solid var(--divider);
  padding: var(--space-lg) 0;
}

.expandable-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  padding: 0;
  width: 100%;
  background: none;
  border: none;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.expandable-section__icon {
  width: 20px;
  height: 20px;
  color: var(--text-tertiary);
  transition: transform var(--transition);
}

.expandable-section.open .expandable-section__icon {
  transform: rotate(180deg);
}

.expandable-section__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow);
}

.expandable-section.open .expandable-section__body {
  max-height: 2000px;
}

.expandable-section__content {
  padding-top: var(--space-md);
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* Related Products */
.related-products {
  padding: var(--space-xl) 0;
  background: var(--bg-system);
}

.related-products .section-header {
  padding: 0 var(--space-xl);
}

.related-products .bhb-carousel-wrap {
  position: relative;
}

.related-products .bhb-products-row {
  display: flex;
  align-items: stretch;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 0;
  margin: 0;
  list-style: none;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.related-products .bhb-products-row::-webkit-scrollbar {
  display: none;
}

.related-products .bhb-products-row>li.product:first-child {
  margin-inline-start: var(--space-xl);
}

.related-products .bhb-products-row>li.product:last-child {
  margin-inline-end: var(--space-xl);
}

.related-products .bhb-products-row>li.product {
  flex: 0 0 140px;
  min-width: 140px;
  max-width: 160px;
  scroll-snap-align: center;
  display: flex;
  flex-direction: column;
}

.related-products .product-card {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.related-products .product-card__info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.related-products .product-card__name {
  font-size: 12px;
  min-height: 31px;
}

.related-products .product-card__price {
  font-size: 13px;
}

/* ==========================================================================
   Cart Page
   ========================================================================== */
.cart-page {
  background: var(--bg-system);
  min-height: 100vh;
}

.cart-items {
  padding: var(--space-lg) 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.cart-item-card {
  background: var(--bg-card);
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
  touch-action: pan-y;
  -webkit-user-drag: none;
  user-select: none;
}

.cart-item {
  display: flex;
  padding: var(--space-md);
  gap: var(--space-md);
}

.cart-item__info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.cart-item__name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cart-item__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-item__prices {
  text-align: right;
}

.cart-item__unit-price {
  font-size: 12px;
  color: var(--text-tertiary);
}

.cart-item__total-price {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
}

.cart-item__image {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

.cart-item__remove {
  width: 32px;
  height: 32px;
  background: var(--error);
  color: white;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity var(--transition);
  flex-shrink: 0;
  align-self: flex-start;
}

.cart-item__remove:hover {
  opacity: 0.85;
}

.cart-item__remove svg {
  width: 16px;
  height: 16px;
}

/* Quantity Controls */
.quantity-controls {
  display: inline-flex;
  align-items: center;
  background: var(--bg-input);
  border-radius: var(--radius-xl);
  height: 52px;
  padding: 4px;
}

.quantity-controls__btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  border: none;
  font-size: 20px;
  font-weight: 500;
  transition: all var(--transition);
}

.footer-links__link {
  color: #666;
  text-decoration: none;
  font-size: 11px;
  font-weight: 500;
  transition: color var(--transition);
}

.quantity-controls__btn--plus {
  background: var(--primary);
  color: white;
}

.quantity-controls__btn--plus:hover {
  background: var(--primary-hover);
}

.quantity-controls__btn--minus {
  background: white;
  color: var(--text-primary);
}

.quantity-controls__btn--minus:hover {
  background: var(--bg-secondary);
}

.quantity-controls__value {
  padding: 0 var(--space-lg);
  font-size: 15px;
  font-weight: 600;
  min-width: 30px;
  text-align: center;
}

/* Free Shipping Progress */
.shipping-progress {
  background: var(--bg-card);
  border-radius: 0;
  box-shadow: none;
  padding: var(--space-lg);
  margin: 0;
}

.shipping-progress__bar-wrap {
  width: 100%;
  height: 35px;
  background: #E0E0E0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  margin-bottom: var(--space-md);
}

.shipping-progress__bar {
  height: 100%;
  background: var(--primary);
  border-radius: var(--radius-sm);
  transition: width var(--transition-slow);
  min-width: 0;
}

.shipping-progress__text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
}

.shipping-progress__message {
  font-size: 14px;
  color: var(--text-primary);
}

.shipping-progress__message strong {
  color: var(--primary);
  font-weight: 700;
}

/* Coupon Section */
.coupon-section {
  background: var(--bg-card);
  border-radius: 0;
  box-shadow: none;
  padding: var(--space-lg);
  margin: 0;
}

.coupon-section__form {
  display: flex;
  gap: var(--space-md);
  align-items: center;
}

.coupon-section__input {
  flex: 1;
  height: 50px;
  background: var(--bg-input);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 0 var(--space-lg);
  font-size: 16px;
  transition: border-color var(--transition);
}

.coupon-section__input:focus {
  outline: none;
  border-color: var(--primary);
}

.coupon-section__btn {
  height: 50px;
  padding: 0 var(--space-xl);
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: background var(--transition);
}

.coupon-section__btn:hover {
  background: var(--primary-hover);
}

.coupon-section__error {
  color: var(--error);
  font-size: 12px;
  margin-top: var(--space-sm);
}

/* Subtotal Section */
.subtotal-section {
  background: var(--bg-card);
  border-radius: 0;
  box-shadow: none;
  padding: var(--space-lg);
  margin: 0;
}

.subtotal-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-xs) 0;
}

.subtotal-row__label {
  color: var(--text-tertiary);
  font-size: 16px;
}

.subtotal-row__value {
  font-weight: 700;
  font-size: 17px;
  color: var(--primary);
}

.subtotal-row__value--shipping {
  color: var(--text-primary);
  font-weight: 400;
  font-size: 15px;
}

.subtotal-row__value--discount {
  color: var(--success);
  font-size: 15px;
}

/* Cart Bottom Bar */
.cart-bottom-bar {
  position: fixed;
  bottom: var(--bottom-nav-height);
  left: 0;
  right: 0;
  background: var(--bg-card);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
  padding: var(--space-lg);
  z-index: 999;
}

.cart-bottom-bar__total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-sm);
}

.cart-bottom-bar__label {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-tertiary);
}

.cart-bottom-bar__price {
  font-size: 17px;
  font-weight: 700;
  color: var(--primary);
}

.checkout-btn {
  width: 100%;
  height: 52px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius-xl);
  font-size: 16px;
  font-weight: 700;
  transition: all var(--transition);
}

.checkout-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* ==========================================================================
   Search
   ========================================================================== */
.search-bar {
  padding: var(--space-lg);
  background: var(--bg-card);
}

.search-bar__input {
  width: 100%;
  height: 48px;
  background: var(--bg-input);
  border: 1px solid transparent;
  border-radius: var(--radius-xl);
  padding: 0 var(--space-lg) 0 48px;
  font-size: 16px;
  transition: border-color var(--transition);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 16px center;
}

.search-bar__input:focus {
  outline: none;
  border-color: var(--primary);
}

/* ==========================================================================
   Checkout
   ========================================================================== */
.checkout-page {
  background: var(--bg-system);
  padding: 0;
  min-height: 100vh;
}

.checkout-section {
  background: var(--bg-card);
  border-radius: 0;
  box-shadow: none;
  padding: var(--space-xl);
  margin-bottom: var(--space-sm);
}

.checkout-section__title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: var(--space-lg);
  color: var(--text-primary);
}

.form-row {
  margin-bottom: var(--space-lg);
}

.form-row label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: var(--space-xs);
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0 var(--space-lg);
  font-size: 16px;
  transition: border-color var(--transition);
  background: var(--bg-card);
}

.form-row textarea {
  height: auto;
  min-height: 100px;
  padding: var(--space-md) var(--space-lg);
  resize: vertical;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.place-order-btn {
  width: 100%;
  height: 56px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius-xl);
  font-size: 18px;
  font-weight: 700;
  transition: all var(--transition);
}

.place-order-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* ==========================================================================
   Profile Page
   ========================================================================== */
.profile-page {
  background: var(--bg-system);
}

.profile-header {
  background: var(--bg-card);
  padding: var(--space-2xl);
  text-align: center;
  margin-bottom: var(--space-sm);
}

.profile-header__avatar {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-full);
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
}

.profile-header__avatar svg {
  width: 40px;
  height: 40px;
  color: var(--primary);
}

.profile-header__name {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.profile-header__email {
  font-size: 14px;
  color: var(--text-secondary);
}

.profile-section {
  background: var(--bg-card);
  margin-bottom: var(--space-sm);
}

.profile-section__header {
  padding: var(--space-lg) var(--space-xl);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.profile-menu-item {
  display: flex;
  align-items: center;
  padding: var(--space-lg) var(--space-xl);
  gap: var(--space-lg);
  border-top: 1px solid var(--divider);
  transition: background var(--transition);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.profile-menu-item:first-child {
  border-top: none;
}

.profile-menu-item:hover {
  background: var(--bg-secondary);
}

.profile-menu-item svg {
  width: 22px;
  height: 22px;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.profile-menu-item__text {
  flex: 1;
  font-size: 16px;
  font-weight: 400;
}

.profile-menu-item__arrow {
  width: 16px;
  height: 16px;
  color: var(--text-tertiary);
}

/* ==========================================================================
   Empty State
   ========================================================================== */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px var(--space-xl);
  text-align: center;
}

.empty-state__icon {
  width: 80px;
  height: 80px;
  background: var(--bg-secondary);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-xl);
}

.empty-state__icon svg {
  width: 40px;
  height: 40px;
  color: var(--text-tertiary);
}

.empty-state__title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.empty-state__text {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
}

/* ==========================================================================
   Promotional Banner
   ========================================================================== */
.promo-banner {
  margin: 0 var(--space-lg);
  border-radius: var(--radius-xl);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition);
}

.promo-banner:hover {
  transform: scale(1.01);
}

.promo-banner img {
  width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   Loading & Skeleton
   ========================================================================== */
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

.skeleton {
  background: linear-gradient(90deg, var(--bg-secondary) 25%, var(--border) 50%, var(--bg-secondary) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-md);
}

.skeleton--circle {
  border-radius: var(--radius-full);
}

.skeleton--text {
  height: 14px;
  margin-bottom: var(--space-sm);
}

.skeleton--title {
  height: 20px;
  width: 60%;
  margin-bottom: var(--space-md);
}

.skeleton--image {
  padding-bottom: 100%;
}

.skeleton--btn {
  height: 48px;
}

/* Loading spinner */
.loading-spinner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px;
}

.loading-spinner::after {
  content: '';
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: var(--radius-full);
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 10px 24px;
  border-radius: var(--radius-xl);
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}

.btn--primary {
  background: var(--primary);
  color: white;
}

.btn--primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.btn--outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn--outline:hover {
  background: var(--primary-light);
}

.btn--lg {
  padding: 14px 32px;
  font-size: 16px;
}

.btn--full {
  width: 100%;
}

/* ==========================================================================
   WooCommerce Overrides
   ========================================================================== */

/* Remove default WooCommerce styling where needed */
.woocommerce-page .woocommerce {
  max-width: 100%;
}

.woocommerce .woocommerce-result-count,
.woocommerce .woocommerce-ordering {
  display: none;
}

.woocommerce nav.woocommerce-pagination ul {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-xl);
  border: none;
}

.woocommerce nav.woocommerce-pagination ul li {
  border: none;
  overflow: visible;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  color: var(--text-primary);
  font-weight: 500;
  border: none;
  transition: all var(--transition);
}

.woocommerce nav.woocommerce-pagination ul li span.current {
  background: var(--primary);
  color: white;
}

.woocommerce nav.woocommerce-pagination ul li a:hover {
  background: var(--primary-light);
  color: var(--primary);
}

/* WooCommerce notices */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  margin: var(--space-lg);
  font-size: 14px;
}

.woocommerce-message {
  background: #E8F5E9;
  color: #2E7D32;
  border-top-color: var(--success);
}

.woocommerce-info {
  background: #E3F2FD;
  color: #1565C0;
  border-top-color: var(--info);
}

.woocommerce-error {
  background: var(--sale-bg);
  color: var(--error);
  border-top-color: var(--error);
}

.woocommerce-message a,
.woocommerce-info a {
  color: inherit;
  font-weight: 600;
}

/* WooCommerce buttons */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
  background: var(--primary) !important;
  color: white !important;
  border: none !important;
  border-radius: var(--radius-xl) !important;
  padding: 12px 24px !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  transition: all var(--transition) !important;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
  background: var(--primary-hover) !important;
}

/* Star ratings */
.woocommerce .star-rating {
  color: var(--warning);
}

/* ==========================================================================
   Responsive – Desktop Enhancements
   ========================================================================== */

/* ── Desktop Navigation (hidden on mobile) ── */
.desktop-nav {
  display: none !important;
}

.desktop-only-btn {
  display: none !important;
}

/* ── Header inner container ── */
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  flex-wrap: nowrap;
  gap: var(--space-lg);
}

/* ── Tablet (768px+) ── */
@media (min-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .brand-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .hero-carousel {
    height: 550px;
  }

  .cart-bottom-bar {
    max-width: 600px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  }

  .footer-links {
    padding: 32px 24px 24px;
  }

  .footer-links__inner {
    gap: var(--space-xl);
  }

  .footer-links__link {
    font-size: 13px;
  }
}

/* ── Desktop (1024px+) ── */
@media (min-width: 1024px) {
  body {
    padding-bottom: 0;
  }

  /* Hide mobile bottom nav */
  .bottom-nav {
    display: none;
  }

  /* Show desktop navigation */
  .desktop-nav {
    display: flex !important;
    align-items: center;
    gap: var(--space-xs);
    flex-shrink: 0;
  }

  .top-app-bar {
    height: auto;
    min-height: var(--top-bar-height);
    padding: var(--space-sm) var(--space-2xl);
  }

  .desktop-nav__link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
  }

  .desktop-nav__link:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
  }

  .desktop-nav__link.active {
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 600;
  }

  .desktop-nav__link svg {
    flex-shrink: 0;
  }

  /* Show desktop profile icon */
  .desktop-only-btn {
    display: flex !important;
  }

  /* Header: inner container with max-width */

  .header-inner {
    max-width: 1200px;
    margin: 0 auto;
  }

  /* Main content container */
  #main-content {
    max-width: 1200px;
    margin: 0 auto;
  }

  .product-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
    max-width: 1200px;
    margin: 0 auto;
  }

  .hero-carousel {
    height: 600px;
  }

  .hero-carousel__title {
    font-size: 48px;
  }

  .hero-carousel__content {
    left: 48px;
    bottom: 48px;
    max-width: 700px;
  }

  .hero-carousel__subtitle {
    font-size: 18px;
  }

  .hero-carousel__cta {
    padding: 14px 40px;
    font-size: 16px;
    border-radius: var(--radius-lg);
  }

  /* Product detail: 2-column layout */
  .product-detail {
    display: grid;
    grid-template-columns: 5fr 6fr;
    max-width: 960px;
    margin: 0 auto;
    gap: var(--space-2xl);
    padding: var(--space-2xl) var(--space-xl);
  }

  /* Optimize spacing in the right column wrapper */
  .product-detail__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .product-detail__content .product-detail__info {
    padding: 0;
    margin-bottom: var(--space-lg);
  }

  .product-detail__content .product-detail__category-origin-section {
    padding-top: 0;
    margin-bottom: var(--space-lg);
  }

  /* Constrain product gallery on desktop */
  .product-gallery__main {
    max-height: 480px;
  }

  .product-gallery__main img {
    max-height: 480px;
    object-fit: contain;
  }

  .product-gallery__thumb {
    width: 52px;
    height: 52px;
  }

  /* Cart: 2-column layout on desktop */
  .cart-page {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: var(--space-2xl);
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-2xl);
  }

  .woocommerce-cart-form {
    grid-column: 1;
  }

  .cart-sidebar {
    grid-column: 2;
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
  }

  /* Remove top padding from list so first card aligns with coupon section */
  .cart-items {
    padding-top: 0;
  }

  .checkout-page {
    max-width: 600px;
    margin: 0 auto;
    padding: var(--space-2xl);
  }

  /* Hide floating checkout bar on desktop – the inline checkout button is enough */
  .cart-bottom-bar {
    display: none;
  }

  /* Remove bottom spacer that was only for the floating bar */
  .cart-page .cart-collaterals+div[style*="height:130px"] {
    display: none;
  }

  /* Show inline checkout button on desktop */
  .checkout-btn--inline {
    display: flex !important;
  }

  /* Section headers: bigger text */
  .section-header {
    padding: 0 var(--space-2xl);
  }

  .section-header__title {
    font-size: 26px;
  }

  /* Product card: refined for desktop */
  .product-card__name {
    font-size: 14px;
    min-height: 38px;
  }

  .product-card__price {
    font-size: 16px;
  }

  .product-card__info {
    padding: 12px var(--space-lg) var(--space-lg);
  }

  /* Footer: desktop layout */
  .footer-links {
    padding: 48px 32px 32px;
  }

  .footer-links__inner {
    max-width: 1400px;
    margin: 0 auto;
    gap: var(--space-2xl);
  }

  .footer-links__link {
    font-size: 15px;
  }

  .footer-links__copy {
    font-size: 14px;
    margin-top: var(--space-xl);
  }

  /* Wishlist page */
  .wishlist-page__list {
    max-width: 900px;
    margin: 0 auto;
  }
}

/* ── Large Desktop (1400px+) ── */
@media (min-width: 1400px) {
  .header-inner {
    max-width: 1400px;
  }

  #main-content {
    max-width: 1400px;
  }

  .product-grid {
    grid-template-columns: repeat(5, 1fr);
    max-width: 1400px;
    gap: var(--space-xl);
  }

  .hero-carousel {
    height: 650px;
  }

  .hero-carousel__title {
    font-size: 52px;
  }

  .hero-carousel__content {
    left: 60px;
    bottom: 56px;
    max-width: 800px;
  }

  .product-detail {
    max-width: 1060px;
    gap: var(--space-3xl);
    padding: var(--space-2xl);
  }

  .product-gallery__main {
    max-height: 540px;
  }

  .product-gallery__main img {
    max-height: 540px;
  }

  .section-header__title {
    font-size: 28px;
  }

  .footer-links__inner {
    max-width: 1600px;
  }

  .desktop-nav__link {
    padding: 8px 20px;
    font-size: 15px;
  }
}

/* ── Extra Large (1600px+) ── */
@media (min-width: 1600px) {
  .product-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 0.4s ease forwards;
}

.animate-slide-up {
  animation: slideUp 0.5s ease forwards;
}

/* Stagger animations for grid items */
.product-grid .product-card:nth-child(1) {
  animation-delay: 0ms;
}

.product-grid .product-card:nth-child(2) {
  animation-delay: 50ms;
}

.product-grid .product-card:nth-child(3) {
  animation-delay: 100ms;
}

.product-grid .product-card:nth-child(4) {
  animation-delay: 150ms;
}

/* ==========================================================================
   Utilities
   ========================================================================== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.mt-sm {
  margin-top: var(--space-sm);
}

.mt-md {
  margin-top: var(--space-md);
}

.mt-lg {
  margin-top: var(--space-lg);
}

.mt-xl {
  margin-top: var(--space-xl);
}

.mb-sm {
  margin-bottom: var(--space-sm);
}

.mb-md {
  margin-bottom: var(--space-md);
}

.mb-lg {
  margin-bottom: var(--space-lg);
}

.mb-xl {
  margin-bottom: var(--space-xl);
}

/* Google Fonts: loaded non-blocking via preload+swap in functions.php */

/* ==========================================================================
   Wishlist Page — Custom Card Layout  ([beautcian_wishlist] shortcode)
   ========================================================================== */

/* ── Container ── */
.wishlist-page {
  padding: var(--space-md) var(--space-lg);
  max-width: 600px;
  margin: 0 auto;
}

/* ── Card list ── */
.wishlist-page__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

/* ── Individual card ── */
.wishlist-page__card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  padding: var(--space-md);
  display: grid;
  grid-template-columns: 80px 1fr;
  grid-template-rows: auto auto;
  gap: var(--space-xs) var(--space-md);
  align-items: start;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* ── Product thumbnail ── */
.wishlist-page__thumb {
  grid-row: 1;
  grid-column: 1;
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-secondary);
  display: block;
  align-self: start;
}

.wishlist-page__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.wishlist-page__sale-badge {
  position: absolute;
  top: 4px;
  left: 4px;
  background: var(--sale-red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: var(--radius-sm);
  line-height: 1;
}

/* ── Product info (name + price + stock) ── */
.wishlist-page__info {
  grid-row: 1;
  grid-column: 2;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.wishlist-page__name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.35;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.wishlist-page__name:hover {
  color: var(--primary);
}

.wishlist-page__price {
  display: flex;
  align-items: baseline;
  gap: var(--space-xs);
  flex-wrap: wrap;
}

.wishlist-page__price-current {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.wishlist-page__price-current--sale {
  color: var(--primary);
}

.wishlist-page__price-old {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-tertiary);
  text-decoration: line-through;
}

.wishlist-page__stock {
  font-size: 11px;
  font-weight: 500;
}

.wishlist-page__stock--in {
  color: var(--success);
}

.wishlist-page__stock--out {
  color: var(--error);
}

/* ── Actions row ── */
.wishlist-page__actions {
  grid-row: 2;
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-top: var(--space-xs);
}

/* Primary CTA */
.wishlist-page__btn-cart {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: var(--text-white);
  border: none;
  border-radius: var(--radius-lg);
  padding: 10px var(--space-md);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  min-height: 40px;
  transition: background var(--transition), transform 0.1s ease;
  font-family: inherit;
}

.wishlist-page__btn-cart:hover {
  background: var(--primary-hover);
}

.wishlist-page__btn-cart:active {
  transform: scale(0.97);
}

.wishlist-page__btn-cart--added {
  background: var(--success) !important;
}

.wishlist-page__btn-cart--disabled {
  background: var(--bg-secondary);
  color: var(--text-tertiary);
  cursor: not-allowed;
  pointer-events: none;
}

.wishlist-page__btn-cart.loading {
  opacity: 0.7;
  pointer-events: none;
}

/* Remove button (circle X) */
.wishlist-page__btn-remove {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  min-width: 40px;
  background: var(--bg-secondary);
  color: var(--text-tertiary);
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  padding: 0;
}

.wishlist-page__btn-remove:hover {
  background: var(--sale-bg);
  color: var(--sale-red);
}

.wishlist-page__btn-remove.loading {
  opacity: 0.5;
  pointer-events: none;
}

.wishlist-page__btn-remove svg {
  width: 16px;
  height: 16px;
}

/* ── Empty state ── */
.wishlist-page__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-3xl) var(--space-lg);
  gap: var(--space-md);
}

.wishlist-page__empty-icon {
  color: var(--text-tertiary);
  opacity: 0.4;
}

.wishlist-page__empty-icon svg {
  width: 64px;
  height: 64px;
}

.wishlist-page__empty-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.wishlist-page__empty-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  max-width: 260px;
}

.wishlist-page__empty-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: var(--text-white);
  border-radius: var(--radius-lg);
  padding: 12px var(--space-2xl);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  margin-top: var(--space-sm);
  transition: background var(--transition);
}

.wishlist-page__empty-cta:hover {
  background: var(--primary-hover);
}

/* ── Desktop breakpoint ── */
@media (min-width: 768px) {
  .wishlist-page__card {
    grid-template-columns: 100px 1fr;
    padding: var(--space-lg);
  }

  .wishlist-page__thumb {
    width: 100px;
    height: 100px;
  }

  .wishlist-page__name {
    font-size: 15px;
  }

  .wishlist-page__price-current {
    font-size: 16px;
  }
}

/* ── Hide YITH default elements if still present ── */
.yith-wcwl-form .wishlist_table {
  display: none !important;
}

.yith-wcwl-form .wishlist_manage_table,
.yith-wcwl-form .yith-wcwl-share {
  display: none !important;
}

/* ==========================================================================
   Informational Pages (Privacy Policy, Support, etc.)
   ========================================================================== */
.info-page {
  padding: var(--space-4xl) var(--space-lg);
  min-height: 70vh;
  background: linear-gradient(135deg, var(--bg-system, #f9f9f9) 0%, #f0f0f5 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.info-page__header {
  width: 100%;
  max-width: 800px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-xl);
}

.info-page__back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.2s ease;
  opacity: 0.8;
}

.info-page__back-link:hover {
  color: var(--accent);
  transform: translateX(-3px);
  opacity: 1;
}

.info-page__lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.info-page__lang-toggle:hover {
  background: var(--bg-secondary);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.info-page__container {
  background: var(--bg-card);
  border-radius: var(--radius-2xl);
  padding: var(--space-4xl) var(--space-3xl);
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.08);
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  box-sizing: border-box;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-page__container:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 50px -12px rgba(0, 0, 0, 0.12);
}

.info-page__hidden {
  display: none !important;
}

/* Typography & Content */
.info-page__title {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: var(--space-xl);
  color: var(--text-primary);
  position: relative;
  display: inline-block;
  padding-bottom: 15px;
}

.info-page__title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
}

/* RTL support for title underline */
body[dir="rtl"] .info-page__title::after {
  left: auto;
  right: 0;
}

.info-page h2 {
  font-size: 22px;
  font-weight: 700;
  margin-top: var(--space-3xl);
  margin-bottom: var(--space-md);
  color: var(--text-primary);
}

.info-page p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}

.info-page ul {
  margin-bottom: var(--space-lg);
  padding-inline-start: var(--space-xl);
  list-style: none;
  /* Custom bullet override if needed, but keeping simple for now */
}

.info-page li {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 8px;
  position: relative;
  padding-inline-start: 15px;
}

.info-page li::before {
  content: '•';
  color: var(--accent);
  font-weight: bold;
  position: absolute;
  left: 0;
  display: inline-block;
  width: 1em;
  margin-left: -1em;
}

body[dir="rtl"] .info-page li::before {
  left: auto;
  right: 0;
  margin-left: 0;
  margin-right: -1em;
}

.info-page strong {
  color: var(--text-primary);
  font-weight: 600;
}

.info-page a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
  border-bottom: 1px solid transparent;
}

.info-page a:hover {
  color: var(--accent-dark, #bd005e);
  border-bottom-color: currentColor;
  text-decoration: none;
}

.info-page__updated {
  margin-top: var(--space-4xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--divider);
  font-size: 13px;
  color: var(--text-tertiary);
  font-style: italic;
  text-align: center;
}

/* Mobile Responsiveness */
@media (max-width: 600px) {
  .info-page {
    padding: var(--space-lg) var(--space-md);
    min-height: auto;
    background: var(--bg-card);
  }

  .info-page__header {
    margin-bottom: var(--space-lg);
    /* Stack them if space is tight? No, flex-between is fine */
  }

  .info-page__container {
    padding: var(--space-xl) var(--space-lg);
    box-shadow: none;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    /* Add border on mobile since shadow is gone */
  }

  .info-page__title {
    font-size: 24px;
    margin-bottom: var(--space-lg);
  }

  .info-page h2 {
    font-size: 18px;
    margin-top: var(--space-2xl);
  }

  .info-page p,
  .info-page li {
    font-size: 15px;
  }
}

.info-page__title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-md);
  border-bottom: 2px solid var(--divider);
}

.info-page__container h2 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--divider);
}

.info-page__container p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}

.info-page__container ul {
  list-style: disc;
  padding-right: var(--space-xl);
  margin-bottom: var(--space-md);
}

body[dir="ltr"] .info-page__container ul {
  padding-right: 0;
  padding-left: var(--space-xl);
}

.info-page__container li {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}

.info-page__container li strong {
  color: var(--text-primary);
}

.info-page__container a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.info-page__container a:hover {
  opacity: 0.8;
}

.info-page__updated {
  margin-top: var(--space-xl);
  font-size: 13px;
  color: var(--text-tertiary);
}

/* LTR adjustments */
body[dir="ltr"] .info-page__container {
  direction: ltr;
  text-align: left;
}

body[dir="rtl"] .info-page__container {
  direction: rtl;
  text-align: right;
}

/* ==========================================================================
   Footer Links Bar (above bottom nav)
   ========================================================================== */
.footer-links {
  text-align: center;
  padding: var(--space-lg) var(--space-xl);
  padding-bottom: calc(var(--space-lg) + 4px);
  background: var(--bg-card);
  border-top: 1px solid var(--divider);
}

.footer-links__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: nowrap;
}

.footer-links__link {
  font-size: 10px;
  font-weight: 500;
  color: var(--text-tertiary);
  text-decoration: none;
  transition: color var(--transition);
  white-space: nowrap;
}

.footer-links__link:hover {
  color: var(--text-primary);
}

.footer-links__sep {
  width: 1px;
  height: 12px;
  background: var(--border);
}

.footer-links__copy {
  font-size: 11px;
  color: var(--text-tertiary);
  margin-top: var(--space-sm);
}