/* Store-wide navigation with links */
.store-nav {
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}

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

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
}

.nav-link:hover {
  color: var(--text);
}

.cart-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
}

.cart-badge {
  background: var(--accent);
  color: white;
  font-size: 11px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Shop Hero */
.shop-hero {
  padding: 64px 40px 48px;
  border-bottom: 1px solid var(--border);
}

.shop-hero-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: clamp(32px, 5vw, 48px);
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.shop-hero-sub {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 500px;
}

/* Filters */
.shop-filters {
  display: flex;
  gap: 8px;
  padding: 24px 40px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 20px;
  border: 1px solid var(--border);
  background: white;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
}

.filter-btn:hover {
  border-color: var(--text);
  color: var(--text);
}

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

/* Product Grid */
.shop-grid-section {
  padding: 0 40px 80px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.product-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}

.product-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.product-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.product-img {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--bg-alt);
}

.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

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

.product-img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  background: linear-gradient(135deg, var(--bg-alt) 0%, #E7E5E4 100%);
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--accent);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.product-card-link {
  position: relative;
}

.product-info {
  padding: 16px 20px 8px;
}

.product-category {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.product-name {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: var(--text);
  margin: 6px 0;
  line-height: 1.3;
}

.product-pricing {
  display: flex;
  align-items: center;
  gap: 8px;
}

.product-price {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
}

.product-compare {
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: line-through;
}

.add-to-cart-btn {
  width: calc(100% - 40px);
  margin: 8px 20px 20px;
  padding: 12px;
  background: var(--text);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
  font-family: inherit;
}

.add-to-cart-btn:hover {
  background: var(--navy);
}

/* Trust Bar */
.shop-trust {
  border-top: 1px solid var(--border);
  padding: 40px;
}

.trust-bar {
  display: flex;
  justify-content: center;
  gap: 48px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
}

/* Product Detail */
.product-detail {
  padding: 40px;
  min-height: 400px;
}

.pd-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  max-width: 1100px;
}

.pd-image {
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-alt);
}

.pd-image img {
  width: 100%;
  display: block;
}

.pd-placeholder {
  aspect-ratio: 1;
}

.pd-info {
  padding: 20px 0;
}

.pd-name {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 32px;
  color: var(--text);
  margin: 8px 0 16px;
  line-height: 1.15;
}

.pd-pricing {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.pd-price {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 28px;
  color: var(--text);
}

.pd-compare {
  font-size: 18px;
  color: var(--text-muted);
  text-decoration: line-through;
}

.pd-savings {
  font-size: 14px;
  font-weight: 600;
  color: #16a34a;
  background: #f0fdf4;
  padding: 4px 10px;
  border-radius: 4px;
}

.pd-description {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 32px;
}

.pd-add-btn {
  width: 100%;
  padding: 16px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
  font-family: 'Outfit', sans-serif;
}

.pd-add-btn:hover {
  background: var(--accent-dark);
}

.pd-trust {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  color: var(--text-muted);
}

.pd-trust span {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Product Features */
.product-features {
  background: var(--bg-alt);
  padding: 60px 40px;
  border-top: 1px solid var(--border);
}

.features-inner {
  display: flex;
  justify-content: center;
  gap: 64px;
  max-width: 800px;
  margin: 0 auto;
}

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

.feature-item h4 {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
  margin: 12px 0 4px;
}

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

/* Cart */
.cart-section {
  padding: 40px;
  min-height: 500px;
}

.cart-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 32px;
  color: var(--text);
  margin-bottom: 32px;
}

.cart-empty {
  text-align: center;
  padding: 80px 0;
}

.cart-empty svg {
  margin-bottom: 20px;
}

.cart-empty h2 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 24px;
  margin-bottom: 8px;
}

.cart-empty p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

.btn-primary {
  display: inline-block;
  padding: 14px 32px;
  background: var(--accent);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  transition: background 0.15s;
}

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

.btn-secondary {
  display: inline-block;
  padding: 14px 32px;
  background: transparent;
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.15s;
}

.btn-secondary:hover {
  border-color: var(--text);
}

.cart-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 40px;
  align-items: start;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.cart-item-img {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-alt);
}

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

.cart-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.cart-item-info {
  flex: 1;
}

.cart-item-name {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
  text-decoration: none;
  display: block;
  margin-bottom: 4px;
}

.cart-item-name:hover {
  color: var(--accent);
}

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

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 8px;
}

.cart-item-qty button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  color: var(--text);
  padding: 2px 6px;
  font-family: inherit;
}

.cart-item-qty span {
  font-weight: 600;
  font-size: 14px;
  min-width: 20px;
  text-align: center;
}

.cart-item-total {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 16px;
  min-width: 60px;
  text-align: right;
}

.cart-item-remove {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: 4px;
  transition: color 0.15s;
}

.cart-item-remove:hover {
  color: #dc2626;
}

/* Cart Summary */
.cart-summary {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  position: sticky;
  top: 24px;
}

.cart-summary h3 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 20px;
}

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

.summary-hint {
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 8px;
}

.summary-total {
  font-weight: 700;
  font-size: 16px;
  color: var(--text);
  border-top: 1px solid var(--border);
  margin-top: 12px;
  padding-top: 16px;
}

.checkout-btn {
  width: 100%;
  padding: 16px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 20px;
  transition: background 0.15s;
  font-family: 'Outfit', sans-serif;
}

.checkout-btn:hover {
  background: var(--accent-dark);
}

.checkout-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.cart-trust-signals {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 16px;
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}

/* Order Success */
.success-section {
  padding: 80px 40px;
  text-align: center;
}

.success-inner {
  max-width: 500px;
  margin: 0 auto;
}

.success-icon {
  margin-bottom: 24px;
}

.success-section h1 {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 36px;
  margin-bottom: 12px;
}

.success-sub {
  font-size: 17px;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.success-details {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 32px;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 14px;
}

.detail-row span:first-child {
  color: var(--text-muted);
}

.detail-row span:last-child {
  font-weight: 600;
}

.success-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

/* Policy Pages */
.policy-section {
  padding: 64px 40px;
}

.policy-inner {
  max-width: 720px;
}

.policy-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 36px;
  margin-bottom: 8px;
}

.policy-updated {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.policy-content h2 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 20px;
  margin: 32px 0 12px;
  color: var(--text);
}

.policy-content h2:first-child {
  margin-top: 0;
}

.policy-content p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 12px;
}

.policy-content ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

.policy-content li {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 8px;
}

.policy-content a {
  color: var(--accent);
  text-decoration: none;
}

.policy-content a:hover {
  text-decoration: underline;
}

.policy-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
}

.policy-table th,
.policy-table td {
  text-align: left;
  padding: 12px 16px;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
}

.policy-table th {
  font-weight: 600;
  color: var(--text);
  background: var(--bg-alt);
}

.policy-table td {
  color: var(--text-muted);
}

/* Contact Page */
.contact-section {
  padding: 64px 40px;
}

.contact-inner {
  max-width: 720px;
}

.contact-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 36px;
  margin-bottom: 12px;
}

.contact-sub {
  font-size: 17px;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.contact-methods {
  display: flex;
  gap: 32px;
  margin-bottom: 48px;
}

.contact-method {
  display: flex;
  gap: 16px;
  padding: 24px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  flex: 1;
}

.contact-method h3 {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 4px;
}

.contact-method a {
  color: var(--accent);
  text-decoration: none;
  font-size: 14px;
}

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

.contact-faq h2 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 24px;
  margin-bottom: 24px;
}

.faq-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.faq-item h3 {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 8px;
}

.faq-item p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Store Footer */
.store-footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  align-items: start;
  flex-direction: row;
}

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

.footer-heading {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  margin-bottom: 4px;
}

.footer-link {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
}

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

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

.footer-bottom {
  border-top: 1px solid var(--border);
  margin-top: 40px;
  padding: 20px 40px 0;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

/* Toast notification */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--text);
  color: white;
  padding: 14px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s;
  z-index: 1000;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* Loading / Error states */
.loading-state {
  text-align: center;
  padding: 60px 0;
  color: var(--text-muted);
  font-size: 15px;
}

.error-state {
  text-align: center;
  padding: 60px 0;
  color: var(--text-muted);
}

.error-state a {
  color: var(--accent);
  text-decoration: none;
}

/* Responsive */
@media (max-width: 768px) {
  .store-nav {
    padding: 16px 20px;
  }

  .nav-links {
    gap: 16px;
  }

  .nav-link:not(.cart-link) {
    display: none;
  }

  .shop-hero {
    padding: 40px 20px 32px;
  }

  .shop-filters {
    padding: 16px 20px;
  }

  .shop-grid-section {
    padding: 0 20px 60px;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .trust-bar {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
    padding: 0 20px;
  }

  .pd-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .product-detail {
    padding: 20px;
  }

  .features-inner {
    flex-direction: column;
    gap: 24px;
  }

  .cart-section {
    padding: 24px 20px;
  }

  .cart-layout {
    grid-template-columns: 1fr;
  }

  .cart-item {
    flex-wrap: wrap;
    gap: 12px;
  }

  .cart-item-total {
    min-width: auto;
  }

  .contact-methods {
    flex-direction: column;
  }

  .store-footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .success-actions {
    flex-direction: column;
  }

  .policy-section,
  .contact-section {
    padding: 40px 20px;
  }
}

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