/* ==========================================================================
   CLAYORA — Studio Ceramics & Handcrafted Pottery
   ThemeForest & TemplateMonster Premium Marketplace Template
   Redesigned for 2026 Editorial Lifestyle & Contemporary Handcrafted Commerce
   Built with Bootstrap 5.3, Vanilla CSS3, Tabler Icons, Google Fonts
   ========================================================================== */

/* --- Google Fonts Import (Editorial Serif + Contemporary Body) --- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* --- 2026 Design Tokens & Natural Earth Color System --- */
:root {
  /* Warm Earth & Artisan Ceramics Palette */
  --c-bg: #FAF6F0;                 /* Warm luminous ivory canvas */
  --c-surface: #FFFFFF;            /* Pure porcelain white */
  --c-surface-soft: #F5EFE7;       /* Soft unglazed bisque */
  --c-surface-warm: #EFE6DA;       /* Raw potter's sand */
  --c-surface-card: #FFFFFF;       /* Card surface */
  --c-border: #E8DFD3;             /* Fine earthenware border */
  --c-border-light: #F2ECE3;       /* Subtle divider */
  --c-border-focus: #C45A33;       /* Terracotta focus ring */
  
  /* Terracotta & Earth Accents */
  --c-terracotta: #C45A33;         /* Tuscan kiln terracotta */
  --c-terracotta-hover: #A94723;   /* Deep roasted terracotta */
  --c-terracotta-light: #FBF0EB;   /* Whispering terracotta wash */
  --c-terracotta-glow: rgba(196, 90, 51, 0.14);
  
  /* Earth & Clay Neutrals */
  --c-clay-dark: #2B211B;          /* Deep espresso clay */
  --c-clay-deep: #1E1612;          /* Kiln charcoal */
  --c-clay-brown: #745644;         /* Rich river clay */
  --c-charcoal: #201D1A;           /* High legibility typography */
  --c-charcoal-soft: #383430;      /* Sub-headings and active items */
  --c-muted: #6E665E;              /* Sophisticated body neutral */
  --c-muted-light: #9C938A;        /* Micro-copy and borders */
  
  /* Natural Botanical & Glaze Accents */
  --c-olive: #5B664B;              /* Sage mineral glaze */
  --c-olive-light: #EBF0E5;        /* Soft sage tint */
  --c-sand: #E5DACB;               /* Natural linen / sand */
  
  /* Typography Hierarchy */
  --font-serif: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  --font-editorial: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  
  /* Precision Spacing & Radii (Anti-Slop Mathematical Hierarchy) */
  --radius-xs: 2px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-pill: 9999px;
  
  /* Soft Tactile Shadows */
  --shadow-sm: 0 2px 10px rgba(35, 29, 24, 0.04);
  --shadow-md: 0 8px 24px rgba(35, 29, 24, 0.06);
  --shadow-lg: 0 16px 36px rgba(35, 29, 24, 0.09);
  --shadow-hover: 0 14px 32px rgba(196, 90, 51, 0.09);
  
  /* Refined Transitions */
  --transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   BASE & RESET
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--c-bg);
  color: var(--c-charcoal);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6,
.font-serif {
  font-family: var(--font-serif);
  color: var(--c-charcoal);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.22;
}

.font-editorial {
  font-family: var(--font-editorial);
}

a {
  color: var(--c-charcoal);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--c-terracotta);
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

/* ==========================================================================
   UTILITY & COLOR CLASSES
   ========================================================================== */
.bg-warm { background-color: var(--c-bg) !important; }
.bg-soft { background-color: var(--c-surface-soft) !important; }
.bg-surface { background-color: var(--c-surface) !important; }
.bg-clay-dark { background-color: var(--c-clay-dark) !important; color: #FAF6F0; }
.bg-terracotta { background-color: var(--c-terracotta) !important; color: #FFF; }
.bg-terracotta-light { background-color: var(--c-terracotta-light) !important; }

.text-terracotta { color: var(--c-terracotta) !important; }
.text-clay-brown { color: var(--c-clay-brown) !important; }
.text-charcoal { color: var(--c-charcoal) !important; }
.text-muted-custom { color: var(--c-muted) !important; }
.border-custom { border-color: var(--c-border) !important; }
.border-light-custom { border-color: var(--c-border-light) !important; }

/* Micro-Caps Tracker */
.tracking-wider {
  letter-spacing: 0.12em;
}

/* ==========================================================================
   BADGES & PILLS
   ========================================================================== */
.badge-artisan {
  background-color: var(--c-terracotta-light);
  color: var(--c-terracotta);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid rgba(196, 90, 51, 0.18);
  white-space: nowrap;
}

.badge-sale {
  background-color: #FDF0ED;
  color: #B23B3B;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(178, 59, 59, 0.2);
  white-space: nowrap;
}

.badge-new {
  background-color: var(--c-olive-light);
  color: var(--c-olive);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(91, 102, 75, 0.2);
  white-space: nowrap;
}

.badge-stock {
  background-color: #EBF5EA;
  color: #2D7A37;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ==========================================================================
   BUTTONS & CTAS
   ========================================================================== */
.btn-clay {
  background-color: var(--c-clay-dark);
  color: #FAF6F0;
  border: 1px solid var(--c-clay-dark);
  padding: 12px 28px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
}
.btn-clay:hover, .btn-clay:focus {
  background-color: var(--c-terracotta);
  border-color: var(--c-terracotta);
  color: #FFFFFF;
  box-shadow: var(--shadow-hover);
  transform: translateY(-1px);
}

.btn-terracotta {
  background-color: var(--c-terracotta);
  color: #FFFFFF;
  border: 1px solid var(--c-terracotta);
  padding: 12px 28px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
}
.btn-terracotta:hover, .btn-terracotta:focus {
  background-color: var(--c-terracotta-hover);
  border-color: var(--c-terracotta-hover);
  color: #FFFFFF;
  box-shadow: 0 8px 20px rgba(196, 90, 51, 0.28);
  transform: translateY(-1px);
}

.btn-outline-clay {
  background-color: transparent;
  color: var(--c-charcoal);
  border: 1px solid var(--c-border);
  padding: 11px 26px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
}
.btn-outline-clay:hover {
  background-color: var(--c-surface-soft);
  border-color: var(--c-charcoal);
  color: var(--c-charcoal);
  transform: translateY(-1px);
}

.btn-icon-round {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--c-border);
  background-color: var(--c-surface);
  color: var(--c-charcoal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  cursor: pointer;
}
.btn-icon-round:hover {
  background-color: var(--c-terracotta);
  border-color: var(--c-terracotta);
  color: #FFF;
  box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.top-bar {
  background-color: var(--c-surface-warm);
  border-bottom: 1px solid var(--c-border);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--c-charcoal-soft);
  padding: 9px 0;
  font-weight: 500;
}
.top-bar a {
  color: var(--c-charcoal-soft);
  font-weight: 600;
}
.top-bar a:hover {
  color: var(--c-terracotta);
}

.clay-navbar {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--c-border);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 1020;
  transition: var(--transition);
}
.clay-navbar.scrolled {
  box-shadow: 0 4px 24px rgba(35, 29, 24, 0.06);
  padding: 12px 0;
  background: rgba(255, 255, 255, 0.98);
}

.navbar-brand-clay {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-serif);
  font-size: 27px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--c-charcoal);
  text-transform: uppercase;
  line-height: 1;
}
.navbar-brand-clay .brand-sub {
  display: block;
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--c-terracotta);
  margin-top: 3px;
}

.clay-nav .nav-link {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--c-charcoal);
  padding: 8px 16px !important;
  letter-spacing: 0.02em;
  position: relative;
  transition: var(--transition);
}
.clay-nav .nav-link:hover,
.clay-nav .nav-link.active {
  color: var(--c-terracotta);
}
.clay-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 20px;
  height: 2px;
  background-color: var(--c-terracotta);
  transition: transform 0.25s ease;
  border-radius: 2px;
}
.clay-nav .nav-link:hover::after,
.clay-nav .nav-link.active::after {
  transform: translateX(-50%) scaleX(1);
}

/* Dropdown Menu */
.dropdown-menu-clay {
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-sm);
  background-color: var(--c-surface);
  padding: 12px 0;
  margin-top: 10px;
  animation: dropdownFadeIn 0.2s ease;
}

@keyframes dropdownFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.dropdown-menu-clay .dropdown-item {
  font-size: 13px;
  padding: 8px 20px;
  color: var(--c-charcoal-soft);
  transition: var(--transition);
  font-weight: 500;
}
.dropdown-menu-clay .dropdown-item:hover {
  background-color: var(--c-surface-soft);
  color: var(--c-terracotta);
  padding-left: 24px;
}
.dropdown-header-clay {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 700;
  color: var(--c-clay-dark);
  padding: 6px 20px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.header-action-btn {
  position: relative;
  background: none;
  border: none;
  padding: 7px;
  color: var(--c-charcoal);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  border-radius: var(--radius-sm);
}
.header-action-btn:hover {
  color: var(--c-terracotta);
  background-color: var(--c-surface-soft);
}

.header-badge {
  position: absolute;
  top: -2px;
  right: -3px;
  background-color: var(--c-terracotta);
  color: #FFF;
  font-size: 10px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #FFFFFF;
}

.header-avatar-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--c-terracotta);
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   PRODUCT CARDS (2026 EDITORIAL LIFESTYLE COMMERCE)
   ========================================================================== */
.product-card {
  background-color: var(--c-surface-card);
  border: 1px solid var(--c-border-light);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  border-color: var(--c-border);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.product-image-wrapper {
  position: relative;
  background-color: var(--c-surface-soft);
  aspect-ratio: 1 / 1.15;
  overflow: hidden;
  display: block;
}
.product-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}
.product-image-wrapper .img-hover {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
}
.product-card:hover .product-image-wrapper .img-main {
  transform: scale(1.05);
}
.product-card:hover .product-image-wrapper .img-hover {
  opacity: 1;
  transform: scale(1.05);
}

.product-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 2;
}

/* Floating Action Dock */
.product-actions-hover {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 3;
}
.product-card:hover .product-actions-hover {
  opacity: 1;
  transform: translateY(0);
}

.btn-card-action {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--c-border);
  color: var(--c-charcoal);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: var(--transition);
  cursor: pointer;
}
.btn-card-action:hover {
  background-color: var(--c-terracotta);
  color: #FFFFFF;
  border-color: var(--c-terracotta);
  transform: translateY(-2px);
}
.btn-card-action.active-wishlist {
  background-color: #FDF0ED;
  color: var(--c-terracotta);
  border-color: var(--c-terracotta);
}

.product-card-body {
  padding: 16px 16px 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.product-category-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-bottom: 5px;
}
.product-title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--c-charcoal);
  line-height: 1.3;
  margin-bottom: 8px;
  transition: var(--transition);
}
.product-title:hover {
  color: var(--c-terracotta);
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #D9882F;
  margin-bottom: 10px;
}
.product-rating .rating-count {
  color: var(--c-muted);
  font-size: 11px;
  margin-left: 2px;
}

.product-price-box {
  margin-top: auto;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.current-price {
  font-size: 17px;
  font-weight: 700;
  color: var(--c-charcoal);
}
.old-price {
  font-size: 13px;
  color: var(--c-muted-light);
  text-decoration: line-through;
}

/* Category Card */
.category-card {
  position: relative;
  background-color: var(--c-surface-soft);
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: block;
  border: 1px solid var(--c-border);
  transition: var(--transition);
}
.category-card:hover {
  border-color: var(--c-terracotta);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.category-card-img {
  aspect-ratio: 1 / 1.25;
  overflow: hidden;
}
.category-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s ease;
}
.category-card:hover .category-card-img img {
  transform: scale(1.06);
}
.category-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 20px;
  background: linear-gradient(to top, rgba(32, 29, 26, 0.88) 0%, rgba(32, 29, 26, 0.45) 60%, transparent 100%);
  color: #FAF6F0;
  transition: var(--transition);
}
.category-card-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  color: #FAF6F0;
  margin-bottom: 3px;
}
.category-card-count {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-sand);
}

/* ==========================================================================
   HERO & BANNERS
   ========================================================================== */
.hero-ceramic {
  background-color: var(--c-surface-soft);
  position: relative;
  overflow: hidden;
  padding: 64px 0 88px;
  border-bottom: 1px solid var(--c-border);
}
.hero-title {
  font-size: clamp(38px, 5.2vw, 68px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--c-clay-dark);
}
.hero-description {
  font-size: clamp(15px, 1.3vw, 17px);
  color: var(--c-muted);
  line-height: 1.7;
}

.hero-image-frame {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 1 / 1.05;
}
.hero-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-badge-float {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-md);
}

/* Page Hero Header */
.page-hero {
  background-color: var(--c-surface-soft);
  padding: 48px 0;
  border-bottom: 1px solid var(--c-border);
  text-align: center;
}
.page-hero-title {
  font-size: clamp(32px, 4vw, 48px);
  margin-bottom: 10px;
  font-weight: 700;
}

.breadcrumb-clay {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 13px;
  color: var(--c-muted);
}
.breadcrumb-clay a {
  color: var(--c-muted);
}
.breadcrumb-clay a:hover {
  color: var(--c-terracotta);
}
.breadcrumb-clay .active {
  color: var(--c-charcoal);
  font-weight: 600;
}

/* ==========================================================================
   MINI CART DRAWER & OFFCANVAS
   ========================================================================== */
.offcanvas-clay {
  background-color: var(--c-bg);
  border-left: 1px solid var(--c-border);
  box-shadow: var(--shadow-lg);
}
.offcanvas-clay .offcanvas-header {
  border-bottom: 1px solid var(--c-border);
  padding: 20px 24px;
}

.free-shipping-bar {
  background-color: var(--c-surface);
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--c-border);
}
.free-shipping-progress {
  height: 6px;
  background-color: var(--c-surface-soft);
  border-radius: var(--radius-pill);
  overflow: hidden;
  margin-top: 8px;
}
.free-shipping-progress-fill {
  height: 100%;
  background-color: var(--c-terracotta);
  border-radius: var(--radius-pill);
  transition: width 0.4s ease;
}

.mini-cart-item {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--c-border-light);
}
.mini-cart-img {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background-color: var(--c-surface-soft);
  flex-shrink: 0;
  border: 1px solid var(--c-border-light);
}
.mini-cart-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Quantity Stepper */
.quantity-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  background-color: var(--c-surface);
  overflow: hidden;
}
.quantity-btn {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: var(--c-charcoal);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}
.quantity-btn:hover {
  background-color: var(--c-surface-soft);
  color: var(--c-terracotta);
}
.quantity-input {
  width: 38px;
  height: 32px;
  border: none;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  background: transparent;
  color: var(--c-charcoal);
  padding: 0;
}
.quantity-input:focus {
  outline: none;
}

/* ==========================================================================
   FORMS & INPUTS
   ========================================================================== */
.form-control-clay,
.form-select-clay {
  background-color: var(--c-surface);
  border: 1px solid var(--c-border);
  color: var(--c-charcoal);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 14px;
  transition: var(--transition);
}
.form-control-clay:focus,
.form-select-clay:focus {
  background-color: #FFFFFF;
  border-color: var(--c-terracotta);
  box-shadow: 0 0 0 3px var(--c-terracotta-glow);
  outline: none;
}

.form-check-clay .form-check-input {
  border-color: var(--c-border);
  border-radius: 4px;
}
.form-check-clay .form-check-input:checked {
  background-color: var(--c-terracotta);
  border-color: var(--c-terracotta);
}

/* ==========================================================================
   TOASTS & ALERTS
   ========================================================================== */
.clay-toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1090;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.clay-toast {
  background-color: var(--c-clay-dark);
  color: #FAF6F0;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  border-left: 3px solid var(--c-terracotta);
  animation: toastSlideUp 0.3s ease;
  max-width: 360px;
}
@keyframes toastSlideUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   MODALS (QUICK VIEW & LIVE SEARCH)
   ========================================================================== */
.modal-clay .modal-content {
  background-color: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.search-modal-box {
  max-width: 600px;
}

.product-gallery-main {
  aspect-ratio: 1 / 1.1;
  background-color: var(--c-surface-soft);
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--c-border);
}
.product-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb-gallery {
  display: flex;
  gap: 8px;
}
.thumb-item {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1.5px solid var(--c-border);
  cursor: pointer;
  background-color: var(--c-surface-soft);
  transition: var(--transition);
}
.thumb-item.active,
.thumb-item:hover {
  border-color: var(--c-terracotta);
}
.thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   ACCOUNT & DASHBOARD WIDGETS
   ========================================================================== */
.account-sidebar {
  background-color: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.account-user-card {
  padding: 24px;
  text-align: center;
  border-bottom: 1px solid var(--c-border);
  background-color: var(--c-surface-soft);
}
.account-user-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: var(--c-terracotta);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  margin: 0 auto 12px;
  border: 2px solid #FFFFFF;
  box-shadow: var(--shadow-sm);
}

.account-nav-list {
  list-style: none;
  padding: 8px 0;
  margin: 0;
}
.account-nav-list li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 500;
  color: var(--c-charcoal-soft);
  transition: var(--transition);
}
.account-nav-list li a:hover,
.account-nav-list li a.active {
  background-color: var(--c-surface-soft);
  color: var(--c-terracotta);
  border-left: 3px solid var(--c-terracotta);
  padding-left: 21px;
}

/* ==========================================================================
   FOOTER (EDITORIAL LUXURY)
   ========================================================================== */
.clay-footer {
  background-color: var(--c-clay-dark);
  color: #FAF6F0;
  padding: 80px 0 32px;
  border-top: 1px solid #3D322A;
}

.footer-newsletter-banner {
  background-color: var(--c-clay-deep);
  border: 1px solid #44372F;
  border-radius: var(--radius-sm);
  padding: 40px;
  margin-bottom: 60px;
}

.footer-widget-title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  color: #FAF6F0;
  margin-bottom: 20px;
  letter-spacing: 0.04em;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li {
  margin-bottom: 10px;
}
.footer-links a {
  color: #C7BFB6;
  font-size: 14px;
  transition: var(--transition);
}
.footer-links a:hover {
  color: var(--c-terracotta);
  padding-left: 4px;
}

.footer-social-links {
  display: flex;
  gap: 10px;
}
.footer-social-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid #483C34;
  background-color: #352B23;
  color: #C7BFB6;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.footer-social-btn:hover {
  background-color: var(--c-terracotta);
  border-color: var(--c-terracotta);
  color: #FFF;
}

.footer-bottom {
  border-top: 1px solid #3E332B;
  padding-top: 28px;
  margin-top: 40px;
  font-size: 13px;
  color: #A9A097;
}
.footer-bottom a {
  color: #A9A097;
}
.footer-bottom a:hover {
  color: #FFFFFF;
}

/* Back to Top */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--c-clay-dark);
  color: #FAF6F0;
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  z-index: 1000;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  background-color: var(--c-terracotta);
  border-color: var(--c-terracotta);
  color: #FFFFFF;
  transform: translateY(-2px);
}

/* ==========================================================================
   COLOR, CONTRAST & THEME LEGIBILITY FIXES
   ========================================================================== */
.text-muted {
  color: var(--c-muted) !important;
}
.text-warning {
  color: #D97706 !important; /* Rich amber with strong visibility */
}
.text-success {
  color: #2E7D32 !important;
}
.text-danger {
  color: #C2410C !important;
}
.text-light {
  color: #FAF6F0 !important;
}

/* Badge Contrast Overrides */
.badge.bg-danger {
  background-color: #B23B3B !important;
  color: #FFFFFF !important;
}
.badge.bg-success {
  background-color: #2E7D32 !important;
  color: #FFFFFF !important;
}
.badge.bg-warning {
  background-color: #D97706 !important;
  color: #FFFFFF !important;
}
.badge.bg-success-subtle {
  background-color: #EBF5EA !important;
  color: #2D7A37 !important;
  border: 1px solid rgba(45, 122, 55, 0.25) !important;
}
.badge.bg-danger-subtle {
  background-color: #FDF2F2 !important;
  color: #B23B3B !important;
  border: 1px solid rgba(178, 59, 59, 0.25) !important;
}
.badge.bg-warning-subtle {
  background-color: #FEF8ED !important;
  color: #B45309 !important;
  border: 1px solid rgba(180, 83, 9, 0.25) !important;
}

/* Status Badges for Orders & Account */
.badge-status-delivered {
  background-color: #EBF5EA;
  color: #2D7A37;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(45, 122, 55, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.badge-status-processing {
  background-color: #FEF8ED;
  color: #B45309;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(180, 83, 9, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.badge-status-shipped {
  background-color: #EEF4FF;
  color: #2563EB;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(37, 99, 235, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.badge-status-cancelled {
  background-color: #FDF2F2;
  color: #B23B3B;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(178, 59, 59, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.badge-status-default {
  background-color: var(--c-surface-soft);
  color: var(--c-charcoal-soft);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--c-border);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ==========================================================================
   TABLES & ORDER SUMMARIES
   ========================================================================== */
.table {
  color: var(--c-charcoal);
  border-color: var(--c-border);
  --bs-table-bg: transparent;
  --bs-table-color: var(--c-charcoal);
  vertical-align: middle;
}
.table th {
  color: var(--c-charcoal);
  font-weight: 600;
  border-color: var(--c-border);
  background-color: transparent;
}
.table td {
  color: var(--c-charcoal);
  border-color: var(--c-border);
  background-color: transparent;
}
.table-cart th {
  font-family: var(--font-serif);
  font-size: 14px;
  padding: 14px 16px;
  background-color: var(--c-surface-soft);
  border-bottom: 1px solid var(--c-border);
}
.table-cart td {
  padding: 18px 16px;
  border-bottom: 1px solid var(--c-border);
}

.cart-order-summary {
  background-color: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  padding: 24px;
}

/* ==========================================================================
   PAYMENT OPTION CARDS (CHECKOUT)
   ========================================================================== */
.payment-option-card {
  background-color: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  padding: 16px;
  transition: var(--transition);
  cursor: pointer;
}
.payment-option-card:hover {
  border-color: var(--c-charcoal-soft);
}
.payment-option-card.active {
  border-color: var(--c-terracotta);
  background-color: #FFFDFB;
  box-shadow: 0 2px 8px rgba(196, 90, 51, 0.08);
}
.payment-details-pane {
  border-top: 1px dashed var(--c-border);
  padding-top: 12px;
  margin-top: 12px;
}

/* ==========================================================================
   ORDER PROGRESS TRACKER TIMELINE
   ========================================================================== */
.order-timeline {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
  margin: 24px 0 16px;
}
.order-timeline::before {
  content: '';
  position: absolute;
  top: 18px;
  left: 28px;
  right: 28px;
  height: 2px;
  background-color: var(--c-border);
  z-index: 1;
}
.timeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
  text-align: center;
  flex: 1;
}
.step-dot {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: var(--c-surface);
  border: 2px solid var(--c-border);
  color: var(--c-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  margin-bottom: 8px;
  transition: var(--transition);
}
.timeline-step.completed .step-dot {
  background-color: var(--c-terracotta);
  border-color: var(--c-terracotta);
  color: #FFFFFF;
}
.timeline-step.active .step-dot {
  background-color: var(--c-surface);
  border-color: var(--c-terracotta);
  color: var(--c-terracotta);
  font-weight: 700;
  box-shadow: 0 0 0 4px var(--c-terracotta-glow);
}
.step-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--c-charcoal);
  line-height: 1.3;
}

/* ==========================================================================
   GENERIC CERAMIC CARD (EDITORIAL, BLOG & COLLECTIONS)
   ========================================================================== */
.card-ceramic {
  background-color: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: var(--transition);
}
.card-ceramic:hover {
  transform: translateY(-4px);
  border-color: var(--c-border-strong);
  box-shadow: var(--shadow-md);
}

/* ==========================================================================
   ACCORDION CLAY (FAQ & GUIDES)
   ========================================================================== */
.accordion-clay .accordion-item {
  background-color: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
}
.accordion-clay .accordion-button {
  background-color: var(--c-surface);
  color: var(--c-charcoal);
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  padding: 16px 20px;
  box-shadow: none !important;
  border: none;
}
.accordion-clay .accordion-button:not(.collapsed) {
  background-color: var(--c-surface-soft);
  color: var(--c-terracotta);
}
.accordion-clay .accordion-button:focus {
  box-shadow: none;
  border-color: var(--c-terracotta);
}
.accordion-clay .accordion-body {
  background-color: var(--c-surface);
  color: var(--c-muted);
  font-size: 14px;
  line-height: 1.7;
  padding: 18px 20px;
  border-top: 1px solid var(--c-border);
}

/* ==========================================================================
   NAV TABS CLAY (PRODUCT DETAILS)
   ========================================================================== */
.clay-nav-tabs {
  border-bottom: 1px solid var(--c-border);
  gap: 8px;
}
.clay-nav-tabs .nav-link {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--c-muted);
  border: none;
  border-bottom: 2px solid transparent;
  padding: 12px 20px;
  background: transparent;
  transition: var(--transition);
}
.clay-nav-tabs .nav-link:hover {
  color: var(--c-charcoal);
  border-bottom-color: var(--c-border-strong);
}
.clay-nav-tabs .nav-link.active {
  color: var(--c-terracotta);
  border-bottom-color: var(--c-terracotta);
  background: transparent;
}

/* ==========================================================================
   SHOP SIDEBAR & FILTERS
   ========================================================================== */
.shop-sidebar {
  background-color: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  padding: 24px;
}
.filter-widget {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--c-border-light);
}
.filter-widget:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}
.filter-widget-title {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--c-charcoal);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}
.filter-category-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: 14px;
  color: var(--c-charcoal-soft);
  cursor: pointer;
  transition: var(--transition);
}
.filter-category-item:hover,
.filter-category-item.active {
  color: var(--c-terracotta);
  font-weight: 600;
}
.color-swatch-filter {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--c-surface);
  box-shadow: 0 0 0 1px var(--c-border);
  cursor: pointer;
  transition: var(--transition);
  display: inline-block;
}
.color-swatch-filter:hover,
.color-swatch-filter.active {
  box-shadow: 0 0 0 2px var(--c-terracotta);
  transform: scale(1.1);
}

/* ==========================================================================
   PAGINATION CLAY
   ========================================================================== */
.pagination {
  gap: 4px;
}
.pagination .page-link {
  color: var(--c-charcoal);
  background-color: var(--c-surface);
  border: 1px solid var(--c-border);
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  box-shadow: none;
}
.pagination .page-link:hover {
  background-color: var(--c-surface-soft);
  color: var(--c-terracotta);
  border-color: var(--c-terracotta);
}
.pagination .page-item.active .page-link {
  background-color: var(--c-terracotta) !important;
  border-color: var(--c-terracotta) !important;
  color: #FFFFFF !important;
}
.pagination .page-item.disabled .page-link {
  color: var(--c-muted-light);
  background-color: var(--c-surface-soft);
  border-color: var(--c-border);
  opacity: 0.6;
}

/* Hover background utility */
.hover-bg-light:hover {
  background-color: var(--c-surface-soft) !important;
}

/* Input group addon styles */
.input-group-text {
  background-color: var(--c-surface-soft);
  border-color: var(--c-border);
  color: var(--c-muted);
}

/* Clay Footer text legibility overrides on dark background */
.clay-footer p,
.clay-footer .text-muted,
.clay-footer .small.text-muted {
  color: #C7BFB6 !important;
}
.clay-footer .text-muted a,
.clay-footer a.text-muted {
  color: #C7BFB6 !important;
}
.clay-footer .text-muted a:hover,
.clay-footer a.text-muted:hover {
  color: #FFFFFF !important;
}
.footer-links li a {
  color: #C7BFB6;
}
.footer-links li a:hover {
  color: #FFFFFF;
}
.footer-bottom {
  color: #C7BFB6;
}
.footer-bottom .text-muted {
  color: #C7BFB6 !important;
}
.footer-bottom a {
  color: #C7BFB6;
}
.footer-bottom a:hover {
  color: #FFFFFF;
}

/* ==========================================================================
   RESPONSIVE ADJUSTMENTS
   ========================================================================== */
@media (max-width: 991.98px) {
  .hero-ceramic {
    padding: 40px 0 60px;
  }
  .footer-newsletter-banner {
    padding: 28px 20px;
  }
}

@media (max-width: 575.98px) {
  .header-actions {
    gap: 8px;
  }
  .product-actions-hover {
    opacity: 1;
    transform: translateY(0);
    bottom: 8px;
  }
  .btn-card-action {
    width: 34px;
    height: 34px;
  }
}
