/* 
   Halyvane - Clean, Modern & Responsive CSS 
   Aesthetics: Soft Rose Accent, Light Background, Modern Typography
*/

@import url('https://fonts.googleapis.com/css2?family=Cabin:ital,wght@0,400..700;1,400..700&family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap');

:root {
  /* Color Palette - HSL values for micro-adjustments */
  --primary: hsl(351, 65%, 72%);       /* Soft Rose */
  --primary-hover: hsl(351, 60%, 65%); /* Slightly darker rose */
  --primary-light: hsl(351, 80%, 96%); /* Very light pink background tint */
  --secondary: hsl(23, 40%, 96%);      /* Neutral light linen warm tone */
  --bg-main: hsl(0, 0%, 100%);        /* Crisp white background */
  --bg-soft: hsl(350, 40%, 98%);       /* Extremely light rose/grey warm background */
  --text-dark: hsl(210, 24%, 16%);     /* Charcoal black for primary readability */
  --text-muted: hsl(210, 10%, 46%);    /* Muted grey for descriptions */
  --border-color: hsl(350, 30%, 93%);  /* Soft pinkish grey borders */
  
  /* Fonts */
  --font-heading: 'Cabin', sans-serif;
  --font-body: 'Lato', sans-serif;
  
  /* Layout and Effects */
  --shadow-sm: 0 2px 8px rgba(229, 152, 155, 0.05);
  --shadow-md: 0 8px 30px rgba(229, 152, 155, 0.08);
  --shadow-lg: 0 16px 40px rgba(229, 152, 155, 0.12);
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --border-radius: 16px;
  --border-radius-sm: 8px;
}

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

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-dark);
}

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

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
}

.section-bg {
  background-color: var(--bg-soft);
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text-dark);
}

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

.nav-menu {
  display: flex;
  list-style: none;
  gap: 32px;
}

.nav-link {
  font-weight: 500;
  font-size: 15px;
  position: relative;
  padding: 6px 0;
  color: var(--text-dark);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link:hover::after {
  width: 100%;
}

/* Mobile Menu Button */
.hamburger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text-dark);
  margin: 5px 0;
  transition: var(--transition);
}

/* Hero Section */
.hero {
  position: relative;
  padding: 180px 0 100px;
  overflow: hidden;
  background: radial-gradient(circle at 80% 20%, var(--primary-light) 0%, var(--bg-main) 60%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}

.hero-content h1 {
  font-size: 52px;
  margin-bottom: 24px;
  letter-spacing: -1px;
}

.hero-content p {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 540px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Buttons Styling */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--border-radius-sm);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background-color: var(--primary);
  color: white;
  border: 1px solid var(--primary);
  box-shadow: 0 4px 14px rgba(229, 152, 155, 0.3);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(229, 152, 155, 0.4);
}

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

.btn-secondary:hover {
  background-color: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary-hover);
  transform: translateY(-2px);
}

/* Hero Visual Frame */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 440px;
  aspect-ratio: 1 / 1;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid white;
}

.hero-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.hero-image-wrapper:hover img {
  transform: scale(1.03);
}

.hero-badge {
  position: absolute;
  bottom: 24px;
  left: -24px;
  background-color: white;
  padding: 16px 24px;
  border-radius: var(--border-radius-sm);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-left: 4px solid var(--primary);
}

.hero-badge span.badge-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  color: var(--text-dark);
}

.hero-badge span.badge-subtitle {
  font-size: 12px;
  color: var(--text-muted);
}

/* About Section */
.section-header {
  max-width: 700px;
  margin-bottom: 60px;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  letter-spacing: 1.5px;
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: 38px;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.section-header p.subtitle {
  font-size: 16px;
  color: var(--text-muted);
}

.about-content {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 80px;
  align-items: start;
}

.about-paragraphs p {
  font-size: 17px;
  color: var(--text-dark);
  margin-bottom: 24px;
  line-height: 1.8;
}

.about-paragraphs p:last-child {
  margin-bottom: 0;
}

.about-note {
  background-color: var(--primary-light);
  border-left: 4px solid var(--primary);
  padding: 32px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
}

.about-note h3 {
  font-size: 18px;
  margin-bottom: 12px;
  color: var(--primary-hover);
}

.about-note p {
  font-size: 14px;
  color: var(--text-dark);
  line-height: 1.6;
}

/* Product Categories Section */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
}

.product-card {
  background-color: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.product-img-wrapper {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: var(--bg-soft);
}

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

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

.product-info {
  padding: 28px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product-info h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.product-info p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* How Orders Work Section */
.steps-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  position: relative;
}

.step-card {
  position: relative;
  background-color: white;
  padding: 40px 32px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

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

.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background-color: var(--primary-light);
  color: var(--primary-hover);
  border-radius: 50%;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 24px;
}

.step-card h3 {
  font-size: 20px;
  margin-bottom: 14px;
}

.step-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Shop on Etsy Section */
.etsy-promo {
  text-align: center;
  background: linear-gradient(135deg, var(--bg-soft) 0%, var(--primary-light) 100%);
  padding: 80px 40px;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.etsy-promo h2 {
  font-size: 36px;
  margin-bottom: 20px;
}

.etsy-promo p {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

/* Customer Information Section */
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.info-card {
  background-color: white;
  padding: 40px;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.info-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.info-card-icon {
  color: var(--primary);
  font-size: 24px;
  margin-bottom: 20px;
}

.info-card h3 {
  font-size: 20px;
  margin-bottom: 16px;
}

.info-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Contact Section */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-info-block {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.contact-detail-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background-color: var(--primary-light);
  color: var(--primary-hover);
  border-radius: 12px;
  font-size: 18px;
}

.contact-detail-content h4 {
  font-size: 15px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.contact-detail-content p, 
.contact-detail-content a {
  font-size: 18px;
  font-weight: 500;
  color: var(--text-dark);
}

.contact-detail-content a:hover {
  color: var(--primary);
}

/* Simple Contact Form */
.contact-form-wrapper {
  background-color: white;
  padding: 40px;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
}

.contact-form-wrapper h3 {
  font-size: 22px;
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  font-family: var(--font-body);
  font-size: 15px;
  background-color: var(--bg-soft);
  color: var(--text-dark);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  background-color: white;
  box-shadow: 0 0 0 3px var(--primary-light);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* Footer */
footer {
  background-color: var(--bg-soft);
  border-top: 1px solid var(--border-color);
  padding: 48px 0;
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  color: var(--text-dark);
}

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

.footer-meta {
  font-size: 14px;
  color: var(--text-muted);
}

.footer-tagline {
  font-size: 13px;
  color: var(--primary-hover);
  letter-spacing: 0.5px;
}

/* Responsive Design */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }
  
  .hero-content p {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .hero-visual {
    order: -1;
  }
  
  .about-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .steps-container {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .info-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 64px 0;
  }
  
  .hero {
    padding: 140px 0 60px;
  }
  
  .hero-content h1 {
    font-size: 38px;
  }
  
  .section-header h2 {
    font-size: 30px;
  }
  
  .hamburger {
    display: block;
  }
  
  .nav-menu {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background-color: white;
    flex-direction: column;
    align-items: center;
    padding: 48px 0;
    gap: 24px;
    transition: var(--transition);
    border-top: 1px solid var(--border-color);
    box-shadow: 0 10px 15px rgba(0,0,0,0.05);
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  /* Hamburger animation */
  .hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

/* ==========================================================================
   E-COMMERCE STYLES (SHOP, CART, MODAL, TOASTS)
   ========================================================================== */

/* Header Cart Action & Badge */
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cart-toggle-btn {
  position: relative;
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-dark);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.cart-toggle-btn:hover {
  background-color: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary-hover);
  transform: translateY(-2px);
}

.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background-color: var(--primary);
  color: white;
  font-size: 10px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid white;
}

/* Shop Controls (Search & Filter) */
.shop-controls {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 40px;
}

.search-bar-wrapper {
  position: relative;
  max-width: 500px;
  width: 100%;
  margin: 0 auto;
}

.search-bar-wrapper .search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 16px;
}

#shop-search-input {
  width: 100%;
  padding: 14px 18px 14px 48px;
  border: 1px solid var(--border-color);
  border-radius: 30px;
  font-family: var(--font-body);
  font-size: 15px;
  background-color: var(--bg-soft);
  color: var(--text-dark);
  transition: var(--transition);
}

#shop-search-input:focus {
  outline: none;
  border-color: var(--primary);
  background-color: white;
  box-shadow: 0 0 0 4px var(--primary-light);
}

.category-filters {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  overflow-x: auto;
  padding: 4px 0;
  -webkit-overflow-scrolling: touch;
}

/* Hide scrollbar for category-filters on desktop but keep scrollable on mobile */
.category-filters::-webkit-scrollbar {
  display: none;
}

.category-btn {
  background: white;
  border: 1px solid var(--border-color);
  padding: 10px 20px;
  border-radius: 30px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  color: var(--text-dark);
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.category-btn i {
  font-size: 13px;
  color: var(--text-muted);
  transition: var(--transition);
}

.category-btn:hover {
  border-color: var(--primary);
  color: var(--primary-hover);
  background-color: var(--primary-light);
}

.category-btn.active {
  background-color: var(--primary);
  border-color: var(--primary);
  color: white;
  box-shadow: 0 4px 12px rgba(229, 152, 155, 0.25);
}

.category-btn.active i {
  color: white;
}

/* Shop Products Grid */
.shop-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 32px;
  min-height: 200px;
}

/* Ornament Product Card */
.shop-item-card {
  background-color: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
}

.shop-item-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.shop-item-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background-color: var(--primary);
  color: white;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 30px;
  z-index: 10;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.shop-item-img-wrapper {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background-color: var(--bg-soft);
}

.shop-item-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.shop-item-card:hover .shop-item-img-wrapper img {
  transform: scale(1.05);
}

.shop-item-info {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.shop-item-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.shop-item-category {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  letter-spacing: 1px;
}

.shop-item-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.3;
}

.shop-item-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #ffb703; /* Amber for stars */
}

.shop-item-reviews-count {
  color: var(--text-muted);
  font-size: 12px;
}

.shop-item-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
}

.shop-item-price {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-dark);
}

.shop-item-add-btn {
  background-color: var(--primary-light);
  color: var(--primary-hover);
  border: 1px solid var(--primary-light);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 14px;
}

.shop-item-add-btn:hover {
  background-color: var(--primary);
  border-color: var(--primary);
  color: white;
  transform: scale(1.1);
  box-shadow: 0 4px 10px rgba(229, 152, 155, 0.3);
}

/* Shopping Cart Drawer */
.cart-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  backdrop-filter: blur(4px);
}

.cart-drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: -450px;
  width: 100%;
  max-width: 420px;
  height: 100%;
  background-color: white;
  z-index: 2001;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.cart-drawer.active {
  right: 0;
}

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

.cart-drawer-header h3 {
  font-size: 20px;
}

.cart-drawer-close {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--text-dark);
  transition: var(--transition);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.cart-drawer-close:hover {
  background-color: var(--bg-soft);
  color: var(--primary-hover);
}

.cart-drawer-items {
  flex-grow: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Empty Cart State */
.cart-empty-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  color: var(--text-muted);
  gap: 16px;
}

.cart-empty-message i {
  font-size: 48px;
  color: var(--border-color);
}

.cart-empty-message p {
  font-size: 15px;
}

.btn-sm {
  padding: 10px 20px;
  font-size: 13px;
}

/* Cart Item Row */
.cart-item {
  display: flex;
  gap: 16px;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 20px;
}

.cart-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.cart-item-img {
  width: 70px;
  height: 70px;
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  background-color: var(--bg-soft);
  flex-shrink: 0;
  border: 1px solid var(--border-color);
}

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

.cart-item-details {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cart-item-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.3;
}

.cart-item-price {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
}

.cart-item-qty {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  width: 90px;
  justify-content: space-between;
  padding: 2px 6px;
  margin-top: 6px;
}

.qty-btn {
  background: none;
  border: none;
  font-size: 12px;
  cursor: pointer;
  color: var(--text-dark);
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition);
}

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

.qty-val {
  font-size: 13px;
  font-weight: 600;
}

.cart-item-remove {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 14px;
  transition: var(--transition);
  padding: 8px;
}

.cart-item-remove:hover {
  color: hsl(0, 75%, 60%);
}

.cart-drawer-footer {
  padding: 24px;
  border-top: 1px solid var(--border-color);
  background-color: var(--bg-soft);
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.cart-shipping-info {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.checkout-btn {
  box-shadow: 0 4px 14px rgba(229, 152, 155, 0.3);
}

/* Modals System */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 3000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  backdrop-filter: blur(4px);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.checkout-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: 90%;
  max-width: 550px;
  background-color: white;
  z-index: 3001;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  padding: 40px;
  max-height: 90vh;
  overflow-y: auto;
}

.checkout-modal.active {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--transition);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

/* Checkout Form Inner Styling */
.checkout-modal h3 {
  font-size: 24px;
  margin-bottom: 24px;
  border-bottom: 2px solid var(--primary-light);
  padding-bottom: 12px;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.checkout-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.checkout-summary-box {
  background-color: var(--bg-soft);
  padding: 20px;
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--border-color);
  margin-bottom: 20px;
}

.checkout-summary-title {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 12px;
  color: var(--text-dark);
}

.checkout-summary-item {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.checkout-summary-total {
  display: flex;
  justify-content: space-between;
  font-size: 16px;
  font-weight: 700;
  border-top: 1px solid var(--border-color);
  padding-top: 10px;
  margin-top: 10px;
  color: var(--text-dark);
}

.payment-note-box {
  background-color: hsl(45, 100%, 96%);
  border-left: 4px solid #ffb703;
  padding: 16px;
  border-radius: var(--border-radius-sm);
  margin-bottom: 20px;
}

.payment-note-box h4 {
  color: hsl(45, 80%, 40%);
  font-size: 14px;
  margin-bottom: 6px;
}

.payment-note-box p {
  font-size: 13px;
  color: hsl(45, 40%, 30%);
  line-height: 1.5;
}

/* Success Modal View */
.success-view {
  text-align: center;
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.success-icon-wrapper {
  width: 80px;
  height: 80px;
  background-color: hsl(122, 53%, 94%);
  color: hsl(122, 53%, 40%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  animation: scaleUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes scaleUp {
  0% { transform: scale(0.5); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.success-view h3 {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
  font-size: 26px;
  color: var(--text-dark);
}

.success-view p {
  color: var(--text-muted);
  font-size: 15px;
  max-width: 400px;
  line-height: 1.6;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 4000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.toast-notification {
  background-color: var(--text-dark);
  color: white;
  padding: 14px 24px;
  border-radius: var(--border-radius-sm);
  box-shadow: var(--shadow-md);
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  pointer-events: auto;
  border-left: 4px solid var(--primary);
}

.toast-notification.active {
  transform: translateY(0);
  opacity: 1;
}

.toast-notification i {
  color: var(--primary);
}

/* Additional utility responsive adjustment */
@media (max-width: 576px) {
  .checkout-modal {
    padding: 24px;
  }
  .checkout-row-2 {
    grid-template-columns: 1fr;
  }
  .cart-drawer {
    max-width: 100%;
  }
}

/* ==========================================================================
   MULTI-PAGE POD ADDITIONS (nav active, pages, category tiles, product page)
   ========================================================================== */

/* Active nav state (multi-page) */
.nav-link.active {
  color: var(--primary);
}
.nav-link.active::after {
  width: 100%;
}

/* Inner pages start below the fixed header */
.page-section {
  padding-top: 140px;
}

/* Hero trust row */
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 28px;
}
.hero-trust span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
}
.hero-trust i {
  color: var(--primary);
}

/* Footer nav */
.footer-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-nav a {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
}
.footer-nav a:hover {
  color: var(--primary);
}
.footer-legal-nav a {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}
.footer-business {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
}
.footer-business strong {
  color: var(--text-dark);
  letter-spacing: 0.5px;
}
.footer-business a {
  color: var(--primary-hover);
  font-weight: 600;
}

/* Legal pages */
.legal-content {
  max-width: 780px;
}
.legal-content h1 {
  font-size: 34px;
  margin: 10px 0 6px;
  letter-spacing: -0.5px;
}
.legal-updated {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 28px;
}
.legal-content h3 {
  font-size: 19px;
  margin: 28px 0 10px;
}
.legal-content p {
  font-size: 15px;
  color: var(--text-dark);
  line-height: 1.8;
  margin-bottom: 12px;
}
.legal-content ul {
  margin: 0 0 12px 20px;
  padding: 0;
}
.legal-content li {
  font-size: 15px;
  color: var(--text-dark);
  line-height: 1.8;
  margin-bottom: 8px;
}
.legal-content a {
  color: var(--primary-hover);
  font-weight: 600;
}
.legal-back {
  margin-top: 36px;
}

/* Neutral, truthful badges (replace fabricated "Bestseller" / ratings) */
.shop-item-badge-soft {
  background-color: rgba(255, 255, 255, 0.92);
  color: var(--primary-hover);
  box-shadow: var(--shadow-sm);
}
.product-badge-row {
  margin: 4px 0 16px;
}
.product-made-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-hover);
  background-color: var(--primary-light);
  border: 1px solid var(--border-color);
  padding: 6px 14px;
  border-radius: 30px;
}

/* Category tiles (home) */
.category-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}
.category-tile {
  background-color: white;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.category-tile:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}
.category-tile-img {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: var(--bg-soft);
}
.category-tile-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}
.category-tile:hover .category-tile-img img {
  transform: scale(1.06);
}
.category-tile-icon {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background-color: rgba(255, 255, 255, 0.92);
  color: var(--primary-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: var(--shadow-sm);
}
.category-tile-body {
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.category-tile-label {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 19px;
  color: var(--text-dark);
}
.category-tile-cta {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
  white-space: nowrap;
}
.category-tile:hover .category-tile-cta {
  gap: 10px;
}

/* Shop card link niceties */
.shop-item-title a { color: inherit; }
.shop-item-title a:hover { color: var(--primary); }
.shop-item-customize-btn { text-decoration: none; }

.shop-item-personalize-tag {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background-color: rgba(255, 255, 255, 0.92);
  color: var(--primary-hover);
  font-size: 11px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 30px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  opacity: 0;
  transform: translateY(6px);
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.shop-item-card:hover .shop-item-personalize-tag {
  opacity: 1;
  transform: translateY(0);
}

/* Cart item personalization details */
.cart-item-custom {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  align-items: center;
}
.cart-item-custom-text {
  color: var(--primary-hover);
  font-weight: 600;
}

/* ---------- Product detail page ---------- */
.product-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 28px;
}
.product-back-link:hover { color: var(--primary); }

.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.product-gallery { position: sticky; top: 100px; }

.product-preview {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--border-radius);
  overflow: hidden;
  border: 4px solid white;
  box-shadow: var(--shadow-lg);
  background-color: var(--bg-soft);
}
.product-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.preview-overlay {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.preview-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(20px, 4vw, 34px);
  color: #fff;
  text-align: center;
  padding: 10px 22px;
  background-color: rgba(28, 28, 28, 0.55);
  border-radius: 10px;
  backdrop-filter: blur(2px);
  max-width: 90%;
  word-break: break-word;
  line-height: 1.2;
}
.preview-hint {
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.preview-hint i { color: var(--primary); }

.product-cat-tag {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary);
}
.product-title {
  font-size: 34px;
  margin: 10px 0 14px;
  letter-spacing: -0.5px;
}
.product-rating-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.product-reviews {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 600;
}
.product-price {
  font-size: 30px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 18px;
}
.product-desc {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 28px;
}

.customizer {
  border-top: 1px solid var(--border-color);
  padding-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.cz-block { display: flex; flex-direction: column; gap: 10px; }
.cz-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.cz-label i { color: var(--primary); }
.cz-hint { font-size: 12px; color: var(--text-muted); }

.cz-swatches { display: flex; gap: 12px; flex-wrap: wrap; }
.cz-swatch {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid var(--border-color);
  cursor: pointer;
  transition: var(--transition);
  box-shadow: inset 0 0 0 2px #fff;
}
.cz-swatch:hover { transform: scale(1.08); }
.cz-swatch.active {
  border-color: var(--primary);
  box-shadow: inset 0 0 0 2px #fff, 0 0 0 3px var(--primary-light);
}

.cz-sizes { display: flex; gap: 10px; flex-wrap: wrap; }
.cz-size {
  min-width: 48px;
  padding: 10px 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  background: white;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  color: var(--text-dark);
  cursor: pointer;
  transition: var(--transition);
}
.cz-size:hover { border-color: var(--primary); color: var(--primary-hover); }
.cz-size.active {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.cz-qty-row { flex-direction: row; align-items: center; justify-content: space-between; }
.cz-qty {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-color);
  border-radius: 30px;
  padding: 4px 8px;
  gap: 10px;
}
.cz-qty button {
  background: none;
  border: none;
  cursor: pointer;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: var(--text-dark);
  transition: var(--transition);
}
.cz-qty button:hover { background-color: var(--primary-light); color: var(--primary); }
.cz-qty span { min-width: 24px; text-align: center; font-weight: 700; }

.cz-add-btn { width: 100%; margin-top: 4px; }

.cz-perks {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 8px;
}
.cz-perks span {
  font-size: 13px;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.cz-perks i { color: var(--primary); }

.product-missing {
  text-align: center;
  padding: 60px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.product-missing i { font-size: 56px; color: var(--border-color); }

@media (max-width: 992px) {
  .product-detail-grid { grid-template-columns: 1fr; gap: 40px; }
  .product-gallery { position: static; }
  .category-tiles { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .page-section { padding-top: 120px; }
  .product-title { font-size: 28px; }
}

@media (max-width: 480px) {
  .category-tiles { grid-template-columns: 1fr; }
}

