/* ===================================
   GiftInBasket.ca - Design System
   Elegant & Feminine Aesthetic
   =================================== */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Montserrat:wght@300;400;500;600;700&display=swap');

/* ===================================
   CSS Custom Properties
   =================================== */
:root {
  /* Color Palette - Elegant & Feminine */
  --color-primary: #F4E4E6;
  /* Blush Pink */
  --color-secondary: #9CAF88;
  /* Sage Green */
  --color-accent: #D4AF37;
  /* Gold */
  --color-cream: #FFF8F3;
  /* Cream */
  --color-rose: #E8B4B8;
  /* Rose */
  --color-dark: #2C2C2C;
  /* Charcoal */
  --color-text: #3D3D3D;
  /* Dark Gray */
  --color-text-light: #6B6B6B;
  /* Medium Gray */
  --color-white: #FFFFFF;
  --color-border: #E8D5D7;
  /* Light Pink Border */

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #F4E4E6 0%, #E8B4B8 100%);
  --gradient-gold: linear-gradient(135deg, #D4AF37 0%, #F4E4C1 100%);
  --gradient-overlay: linear-gradient(180deg, rgba(244, 228, 230, 0.9) 0%, rgba(255, 248, 243, 0.95) 100%);

  /* Typography */
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Montserrat', sans-serif;

  /* Font Sizes */
  --fs-xs: 0.75rem;
  /* 12px */
  --fs-sm: 0.875rem;
  /* 14px */
  --fs-base: 1rem;
  /* 16px */
  --fs-lg: 1.125rem;
  /* 18px */
  --fs-xl: 1.25rem;
  /* 20px */
  --fs-2xl: 1.5rem;
  /* 24px */
  --fs-3xl: 2rem;
  /* 32px */
  --fs-4xl: 2.5rem;
  /* 40px */
  --fs-5xl: 3rem;
  /* 48px */
  --fs-6xl: 3.75rem;
  /* 60px */

  /* Spacing */
  --space-xs: 0.5rem;
  /* 8px */
  --space-sm: 1rem;
  /* 16px */
  --space-md: 1.5rem;
  /* 24px */
  --space-lg: 2rem;
  /* 32px */
  --space-xl: 3rem;
  /* 48px */
  --space-2xl: 4rem;
  /* 64px */
  --space-3xl: 6rem;
  /* 96px */

  /* Border Radius */
  --radius-sm: 0.5rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --radius-full: 9999px;

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

  /* Transitions */
  --transition-fast: 200ms ease;
  --transition-base: 300ms ease;
  --transition-slow: 500ms ease;

  /* Z-index */
  --z-base: 1;
  --z-dropdown: 100;
  --z-modal: 1000;
  --z-overlay: 999;
}

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

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

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  color: var(--color-text);
  background-color: var(--color-cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ===================================
   Typography
   =================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-dark);
  margin-bottom: var(--space-sm);
}

h1 {
  font-size: var(--fs-5xl);
  font-weight: 700;
}

h2 {
  font-size: var(--fs-4xl);
}

h3 {
  font-size: var(--fs-3xl);
}

h4 {
  font-size: var(--fs-2xl);
}

h5 {
  font-size: var(--fs-xl);
}

h6 {
  font-size: var(--fs-lg);
}

p {
  margin-bottom: var(--space-sm);
  color: var(--color-text-light);
}

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

a:hover {
  color: var(--color-secondary);
}

/* ===================================
   Layout Components
   =================================== */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.section {
  padding: var(--space-3xl) 0;
}

.section-sm {
  padding: var(--space-2xl) 0;
}

/* ===================================
   Header & Navigation
   =================================== */
.header {
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: var(--z-dropdown);
  transition: all var(--transition-base);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

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

.logo {
  font-family: var(--font-heading);
  font-size: var(--fs-2xl);
  font-weight: 700;
  color: var(--color-dark);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

.logo-icon {
  font-size: var(--fs-3xl);
}

.nav-links {
  display: flex;
  gap: var(--space-lg);
  list-style: none;
}

.nav-links a {
  font-weight: 500;
  color: var(--color-text);
  transition: color var(--transition-fast);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-gold);
  transition: width var(--transition-base);
}

.nav-links a:hover {
  color: var(--color-accent);
}

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

/* Mobile Menu Toggle (hidden by default) */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: var(--fs-3xl);
  color: var(--color-dark);
  cursor: pointer;
  padding: var(--space-xs);
}

/* ===================================
   Hero Section
   =================================== */
.hero {
  background: var(--gradient-primary);
  background-image:
    linear-gradient(135deg, rgba(244, 228, 230, 0.92) 0%, rgba(255, 248, 243, 0.88) 100%),
    url('https://images.unsplash.com/photo-1549465220-1a8b9238cd48?w=1600&q=80');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: var(--space-3xl) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 600px;
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 20s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(156, 175, 136, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 15s ease-in-out infinite reverse;
}

@keyframes float {

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

  50% {
    transform: translate(30px, -30px);
  }
}

.hero-content {
  position: relative;
  z-index: var(--z-base);
  max-width: 800px;
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-lg);
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.hero h1 {
  color: var(--color-dark);
  margin-bottom: var(--space-md);
  font-size: var(--fs-6xl);
}

.hero-subtitle {
  font-size: var(--fs-xl);
  color: var(--color-text);
  margin-bottom: var(--space-xl);
  font-weight: 300;
}

.hero-tagline {
  font-family: var(--font-heading);
  font-size: var(--fs-lg);
  font-style: italic;
  color: var(--color-text-light);
  margin-top: var(--space-md);
}

/* ===================================
   Buttons
   =================================== */
.btn {
  display: inline-block;
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-base);
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--gradient-gold);
  color: var(--color-white);
  box-shadow: var(--shadow-sm);
}

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

.btn-secondary {
  background: var(--color-white);
  color: var(--color-dark);
  border: 2px solid var(--color-border);
}

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

/* ===================================
   Product Grid
   =================================== */
.products-section {
  background: var(--color-cream);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.section-title {
  font-size: var(--fs-4xl);
  margin-bottom: var(--space-sm);
}

.section-description {
  font-size: var(--fs-lg);
  color: var(--color-text-light);
  max-width: 600px;
  margin: 0 auto;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-2xl);
}

/* ===================================
   Product Card
   =================================== */
.product-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  cursor: pointer;
  position: relative;
}

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

.product-image-wrapper {
  position: relative;
  width: 100%;
  padding-top: 100%;
  /* 1:1 Aspect Ratio */
  overflow: hidden;
  background: var(--color-primary);
}

.product-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

.product-badge {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  background: var(--gradient-gold);
  color: var(--color-white);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: var(--z-base);
}

.product-info {
  padding: var(--space-md);
}

.product-category {
  font-size: var(--fs-sm);
  color: var(--color-secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--space-xs);
}

.product-name {
  font-family: var(--font-heading);
  font-size: var(--fs-2xl);
  color: var(--color-dark);
  margin-bottom: var(--space-xs);
}

.product-description {
  font-size: var(--fs-sm);
  color: var(--color-text-light);
  margin-bottom: var(--space-md);
  line-height: 1.6;
}

.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-sm);
  border-top: 1px solid var(--color-border);
}

.product-price {
  font-family: var(--font-heading);
  font-size: var(--fs-2xl);
  color: var(--color-accent);
  font-weight: 700;
}

.product-cta {
  font-size: var(--fs-sm);
  color: var(--color-text);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  transition: gap var(--transition-fast);
}

.product-card:hover .product-cta {
  gap: var(--space-sm);
  color: var(--color-accent);
}

/* Sold Out Product Styles */
.product-card.sold-out {
  opacity: 0.75;
  cursor: default;
}

.product-card.sold-out:hover {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

.product-card.sold-out .product-image {
  filter: grayscale(20%);
}

.badge-sold-out {
  background: linear-gradient(135deg, #6B6B6B 0%, #8B8B8B 100%) !important;
}

.product-custom-order {
  font-size: var(--fs-sm);
  color: var(--color-secondary);
  font-weight: 600;
  font-style: italic;
  width: 100%;
  text-align: center;
}

/* ===================================
   Modal / Product Detail
   =================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: var(--z-overlay);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: var(--space-lg);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

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

.modal {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  max-width: 1000px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.9);
  transition: transform var(--transition-base);
  box-shadow: var(--shadow-xl);
}

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

.modal-close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  background: var(--color-white);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: var(--fs-2xl);
  color: var(--color-text);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
  z-index: var(--z-base);
}

.modal-close:hover {
  background: var(--color-primary);
  transform: rotate(90deg);
}

.modal-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  padding: var(--space-xl);
}

.modal-image {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.modal-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.modal-category {
  font-size: var(--fs-sm);
  color: var(--color-secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: var(--fs-4xl);
  color: var(--color-dark);
}

.modal-price {
  font-family: var(--font-heading);
  font-size: var(--fs-3xl);
  color: var(--color-accent);
  font-weight: 700;
}

.modal-description {
  color: var(--color-text-light);
  line-height: 1.8;
  font-size: var(--fs-base);
}

.modal-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.modal-features li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  color: var(--color-text);
}

.modal-features li::before {
  content: '✓';
  color: var(--color-secondary);
  font-weight: 700;
  font-size: var(--fs-lg);
}

.modal-actions {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

/* ===================================
   Form Section
   =================================== */
.form-section {
  background: var(--gradient-primary);
  padding: var(--space-3xl) 0;
}

.form-container {
  max-width: 700px;
  margin: 0 auto;
  background: var(--color-white);
  padding: var(--space-2xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.form-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.form-title {
  font-size: var(--fs-3xl);
  margin-bottom: var(--space-sm);
}

.form-subtitle {
  color: var(--color-text-light);
  font-size: var(--fs-base);
}

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

.form-label {
  display: block;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: var(--space-xs);
  font-size: var(--fs-sm);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  color: var(--color-text);
  transition: all var(--transition-fast);
  background: var(--color-white);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.form-radio-group {
  display: flex;
  gap: var(--space-lg);
  margin-top: var(--space-xs);
}

.form-radio-label {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  cursor: pointer;
  font-weight: 500;
}

.form-radio {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: var(--color-accent);
}

.form-submit {
  width: 100%;
  margin-top: var(--space-md);
  padding: var(--space-md);
  font-size: var(--fs-lg);
}

/* ===================================
   Footer
   =================================== */
.footer {
  background: var(--color-dark);
  color: var(--color-white);
  padding: var(--space-2xl) 0 var(--space-lg);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.footer-section h4 {
  color: var(--color-white);
  margin-bottom: var(--space-md);
  font-size: var(--fs-xl);
}

.footer-logo-link {
  color: var(--color-white);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

.footer-section p,
.footer-section li {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--space-sm);
  line-height: 1.8;
}

.footer-links {
  list-style: none;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--color-accent);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--fs-sm);
}

/* ===================================
   Utility Classes
   =================================== */
.text-center {
  text-align: center;
}

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

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

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

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

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

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

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

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

/* Scroll Animations */
.fade-in {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.6s ease;
}

.fade-in:not(.visible) {
  opacity: 0;
  transform: translateY(30px);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 1024px) {
  :root {
    --fs-6xl: 3rem;
    --fs-5xl: 2.5rem;
    --fs-4xl: 2rem;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-lg);
  }

  .modal-content {
    grid-template-columns: 1fr;
  }

  .modal-image {
    height: 400px;
  }
}

@media (max-width: 768px) {
  :root {
    --fs-6xl: 2.5rem;
    --fs-5xl: 2rem;
    --fs-4xl: 1.75rem;
  }

  .nav-links {
    gap: var(--space-md);
  }

  .hero {
    padding: var(--space-2xl) 0;
    min-height: 500px;
    background-attachment: scroll;
  }

  .hero-content {
    padding: var(--space-lg);
  }

  .section {
    padding: var(--space-2xl) 0;
  }

  .products-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .modal-content {
    padding: var(--space-lg);
  }

  .modal-image {
    height: 300px;
  }

  .modal-actions {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-sm);
  }

  .logo {
    font-size: var(--fs-lg);
  }

  .logo-icon {
    font-size: var(--fs-xl);
  }

  .nav-links {
    width: 100%;
    justify-content: center;
    gap: var(--space-sm);
    margin-top: var(--space-sm);
  }

  .nav-links a {
    font-size: var(--fs-xs);
  }

  .hero h1 {
    font-size: var(--fs-3xl);
  }

  .hero-subtitle {
    font-size: var(--fs-base);
  }

  .product-name {
    font-size: var(--fs-xl);
  }

  .modal-overlay {
    padding: var(--space-sm);
  }

  .modal-title {
    font-size: var(--fs-2xl);
  }

  .modal-price {
    font-size: var(--fs-2xl);
  }

  /* Stack form radio options vertically on small screens */
  .form-radio-group {
    flex-direction: column;
    gap: var(--space-sm);
  }
}

/* ===================================
   Custom Scrollbar
   =================================== */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: var(--color-cream);
}

::-webkit-scrollbar-thumb {
  background: var(--color-primary);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-rose);
}