/* BulgarianRods - Dark Luxury Limited Edition (50 Rods) Design System */

/* 1. Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400..700;1,400..700&family=Montserrat:wght@300;400;500;600;700;800&display=swap');

/* 2. Custom CSS Variables */
:root {
  /* Exclusive Dark Color Palette */
  --bg-primary: #070908;       /* Black base background */
  --bg-secondary: #0d110f;     /* Deep charcoal graphite background */
  --bg-card: #151b18;          /* Elevating dark graphite for boxes & cards */
  --bg-card-hover: #1b231f;    /* Hover state for dark graphite cards */
  --bg-dark-card: #111614;     /* Deep inset panel background */
  
  /* Forest & Emerald Dark Greens */
  --primary-green: #0a3d28;
  --primary-green-rgb: 10, 61, 40;
  --light-green: #11573b;
  --bg-green-soft: rgba(14, 75, 51, 0.25);
  
  /* Crimson / Accent Reds */
  --primary-red: #8f1d1d;
  --primary-red-rgb: 143, 29, 29;
  --light-red: #b82525;
  --bg-red-soft: rgba(143, 29, 29, 0.2);
  
  /* Artisan Bronze & Metallic Details */
  --bronze: #a38048;
  --bronze-light: #c5a059;
  --bronze-dark: #7a5e33;
  --bronze-border: rgba(163, 128, 72, 0.38);
  --bronze-border-glow: rgba(163, 128, 72, 0.6);
  
  /* Gold Accents & Highlights */
  --gold-accent: #d4af37;
  --gold-hover: #e8c453;
  --gold-light: #f3d778;
  --gold-gradient: linear-gradient(135deg, #f3d778 0%, #d4af37 50%, #a38048 100%);
  --bronze-gradient: linear-gradient(135deg, #c5a059 0%, #a38048 50%, #7a5e33 100%);
  
  /* Typography Colors */
  --text-dark: #f0f4f1;        /* High-contrast crisp light text */
  --text-muted: #95a39b;      /* Soft graphite muted text */
  --text-light: #ffffff;
  --text-light-muted: #829188;
  
  --border-color: rgba(163, 128, 72, 0.35);
  --border-color-dark: rgba(163, 128, 72, 0.5);
  
  /* Typography */
  --font-headings: 'Montserrat', sans-serif;
  --font-body: 'Lora', serif;
  
  /* Layout & Utility Tokens */
  --header-height: 85px;
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;
  --transition-smooth: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  
  /* Soft Blurred Shadow with Subtle Bronze Glow */
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 15px rgba(163, 128, 72, 0.08);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.85), 0 0 25px rgba(163, 128, 72, 0.15);
  --shadow-gold: 0 0 20px rgba(212, 175, 55, 0.25);
}

/* 3. Base Styles & Resets */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-primary);
}

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

/* Rosette of Pliska Main Background Watermark Overlay */
body::before {
  content: '';
  position: fixed;
  top: 50%;
  left: 50%;
  width: 900px;
  height: 900px;
  transform: translate(-50%, -50%);
  background-image: url('../images/rosette_pliska.svg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.04;
  pointer-events: none;
  z-index: 0;
}

h1, h2, h3, h4, h5, h6, .navbar-logo, .btn, .spec-label, .badge, .edition-tag {
  font-family: var(--font-headings);
  font-weight: 700;
}

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

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

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

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 9px;
}
::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}
::-webkit-scrollbar-thumb {
  background: var(--bronze);
  border-radius: var(--border-radius-sm);
  border: 2px solid var(--bg-secondary);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold-accent);
}

/* Container */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

/* 4. Header & Navigation */
.navbar {
  height: var(--header-height);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(7, 9, 8, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-smooth);
}

.navbar.scrolled {
  height: 72px;
  background: rgba(7, 9, 8, 0.96);
  box-shadow: 0 10px 30px rgba(0,0,0,0.8), 0 1px 0 rgba(163, 128, 72, 0.3);
}

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

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1.25rem;
  color: var(--gold-accent);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.logo-icon {
  width: 66px;
  height: 44px;
  background: url('../images/br_logo_400.png') no-repeat center center;
  background-size: contain;
  filter: drop-shadow(0 0 6px rgba(212, 175, 55, 0.4));
  transition: var(--transition-smooth);
}

.navbar-logo:hover .logo-icon {
  transform: scale(1.06);
}

.navbar-menu {
  display: flex;
  list-style: none;
  gap: 32px;
  align-items: center;
}

.navbar-link {
  font-family: var(--font-headings);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
  letter-spacing: 1px;
  text-transform: uppercase;
  position: relative;
  padding: 6px 0;
}

.navbar-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold-gradient);
  transition: var(--transition-smooth);
}

.navbar-link:hover {
  color: var(--gold-accent);
}

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

.navbar-link.accent {
  color: var(--gold-accent);
  border: 1px solid var(--bronze);
  padding: 8px 18px;
  border-radius: var(--border-radius-sm);
  background: rgba(163, 128, 72, 0.1);
}

.navbar-link.accent::after {
  display: none;
}

.navbar-link.accent:hover {
  background: var(--bronze);
  color: var(--bg-primary);
  box-shadow: var(--shadow-gold);
}

/* Mobile Navigation Toggle */
.nav-toggle {
  display: none;
  font-size: 1.5rem;
  color: var(--gold-accent);
}

/* 5. Hero Section - Limited Edition Presentation */
.hero {
  position: relative;
  background: radial-gradient(circle at 50% 30%, #151b18 0%, #0d110f 60%, #070908 100%);
  color: var(--text-light);
  padding: 170px 0 120px 0;
  overflow: hidden;
  border-bottom: 1px solid var(--border-color);
}

/* Large Rosette Backdrop behind Hero */
.hero::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 25%;
  width: 680px;
  height: 680px;
  transform: translate(-50%, -50%);
  background-image: url('../images/rosette_hero_bg.jpg');
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  opacity: 0.38;
  mix-blend-mode: lighten;
  pointer-events: none;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 5;
}

.hero-content {
  max-width: 680px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(163, 128, 72, 0.12);
  border: 1px solid var(--bronze);
  color: var(--gold-accent);
  padding: 8px 20px;
  border-radius: 50px;
  font-family: var(--font-headings);
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 28px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.hero-badge-rosette {
  width: 18px;
  height: 18px;
  background: url('../images/rosette_pliska.svg') no-repeat center center;
  background-size: contain;
}

.hero-title {
  font-size: 3.4rem;
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -0.5px;
  font-weight: 800;
}

.hero-title span {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  gap: 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: var(--border-radius-sm);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: var(--transition-smooth);
}

.btn-primary {
  background: var(--gold-gradient);
  color: var(--bg-primary);
  box-shadow: 0 6px 20px rgba(163, 128, 72, 0.35);
  border: 1px solid var(--gold-light);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(212, 175, 55, 0.5);
  background: linear-gradient(135deg, #ffffff 0%, #e6c65b 50%, #c5a059 100%);
}

.btn-secondary {
  background-color: rgba(21, 27, 24, 0.7);
  color: var(--text-dark);
  border: 1px solid var(--bronze);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  border-color: var(--gold-accent);
  color: var(--gold-accent);
  background-color: rgba(163, 128, 72, 0.15);
  transform: translateY(-3px);
}

.hero-graphics {
  display: flex;
  justify-content: center;
  position: relative;
}

/* Glowing Aura Behind Hero Rod Image */
.glow-ring {
  position: absolute;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(163, 128, 72, 0.25) 0%, rgba(14, 75, 51, 0.15) 50%, rgba(0, 0, 0, 0) 75%);
  filter: blur(30px);
  animation: pulse-ring 6s infinite alternate;
}

.hero-image-wrapper {
  position: relative;
  z-index: 2;
  transition: var(--transition-bounce);
}

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

.hero-img {
  width: 310px;
  height: 420px;
  object-fit: cover;
  border-radius: var(--border-radius-md);
  border: 1px solid var(--bronze);
  box-shadow: var(--shadow-lg);
}



/* Animation definitions */
@keyframes pulse-ring {
  0% { transform: scale(0.92); opacity: 0.5; }
  100% { transform: scale(1.08); opacity: 0.9; }
}

/* 6. Shevitsa & Rosette Cultural Divider */
.shevitsa-divider {
  width: 100%;
  height: 24px;
  background-color: var(--bg-primary);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='24' viewBox='0 0 48 24'%3E%3Cg fill='%23a38048'%3E%3Crect x='22' y='0' width='4' height='24' opacity='0.4'/%3E%3Crect x='0' y='10' width='48' height='4' opacity='0.4'/%3E%3Cpolygon points='24,2 34,12 24,22 14,12' fill='%230a3d28' stroke='%23a38048' stroke-width='1'/%3E%3Ccircle cx='24' cy='12' r='3.5' fill='%23d4af37'/%3E%3Cpolygon points='0,2 10,12 0,22' fill='%238f1d1d' opacity='0.6'/%3E%3Cpolygon points='48,2 38,12 48,22' fill='%238f1d1d' opacity='0.6'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: auto 24px;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  opacity: 0.9;
}

/* 7. Product Showcase Section */
.showcase {
  padding: 110px 0;
  background-color: var(--bg-primary);
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 64px auto;
}

.section-subtitle {
  font-family: var(--font-headings);
  color: var(--bronze-light);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 3px;
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-size: 2.3rem;
  color: var(--text-dark);
  position: relative;
  padding-bottom: 18px;
  display: inline-block;
  font-weight: 800;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 30%;
  width: 40%;
  height: 2px;
  background: var(--gold-gradient);
}

/* Product Detail Grid */
.product-grid {
  display: grid;
  /* minmax(0, …) keeps a long row of thumbnails scrolling inside its column
     instead of stretching the page wider than the phone screen */
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 60px;
  align-items: start;
}

/* Left Column: Image Slider & Gallery */
.product-gallery {
  position: sticky;
  top: 120px;
}

.main-image-container {
  position: relative;
  background-color: var(--bg-card);
  border-radius: var(--border-radius-md);
  padding: 28px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  margin-bottom: 20px;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.main-image-container img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.5s ease;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.6));
}

.main-image-container #main-product-image {
  cursor: zoom-in;
}

.main-image-container:hover img {
  transform: scale(1.06);
}

.gallery-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(10, 61, 40, 0.85);
  border: 1px solid var(--bronze);
  color: var(--gold-accent);
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  z-index: 10;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(4px);
}

/* Slider navigation arrows */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  color: var(--gold-accent);
  transition: var(--transition-smooth);
  z-index: 10;
  font-size: 1.1rem;
}

.slider-arrow:hover {
  background: var(--bronze);
  color: var(--bg-primary);
  border-color: var(--gold-accent);
  box-shadow: var(--shadow-gold);
}

.slider-arrow.prev {
  left: 15px;
}

.slider-arrow.next {
  right: 15px;
}

/* Thumbnails */
.thumbnail-container {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 8px 4px;
  scrollbar-width: thin;
}

.thumbnail {
  flex: 0 0 80px;
  height: 80px;
  border-radius: var(--border-radius-sm);
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  cursor: pointer;
  overflow: hidden;
  transition: var(--transition-smooth);
  opacity: 0.6;
}

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

.thumbnail.active {
  border-color: var(--gold-accent);
  box-shadow: var(--shadow-gold);
  opacity: 1;
}

.thumbnail:hover {
  opacity: 1;
  border-color: var(--bronze);
}

/* Right Column: Content Detail */
.product-details {
  display: flex;
  flex-direction: column;
}

.product-title {
  font-size: 2.3rem;
  color: var(--text-dark);
  margin-bottom: 8px;
  font-weight: 800;
}

.product-subtitle {
  font-size: 1.05rem;
  color: var(--gold-accent);
  margin-bottom: 24px;
  letter-spacing: 0.5px;
}

.price-container {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.price-val {
  font-family: var(--font-headings);
  font-size: 2.6rem;
  font-weight: 800;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.price-currency {
  font-family: var(--font-headings);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gold-accent);
}

.price-vat-info {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.product-desc {
  font-size: 1.05rem;
  color: var(--text-dark);
  margin-bottom: 32px;
  line-height: 1.7;
}

/* Specification Boxes - DARK GRAPHITE WITH THIN BRONZE BORDER & SOFT SHADOW */
.spec-section-title {
  font-size: 1.15rem;
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color);
  color: var(--bronze-light);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 36px;
}

.spec-item {
  display: flex;
  flex-direction: column;
  padding: 14px 18px;
  background-color: var(--bg-card);          /* Dark Graphite Background */
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--border-color);       /* Thin Bronze Border */
  border-left: 3px solid var(--bronze);
  box-shadow: var(--shadow-md);               /* Soft Blurred Shadow */
  transition: var(--transition-smooth);
}

.spec-item:hover {
  border-color: var(--gold-accent);
  background-color: var(--bg-card-hover);
  transform: translateY(-2px);
}

.spec-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.spec-value {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-dark);
}

/* Features List */
.features-list {
  list-style: none;
  margin-bottom: 40px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  font-size: 1rem;
  padding: 10px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  box-shadow: var(--shadow-sm);
}

.feature-icon {
  color: var(--gold-accent);
  font-size: 1.1rem;
}

/* Main Action Button with Phone Order Indicator */
.btn-order-cta {
  width: 100%;
  padding: 20px 32px;
  font-size: 1.05rem;
  background: var(--gold-gradient);
  color: var(--bg-primary);
  border: 1px solid var(--gold-light);
  border-radius: var(--border-radius-sm);
  box-shadow: 0 8px 24px rgba(163, 128, 72, 0.4);
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.btn-order-cta:hover {
  background: linear-gradient(135deg, #ffffff 0%, #e6c65b 50%, #c5a059 100%);
  box-shadow: 0 12px 32px rgba(212, 175, 55, 0.55);
  transform: translateY(-2px);
}

/* 8. Patriotism / Legend Section */
.legend-section {
  background: radial-gradient(circle at 50% 50%, #151b18 0%, #0d110f 60%, #070908 100%);
  color: var(--text-light);
  padding: 110px 0;
  position: relative;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

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

.legend-content h2 {
  font-size: 2.3rem;
  margin-bottom: 24px;
  font-weight: 800;
}

.legend-content h2 span {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.legend-text {
  color: var(--text-muted);
  font-size: 1.08rem;
  margin-bottom: 20px;
  line-height: 1.7;
}

.legend-quote {
  border-left: 3px solid var(--gold-accent);
  padding: 16px 24px;
  margin: 32px 0;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--gold-light);
  background: rgba(163, 128, 72, 0.08);
  border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
}

.legend-stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  margin-top: 40px;
}

.stat-item {
  text-align: center;
  padding: 20px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  box-shadow: var(--shadow-md);
}

.stat-number {
  font-family: var(--font-headings);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--gold-accent);
  display: block;
}

.stat-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

/* 9. Product Catalog Grid - DARK GRAPHITE CARDS */
.rods-catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 32px;
  margin-top: 50px;
}

.product-card {
  background: var(--bg-card);                 /* Dark Graphite Background */
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border-color);       /* Thin Bronze Border */
  overflow: hidden;
  box-shadow: var(--shadow-md);               /* Soft Blurred Shadow */
  transition: var(--transition-bounce);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card:hover {
  transform: translateY(-8px);
  border-color: var(--gold-accent);
  box-shadow: var(--shadow-lg);
  background: var(--bg-card-hover);
}

.card-img-wrapper {
  height: 250px;
  background-color: var(--bg-dark-card);
  overflow: hidden;
  position: relative;
}

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

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

.card-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(10, 61, 40, 0.9);
  border: 1px solid var(--bronze);
  color: var(--gold-accent);
  font-size: 0.72rem;
  padding: 4px 12px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.card-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: 8px;
  color: var(--text-dark);
  font-weight: 700;
}

.card-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.6;
  flex-grow: 1;
}

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

.card-price {
  font-family: var(--font-headings);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--gold-accent);
}

.card-btn {
  background: rgba(163, 128, 72, 0.15);
  border: 1px solid var(--bronze);
  color: var(--gold-accent);
  padding: 8px 18px;
  border-radius: var(--border-radius-sm);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-btn:hover {
  background: var(--bronze);
  color: var(--bg-primary);
  box-shadow: var(--shadow-gold);
}

/* 10. The Order Modal - DARK GRAPHITE THEME */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(4, 6, 5, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

.modal-card {
  background: var(--bg-card);                 /* Dark Graphite Background */
  width: 100%;
  max-width: 520px;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-lg);               /* Soft Blurred Shadow */
  overflow: hidden;
  position: relative;
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid var(--bronze);             /* Thin Bronze Border */
}

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

/* Dynamic Bulgarian ribbon at the top of the modal */
.modal-flag-bar {
  height: 5px;
  width: 100%;
  display: flex;
}
.flag-stripe-white { flex: 1; background: #ffffff; }
.flag-stripe-green { flex: 1; background: #00966E; }
.flag-stripe-red { flex: 1; background: #D62612; }

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

.modal-close {
  font-size: 1.4rem;
  color: var(--text-muted);
  transition: var(--transition-smooth);
}

.modal-close:hover {
  color: var(--gold-accent);
}

.modal-body {
  padding: 28px 24px 28px 24px;
  text-align: center;
}

.modal-icon {
  width: 70px;
  height: 70px;
  background: url('../images/rosette_pliska.svg') no-repeat center center;
  background-size: contain;
  margin: 0 auto 20px auto;
  filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.5));
}

.modal-body-title {
  font-size: 1.4rem;
  margin-bottom: 14px;
  color: var(--text-dark);
  font-weight: 700;
}

.modal-prod-info {
  background-color: var(--bg-dark-card);
  border-radius: var(--border-radius-sm);
  padding: 14px 20px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--border-color);
}

.modal-prod-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-dark);
}

.modal-prod-price {
  font-family: var(--font-headings);
  color: var(--gold-accent);
  font-weight: 800;
  font-size: 1.1rem;
}

.modal-instructions {
  font-size: 0.98rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.6;
}

/* Call Button inside Modal */
.phone-cta-box {
  background-color: rgba(163, 128, 72, 0.08);
  border: 1px dashed var(--bronze);
  border-radius: var(--border-radius-sm);
  padding: 22px;
  margin-bottom: 24px;
}

.phone-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-headings);
  font-size: 1.65rem;
  color: var(--gold-accent);
  font-weight: 800;
  margin-bottom: 8px;
}

.phone-link:hover {
  color: var(--gold-light);
  transform: scale(1.02);
}

.phone-sub-text {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.modal-shipping-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--bronze-light);
  font-weight: 600;
}

/* 11. Footer Styles */
.footer {
  background-color: var(--bg-secondary);
  color: var(--text-muted);
  padding: 70px 0 32px 0;
  border-top: 1px solid var(--border-color);
  position: relative;
  z-index: 2;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand h3 {
  color: var(--gold-accent);
  margin-bottom: 16px;
  font-size: 1.35rem;
  letter-spacing: 1px;
}

.footer-brand p {
  max-width: 420px;
  margin-bottom: 20px;
  line-height: 1.7;
}

.footer-links {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

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

.footer-link-item a {
  color: var(--text-muted);
}

.footer-link-item a:hover {
  color: var(--gold-accent);
}

.footer-socials {
  display: flex;
  gap: 16px;
  margin-top: 24px;
}

.social-icon {
  width: 42px;
  height: 42px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
  transition: var(--transition-smooth);
}

.social-icon:hover {
  background: var(--bronze);
  color: var(--bg-primary);
  border-color: var(--gold-accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-gold);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom p {
  font-size: 0.85rem;
}

.footer-legal-inline a {
  color: var(--text-muted);
  border-bottom: 1px solid transparent;
  transition: var(--transition-smooth);
}

.footer-legal-inline a:hover {
  color: var(--gold-accent);
  border-bottom-color: var(--bronze-border);
}

.patriotic-sig {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-headings);
  font-size: 0.88rem;
  color: var(--gold-accent);
  font-weight: 600;
}

/* Form controls dark mode styling for Admin & Forms */
.form-control {
  background-color: var(--bg-dark-card) !important;
  color: var(--text-dark) !important;
  border: 1px solid var(--border-color) !important;
}

.form-control:focus {
  border-color: var(--gold-accent) !important;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2) !important;
}

/* 12. Media Queries for Responsiveness */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 48px;
  }
  
  .hero-content {
    margin: 0 auto;
  }
  
  .hero-ctas {
    justify-content: center;
  }
  
  .hero-title {
    font-size: 2.7rem;
  }
  
  .product-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }
  
  .product-gallery {
    position: static;
  }
  
  .main-image-container {
    height: 420px;
  }
  
  .legend-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .navbar-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 75px;
    left: 0;
    right: 0;
    background: #131715;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
  }
  
  .navbar-menu.nav-active {
    display: flex;
  }
  
  .nav-toggle {
    display: block;
  }
  
  .specs-grid {
    grid-template-columns: 1fr;
  }

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

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

  .rods-catalog-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 2.2rem;
  }

  .hero-ctas {
    flex-direction: column;
    gap: 16px;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .price-val {
    font-size: 2.5rem;
  }
  
  .main-image-container {
    height: 300px;
  }
  
  .legend-stats {
    flex-direction: column;
    gap: 20px;
  }

  .modal-card {
    margin: 10px;
    padding: 0;
  }

  .phone-cta-box {
    padding: 16px;
  }

  .phone-link {
    font-size: 1.25rem;
  }
}

/* 13. Legal Pages (Общи условия / Политика за поверителност) */
.legal-hero {
  position: relative;
  background: radial-gradient(circle at 50% 0%, #151b18 0%, #0d110f 60%, #070908 100%);
  padding: 150px 0 60px 0;
  border-bottom: 1px solid var(--border-color);
  text-align: center;
}

.legal-hero .hero-badge {
  margin: 0 auto 22px auto;
}

.legal-hero h1 {
  font-family: var(--font-headings);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--text-light);
  letter-spacing: 1px;
  line-height: 1.25;
}

.legal-hero h1 span {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.legal-hero .legal-subtitle {
  max-width: 720px;
  margin: 18px auto 0 auto;
  color: var(--text-muted);
  line-height: 1.8;
}

.legal-section {
  padding: 64px 0 90px 0;
  background-color: var(--bg-primary);
}

.legal-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: start;
}

.legal-toc {
  position: sticky;
  top: 110px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
}

.legal-toc h2 {
  font-family: var(--font-headings);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gold-accent);
  margin-bottom: 18px;
}

.legal-toc ol {
  list-style: none;
  counter-reset: toc;
  display: grid;
  gap: 10px;
}

.legal-toc li {
  counter-increment: toc;
  font-size: 0.9rem;
  line-height: 1.5;
}

.legal-toc a {
  color: var(--text-muted);
  transition: var(--transition-smooth);
}

.legal-toc a::before {
  content: counter(toc) ". ";
  color: var(--bronze);
  font-family: var(--font-headings);
  font-weight: 600;
}

.legal-toc a:hover {
  color: var(--gold-accent);
}

.legal-content {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 46px 48px;
  box-shadow: var(--shadow-md);
  scroll-margin-top: 110px;
}

.legal-content > article {
  scroll-margin-top: 110px;
  padding-top: 34px;
  margin-top: 34px;
  border-top: 1px solid rgba(163, 128, 72, 0.18);
}

.legal-content > article:first-of-type {
  padding-top: 0;
  margin-top: 0;
  border-top: none;
}

.legal-content h2 {
  font-family: var(--font-headings);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gold-accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.5;
  margin-bottom: 18px;
}

.legal-content h3 {
  font-family: var(--font-headings);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-light);
  margin: 24px 0 12px 0;
}

.legal-content p {
  color: var(--text-muted);
  line-height: 1.9;
  margin-bottom: 16px;
}

.legal-content a {
  color: var(--gold-accent);
  border-bottom: 1px solid var(--bronze-border);
}

.legal-content a:hover {
  color: var(--gold-hover);
}

.legal-content ol,
.legal-content ul {
  margin: 0 0 16px 22px;
  color: var(--text-muted);
}

.legal-content li {
  line-height: 1.9;
  margin-bottom: 10px;
  padding-left: 6px;
}

.legal-content li::marker {
  color: var(--bronze-light);
}

.legal-content strong {
  color: var(--text-dark);
  font-weight: 600;
}

.legal-intro {
  background: var(--bg-dark-card);
  border: 1px solid var(--border-color);
  border-left: 3px solid var(--bronze);
  border-radius: var(--border-radius-sm);
  padding: 26px 28px;
  margin-bottom: 38px;
}

.legal-intro p:last-child {
  margin-bottom: 0;
}

.legal-contact-list {
  list-style: none;
  margin-left: 0 !important;
  display: grid;
  gap: 12px;
}

.legal-contact-list li {
  background: var(--bg-dark-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: 14px 18px;
  margin-bottom: 0;
  padding-left: 18px;
}

.legal-contact-list .legal-label {
  display: block;
  font-family: var(--font-headings);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--bronze-light);
  margin-bottom: 4px;
}

.legal-placeholder {
  display: inline-block;
  background: var(--bg-red-soft);
  border: 1px dashed rgba(184, 37, 37, 0.5);
  border-radius: 4px;
  padding: 1px 8px;
  font-family: var(--font-headings);
  font-size: 0.8rem;
  color: #e3a0a0;
  letter-spacing: 0.5px;
}

.legal-meta {
  margin-top: 40px;
  padding-top: 26px;
  border-top: 1px solid var(--border-color);
  font-size: 0.85rem;
  color: var(--text-light-muted);
}

.legal-related {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

@media (max-width: 992px) {
  .legal-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .legal-toc {
    position: static;
  }
}

@media (max-width: 768px) {
  .legal-hero {
    padding: 130px 0 50px 0;
  }

  .legal-hero h1 {
    font-size: 1.8rem;
  }

  .legal-content {
    padding: 30px 22px;
  }
}

/* ---------------------------------------------------------------
   Fullscreen photo viewer
   --------------------------------------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  background: #040605;
  touch-action: pan-y pinch-zoom;
}

.lightbox.active {
  display: flex;
}

body.lightbox-open {
  overflow: hidden;
}

.lightbox-img {
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 96px);
  max-height: calc(100dvh - 96px);
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

.lightbox-close,
.lightbox-arrow {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid var(--border-color);
  color: var(--gold-accent);
  border-radius: 50%;
  cursor: pointer;
  line-height: 1;
  transition: var(--transition-smooth);
}

.lightbox-close:hover,
.lightbox-arrow:hover {
  border-color: var(--gold-accent);
  color: var(--gold-light);
}

.lightbox-close {
  top: 16px;
  right: 16px;
  width: 46px;
  height: 46px;
  font-size: 1.9rem;
  z-index: 1;
}

.lightbox-arrow {
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  font-size: 2.2rem;
  padding-bottom: 4px;
}

.lightbox-arrow.prev { left: 16px; }
.lightbox-arrow.next { right: 16px; }

.lightbox-counter {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-muted);
  font-family: var(--font-headings);
  font-size: 0.85rem;
  letter-spacing: 1px;
}

@media (max-width: 768px) {
  .lightbox-arrow {
    width: 42px;
    height: 42px;
    font-size: 1.8rem;
  }
  .lightbox-arrow.prev { left: 8px; }
  .lightbox-arrow.next { right: 8px; }
}
