/*
Theme Name: HRK Janasya Theme
Theme URI: https://trendskartindia.store
Author: Antigravity Team
Description: A premium, WooCommerce-compatible WordPress theme replicating the elegant design layout of Janasya.com.
Version: 1.0.0
Text Domain: hrk-janasya
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  /* Colors - Janasya brand colors (Blush Pink, Champagne Cream, Sand, Dark Charcoal) */
  --primary: #1a1a1a;
  --text-dark: #2c2c2c;
  --text-muted: #666666;
  --bg-cream: #faf7f5;
  --bg-white: #ffffff;
  --border-light: #e8e2dd;
  --success: #2e7d32;
  
  /* Janasya Brand Palette Accents */
  --accent-blush: #e5b0a3; /* Primary Peach Pink */
  --accent-rose: #d39d90; /* Darker blush rose */
  --accent-gold: #cfab60; /* Warm Gold */
  --accent-mint: #e2f0d9; /* Pastel green */
  
  /* Fonts */
  --font-display: 'Playfair Display', serif;
  --font-sans: 'Outfit', sans-serif;
  
  /* Shadows & Radius */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 12px 30px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.1);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-circle: 50%;
  
  /* Transitions */
  --transition-fast: 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-smooth: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base Elements */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  outline: none;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-white);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

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

ul {
  list-style: none;
}

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

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

/* Announcement Top Bar */
.announcement-bar {
  background-color: var(--accent-blush);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-align: center;
  padding: 0.5rem 1rem;
  position: relative;
  z-index: 101;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 34px;
  overflow: hidden;
}

.announcement-text {
  animation: announcementFade 6s infinite;
}

@keyframes announcementFade {
  0%, 45% { opacity: 1; transform: translateY(0); }
  50%, 95% { opacity: 0; transform: translateY(-10px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Sticky Header */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background-color: var(--bg-white);
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-smooth);
}

.site-header.header-hidden {
  transform: translateY(-100%);
}

.header-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0.6rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.logo-image {
  height: 52px;
  width: auto;
  object-fit: contain;
}

/* Navigation & Dropdowns */
.main-nav .nav-list {
  display: flex;
  gap: 2rem;
}

.nav-item {
  position: relative;
  padding: 1.2rem 0;
}

.nav-link {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-dark);
  transition: color var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.nav-link svg {
  width: 12px;
  height: 12px;
  transition: transform var(--transition-fast);
}

.nav-item:hover .nav-link {
  color: var(--accent-rose);
}

.nav-item:hover .nav-link svg {
  transform: rotate(180deg);
}

/* Dropdown absolute overlay menu */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(15px);
  background-color: var(--bg-white);
  min-width: 220px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 1.2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
  z-index: 105;
}

.nav-item:hover .dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.dropdown-link {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.5rem 0.8rem;
  color: var(--text-muted);
  border-radius: 4px;
  transition: all var(--transition-fast);
}

.dropdown-link:hover {
  background-color: var(--bg-cream);
  color: var(--accent-rose);
  padding-left: 1.2rem;
}

/* Toggleable Dropdown Search Bar */
.header-search-bar {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: var(--bg-white);
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
  padding: 0;
  height: 0;
  overflow: hidden;
  opacity: 0;
  transition: height var(--transition-smooth), padding var(--transition-smooth), opacity var(--transition-fast);
  z-index: 99;
}

.header-search-bar.active {
  height: 64px;
  padding: 0.8rem 2rem;
  opacity: 1;
}

.search-inner-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  position: relative;
}

.search-inner-container svg {
  position: absolute;
  left: 1rem;
  color: var(--text-muted);
}

.header-search-input {
  width: 100%;
  border: 1px solid var(--border-light);
  border-radius: 30px;
  padding: 0.6rem 1rem 0.6rem 2.8rem;
  font-size: 0.9rem;
  background-color: var(--bg-cream);
  transition: border-color var(--transition-fast), background-color var(--transition-fast);
}

.header-search-input:focus {
  border-color: var(--accent-rose);
  background-color: var(--bg-white);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.action-btn {
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  color: var(--text-dark);
  transition: color var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem;
}

.action-btn svg {
  width: 22px;
  height: 22px;
  stroke-width: 1.5;
}

.action-btn:hover {
  color: var(--accent-rose);
}

.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background-color: var(--accent-rose);
  color: var(--bg-white);
  font-size: 0.7rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: var(--radius-circle);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Category Circles Layout */
.categories-circles-section {
  max-width: 1440px;
  margin: 3rem auto 2rem auto;
  padding: 0 2rem;
}

.categories-scroll-wrapper {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  overflow-x: auto;
  padding: 1rem 0;
}

.category-circle-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  flex-shrink: 0;
  width: 110px;
}

.circle-img-wrapper {
  width: 100px;
  height: 100px;
  border-radius: var(--radius-circle);
  overflow: hidden;
  border: 2px solid var(--border-light);
  margin-bottom: 0.8rem;
  transition: transform var(--transition-smooth), border-color var(--transition-fast);
  background-color: var(--bg-cream);
}

.circle-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.category-circle-item:hover .circle-img-wrapper {
  transform: scale(1.05);
  border-color: var(--accent-rose);
}

.category-circle-item:hover .circle-img {
  transform: scale(1.1);
}

.circle-title {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-dark);
  transition: color var(--transition-fast);
}

.category-circle-item:hover .circle-title {
  color: var(--accent-rose);
}

/* Collection Banners Grid */
.collection-banners-section {
  max-width: 1440px;
  margin: 2rem auto 4rem auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.banner-card {
  position: relative;
  aspect-ratio: 16/10;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
}

.banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0,0,0,0.1), rgba(0,0,0,0.4));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.8rem;
  color: var(--bg-white);
  transition: background var(--transition-fast);
}

.banner-card:hover .banner-img {
  transform: scale(1.05);
}

.banner-tag {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-blush);
  margin-bottom: 0.4rem;
}

.banner-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 1.2;
}

/* E-Commerce Catalog Layout */
.catalog-section {
  max-width: 1440px;
  margin: 3rem auto;
  padding: 0 2rem;
}

.catalog-header {
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 1rem;
  margin-bottom: 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.catalog-title {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 500;
}

.catalog-meta {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.catalog-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2.5rem;
  align-items: flex-start;
}

/* Filter Sidebar */
.filters-sidebar {
  background-color: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.8rem;
  position: sticky;
  top: 90px;
}

.filter-group {
  margin-bottom: 1.8rem;
}

.filter-group:not(:last-child) {
  border-bottom: 1px solid #f6f0eb;
  padding-bottom: 1.5rem;
}

.filter-title {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.category-option {
  margin-bottom: 0.5rem;
}

.filter-checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.9rem;
  color: var(--text-dark);
  cursor: pointer;
  user-select: none;
}

.filter-checkbox {
  appearance: none;
  width: 16px;
  height: 16px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  cursor: pointer;
  position: relative;
}

.filter-checkbox:checked {
  background-color: var(--accent-rose);
  border-color: var(--accent-rose);
}

.filter-checkbox:checked::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 6px;
  width: 3px;
  height: 6px;
  border: solid var(--bg-white);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Sizes Grid Filters */
.sizes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.4rem;
}

.size-chip {
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.size-chip.selected {
  background-color: var(--primary);
  color: var(--bg-white);
  border-color: var(--primary);
}

.size-chip:hover:not(.selected) {
  border-color: var(--accent-rose);
  color: var(--accent-rose);
}

/* Price Range Slider */
.price-slider-wrapper {
  margin-top: 0.5rem;
}

.range-values {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
  font-weight: 500;
}

.price-range-input {
  width: 100%;
  accent-color: var(--accent-rose);
  cursor: pointer;
}

.reset-filters-btn {
  width: 100%;
  padding: 0.75rem;
  background-color: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.reset-filters-btn:hover {
  background-color: var(--primary);
  color: var(--bg-white);
}

/* WOOCOMMERCE COMPATIBILITY HOOKS */
.woocommerce ul.products,
.products-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 1.8rem !important;
  padding: 0 !important;
  margin: 0 !important;
  list-style: none !important;
}

.woocommerce ul.products li.product,
.product-card {
  background-color: var(--bg-white) !important;
  border: 1px solid var(--border-light) !important;
  border-radius: var(--radius-md) !important;
  overflow: hidden !important;
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth) !important;
  margin: 0 !important;
  padding: 0 !important;
  
  /* CRITICAL OVERRIDES FOR WOOCOMMERCE DEFAULT FLOATS AND WIDTHS */
  width: 100% !important;
  float: none !important;
  clear: none !important;
}

.woocommerce ul.products li.product:hover,
.product-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: var(--shadow-md) !important;
}

.woocommerce span.onsale,
.product-badge {
  position: absolute !important;
  top: 0.8rem !important;
  left: 0.8rem !important;
  background-color: var(--accent-rose) !important;
  color: var(--bg-white) !important;
  font-size: 0.7rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  padding: 0.25rem 0.7rem !important;
  border-radius: 30px !important;
  z-index: 10 !important;
  min-height: auto !important;
  min-width: auto !important;
  line-height: 1.4 !important;
}

.product-fav-btn {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-circle);
  background-color: var(--bg-white);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: var(--shadow-sm);
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.product-fav-btn svg {
  width: 16px;
  height: 16px;
  fill: transparent;
  stroke: currentColor;
  stroke-width: 2;
}

.product-fav-btn.active svg {
  fill: #d32f2f;
  stroke: #d32f2f;
}

/* Image Wrapper */
.product-image-wrapper {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background-color: var(--bg-cream);
  cursor: pointer;
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth), opacity var(--transition-smooth);
}

.product-img.img-hover {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transform: scale(1.02);
}

.product-card:hover .product-img.img-primary {
  opacity: 0;
}

.product-card:hover .product-img.img-hover {
  opacity: 1;
  transform: scale(1);
}

/* Quick Add drawer */
.product-size-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(4px);
  padding: 0.8rem;
  transform: translateY(100%);
  transition: transform var(--transition-smooth);
  z-index: 12;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.product-card:hover .product-size-overlay {
  transform: translateY(0);
}

.size-overlay-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.size-chips-row {
  display: flex;
  gap: 0.4rem;
  justify-content: center;
  width: 100%;
}

.size-quick-chip {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-circle);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  background-color: var(--bg-white);
  transition: all var(--transition-fast);
}

.size-quick-chip:hover {
  background-color: var(--primary);
  color: var(--bg-white);
  border-color: var(--primary);
}

/* Titles */
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.product-name {
  font-family: var(--font-sans) !important;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  margin: 0.5rem 0 !important;
  color: var(--text-dark) !important;
  cursor: pointer !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  height: 2.6rem !important;
}

.product-name:hover {
  color: var(--accent-rose);
}

/* Star Rating */
.woocommerce .star-rating,
.product-rating {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-bottom: 0.8rem;
}

.stars {
  display: flex;
  color: #ffb300;
}

.stars svg {
  width: 12px;
  height: 12px;
}

.review-count {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Pricing hooks */
.woocommerce ul.products li.product .price,
.product-pricing {
  display: flex !important;
  align-items: center !important;
  gap: 0.8rem !important;
  margin-top: auto !important;
  font-size: 1.1rem !important;
  color: var(--primary) !important;
}

.woocommerce ul.products li.product .price ins,
.price-current {
  font-weight: 700 !important;
  color: var(--primary) !important;
  text-decoration: none !important;
}

.woocommerce ul.products li.product .price del,
.price-original {
  font-size: 0.9rem !important;
  color: var(--text-muted) !important;
  text-decoration: line-through !important;
}

.price-discount {
  font-size: 0.75rem;
  font-weight: 700;
  color: #c62828;
  background-color: #ffebee;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
}

/* Hero Slider */
.hero-slider {
  height: 70vh;
  position: relative;
  background-color: var(--bg-cream);
  overflow: hidden;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  display: flex;
  align-items: center;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

.slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center top;
}

.slide-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  padding: 0 8%;
  color: var(--text-dark);
}

.slide-tagline {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent-rose);
  margin-bottom: 0.8rem;
  display: inline-block;
}

.slide-title {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 500;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.slide-desc {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 450px;
}

.slide-btn {
  background-color: var(--primary);
  color: var(--bg-white);
  padding: 0.9rem 2.2rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: background-color var(--transition-fast);
}

.slide-btn:hover {
  background-color: var(--accent-rose);
}

.slider-dots {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.6rem;
  z-index: 5;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-circle);
  background-color: rgba(0, 0, 0, 0.15);
  border: none;
  cursor: pointer;
}

.slider-dot.active {
  background-color: var(--primary);
  width: 20px;
  border-radius: 4px;
}

/* Drawer Modals styling */
.cart-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(3px);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-smooth);
}

.cart-drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 420px;
  max-width: 100%;
  height: 100%;
  background-color: var(--bg-white);
  z-index: 201;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--transition-smooth);
}

.cart-drawer.active {
  transform: translateX(0);
}

.cart-header {
  padding: 1.2rem 1.8rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-title {
  font-size: 1.15rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.cart-close-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  display: flex;
}

.cart-items-wrapper {
  flex-grow: 1;
  overflow-y: auto;
  padding: 1.8rem;
}

/* Cart Item card */
.cart-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.2rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--bg-cream);
}

.cart-item-img-wrapper {
  width: 70px;
  aspect-ratio: 3/4;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background-color: var(--bg-cream);
}

.cart-item-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-info {
  flex-grow: 1;
}

.cart-item-name {
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.2rem;
}

.cart-item-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

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

.quantity-controller {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
}

.qty-btn {
  background: none;
  border: none;
  width: 26px;
  height: 26px;
  cursor: pointer;
  font-size: 0.9rem;
}

.qty-value {
  width: 24px;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
}

.cart-item-price {
  font-size: 0.9rem;
  font-weight: 700;
}

.cart-item-delete {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--transition-fast);
}

.cart-item-delete:hover {
  color: #c62828;
}

/* Cart Footer */
.cart-footer {
  padding: 1.5rem 1.8rem;
  background-color: var(--bg-cream);
  border-top: 1px solid var(--border-light);
}

.coupon-section {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.coupon-input {
  flex-grow: 1;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.8rem;
  font-size: 0.8rem;
}

.coupon-btn {
  background-color: var(--primary);
  color: var(--bg-white);
  border: none;
  padding: 0 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.cart-summary-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.cart-summary-line.total {
  font-size: 1.15rem;
  font-weight: 700;
  border-top: 1px solid var(--border-light);
  padding-top: 0.8rem;
  margin-top: 0.8rem;
}

.checkout-btn {
  width: 100%;
  background-color: var(--primary);
  color: var(--bg-white);
  border: none;
  padding: 0.9rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-color var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 1rem;
}

.checkout-btn:hover {
  background-color: var(--accent-rose);
}

/* Modals general */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(3px);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-smooth);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  background-color: var(--bg-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  width: 850px;
  max-width: 95%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.95);
  transition: transform var(--transition-smooth);
}

.modal-overlay.active .modal-container {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-circle);
  border: 1px solid var(--border-light);
  background-color: var(--bg-white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background-color: var(--primary);
  color: var(--bg-white);
}

.detail-modal-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.detail-gallery {
  background-color: var(--bg-cream);
  padding: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  border-right: 1px solid var(--border-light);
}

.detail-main-img-wrapper {
  aspect-ratio: 3/4;
  width: 100%;
  max-width: 340px;
  overflow: hidden;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.detail-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-content {
  padding: 2.5rem;
}

.detail-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-rose);
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
  display: inline-block;
}

.detail-title {
  font-family: var(--font-sans);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  color: var(--text-dark);
}

.detail-pricing {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.detail-price-current {
  font-size: 1.5rem;
  font-weight: 700;
}

.detail-price-original {
  font-size: 1.1rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.detail-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.detail-size-section {
  margin-bottom: 1.5rem;
}

.detail-size-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.6rem;
}

.detail-size-label, .size-chart-link {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}

.size-chart-link {
  color: var(--accent-rose);
  text-decoration: underline;
  cursor: pointer;
}

.size-error-msg {
  color: #c62828;
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 0.4rem;
  display: none;
}

.detail-actions {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.detail-qty-select {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.4rem;
}

.detail-qty-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  padding: 0.4rem;
}

.detail-qty-val {
  font-weight: 600;
  font-size: 0.85rem;
}

.detail-add-btn {
  background-color: var(--primary);
  color: var(--bg-white);
  border: none;
  padding: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.detail-add-btn:hover {
  background-color: var(--accent-rose);
}

.detail-specs {
  border-top: 1px solid var(--border-light);
  padding-top: 1.2rem;
}

.spec-row {
  display: flex;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
}

.spec-label {
  width: 100px;
  font-weight: 700;
}

.spec-val {
  color: var(--text-muted);
}

/* USP Trust Bar */
.trust-bar {
  background-color: var(--bg-cream);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding: 3rem 2rem;
  margin: 4rem 0;
}

.trust-container {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.trust-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 1rem;
}

.trust-item:not(:last-child) {
  border-right: 1px solid var(--border-light);
}

.trust-icon-wrapper {
  color: var(--accent-rose);
  margin-bottom: 1rem;
}

.trust-icon-wrapper svg {
  width: 32px;
  height: 32px;
}

.trust-title {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.4rem;
}

.trust-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  max-width: 220px;
}

/* Customer Testimonials */
.testimonials-section {
  max-width: 1000px;
  margin: 4rem auto;
  padding: 0 2rem;
  text-align: center;
}

.section-subtitle {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent-rose);
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 500;
  margin-bottom: 2.5rem;
}

.testimonial-card {
  background-color: var(--bg-white);
  padding: 2.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  max-width: 750px;
  margin: 0 auto;
}

.testimonial-stars {
  display: flex;
  justify-content: center;
  color: #ffb300;
  margin-bottom: 1rem;
}

.testimonial-stars svg {
  width: 18px;
  height: 18px;
}

.testimonial-text {
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.6;
  font-style: italic;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}

.testimonial-author {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Instagram Feed Gallery */
.insta-section {
  max-width: 1440px;
  margin: 5rem auto;
  padding: 0 2rem;
}

.insta-header {
  text-align: center;
  margin-bottom: 2rem;
}

.insta-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}

.insta-card {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
}

.insta-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.insta-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(26, 26, 26, 0.4);
  opacity: 0;
  transition: opacity var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-white);
}

.insta-overlay svg {
  width: 24px;
  height: 24px;
}

.insta-card:hover .insta-img {
  transform: scale(1.05);
}

.insta-card:hover .insta-overlay {
  opacity: 1;
}

/* Simulated Billing Modal */
.checkout-modal-container {
  width: 550px;
  max-width: 95%;
  padding: 2.5rem;
}

.checkout-steps {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2rem;
  position: relative;
}

.checkout-steps::before {
  content: '';
  position: absolute;
  top: 14px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--border-light);
  z-index: 1;
}

.step-node {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-circle);
  background-color: var(--bg-cream);
  border: 2px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  z-index: 2;
  position: relative;
  transition: all var(--transition-fast);
}

.step-node.active {
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--bg-white);
}

.step-node.completed {
  background-color: var(--success);
  border-color: var(--success);
  color: var(--bg-white);
}

.checkout-form-step {
  display: none;
}

.checkout-form-step.active {
  display: block;
}

.checkout-step-title {
  font-size: 1.15rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.2rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.form-group.full-width {
  grid-column: span 2;
}

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.form-control {
  width: 100%;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.9rem;
  font-size: 0.85rem;
  background-color: var(--bg-cream);
}

.form-control:focus {
  border-color: var(--accent-rose);
  background-color: var(--bg-white);
}

.form-buttons {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.form-btn {
  padding: 0.85rem 1.8rem;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.form-btn.back {
  background-color: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
}

.form-btn.back:hover {
  background-color: rgba(0, 0, 0, 0.03);
}

.form-btn.primary {
  background-color: var(--primary);
  border: none;
  color: var(--bg-white);
  flex-grow: 1;
}

.form-btn.primary:hover {
  background-color: var(--accent-rose);
}

.success-animation {
  text-align: center;
  padding: 1.5rem 0;
}

.success-icon-wrapper {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-circle);
  background-color: #e8f5e9;
  color: var(--success);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem auto;
}

.success-icon-wrapper svg {
  width: 38px;
  height: 38px;
}

.success-order-id {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* Confetti */
.confetti-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 10;
}

.confetti-particle {
  position: absolute;
  top: -10px;
  width: 6px;
  height: 6px;
  border-radius: var(--radius-circle);
  animation: fall linear forwards;
}

@keyframes fall {
  to { transform: translateY(105vh) rotate(360deg); }
}

/* Toast Alerts */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 400;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.toast {
  background-color: var(--primary);
  color: var(--bg-white);
  padding: 0.8rem 1.4rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  animation: slideUpFadeIn 0.3s forwards cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast-icon {
  color: var(--accent-blush);
  display: flex;
}

.toast-icon svg {
  width: 16px;
  height: 16px;
}

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

/* Footer Section */
.site-footer {
  background-color: #1a1a1a;
  color: #c8c8c8;
  padding: 4rem 2rem 2rem 2rem;
  border-top: 1px solid var(--border-light);
}

.footer-container {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 3.5rem;
  margin-bottom: 3.5rem;
}

.footer-logo {
  height: 48px;
  width: auto;
  filter: brightness(0) invert(1);
  margin-bottom: 1.2rem;
}

.footer-brand-desc {
  font-size: 0.85rem;
  color: #9c9c9c;
  margin-bottom: 1.2rem;
  line-height: 1.6;
}

.footer-socials {
  display: flex;
  gap: 0.8rem;
}

.social-link {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-circle);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c8c8c8;
  transition: all var(--transition-fast);
}

.social-link:hover {
  background-color: var(--bg-white);
  color: var(--primary);
}

.social-link svg {
  width: 16px;
  height: 16px;
}

.footer-title {
  color: var(--bg-white);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 1.2rem;
}

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-link {
  font-size: 0.85rem;
  color: #9c9c9c;
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--bg-white);
}

.newsletter-form {
  display: flex;
  margin-top: 0.8rem;
}

.newsletter-input {
  flex-grow: 1;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-right: none;
  background-color: rgba(255, 255, 255, 0.03);
  color: var(--bg-white);
  padding: 0.7rem 1rem;
  font-size: 0.8rem;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.newsletter-btn {
  background-color: var(--bg-white);
  color: var(--primary);
  border: none;
  padding: 0 1.2rem;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.newsletter-btn:hover {
  background-color: var(--accent-rose);
  color: var(--bg-white);
}

.newsletter-success {
  color: #81c784;
  font-size: 0.8rem;
  margin-top: 0.4rem;
  display: none;
}

.footer-bottom {
  max-width: 1440px;
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: #777777;
}

/* Responsiveness Media Queries */
@media (max-width: 1024px) {
  .woocommerce ul.products,
  .products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  
  .filters-sidebar {
    display: none;
  }
  
  .collection-banners-section {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .trust-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .trust-item:nth-child(2) {
    border-right: none;
  }
  
  .insta-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .footer-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
  
  .detail-modal-layout {
    grid-template-columns: 1fr;
  }
  
  .detail-gallery {
    border-right: none;
    border-bottom: 1px solid var(--border-light);
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  
  .search-inner-container {
    max-width: 90%;
  }
  
  .hero-slider {
    height: 50vh;
  }
  
  .slide-title {
    font-size: 2.2rem;
  }
  
  .categories-scroll-wrapper {
    justify-content: flex-start;
  }
  
  .woocommerce ul.products,
  .products-grid {
    grid-template-columns: 1fr !important;
  }
  
  .trust-container {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .trust-item {
    border-right: none !important;
    padding: 0;
  }
  
  .insta-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .checkout-modal-container {
    padding: 1.5rem;
  }
  
  .form-grid {
    grid-template-columns: 1fr;
  }
  
  .form-group.full-width {
    grid-column: span 1;
  }
}

/* ==========================================================================
   BULLETPROOF WOOCOMMERCE GRID RESET
   Overrides default WooCommerce float-based widths to ensure proper scaling
   inside our custom 3-column CSS Grid.
   ========================================================================== */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product,
.woocommerce ul.products[class*="columns-"] li.product,
.woocommerce-page ul.products[class*="columns-"] li.product,
ul.products li.product,
li.product.type-product,
.products-grid li.product,
#productsGrid li.product,
.product-card {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    float: none !important;
    clear: none !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

