/* Optex.kz Grounding Shop Style Sheet */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Outfit:wght@400;500;600;700;800;900&display=swap');

/* CSS Custom Properties / Design Tokens */
:root {
  /* Colors */
  --bg-darker: #0b0c0f;
  --bg-main: #111216;
  --bg-card: #18191f;
  --bg-card-hover: #1e2029;
  --border-color: rgba(255, 255, 255, 0.06);
  --border-glow: rgba(255, 222, 0, 0.15);
  
  --primary: #FFDE00; /* Optex Yellow */
  --primary-hover: #e6c800;
  --primary-dark: #b39b00;
  --primary-glow: rgba(255, 222, 0, 0.35);
  
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-inverse: #0b0c0f;
  
  --success: #10b981;
  --success-bg: rgba(16, 185, 129, 0.1);
  --success-border: rgba(16, 185, 129, 0.25);
  
  --warning: #f59e0b;
  --warning-bg: rgba(245, 158, 11, 0.1);
  --warning-border: rgba(245, 158, 11, 0.25);
  
  --error: #ef4444;
  
  /* Fonts */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-header: 'Outfit', 'Inter', sans-serif;
  
  /* Grid & Widths */
  --max-width: 1200px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s ease;
}

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

html {
  scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-header);
  font-weight: 700;
  line-height: 1.25;
  color: #ffffff;
}

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

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

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

.section-padding {
  padding: 80px 0;
}

@media (max-width: 768px) {
  .section-padding {
    padding: 60px 0;
  }
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 15px;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition-normal);
  gap: 8px;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--text-inverse);
  box-shadow: 0 4px 15px rgba(255, 222, 0, 0.15);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--primary-glow);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.btn-small {
  padding: 8px 16px;
  font-size: 13px;
  border-radius: var(--radius-sm);
}

.btn-icon-only {
  padding: 12px;
  aspect-ratio: 1;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(17, 18, 22, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  padding: 16px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo-link {
  display: flex;
  align-items: center;
  height: 48px;
  width: auto;
}

.logo-img {
  height: 100%;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

@media (max-width: 900px) {
  .nav {
    display: none; /* simple hidden for mobile, in premium we can have floating items or focus on CTA */
  }
}

.nav-link {
  font-weight: 500;
  font-size: 15px;
  color: var(--text-muted);
}

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

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.contacts-header {
  text-align: right;
  font-size: 14px;
}

.phone-link {
  font-weight: 700;
  color: #ffffff;
  display: block;
}

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

.city-label {
  color: var(--text-muted);
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

/* Floating Cart Trigger Button */
.cart-trigger-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: #ffffff;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  transition: all var(--transition-normal);
}

.cart-trigger-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.cart-icon {
  font-size: 20px;
}

.cart-count {
  background-color: var(--primary);
  color: var(--text-inverse);
  font-weight: 700;
  font-size: 11px;
  min-width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* Bounce Animation */
@keyframes bounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

.bounce {
  animation: bounce 0.5s ease;
}

/* Hero Section */
.hero {
  position: relative;
  overflow: hidden;
  padding: 100px 0 120px;
  background: radial-gradient(circle at 80% 20%, rgba(255, 222, 0, 0.04) 0%, transparent 60%),
              radial-gradient(circle at 10% 80%, rgba(255, 255, 255, 0.01) 0%, transparent 50%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 48px;
}

@media (max-width: 900px) {
  .hero {
    padding: 60px 0;
  }
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

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

@media (max-width: 600px) {
  .hero-content h1 {
    font-size: 36px;
  }
}

.hero-content h1 span {
  color: var(--primary);
}

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

@media (max-width: 900px) {
  .hero-content p {
    margin-left: auto;
    margin-right: auto;
  }
}

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

@media (max-width: 900px) {
  .hero-actions {
    justify-content: center;
  }
}

.hero-illustration {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-circle-bg {
  position: absolute;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(255, 222, 0, 0.1) 0%, rgba(255, 222, 0, 0) 70%);
  border-radius: 50%;
  animation: pulse 4s infinite alternate;
}

.hero-img {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 340px;
  filter: drop-shadow(0 15px 30px rgba(0,0,0,0.5));
}

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

/* Features grid */
.features-strip {
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  background-color: var(--bg-darker);
  padding: 30px 0;
}

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

@media (max-width: 900px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

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

.feature-icon {
  font-size: 24px;
  color: var(--primary);
  line-height: 1;
}

.feature-text h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}

.feature-text p {
  font-size: 13px;
  color: var(--text-muted);
}

/* Section Header */
.section-header {
  margin-bottom: 48px;
}

.section-header h2 {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 16px;
  max-width: 600px;
  margin: 0 auto;
}

/* Catalog Filter System */
.catalog-filters {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 10px 24px;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

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

/* Product Cards Grid */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
}

.product-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-8px);
  background-color: var(--bg-card-hover);
  border-color: rgba(255, 222, 0, 0.25);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 20px rgba(255, 222, 0, 0.02);
}

.product-img-wrapper {
  position: relative;
  padding-top: 66%; /* 3:2 Aspect Ratio */
  background: radial-gradient(circle, rgba(255, 255, 255, 0.02) 0%, rgba(0, 0, 0, 0.2) 100%);
  overflow: hidden;
}

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

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

.product-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background-color: var(--primary);
  color: var(--text-inverse);
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 50px;
  z-index: 2;
  letter-spacing: 0.5px;
}

.product-info {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  height: 48px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.product-short-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.5;
  flex-grow: 1;
}

.product-meta {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 12px;
}

.product-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.product-price {
  display: flex;
  flex-direction: column;
}

.price-val {
  font-family: var(--font-header);
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
}

.price-vat {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.product-actions {
  display: flex;
  gap: 8px;
}

/* Grounding Calculator UI */
.calculator-box {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  margin-bottom: 40px;
}

@media (max-width: 600px) {
  .calculator-box {
    padding: 24px;
  }
}

.calc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  align-items: flex-end;
  margin-bottom: 30px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-group label {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
}

.form-select, .form-input {
  background-color: var(--bg-darker);
  border: 1px solid var(--border-color);
  color: #ffffff;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 15px;
  width: 100%;
  outline: none;
  transition: all var(--transition-fast);
}

.form-select:focus, .form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-glow);
}

/* Calculator Results */
.calc-results-section {
  display: none;
  border-top: 1px solid var(--border-color);
  padding-top: 40px;
  margin-top: 40px;
  animation: fadeIn var(--transition-normal) forwards;
}

.calc-results-section.active {
  display: block;
}

.results-heading {
  font-size: 22px;
  margin-bottom: 6px;
  text-align: center;
}

.results-subheading {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 30px;
}

.calc-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

@media (max-width: 768px) {
  .calc-cards-grid {
    grid-template-columns: 1fr;
  }
}

.calc-res-card {
  background-color: var(--bg-darker);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  transition: all var(--transition-fast);
}

.calc-res-card.success {
  border-color: var(--success-border);
  background-color: var(--success-bg);
}

.calc-res-card.warning {
  border-color: var(--warning-border);
  background-color: var(--warning-bg);
}

.res-card-header {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.res-card-value {
  font-family: var(--font-header);
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 8px;
}

.calc-res-card.success .res-card-value { color: var(--success); }
.calc-res-card.warning .res-card-value { color: var(--warning); }

.res-card-status {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
}

.calc-res-card.success .res-card-status { color: var(--success); }
.calc-res-card.warning .res-card-status { color: var(--warning); }

.recommendation-badge {
  display: flex;
  gap: 20px;
  padding: 24px;
  border-radius: var(--radius-md);
  margin-bottom: 30px;
  align-items: center;
}

.success-bg {
  background-color: var(--success-bg);
  border: 1px solid var(--success-border);
}

.alert-bg {
  background-color: var(--warning-bg);
  border: 1px solid var(--warning-border);
}

.rec-icon {
  font-size: 36px;
  line-height: 1;
}

.recommendation-badge p {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 4px;
}

.calc-result-actions {
  display: flex;
  justify-content: center;
}

/* Benefits Section */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

@media (max-width: 900px) {
  .benefits-grid {
    grid-template-columns: 1fr;
  }
}

.benefit-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 40px;
  border-radius: var(--radius-lg);
  transition: all var(--transition-normal);
}

.benefit-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
  background-color: var(--bg-card-hover);
  transform: translateY(-5px);
}

.benefit-card-icon {
  font-size: 40px;
  margin-bottom: 24px;
  display: inline-block;
}

.benefit-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
}

.benefit-card p {
  font-size: 14.5px;
  color: var(--text-muted);
}

/* SEO Article Section */
.seo-article {
  background-color: var(--bg-darker);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 80px 0;
}

.seo-article-content {
  max-width: 900px;
  margin: 0 auto;
}

.seo-article-content h2 {
  font-size: 32px;
  margin-bottom: 24px;
  text-align: center;
}

.seo-article-content h3 {
  font-size: 22px;
  margin: 32px 0 16px;
  color: var(--primary);
}

.seo-article-content p {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 18px;
  text-align: justify;
}

.seo-article-content ul {
  margin-bottom: 24px;
  padding-left: 20px;
}

.seo-article-content li {
  font-size: 14.5px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

/* Contacts Section */
.contacts-section {
  padding: 80px 0;
}

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

@media (max-width: 900px) {
  .contacts-grid {
    grid-template-columns: 1fr;
  }
}

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

.contacts-info h2 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 8px;
}

.contacts-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-icon {
  font-size: 24px;
  color: var(--primary);
  line-height: 1;
}

.contact-details h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.contact-details p, .contact-details a {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
}

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

.vat-badge {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  margin-top: 10px;
}

.vat-badge p {
  font-size: 14px;
  color: var(--primary);
  font-weight: 600;
}

.map-wrapper {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 10px;
  height: 380px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.map-placeholder {
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255,222,0,0.02) 0%, rgba(0,0,0,0.4) 100%), url('https://placehold.co/600x400/18191f/999?text=Карта+Алматы+(Optex.kz)');
  background-size: cover;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
  text-align: center;
  padding: 20px;
}

.map-tag {
  background-color: var(--primary);
  color: var(--text-inverse);
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 50px;
}

/* Modals System (Cart & Product Details) */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(7, 8, 10, 0.85);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  justify-content: flex-end; /* Slider modal by default */
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

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

.modal-drawer {
  background-color: var(--bg-main);
  width: 100%;
  max-width: 580px;
  height: 100%;
  box-shadow: -10px 0 40px rgba(0,0,0,0.5);
  transform: translateX(100%);
  transition: transform var(--transition-normal);
  display: flex;
  flex-direction: column;
}

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

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

.modal-header h3 {
  font-size: 22px;
  font-weight: 800;
}

.close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 24px;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.close-btn:hover {
  color: #ffffff;
}

.modal-body {
  flex-grow: 1;
  overflow-y: auto;
  padding: 24px;
}

.empty-cart-message {
  text-align: center;
  padding: 48px 0;
  color: var(--text-muted);
}

.empty-cart-message .icon {
  font-size: 64px;
  margin-bottom: 16px;
  display: block;
}

/* Cart Specific Styles */
.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 30px;
}

.cart-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

.cart-item-info {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-grow: 1;
  min-width: 0;
}

.cart-item-thumb {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background-color: var(--bg-darker);
  border: 1px solid var(--border-color);
}

.cart-item-text {
  min-width: 0;
}

.cart-item-title {
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
  color: #ffffff;
}

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

.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.quantity-controller {
  display: flex;
  align-items: center;
  background-color: var(--bg-darker);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.qty-btn {
  background: transparent;
  border: none;
  color: #ffffff;
  width: 28px;
  height: 28px;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
}

.qty-btn:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.qty-val {
  padding: 0 10px;
  font-size: 13px;
  font-weight: 700;
}

.cart-item-sum {
  font-family: var(--font-header);
  font-weight: 700;
  font-size: 15px;
  color: var(--primary);
  min-width: 85px;
  text-align: right;
}

.cart-remove-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 16px;
  opacity: 0.6;
  transition: opacity var(--transition-fast);
}

.cart-remove-btn:hover {
  opacity: 1;
}

/* Cart Summary & Order Form */
.cart-summary {
  background-color: var(--bg-darker);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 30px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 14px;
  color: var(--text-muted);
}

.summary-row.total {
  border-top: 1px solid var(--border-color);
  padding-top: 12px;
  margin-top: 12px;
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
}

.summary-row.total span:last-child {
  color: var(--primary);
}

.checkout-form-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 8px;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Center modal for product details */
.center-modal {
  justify-content: center;
  align-items: center;
  padding: 24px;
}

.center-modal .modal-drawer {
  max-width: 880px;
  height: auto;
  max-height: 90vh;
  border-radius: var(--radius-lg);
  transform: scale(0.9);
  transition: transform var(--transition-normal);
}

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

/* Product Details Page Inside Modal */
.product-details-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 32px;
}

@media (max-width: 768px) {
  .product-details-grid {
    grid-template-columns: 1fr;
  }
}

.product-details-img {
  background: radial-gradient(circle, rgba(255,255,255,0.02) 0%, rgba(0,0,0,0.3) 100%);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: fit-content;
}

.product-details-content h2 {
  font-size: 26px;
  margin-bottom: 16px;
}

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

.details-price {
  font-family: var(--font-header);
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
}

.details-price .no-vat {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 500;
}

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

.details-description {
  font-size: 14.5px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.product-details-specs {
  margin-bottom: 24px;
}

.product-details-specs h4, .product-details-comp h4 {
  font-size: 14px;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.specs-table {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 16px;
  font-size: 13.5px;
}

.spec-row:nth-child(even) {
  background-color: rgba(255, 255, 255, 0.02);
}

.spec-label {
  color: var(--text-muted);
}

.spec-value {
  font-weight: 600;
  color: #ffffff;
}

.comp-list {
  list-style: none;
}

.comp-list li {
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.comp-list .bullet {
  color: var(--primary);
  font-weight: bold;
}

.details-actions {
  margin-top: 30px;
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
}

/* Footer Section */
.footer {
  background-color: var(--bg-darker);
  border-top: 1px solid var(--border-color);
  padding: 60px 0 30px;
  font-size: 14px;
  color: var(--text-muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 1.2fr;
  gap: 40px;
  margin-bottom: 40px;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-logo-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-logo {
  height: 40px;
  width: auto;
  align-self: flex-start;
}

.footer-logo-col p {
  line-height: 1.5;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

@media (max-width: 600px) {
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

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

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Blog Card Grid and Styles */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 30px;
}

@media (max-width: 600px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
}

.blog-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
}

.blog-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-glow);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.blog-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background-color: var(--bg-darker);
}

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

.blog-card-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.blog-card-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #ffffff;
}

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

.blog-card-excerpt {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
  flex-grow: 1;
  line-height: 1.5;
}

.blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 16px;
}

.read-more-link {
  color: var(--primary);
  font-weight: 600;
  font-size: 14px;
}

.read-more-link:hover {
  text-decoration: underline;
}

/* Article Detail Styles */
.article-header {
  padding: 60px 0 40px;
  text-align: center;
  background: radial-gradient(circle at 50% 50%, rgba(255, 222, 0, 0.02) 0%, transparent 60%);
}

.article-meta {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 16px;
}

.article-title {
  font-size: 40px;
  font-weight: 800;
  max-width: 800px;
  margin: 0 auto;
  letter-spacing: -0.5px;
}

@media (max-width: 768px) {
  .article-title {
    font-size: 28px;
  }
}

.article-featured-wrapper {
  max-width: 900px;
  margin: 0 auto 40px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.article-featured-img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}

.article-body {
  max-width: 800px;
  margin: 0 auto;
  padding-bottom: 60px;
}

.article-body p {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.7;
}

.article-body h3 {
  font-size: 24px;
  margin: 40px 0 16px;
  color: #ffffff;
}

.article-body ul, .article-body ol {
  margin-bottom: 24px;
  padding-left: 24px;
}

.article-body li {
  font-size: 15.5px;
  color: var(--text-muted);
  margin-bottom: 8px;
  line-height: 1.6;
}

.article-body blockquote {
  border-left: 4px solid var(--primary);
  background-color: var(--bg-darker);
  padding: 20px 24px;
  margin: 30px 0;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: #ffffff;
}

/* Contacts Form Styles */
.contact-form-box {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.2);
}

@media (max-width: 600px) {
  .contact-form-box {
    padding: 24px;
  }
}

.contact-form-box h3 {
  font-size: 24px;
  margin-bottom: 12px;
}

.contact-form-box p {
  color: var(--text-muted);
  font-size: 14.5px;
  margin-bottom: 24px;
}

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

/* Custom Calculator Constructor Styles */
.calc-results-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 30px;
  margin-top: 30px;
}

@media (max-width: 900px) {
  .calc-results-layout {
    grid-template-columns: 1fr;
  }
}

.calc-details-card {
  background-color: var(--bg-darker);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 30px;
}

.calc-spec-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

.calc-spec-table th, .calc-spec-table td {
  padding: 12px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  text-align: left;
}

.calc-spec-table th {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.calc-spec-table td {
  font-size: 14px;
}

.calc-spec-table td.price-cell {
  text-align: right;
  font-weight: 700;
  font-family: var(--font-header);
}

.calc-spec-total {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 2px dashed rgba(255, 255, 255, 0.1);
}

.calc-spec-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 15px;
}

.calc-spec-total-row.grand-total {
  font-size: 22px;
  font-family: var(--font-header);
  font-weight: 800;
  color: var(--primary);
}
