/* Modern retail theme */
:root {
  --primary:#2563eb;
  --accent: #22c55e;
  --dark: #1e293b;
  --light: #f8fafc;
  --gray: #64748b;
  --radius: 12px;
  --transition: 0.25s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', system-ui, sans-serif; background-color: var(--light); color: var(--dark); line-height: 1.6; }

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  padding: 0.6rem 0.9rem;
  background: #ffffff;
  color: var(--dark);
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  z-index: 1000;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #f59e0b;
  outline-offset: 2px;
}

header {
  background: white;
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky; top: 0; z-index: 10;
}

header h1 { font-size: 1.5rem; font-weight: 700; color: var(--primary); }
nav a { color: var(--dark); margin-left: 1.5rem; text-decoration: none; font-weight: 500; transition: var(--transition); }
nav a:hover, nav a.active { color: var(--primary); }

.hero {
  background: linear-gradient(135deg, var(--primary), #3b82f6);
  color: white; text-align: center; padding: 6rem 2rem;
}
.hero h2 { font-size: 2.5rem; font-weight: 700; }
.hero p { margin: 1rem 0 2rem; font-size: 1.1rem; color: #e2e8f0; }
.btn { background: var(--accent); color: white; padding: 0.9rem 1.8rem; border: none; border-radius: var(--radius); text-decoration: none; font-weight: 600; transition: var(--transition); }
.btn:hover { background: #16a34a; }

.featured, .content { padding: 3rem 2rem; max-width: 1200px; margin: auto; }
.featured h3, .content h2 { text-align: center; margin-bottom: 2rem; font-size: 1.8rem; color: var(--dark); }

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.product-card {
  background: white;
  border-radius: var(--radius);
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  text-align: center;
  padding: 1.5rem;
  transition: transform var(--transition), box-shadow var(--transition);
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

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

.product-card h4 { font-size: 1.1rem; margin: 0.5rem 0; color: var(--dark); }
.product-card p { color: var(--gray); font-weight: 500; }

.product-detail {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  max-width: 1000px;
  margin: 3rem auto;
  padding: 0 2rem;
}

.product-detail img {
  flex: 1 1 350px;
  border-radius: var(--radius);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.product-detail div { flex: 1 1 400px; }
.product-detail h2 { font-size: 2rem; margin-bottom: 1rem; }
.price { font-size: 1.5rem; font-weight: 700; color: var(--primary); margin-bottom: 1rem; }

footer { background: var(--dark); color: #cbd5e1; text-align: center; padding: 2rem; margin-top: 3rem; }
footer p { font-size: 0.9rem; }

@media (max-width: 768px) {
  header { flex-direction: column; gap: 0.5rem; }
  .hero h2 { font-size: 2rem; }
  .product-detail { flex-direction: column; text-align: center; }
}
.content{
text-align: center;
}
/* Auth forms */
.auth-form {
  max-width: 400px;
  margin: 2rem auto;
  background: white;
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.auth-form label {
  font-weight: 600;
  color: var(--dark);
}

.auth-form input {
  padding: 0.8rem;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius);
  font-size: 1rem;
}

.auth-form input:focus {
  outline: none;
  border-color: var(--primary);
}

.auth-form .btn {
  width: 100%;
  margin-top: 1rem;
}

.form-note {
  text-align: center;
  margin-top: 1rem;
}
.cart-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #fff;
  padding: 1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.cart-item img {
  width: 80px;
  height: 80px;
  border-radius: var(--radius);
  object-fit: cover;
}
.checkout-form {
  max-width: 500px;
  margin: auto;
  background: white;
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.checkout-form label {
  display: block;
  margin-top: 1rem;
}

.checkout-form input {
  width: 100%;
  padding: 0.7rem;
  margin-top: 0.4rem;
  border-radius: var(--radius);
  border: 1px solid #ccc;
}

.processing {
  text-align: center;
  margin-top: 2rem;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #ccc;
  border-top-color: #333;
  border-radius: 50%;
  margin: 1rem auto;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.hidden {
  display: none;
}
.checkout-form button[type="submit"] {
    margin-top: 20px;
}

/* Product Detail Page Styles */
.product-container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 2rem;
}

.product-detail {
  display: flex;
  gap: 3rem;
  align-items: flex-start;
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  margin-bottom: 2rem;
}

.product-left-column {
  flex: 0 0 500px;
  max-width: 500px;
}

.product-right-column {
  flex: 1;
  min-width: 0;
}

.product-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  object-fit: contain;
  background: white;
}

.product-right-column h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--dark);
  font-weight: 400;
  line-height: 1.3;
}

.product-category {
  color: var(--primary);
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  cursor: pointer;
}

.product-category:hover {
  color: #c7511f;
  text-decoration: underline;
}
  margin-bottom: 1rem;
}

.product-item-selector {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 1rem 0;
  padding: 1rem;
  background: #f7f8f8;
  border-radius: 8px;
  border: 1px solid #d5d9d9;
}

.product-item-selector label {
  font-weight: 700;
  color: #0f1111;
  font-size: 0.875rem;
}

.product-item-select {
  width: 100%;
  max-width: 300px;
  padding: 0.5rem;
  border: 1px solid #d5d9d9;
  border-radius: var(--radius);
  font-size: 0.875rem;
  cursor: pointer;
  background: white;
  transition: var(--transition);
}

.product-item-select:hover,
.product-item-select:focus {
  border-color: #ffa41c;
  outline: none;
  box-shadow: 0 0 3px 2px rgba(228,121,17,0.5);
}

.product-item-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: flex-start;
  margin: 1rem 0;
  padding: 0.75rem;
  background: #f7f8f8;
  border-radius: 8px;
}

.product-item-count {
  font-weight: 400;
  color: #0f1111;
  font-size: 0.875rem;
  min-width: 100px;
  text-align: center;
}

.product-item-back {
  display: inline-block;
  color: #007185;
  text-decoration: none;
  margin: 0.5rem 0;
  font-weight: 400;
  font-size: 0.875rem;
  transition: var(--transition);
}

.product-item-back:hover {
  color: #c7511f;
  text-decoration: underline;
}

.rating {
  color: #f59e0b;
  font-size: 1rem;
}.product-item-back:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

.product-item-count {
  font-weight: 600;
  color: var(--gray);
}

.btn.secondary {
  background: white;
  color: #0f1111;
  border: 1px solid #d5d9d9;
  font-size: 0.8125rem;
  padding: 0.5rem 1rem;
  box-shadow: 0 2px 5px 0 rgba(213,217,217,0.5);
}

.btn.secondary:hover {
  background: #f7fafa;
  border-color: #d5d9d9;
  box-shadow: 0 2px 5px 0 rgba(213,217,217,0.5);
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.6;
  background: #f7fafa;
}

.rating-section {
  display: flex;
  gap: 0.5rem;
  margin: 0.5rem 0;
  align-items: center;
}

.rating {
  color: #f59e0b;
  font-size: 0.9rem;
  font-weight: 400;
}

.price-section {
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
  margin: 1.5rem 0;
  flex-wrap: wrap;
  padding: 1rem 0;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
}

.current-price {
  font-size: 1.75rem;
  font-weight: 400;
  color: #b12704;
}

.original-price {
  text-decoration: line-through;
  color: #565959;
  font-size: 0.875rem;
}

.discount-percentage {
  background-color: #cc0c39;
  color: white;
  padding: 0.125rem 0.5rem;
  border-radius: 2px;
  font-size: 0.75rem;
  font-weight: 400;
}

.stock-status {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin: 1rem 0;
}

.in-stock {
  font-weight: 400;
  color: #007600;
  font-size: 1.125rem;
}

.stock-level {
  color: #565959;
  font-size: 0.875rem;
}

.product-description {
  line-height: 1.6;
  color: #0f1111;
  margin: 1.5rem 0;
  font-size: 0.875rem;
}

.product-variants {
  margin: 1.5rem 0;
  padding: 1.25rem;
  background: #f7f8f8;
  border-radius: 8px;
  border: 1px solid #d5d9d9;
}

.variant-group {
  margin-bottom: 1rem;
}

.variant-group:last-child {
  margin-bottom: 0;
}

.variant-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 700;
  color: #0f1111;
  font-size: 0.875rem;
}

.variant-group select {
  width: 100%;
  max-width: 300px;
  padding: 0.5rem;
  border: 1px solid #d5d9d9;
  border-radius: var(--radius);
  font-size: 0.875rem;
  cursor: pointer;
  background: white;
  transition: var(--transition);
}

.variant-group select:hover {
  border-color: #ffa41c;
  box-shadow: 0 0 3px 2px rgba(228,121,17,0.5);
}

.variant-group select:focus {
  border-color: #e77600;
  outline: none;
  box-shadow: 0 0 3px 2px rgba(228,121,17,0.5);
}

.product-right-column .add-to-cart {
  width: 100%;
  max-width: 300px;
  padding: 0.75rem 2rem;
  font-size: 0.875rem;
  margin-top: 1rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 400;
  background: #ffd814;
  color: #0f1111;
  border-radius: 8px;
}

.product-right-column .add-to-cart:hover {
  background: #f7ca00;
  transform: none;
  box-shadow: none;
}

/* Bottom info sections */
.product-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.shipping-info,
.seller-info,
.price-history {
  padding: 1.5rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
  border: 1px solid #d5d9d9;
}

.shipping-info h3,
.seller-info h3,
.price-history h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.125rem;
  color: #0f1111;
  font-weight: 700;
}

.shipping-info p,
.seller-info p,
.price-history p {
  margin: 0.5rem 0;
  color: #565959;
  line-height: 1.5;
  font-size: 0.875rem;
}

@media (max-width: 1200px) {
  .product-left-column {
    flex: 0 0 400px;
    max-width: 400px;
  }
}

@media (max-width: 1024px) {
  .product-detail {
    flex-direction: column;
  }
  
  .product-left-column {
    flex: 0 0 auto;
    max-width: 100%;
    width: 100%;
  }
  
  .product-image {
    max-width: 500px;
  }
}

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

@media (max-width: 899px) {
  .product-info-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .product-detail {
    padding: 1.5rem;
  }
  
  .product-right-column h2 {
    font-size: 1.5rem;
  }
  
  .current-price {
    font-size: 1.5rem;
  }
  
  .price-section {
    gap: 0.5rem;
  }
  
  .product-container {
    padding: 1rem;
  }
  
  .product-item-actions {
    flex-direction: column;
  }
  
  .product-right-column .add-to-cart,
  .variant-group select,
  .product-item-select {
    max-width: 100%;
  }
}