/* ============================================
   Red Hen Publishing — Main Stylesheet
   Brand: Warm artisan, handcrafted feel
   ============================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Nunito:wght@300;400;500;600;700&family=Sacramento&display=swap');

/* --- CSS Custom Properties --- */
:root {
  --color-primary: #8B1A1A;
  --color-primary-hover: #A52A2A;
  --color-secondary: #4A6741;
  --color-secondary-hover: #5a7d50;
  --color-accent: #C8963E;
  --color-bg: #FAF7F2;
  --color-bg-alt: #F3EDE4;
  --color-text: #2C1810;
  --color-text-muted: #8B7D6B;
  --color-white: #FFFFFF;
  --color-border: #E8E0D4;

  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Nunito', 'Source Sans Pro', sans-serif;
  --font-script: 'Sacramento', cursive;

  --max-width: 1200px;
  --header-height: 72px;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 3px rgba(44, 24, 16, 0.08);
  --shadow-md: 0 4px 12px rgba(44, 24, 16, 0.1);
  --shadow-lg: 0 8px 30px rgba(44, 24, 16, 0.12);
  --transition: 0.3s ease;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

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

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

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

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

/* --- Typography --- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-text);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

.script-text {
  font-family: var(--font-script);
  font-size: 1.5rem;
  color: var(--color-primary);
}

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

.section {
  padding: 80px 0;
}

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

/* --- Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  height: var(--header-height);
  backdrop-filter: blur(10px);
  background: rgba(250, 247, 242, 0.95);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  height: 48px;
  width: auto;
}

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

.logo-text span {
  display: block;
  font-size: 0.65rem;
  font-family: var(--font-body);
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

/* --- Desktop Nav --- */
.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.main-nav a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: 0.02em;
  position: relative;
  padding: 4px 0;
}

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

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

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

/* --- Cart Icon --- */
.cart-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  color: var(--color-text);
}

.cart-link svg {
  width: 22px;
  height: 22px;
}

.cart-badge {
  position: absolute;
  top: -8px;
  right: -12px;
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 0.7rem;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0);
  transition: all var(--transition);
}

.cart-badge.visible {
  opacity: 1;
  transform: scale(1);
}

/* --- Mobile Nav Toggle --- */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all var(--transition);
}

.nav-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  border-radius: var(--radius);
  transition: all var(--transition);
  white-space: nowrap;
}

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

.btn-primary:hover {
  background: var(--color-primary-hover);
  color: var(--color-white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: var(--color-secondary);
  color: var(--color-white);
}

.btn-secondary:hover {
  background: var(--color-secondary-hover);
  color: var(--color-white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-outline:hover {
  background: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-1px);
}

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

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-bg) 0%, var(--color-bg-alt) 100%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 60px 24px;
}

.hero-content {
  z-index: 2;
}

.hero-tagline {
  font-family: var(--font-script);
  font-size: 1.4rem;
  color: var(--color-accent);
  margin-bottom: 8px;
}

.hero h1 {
  font-size: 3.2rem;
  margin-bottom: 20px;
  color: var(--color-primary);
  line-height: 1.15;
}

.hero p {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  margin-bottom: 32px;
  max-width: 480px;
  line-height: 1.7;
}

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

.hero-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  z-index: 2;
}

.hero-card-img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition);
  aspect-ratio: 5/7;
  object-fit: cover;
}

.hero-card-img:hover {
  transform: rotate(-2deg) scale(1.02);
}

.hero-card-img:nth-child(2) {
  margin-top: 30px;
}

.hero-card-img:nth-child(3) {
  margin-top: -30px;
}

/* --- Featured Cards Section --- */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.section-header {
  text-align: center;
  margin-bottom: 12px;
}

.section-header h2 {
  color: var(--color-primary);
}

.section-header .script-text {
  margin-bottom: 8px;
  display: block;
}

.section-header p {
  color: var(--color-text-muted);
  max-width: 560px;
  margin: 12px auto 0;
  font-size: 1.05rem;
}

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

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

.product-card-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 5/7;
  background: var(--color-bg-alt);
  cursor: pointer;
  transition: all var(--transition);
}

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

.product-card-image:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

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

.product-card-image .card-inside {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--transition);
}

.product-card:hover .card-inside {
  opacity: 1;
}

.product-card-image .card-inside img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card-body {
  padding: 16px;
}

.product-card-body h3 {
  font-size: 1.1rem;
  margin-bottom: 4px;
  font-weight: 600;
}

.product-description {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.4;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-body .category-tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  font-weight: 600;
}

.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px 16px;
}

.product-price {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary);
}

.btn-add-cart {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 8px 16px;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all var(--transition);
}

.btn-add-cart:hover {
  background: var(--color-primary-hover);
  transform: scale(1.05);
}

.btn-add-cart.added {
  background: var(--color-secondary);
}

/* --- How It Works Section --- */
.how-it-works-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.how-step {
  text-align: center;
  padding: 24px 16px;
}

.how-step-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.how-step-number {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.how-step h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.how-step p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* --- Quality Section --- */
.quality-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-top: 40px;
}

.quality-features {
  display: grid;
  gap: 20px;
}

.quality-feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.quality-feature-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  background: var(--color-bg-alt);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  font-size: 1.1rem;
}

.quality-feature h4 {
  font-size: 1rem;
  margin-bottom: 2px;
}

.quality-feature p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.quality-image {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 5/7;
  object-fit: cover;
}

/* --- Our Story Section --- */
.story-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.story-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--color-text-muted);
  margin-bottom: 24px;
}

/* --- Shop Page --- */
.shop-hero {
  background: linear-gradient(135deg, var(--color-bg) 0%, var(--color-bg-alt) 100%);
  padding: 48px 0 32px;
  text-align: center;
}

.shop-hero h1 {
  color: var(--color-primary);
  margin-bottom: 8px;
}

.shop-hero p {
  color: var(--color-text-muted);
  font-size: 1.1rem;
}

/* --- Category Filter --- */
.filter-bar {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 24px 0;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 40px;
}

.filter-btn {
  padding: 10px 24px;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  background: var(--color-white);
  transition: all var(--transition);
}

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

.filter-btn.active {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

/* --- Product Grid (Shop Page) --- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  padding-bottom: 80px;
}

/* --- Cart Page --- */
.cart-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
}

.cart-table th,
.cart-table td {
  text-align: left;
  padding: 12px;
  border-bottom: 1px solid var(--color-border);
  vertical-align: middle;
}

.cart-table th {
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.95rem;
}

.cart-item-thumbnail {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

.cart-summary {
  text-align: right;
  max-width: 360px;
  margin-left: auto;
  margin-bottom: 24px;
}

.cart-summary p {
  margin-bottom: 10px;
  color: var(--color-text);
}

.cart-summary .total {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-primary);
}

/* --- Custom Portrait Banner --- */
.custom-banner {
  background: linear-gradient(135deg, var(--color-secondary), #3a5434);
  color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 40px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 40px;
}

.custom-banner h2 {
  color: var(--color-white);
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.custom-banner p {
  opacity: 0.9;
  font-size: 1rem;
  max-width: 480px;
}

.custom-banner .btn {
  background: var(--color-accent);
  color: var(--color-text);
  font-weight: 700;
  min-width: 180px;
}

.custom-banner .btn:hover {
  background: #d4a44a;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* --- Footer --- */
.site-footer {
  background: var(--color-text);
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-brand .logo-text {
  color: var(--color-white);
  font-size: 1.2rem;
}

.footer-brand .logo-text span {
  color: rgba(255, 255, 255, 0.5);
}

.footer-brand p {
  margin-top: 12px;
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 280px;
}

.footer-col h4 {
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  margin-bottom: 10px;
  transition: color var(--transition);
}

.footer-col a:hover {
  color: var(--color-white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  text-align: center;
  font-size: 0.85rem;
}

/* --- Cart Toast Notification --- */
.cart-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--color-secondary);
  color: var(--color-white);
  padding: 14px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: var(--shadow-lg);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* --- Responsive --- */

/* Tablet */
@media (max-width: 1024px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 1.85rem; }

  .hero-inner {
    gap: 40px;
  }

  .hero h1 {
    font-size: 2.6rem;
  }

  .featured-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .how-it-works-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .quality-grid {
    gap: 40px;
  }
}

/* Tablet portrait */
@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }

  .nav-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: var(--color-bg);
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 32px 32px;
    gap: 8px;
    box-shadow: var(--shadow-lg);
    transform: translateX(100%);
    transition: transform var(--transition);
    z-index: 1000;
  }

  .main-nav.open {
    transform: translateX(0);
  }

  .main-nav a {
    font-size: 1.1rem;
    padding: 12px 0;
    width: 100%;
    border-bottom: 1px solid var(--color-border);
  }

  .mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(44, 24, 16, 0.4);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
  }

  .mobile-overlay.visible {
    opacity: 1;
    pointer-events: auto;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 40px 24px;
    min-height: auto;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero p {
    margin: 0 auto 32px;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-cards {
    max-width: 400px;
    margin: 0 auto;
  }

  .quality-grid {
    grid-template-columns: 1fr;
  }

  .quality-image {
    max-height: 400px;
    width: 100%;
  }

  .custom-banner {
    flex-direction: column;
    text-align: center;
    padding: 32px 24px;
  }

  .custom-banner p {
    margin: 0 auto;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* Mobile */
@media (max-width: 480px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }

  .section {
    padding: 48px 0;
  }

  .hero h1 {
    font-size: 1.9rem;
  }

  .hero-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .featured-grid,
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .how-it-works-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .filter-bar {
    gap: 6px;
  }

  .filter-btn {
    padding: 8px 16px;
    font-size: 0.8rem;
  }

  .product-card-body h3 {
    font-size: 0.95rem;
  }

  .btn {
    padding: 12px 24px;
    font-size: 0.9rem;
  }
}

/* --- Utility --- */
.text-center { text-align: center; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }

/* --- Fade-in Animation --- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* --- Product Modal --- */
.product-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.product-modal {
  background: var(--color-bg);
  border-radius: 12px;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 28px;
  color: var(--color-text);
  cursor: pointer;
  z-index: 1;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s ease;
}

.modal-close:hover {
  background: rgba(0, 0, 0, 0.1);
}

.modal-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 40px;
}

.modal-image {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.modal-card-front,
.modal-card-inside {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.modal-card-front img,
.modal-card-inside img {
  width: 100%;
  height: auto;
  display: block;
}

.modal-details h2 {
  margin: 0 0 8px 0;
  color: var(--color-text);
  font-size: 1.8rem;
  font-weight: 700;
}

.modal-details .category-tag {
  display: inline-block;
  background: var(--color-accent);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.modal-description {
  color: var(--color-text);
  line-height: 1.6;
  margin-bottom: 24px;
}

.pack-options h3 {
  margin: 0 0 16px 0;
  color: var(--color-text);
  font-size: 1.2rem;
  font-weight: 600;
}

.pack-selector {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pack-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.pack-option:hover {
  border-color: var(--color-accent);
  background: rgba(220, 53, 69, 0.05);
}

.pack-option input[type="radio"] {
  margin-top: 2px;
  accent-color: var(--color-accent);
}

.pack-option input[type="radio"]:checked + .pack-info {
  color: var(--color-accent);
}

.pack-info {
  flex: 1;
}

.pack-name {
  display: block;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 4px;
}

.pack-price {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 4px;
}

.pack-description {
  display: block;
  font-size: 0.9rem;
  color: #666;
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #e0e0e0;
}

.btn-secondary,
.btn-primary {
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.btn-secondary {
  background: #f8f9fa;
  color: var(--color-text);
  border: 1px solid #dee2e6;
}

.btn-secondary:hover {
  background: #e9ecef;
}

.btn-primary {
  background: var(--color-accent);
  color: white;
}

.btn-primary:hover {
  background: #b02a37;
  transform: translateY(-1px);
}

/* Modal responsive */
@media (max-width: 768px) {
  .modal-content {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 24px;
  }

  .modal-details h2 {
    font-size: 1.5rem;
  }

  .pack-option {
    padding: 12px;
  }

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

  .btn-secondary,
  .btn-primary {
    width: 100%;
  }
}
