:root {
  color-scheme: light;
  --bg: #f6f5f2;
  --surface: #ffffff;
  --text: #1a1a1a;
  --muted: #5a5f6b;
  --accent: #2f6b5c;
  --accent-soft: #e3f1ec;
  --outline: #e6e2dc;
  --shadow: 0 18px 35px rgba(22, 25, 31, 0.12);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Segoe UI", "Inter", system-ui, sans-serif;
  background: linear-gradient(135deg, #ffe4e1 0%, #fffacd 50%, #e6e6fa 100%);
  color: var(--text);
  line-height: 1.6;
}

button {
  border: none;
  font: inherit;
  cursor: pointer;
}

ul {
  list-style: none;
  padding-left: 0;
}

.container {
  width: min(1100px, 90%);
  margin: 0 auto;
}

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--outline);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0;
  gap: 24px;
}

.header-add-to-cart {
  background: var(--accent);
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.3s ease;
  border: none;
  white-space: nowrap;
}

.header-add-to-cart:hover {
  background: #245046;
}

.brand {
  font-weight: 700;
  font-size: 1.4rem;
}

.tagline {
  color: var(--muted);
  font-size: 0.95rem;
}

.contact-pill {
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 10px 18px;
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 0.95rem;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  align-items: center;
  padding: 64px 0 56px;
}

.hero-copy h1 {
  font-size: clamp(2rem, 3vw + 1rem, 3rem);
  line-height: 1.15;
  margin-bottom: 14px;
}

.lead {
  color: var(--muted);
  margin-bottom: 22px;
}

.hero-actions {
  margin-bottom: 32px;
}

.customize-btn {
  background: var(--accent);
  color: #fff;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease;
  border: none;
}

.customize-btn:hover {
  background: #245046;
}

.hero-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  background: var(--surface);
  border-radius: 16px;
  padding: 18px;
  border: 1px solid var(--outline);
}

.detail-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 6px;
}

.hero-photo {
  width: 100%;
  max-width: 520px;
  height: auto;
  object-fit: contain;
  border-radius: 18px;
  border: 2px solid var(--outline);
  box-shadow: var(--shadow);
  justify-self: center;
}

.image-placeholder span {
  font-weight: 600;
  font-size: 1.1rem;
  display: block;
  margin-bottom: 6px;
}

.image-placeholder small {
  color: var(--muted);
}

.price-list {
  padding: 40px 0 70px;
}

.price-list h2 {
  font-size: clamp(1.7rem, 2vw + 1rem, 2.4rem);
  margin-bottom: 8px;
}

.section-lead {
  color: var(--muted);
  margin-bottom: 32px;
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px;
}

.price-card {
  background: var(--surface);
  border-radius: 18px;
  padding: 26px 22px;
  border: 2px solid var(--accent);
  box-shadow: var(--shadow);
}

.price-card h3 {
  margin-bottom: 6px;
}

.price-card ul li {
  padding: 6px 0;
  color: var(--muted);
}

.price {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 14px;
}

.card-image {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 16px;
  background: var(--outline);
  display: block;
}

.add-to-cart {
  display: block;
  width: 100%;
  background: var(--accent);
  color: #fff;
  padding: 12px 16px;
  border-radius: 8px;
  font-weight: 600;
  margin-top: 16px;
  transition: background 0.3s ease;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.add-to-cart:hover {
  background: #245046;
}

/* Item Detail Page Styles */
.item-detail {
  padding: 40px 0;
  min-height: calc(100vh - 200px);
}

.back-link {
  display: inline-block;
  margin-bottom: 32px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.back-link:hover {
  color: #245046;
}

.detail-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  background: var(--surface);
  border-radius: 18px;
  padding: 32px;
  border: 1px solid var(--outline);
  box-shadow: var(--shadow);
}

.detail-image-section {
  display: flex;
  justify-content: center;
  align-items: center;
}

.detail-image {
  width: 100%;
  max-width: 400px;
  height: 500px;
  object-fit: cover;
  border-radius: 12px;
  background: var(--outline);
  border: 1px solid var(--outline);
}

.detail-info-section h1 {
  font-size: 2rem;
  margin-bottom: 32px;
  color: var(--text);
}

.detail-options {
  margin-bottom: 32px;
}

.detail-options h3 {
  margin-bottom: 16px;
  color: var(--text);
  font-size: 1.1rem;
}

.options-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.option-item {
  display: flex;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--outline);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.option-item:hover {
  background: var(--accent-soft);
}

.option-item input[type="radio"] {
  cursor: pointer;
  width: 20px;
  height: 20px;
  accent-color: var(--accent);
  margin-top: 8px;
}

.option-label {
  display: flex;
  gap: 16px;
  flex: 1;
  cursor: pointer;
  margin: 0;
  padding: 0;
}

.option-image {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
  background: var(--outline);
  flex-shrink: 0;
}

.option-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
}

.option-text {
  font-weight: 500;
  margin-bottom: 4px;
  color: var(--text);
}

.option-price {
  font-weight: 700;
  color: var(--accent);
}

.detail-actions {
  margin-top: 32px;
  display: flex;
  gap: 12px;
}

.detail-actions .primary {
  width: 100%;
  padding: 14px 24px;
  font-size: 1rem;
}

.detail-actions .secondary {
  width: 100%;
  padding: 14px 24px;
  font-size: 1rem;
}

@media (max-width: 768px) {
  .detail-content {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 20px;
  }

  .detail-image {
    max-width: 300px;
    height: 300px;
  }

  .detail-info-section h1 {
    font-size: 1.5rem;
  }
}

.price-card.featured {
  border: 2px solid var(--accent);
  background: #f8fffc;
}

.cta {
  background: var(--accent);
  color: #fff;
  padding: 48px 0;
}

.cta-content {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}

.primary {
  background: #fff;
  color: var(--accent);
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 600;
}

.site-footer {
  padding: 24px 0 36px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 720px) {
  .header-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-content {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.3s ease;
}

.modal-content {
  background-color: var(--surface);
  margin: 5% auto;
  padding: 0;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  animation: slideIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideIn {
  from { transform: translateY(-50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--outline);
}

.modal-header h2 {
  margin: 0;
  font-size: 1.5rem;
  color: var(--text);
}

.close {
  color: var(--muted);
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
}

.close:hover {
  color: var(--text);
}

.modal-body {
  padding: 24px;
  max-height: 60vh;
  overflow-y: auto;
}

.order-summary {
  background: var(--accent-soft);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 24px;
}

.summary-item {
  display: flex;
  gap: 16px;
  align-items: center;
}

.summary-image {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  background: var(--outline);
}

.summary-details h3 {
  margin: 0 0 4px 0;
  font-size: 1.1rem;
  color: var(--text);
}

.summary-details p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.summary-price {
  color: var(--accent) !important;
  font-weight: 700 !important;
}

.order-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-weight: 600;
  color: var(--text);
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
  padding: 12px 16px;
  border: 1px solid var(--outline);
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.payment-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.payment-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--outline);
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.payment-option:hover {
  background: var(--accent-soft);
}

.payment-option input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.payment-option span {
  font-weight: 500;
  color: var(--text);
}

.modal-footer {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  padding: 20px 24px;
  border-top: 1px solid var(--outline);
  background: var(--bg);
  border-radius: 0 0 12px 12px;
}

.secondary {
  background: var(--outline);
  color: var(--text);
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background 0.3s ease;
}

.secondary:hover {
  background: #e0ddd7;
}

@media (max-width: 600px) {
  .modal-content {
    margin: 2% auto;
    width: 95%;
  }
  
  .modal-body {
    padding: 16px;
  }
  
  .modal-header,
  .modal-footer {
    padding: 16px;
  }
  
  .summary-item {
    flex-direction: column;
    text-align: center;
  }

  #quoteDetails {
    min-height: 120px;
  }
}

/* Shopping Cart Styles */
.cart-icon-btn {
  position: relative;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  transition: transform 0.2s ease;
  padding: 8px;
}

.cart-icon-btn:hover {
  transform: scale(1.1);
}

.cart-badge {
  position: absolute;
  top: -5px;
  right: -8px;
  background: #ff4757;
  color: white;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

.header-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
  padding: 8px 12px;
}

.header-link:hover {
  color: #245046;
}

.cart-modal-content {
  max-width: 600px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
}

.cart-modal-content .modal-body {
  flex: 1;
  overflow-y: auto;
}

.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.empty-cart {
  text-align: center;
  color: var(--muted);
  padding: 40px 20px;
  font-size: 1rem;
}

.cart-item {
  display: flex;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--outline);
  border-radius: 8px;
  background: var(--surface);
  align-items: center;
}

.cart-item-image {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
  background: var(--outline);
  flex-shrink: 0;
}

.cart-item-details {
  flex: 1;
}

.cart-item-details h4 {
  margin: 0 0 4px 0;
  font-size: 1rem;
  color: var(--text);
}

.cart-item-option {
  margin: 0 0 4px 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.cart-item-price {
  margin: 0;
  color: var(--accent);
  font-weight: 700;
}

.cart-item-quantity {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--outline);
  border-radius: 4px;
  background: var(--bg);
}

.qty-btn {
  background: transparent;
  border: none;
  width: 28px;
  height: 28px;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
  color: var(--accent);
  font-weight: 700;
}

.qty-btn:hover {
  background: var(--outline);
}

.qty-input {
  width: 40px;
  border: none;
  background: transparent;
  text-align: center;
  font-weight: 600;
  color: var(--text);
}

.remove-btn {
  background: #ff6b6b;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.2s ease;
}

.remove-btn:hover {
  background: #ff5252;
}

.cart-summary {
  padding: 16px 24px;
  background: var(--accent-soft);
  border-top: 1px solid var(--outline);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

.total-price {
  color: var(--accent);
  font-size: 1.3rem;
}

@media (max-width: 600px) {
  .cart-item {
    flex-wrap: wrap;
  }

  .cart-item-image {
    width: 60px;
    height: 60px;
  }

  .cart-item-details {
    flex-basis: 100%;
  }

  .cart-item-quantity {
    flex: 1;
  }

  .remove-btn {
    flex-basis: 100%;
  }

  .cart-modal-content {
    max-width: 95%;
  }
}