/* Critical CSS for above-the-fold content */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --secondary: #f3f4f6;
  --text: #1f2937;
  --text-light: #6b7280;
  --border: #e5e7eb;
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --radius: 12px;
  --transition: all 0.2s ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background-color: #fff;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Hero Section */
.hero {
  padding: 2rem 1rem;
  text-align: center;
  background-color: var(--secondary);
  border-radius: 0 0 var(--radius) var(--radius);
}

.breadcrumbs {
  display: flex;
  justify-content: center;
  list-style: none;
  margin-bottom: 1rem;
  font-size: 0.875rem;
}

.breadcrumbs li:not(:last-child)::after {
  content: " > ";
  margin: 0 0.5rem;
  color: var(--text-light);
}

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

.breadcrumbs a:hover {
  text-decoration: underline;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text);
}

.lead {
  max-width: 700px;
  margin: 0 auto 1.5rem;
  font-size: 1.125rem;
  color: var(--text-light);
}

.features {
  display: flex;
  justify-content: center;
  list-style: none;
  gap: 2rem;
  margin: 0;
  padding: 0;
  font-weight: 500;
}

.features li::before {
  content: "✓";
  color: var(--success);
  margin-right: 0.5rem;
}

/* Product Section */
.product-section {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 3rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.gallery {
  flex: 1;
  min-width: 300px;
}

.gallery img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 1rem;
}

.product-details {
  flex: 1;
  min-width: 300px;
}

.product-details h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.options label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.options select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background-color: #fff;
  font-size: 1rem;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
}

.availability {
  color: var(--success);
  font-weight: 500;
}

.sku {
  color: var(--text-light);
}

.price {
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--primary);
}

.btn-primary {
  background-color: var(--primary);
  color: white;
  border: none;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  width: 100%;
  max-width: 300px;
}

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

.btn-primary:disabled {
  background-color: var(--text-light);
  cursor: not-allowed;
}

/* Cart Section */
.cart-section {
  background-color: var(--secondary);
  padding: 3rem 1rem;
  border-radius: var(--radius);
  margin: 2rem 1rem;
}

.cart-section h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
}

.cart-list {
  list-style: none;
  margin-bottom: 2rem;
}

.cart-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 1rem;
}

.cart-thumb {
  border-radius: var(--radius);
}

.cart-info {
  flex: 1;
  min-width: 200px;
}

.cart-name {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.cart-options {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.cart-options label {
  font-size: 0.875rem;
  color: var(--text-light);
}

.cart-options select {
  display: block;
  margin-top: 0.25rem;
  padding: 0.25rem;
  border: 1px solid var(--border);
  border-radius: 4px;
}

.btn-link {
  background: none;
  border: none;
  color: var(--primary);
  text-decoration: underline;
  cursor: pointer;
  font-size: 0.875rem;
  padding: 0;
  margin-right: 1rem;
}

.cart-qty input {
  width: 60px;
  padding: 0.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}

.cart-price, .cart-line-total {
  font-weight: 600;
  min-width: 80px;
  text-align: right;
}

.cart-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.promo, .shipping-estimator {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.promo input, .shipping-estimator input {
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.promo .btn, .shipping-estimator .btn {
  align-self: flex-start;
  padding: 0.75rem 1.5rem;
}

.totals {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.totals th, .totals td {
  padding: 0.5rem 0;
  text-align: right;
}

.totals th {
  font-weight: normal;
  color: var(--text-light);
}

.totals .grand th, .totals .grand td {
  font-weight: 600;
  font-size: 1.25rem;
  border-top: 2px solid var(--border);
  padding-top: 1rem;
}

.rx-gate {
  background: white;
  padding: 2rem;
  border-radius: var(--radius);
  text-align: center;
  margin: 2rem 0;
  box-shadow: var(--shadow);
}

.rx-gate h3 {
  margin-bottom: 1.5rem;
  color: var(--warning);
}

.rx-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 500;
  transition: var(--transition);
}

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

.cta-row {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.btn-secondary {
  display: inline-block;
  padding: 1rem 2rem;
  border: 2px solid var(--text-light);
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

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

.trust-badges {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.trust-badges img {
  height: 32px;
}

/* Rx Section */
.rx-section {
  padding: 3rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.rx-section h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
}

.rx-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.rx-option {
  background: var(--secondary);
  padding: 2rem;
  border-radius: var(--radius);
  text-align: center;
}

.rx-option h3 {
  margin-bottom: 1rem;
}

.upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 1rem;
}

.upload-area p {
  margin-bottom: 1rem;
}

.file-preview {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  background: white;
  border-radius: var(--radius);
}

.file-status {
  color: var(--warning);
  font-weight: 500;
}

.disclaimer {
  text-align: center;
  color: var(--text-light);
  font-size: 0.875rem;
  max-width: 700px;
  margin: 0 auto;
}

/* Cross-sells */
.cross-sells {
  background-color: var(--secondary);
  padding: 3rem 1rem;
}

.cross-sells h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.product-card {
  background: white;
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
}

.product-card img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.product-card h3 {
  margin-bottom: 0.5rem;
}

.product-card p {
  color: var(--text-light);
  margin-bottom: 1rem;
  font-size: 0.875rem;
}

.product-card .price {
  display: block;
  font-weight: 600;
  font-size: 1.25rem;
  margin: 1rem 0;
}

/* FAQ Section */
.faq-section {
  padding: 3rem 1rem;
  max-width: 800px;
  margin: 0 auto;
}

.faq-section h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.faq-item dt {
  font-weight: 600;
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.faq-item dd {
  color: var(--text-light);
  line-height: 1.6;
}

/* Compliance */
.compliance {
  background-color: var(--secondary);
  padding: 2rem 1rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-light);
}

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

.compliance a:hover {
  text-decoration: underline;
}

/* Footer */
.site-footer {
  background-color: var(--text);
  color: white;
  padding: 2rem 1rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.footer-nav {
  margin: 1.5rem 0;
}

.footer-nav a {
  color: white;
  text-decoration: none;
  margin: 0 1rem;
}

.footer-nav a:hover {
  text-decoration: underline;
}

.copyright {
  color: #9ca3af;
  font-size: 0.875rem;
}

.footer-contacts{
  --fg:#1f2937; 
  --muted:#6b7280;
  --accent:#1caeb2;
  font: 400 16px/1.5 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--fg);
}
.contact-card{
  display:grid;
  gap:.5rem .75rem;
  grid-template-columns: minmax(200px,1fr);
  margin:0; padding:0;
}
@media (min-width:768px){
  .contact-card{ grid-template-columns: 1.2fr 1fr; align-items:center; }
}
.contact-line{
  display:flex; align-items:center; gap:.5rem;
  text-decoration:none; color:inherit;
  padding:.4rem .2rem; border-radius:.5rem;
}
.contact-line:hover{ background:rgba(28,174,178,.08); color:var(--fg); }
.contact-line:focus{ outline:2px solid var(--accent); outline-offset:2px; }
.icon{ width:18px; height:18px; flex:0 0 18px; fill:currentColor; opacity:.9; }
.contact-address span{ color:var(--fg); }
.contact-phone span{ font-weight:600; letter-spacing:.2px; }


.contact-address span,
.contact-phone span{ word-break:keep-all; }

/* Responsive Design */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }
  
  .features {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .product-section {
    flex-direction: column;
  }
  
  .cart-item {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .cart-options {
    flex-direction: column;
  }
  
  .cart-price, .cart-line-total {
    width: 100%;
    text-align: left;
  }
  
  .cta-row {
    flex-direction: column;
  }
  
  .btn-primary, .btn-secondary {
    width: 100%;
  }
  
  .rx-actions {
    flex-direction: column;
  }
  
  .btn-outline {
    width: 100%;
  }
}

/* Focus Styles */
button:focus, a:focus, input:focus, select:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Print Styles */
@media print {
  .cart-section, .rx-section, .cross-sells, .faq-section, .compliance, .site-footer {
    display: none;
  }
}