/* 
========================================================================
   Civici - Global stylesheet
   Design Style: Premium, Minimalist, Fashion & Lifestyle E-Commerce
======================================================================== 
*/

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

/* --- Design Tokens --- */
:root {
  /* Color Palette */
  --color-primary: #121212;
  --color-primary-light: #2c2c2c;
  --color-secondary: #ffffff;
  --color-accent: #d97706; /* Premium Warm Gold/Amber */
  --color-accent-hover: #b45309;
  --color-accent-light: #fffbeb;
  --color-bg-light: #fafafa;
  --color-bg-white: #ffffff;
  --color-bg-dark: #111111;
  --color-border: #e5e7eb;
  --color-border-dark: #2d2d2d;
  --color-text-main: #262626;
  --color-text-muted: #737373;
  --color-text-light: #ffffff;
  
  /* Fonts */
  --font-heading: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Transitions & Shadows */
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-subtle: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 12px 30px -4px rgba(0, 0, 0, 0.12);
  --shadow-drawer: -10px 0 30px rgba(0, 0, 0, 0.15);
  
  /* Layout */
  --container-width: 1400px;
  --header-height: 80px;
}

/* --- Base Reset --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg-light);
  color: var(--color-text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-smooth);
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  border: none;
  background: none;
  outline: none;
}

button {
  cursor: pointer;
}

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

/* --- Typography Helpers --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 500;
  color: var(--color-primary);
  letter-spacing: -0.02em;
}

/* --- Layout Container --- */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* --- Header Section --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 100;
  display: flex;
  align-items: center;
  transition: var(--transition-smooth);
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-subtle);
  height: 70px;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--color-primary);
}

.logo span {
  color: var(--color-accent);
}

.site-header:not(.scrolled) .logo,
.site-header:not(.scrolled) .nav-link,
.site-header:not(.scrolled) .header-icon-btn {
  color: var(--color-text-light);
}

.site-header.scrolled .logo,
.site-header.scrolled .nav-link,
.site-header.scrolled .header-icon-btn {
  color: var(--color-primary);
}

/* Nav Menu */
.nav-menu {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

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

.header-icon-btn {
  font-size: 1.25rem;
  color: var(--color-primary);
  position: relative;
  padding: 0.5rem;
  transition: var(--transition-smooth);
}

.header-icon-btn:hover {
  color: var(--color-accent);
  transform: translateY(-2px);
}

.cart-badge {
  position: absolute;
  top: 0;
  right: 0;
  background-color: var(--color-accent);
  color: var(--color-text-light);
  font-size: 0.7rem;
  font-weight: 600;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hamburger Menu */
.mobile-toggle {
  display: none;
}

/* --- Hero Banner --- */
.hero-section {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-light);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 1;
  transform: scale(1.05);
  transition: transform 8s ease-out;
}

.hero-section:hover .hero-bg {
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.2) 60%, rgba(0,0,0,0.6) 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 800px;
  padding: 0 1.5rem;
}

.hero-title {
  font-size: 4rem;
  font-weight: 500;
  color: var(--color-text-light);
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.2s;
}

.hero-subtitle {
  font-size: 1.2rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2.5rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.4s;
}

.hero-btn {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.6s;
}

/* Dot indicators */
.hero-dots {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 0.75rem;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.hero-dot.active {
  background-color: var(--color-secondary);
  width: 24px;
  border-radius: 4px;
}

/* Button Component */
.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 0;
  transition: var(--transition-smooth);
  position: relative;
  z-index: 1;
}

.btn-outline {
  border: 1px solid var(--color-text-light);
  color: var(--color-text-light);
  background-color: transparent;
}

.btn-outline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-text-light);
  z-index: -1;
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.btn-outline:hover::before {
  transform: scaleY(1);
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-text-light);
  border: 1px solid var(--color-primary);
}

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

.btn-accent {
  background-color: var(--color-accent);
  color: var(--color-text-light);
  border: 1px solid var(--color-accent);
}

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

/* Flow border animated button */
.btn-flow {
  position: relative;
  overflow: hidden;
  border: none;
}

.btn-flow::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(transparent, rgba(255,255,255,0.3), transparent 30%);
  animation: borderFlow 4s linear infinite;
}

/* --- Features Row --- */
.features-section {
  background-color: var(--color-bg-dark);
  padding: 4rem 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.feature-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem;
  color: var(--color-text-light);
  transition: var(--transition-smooth);
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-icon-wrapper {
  margin-bottom: 1.25rem;
  color: var(--color-accent);
}

.feature-icon {
  width: 42px;
  height: 42px;
  stroke-width: 1.5;
}

.feature-title {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
  color: var(--color-text-light);
}

.feature-desc {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* --- Category Cards Row --- */
.categories-section {
  padding: 6rem 0;
}

.categories-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.category-card {
  height: 520px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.category-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.category-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(0,0,0,0.5) 100%);
  z-index: 2;
  transition: var(--transition-smooth);
}

.category-content {
  position: absolute;
  bottom: 3rem;
  left: 3rem;
  z-index: 3;
}

.category-title {
  font-size: 2.25rem;
  font-weight: 500;
  color: var(--color-text-light);
  margin-bottom: 0.75rem;
}

.category-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.category-link::after {
  content: '';
  width: 24px;
  height: 1px;
  background-color: var(--color-text-light);
  transition: var(--transition-smooth);
}

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

.category-card:hover .category-overlay {
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 40%, rgba(0,0,0,0.65) 100%);
}

.category-card:hover .category-link::after {
  width: 40px;
  background-color: var(--color-accent);
}

/* --- De-AI-fication Background Text Decors --- */
.section-wrapper-relative {
  position: relative;
  overflow: hidden;
}

.bg-watermark {
  position: absolute;
  font-family: var(--font-heading);
  font-size: 10vw;
  font-weight: 800;
  color: rgba(18, 18, 18, 0.02);
  line-height: 1;
  pointer-events: none;
  white-space: nowrap;
  user-select: none;
  z-index: 0;
}

.watermark-left {
  top: 10%;
  left: -5%;
}

.watermark-right {
  bottom: 10%;
  right: -5%;
}

/* --- Section Title Header --- */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
  z-index: 1;
}

.section-subtitle {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 600;
  display: inline-block;
  padding-bottom: 1rem;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background-color: var(--color-accent);
}

/* --- New Arrivals Grid --- */
.products-section {
  padding: 6rem 0;
  background-color: var(--color-bg-white);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
  z-index: 1;
}

/* Subtle grid layout asymmetrical shift for de-plagiarism visual style */
.product-grid.asymmetrical .product-card:nth-child(even) {
  margin-top: 15px;
}

.product-card {
  background-color: var(--color-bg-white);
  border-radius: 0;
  overflow: hidden;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.product-img-wrapper {
  position: relative;
  height: 380px;
  overflow: hidden;
  background-color: #f3f3f3;
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-badge-pill {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background-color: var(--color-accent-light);
  color: var(--color-accent);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

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

.product-actions-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem;
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.95) 80%);
  display: flex;
  justify-content: center;
  transform: translateY(100%);
  transition: var(--transition-smooth);
}

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

.product-details {
  padding: 1.5rem 0.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.product-price {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--color-accent);
}

.product-name {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-main);
  transition: var(--transition-smooth);
}

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

/* Dots slider pagination component (aesthetic only or dynamic in js) */
.slider-dots-container {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 3.5rem;
}

.slider-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-border);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.slider-dot.active {
  background-color: var(--color-accent);
  transform: scale(1.5);
}

/* --- Promo Banner (Mid Wide) --- */
.promo-banner-section {
  height: 600px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-light);
  overflow: hidden;
}

.promo-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-attachment: fixed; /* Parallax effect */
  background-size: cover;
  background-position: center;
  z-index: 1;
}

@media (max-width: 768px) {
  .promo-bg {
    background-attachment: scroll; /* Disable parallax on mobile */
  }
}

.promo-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.45);
  z-index: 2;
}

.promo-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 700px;
  padding: 2.5rem;
}

.promo-tagline {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-secondary);
  margin-bottom: 1.25rem;
}

.promo-title {
  font-size: 3.25rem;
  font-weight: 500;
  color: var(--color-text-light);
  margin-bottom: 2.25rem;
}

/* --- Latest News / Blog Section --- */
.blog-section {
  padding: 6rem 0;
  background-color: var(--color-bg-light);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.blog-card {
  background-color: var(--color-bg-white);
  border-radius: 0;
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
  transition: var(--transition-smooth);
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.blog-img-wrapper {
  height: 280px;
  overflow: hidden;
}

.blog-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.blog-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.blog-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.blog-meta-date {
  color: var(--color-text-muted);
}

.blog-title {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--color-primary);
  transition: var(--transition-smooth);
}

.blog-title:hover {
  color: var(--color-accent);
}

.blog-excerpt {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-btn {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-accent);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.blog-btn:hover {
  color: var(--color-primary);
  transform: translateX(3px);
}

/* --- Footer --- */
.site-footer {
  background-color: var(--color-bg-dark);
  color: var(--color-text-light);
  padding: 5rem 0 3rem;
  border-top: 1px solid var(--color-border-dark);
}

.footer-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 4rem;
}

.footer-logo {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  color: var(--color-text-light);
}

.footer-logo span {
  color: var(--color-accent);
}

.footer-slogan {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.footer-mid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2.5rem 0;
  border-top: 1px solid var(--color-border-dark);
  border-bottom: 1px solid var(--color-border-dark);
  margin-bottom: 2rem;
}

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

.social-link {
  font-size: 1.2rem;
  color: var(--color-text-muted);
  transition: var(--transition-smooth);
}

.social-link:hover {
  color: var(--color-text-light);
  transform: scale(1.15);
}

.footer-nav {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.footer-nav-link {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  text-transform: uppercase;
}

.footer-nav-link:hover {
  color: var(--color-text-light);
}

.footer-payments {
  display: flex;
  gap: 1rem;
  color: var(--color-text-muted);
}

.payment-icon {
  font-size: 1.5rem;
  transition: var(--transition-smooth);
}

.payment-icon:hover {
  color: var(--color-text-light);
}

.footer-bottom {
  text-align: center;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* --- Slide-Out Cart Drawer --- */
.cart-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

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

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 450px;
  max-width: 100%;
  height: 100%;
  background-color: var(--color-bg-white);
  z-index: 1001;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-drawer);
  display: flex;
  flex-direction: column;
}

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

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

.cart-title {
  font-size: 1.25rem;
  font-weight: 600;
}

.cart-close-btn {
  font-size: 1.5rem;
  color: var(--color-text-main);
  padding: 0.5rem;
  transition: var(--transition-smooth);
}

.cart-close-btn:hover {
  color: var(--color-accent);
  transform: rotate(90deg);
}

.cart-items-list {
  flex: 1;
  overflow-y: auto;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.cart-item {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-border);
}

.cart-item-img {
  width: 80px;
  height: 100px;
  object-fit: cover;
  background-color: #f3f3f3;
}

.cart-item-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.cart-item-name {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-primary);
}

.cart-item-price {
  font-size: 0.9rem;
  color: var(--color-accent);
  font-weight: 500;
}

.cart-item-qty {
  display: flex;
  align-items: center;
  border: 1px solid var(--color-border);
  width: fit-content;
}

.qty-btn {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  transition: var(--transition-smooth);
}

.qty-btn:hover {
  background-color: var(--color-bg-light);
}

.qty-val {
  padding: 0 0.75rem;
  font-size: 0.85rem;
}

.cart-item-remove {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  text-decoration: underline;
  cursor: pointer;
  transition: var(--transition-smooth);
  align-self: flex-start;
  margin-top: 0.25rem;
}

.cart-item-remove:hover {
  color: #ef4444;
}

.cart-footer {
  padding: 2rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.cart-subtotal {
  display: flex;
  justify-content: space-between;
  font-size: 1.1rem;
  font-weight: 600;
}

.cart-subtotal-price {
  color: var(--color-accent);
}

.cart-empty-message {
  text-align: center;
  margin: auto;
  color: var(--color-text-muted);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cart-empty-icon {
  font-size: 3rem;
  color: var(--color-border);
}

/* --- PAGE: SHOP --- */
.page-hero {
  height: 300px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-light);
  margin-top: 0;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  z-index: 1;
}

.page-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.page-title {
  font-size: 2.75rem;
  font-weight: 500;
  color: var(--color-text-light);
  margin-bottom: 0.5rem;
}

.breadcrumb {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.7);
}

.breadcrumb a:hover {
  color: var(--color-text-light);
}

.shop-container {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3rem;
  padding: 5rem 0;
}

/* Shop Sidebar */
.shop-sidebar {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.filter-widget {
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 2rem;
}

.filter-widget-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.filter-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.filter-link {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.filter-link:hover, .filter-link.active {
  color: var(--color-accent);
  padding-left: 5px;
}

.filter-count {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  background-color: #f1f5f9;
  padding: 0.15rem 0.5rem;
  border-radius: 10px;
}

/* Price Range Slider */
.price-slider-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.price-range-slider {
  width: 100%;
  accent-color: var(--color-accent);
}

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

/* Shop Main Panel */
.shop-main-panel {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.shop-sort-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--color-border);
}

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

.sort-select-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sort-select-label {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.sort-select {
  padding: 0.5rem 2rem 0.5rem 1rem;
  border: 1px solid var(--color-border);
  background-color: var(--color-bg-white);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23737373'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1rem;
}

/* Pagination component */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 3rem;
}

.page-num {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition-smooth);
}

.page-num:hover, .page-num.active {
  background-color: var(--color-primary);
  color: var(--color-text-light);
  border-color: var(--color-primary);
}

/* --- PAGE: PRODUCT DETAIL --- */
.product-detail-container {
  padding: 5rem 0;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-bottom: 5rem;
}

/* Detail Gallery */
.detail-gallery {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.main-img-container {
  height: 600px;
  background-color: #f3f3f3;
  overflow: hidden;
  position: relative;
}

.main-detail-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.main-img-container:hover .main-detail-img {
  transform: scale(1.12);
}

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

.thumbnail-item {
  height: 120px;
  background-color: #f3f3f3;
  cursor: pointer;
  overflow: hidden;
  border: 1px solid transparent;
}

.thumbnail-item.active {
  border-color: var(--color-accent);
}

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

.thumbnail-item:hover .thumbnail-img {
  opacity: 0.8;
}

/* Detail Info */
.detail-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.detail-product-name {
  font-size: 2.5rem;
  font-weight: 500;
}

.detail-rating-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.stars {
  color: var(--color-accent);
}

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

.detail-price {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--color-accent);
}

.detail-desc {
  color: var(--color-text-muted);
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 1.5rem;
}

.attribute-select-widget {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.attribute-label {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.size-swatches {
  display: flex;
  gap: 0.75rem;
}

.size-swatch {
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition-smooth);
}

.size-swatch:hover, .size-swatch.active {
  border-color: var(--color-primary);
  background-color: var(--color-primary);
  color: var(--color-text-light);
}

.color-swatches {
  display: flex;
  gap: 0.75rem;
}

.color-swatch {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  cursor: pointer;
  position: relative;
}

.color-swatch.active::after {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  border-radius: 50%;
  border: 1px solid var(--color-primary);
}

.qty-add-to-cart-row {
  display: flex;
  gap: 1.5rem;
  margin-top: 1rem;
}

.detail-qty-selector {
  display: flex;
  align-items: center;
  border: 1px solid var(--color-border);
}

.detail-qty-btn {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.detail-qty-btn:hover {
  background-color: var(--color-bg-light);
}

.detail-qty-val {
  padding: 0 1.25rem;
  font-weight: 600;
}

.detail-add-btn {
  flex: 1;
}

/* Tabs Panel */
.detail-tabs-section {
  border-top: 1px solid var(--color-border);
  padding-top: 4rem;
}

.tabs-nav {
  display: flex;
  justify-content: center;
  gap: 3rem;
  border-bottom: 1px solid var(--color-border);
  list-style: none;
  margin-bottom: 2.5rem;
}

.tab-nav-item {
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 1rem 0;
  cursor: pointer;
  position: relative;
  color: var(--color-text-muted);
  transition: var(--transition-smooth);
}

.tab-nav-item.active {
  color: var(--color-primary);
}

.tab-nav-item.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-primary);
}

.tab-content {
  display: none;
  max-width: 800px;
  margin: 0 auto;
  animation: fadeIn 0.4s ease-out;
}

.tab-content.active {
  display: block;
}

/* Reviews Styling */
.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.review-item {
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 1.5rem;
}

.review-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.reviewer-name {
  font-weight: 600;
}

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

.review-body {
  color: var(--color-text-muted);
}

/* --- PAGE: ABOUT --- */
.about-heritage {
  padding: 6rem 0;
}

.about-heritage-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-heritage-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about-heritage-img-wrapper {
  position: relative;
}

.about-heritage-img {
  height: 500px;
  object-fit: cover;
}

/* Timeline Components */
.timeline-section {
  padding: 6rem 0;
  background-color: var(--color-bg-white);
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background-color: var(--color-border);
}

.timeline-item {
  margin-bottom: 4rem;
  position: relative;
  width: 50%;
  padding: 0 3rem;
}

.timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
}

.timeline-item:nth-child(even) {
  left: 50%;
  text-align: left;
}

.timeline-marker {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: var(--color-accent);
  border: 4px solid var(--color-bg-white);
  box-shadow: 0 0 0 4px var(--color-border);
  position: absolute;
  top: 6px;
  z-index: 2;
}

.timeline-item:nth-child(odd) .timeline-marker {
  right: -8px;
}

.timeline-item:nth-child(even) .timeline-marker {
  left: -8px;
}

.timeline-year {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

.timeline-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.timeline-desc {
  color: var(--color-text-muted);
}

/* Team Grid */
.team-section {
  padding: 6rem 0;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.team-card {
  text-align: center;
}

.team-img-wrapper {
  height: 420px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.team-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.team-role {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--color-accent);
  letter-spacing: 0.1em;
  margin-bottom: 0.25rem;
}

.team-name {
  font-size: 1.25rem;
  font-weight: 500;
}

/* --- PAGE: CONTACT & FAQ --- */
.contact-section {
  padding: 5rem 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
}

.contact-form-widget {
  background-color: var(--color-bg-white);
  padding: 3rem;
  box-shadow: var(--shadow-subtle);
}

.contact-form-title {
  font-size: 1.75rem;
  font-weight: 500;
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  color: var(--color-text-main);
}

.form-input {
  width: 100%;
  border: 1px solid var(--color-border);
  padding: 0.85rem 1.25rem;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
  background-color: var(--color-bg-light);
}

.form-input:focus {
  border-color: var(--color-primary);
  background-color: var(--color-bg-white);
}

textarea.form-input {
  resize: vertical;
  min-height: 150px;
}

.form-error {
  color: #ef4444;
  font-size: 0.8rem;
  margin-top: 0.35rem;
  display: none;
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.info-block {
  display: flex;
  gap: 1.25rem;
}

.info-icon-wrapper {
  color: var(--color-accent);
}

.info-icon {
  width: 28px;
  height: 28px;
  stroke-width: 1.5;
}

.info-title {
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

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

.info-content a:hover {
  color: var(--color-accent);
}

/* FAQ Accordion Styling */
.faq-section {
  padding: 6rem 0;
  background-color: var(--color-bg-white);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.accordion-item {
  border: 1px solid var(--color-border);
  background-color: var(--color-bg-light);
  overflow: hidden;
  transition: var(--transition-smooth);
}

.accordion-header {
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: var(--transition-smooth);
  user-select: none;
}

.accordion-title {
  font-size: 1.05rem;
  font-weight: 600;
}

.accordion-icon {
  font-size: 1.25rem;
  color: var(--color-text-muted);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0 2rem;
}

.accordion-content-inner {
  padding-bottom: 1.5rem;
  color: var(--color-text-muted);
  font-size: 0.92rem;
}

/* Accordion Active States */
.accordion-item.active {
  background-color: var(--color-bg-white);
  border-color: var(--color-primary);
}

.accordion-item.active .accordion-icon {
  transform: rotate(45deg);
  color: var(--color-accent);
}

.accordion-item.active .accordion-content {
  /* Set in JS dynamically to match height, or uses fallback standard max-height */
  max-height: 300px;
}

/* --- PAGE: BLOG DETAIL --- */
.blog-detail-container {
  padding: 6rem 0;
  max-width: 900px;
  margin: 0 auto;
}

.blog-detail-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.blog-detail-title {
  font-size: 3rem;
  font-weight: 600;
  line-height: 1.2;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
}

.blog-detail-banner {
  height: 500px;
  margin-bottom: 3.5rem;
}

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

.blog-detail-content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--color-text-main);
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.blog-detail-content p::first-letter {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  float: left;
  line-height: 0.8;
  padding-right: 0.5rem;
  font-weight: 700;
  color: var(--color-accent);
}

.blog-detail-content p + p::first-letter {
  font-family: inherit;
  font-size: inherit;
  float: none;
  line-height: inherit;
  padding-right: 0;
  font-weight: inherit;
  color: inherit;
}

.blog-blockquote {
  border-left: 3px solid var(--color-accent);
  padding-left: 2rem;
  font-style: italic;
  font-size: 1.25rem;
  margin: 1.5rem 0;
  color: var(--color-primary);
}

/* Comments Section */
.comments-widget {
  margin-top: 5rem;
  border-top: 1px solid var(--color-border);
  padding-top: 4rem;
}

.comments-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 2.5rem;
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 4rem;
}

.comment-node {
  display: flex;
  gap: 1.25rem;
}

.comment-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--color-text-muted);
}

.comment-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.comment-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.comment-author {
  font-weight: 600;
  font-size: 0.95rem;
}

.comment-time {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.comment-body {
  font-size: 0.92rem;
  color: var(--color-text-muted);
}

/* --- Keyframes & Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes borderFlow {
  100% {
    transform: rotate(360deg);
  }
}

/* --- Mobile / Responsive Adaptations --- */
@media (max-width: 1100px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .product-grid.asymmetrical .product-card:nth-child(even) {
    margin-top: 0;
  }
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  :root {
    --header-height: 70px;
  }
  
  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: var(--color-bg-white);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    z-index: 99;
  }
  
  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  
  /* Make text black in mobile nav drawer regardless of scroll position */
  .site-header .nav-link {
    color: var(--color-text-main) !important;
    font-size: 1.25rem;
  }
  
  .mobile-toggle {
    display: block;
    font-size: 1.5rem;
    color: var(--color-primary);
    padding: 0.5rem;
    z-index: 101;
  }
  
  .site-header:not(.scrolled) .mobile-toggle {
    color: var(--color-text-light);
  }
  
  .hero-title {
    font-size: 2.75rem;
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .categories-grid {
    grid-template-columns: 1fr;
  }
  
  .category-card {
    height: 420px;
  }
  
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .shop-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .product-detail-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .main-img-container {
    height: 480px;
  }
  
  .about-heritage-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .about-heritage-img {
    height: 380px;
  }
  
  .timeline::before {
    left: 2rem;
  }
  
  .timeline-item {
    width: 100%;
    padding: 0 0 0 4rem;
    text-align: left !important;
  }
  
  .timeline-item:nth-child(even) {
    left: 0;
  }
  
  .timeline-marker {
    left: calc(2rem - 8px) !important;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .promo-title {
    font-size: 2.25rem;
  }
}

@media (max-width: 580px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .product-grid {
    grid-template-columns: 1fr;
  }
  
  .product-img-wrapper {
    height: 420px;
  }
  
  .blog-grid {
    grid-template-columns: 1fr;
  }
  
  .team-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-mid {
    flex-direction: column;
    gap: 2rem;
    align-items: center;
  }
  
  .footer-nav {
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
  }
}
