/* Premium responsive polish layer for the customer website. */
:root {
  --ui-radius-xs: 8px;
  --ui-radius-sm: 12px;
  --ui-radius-md: 16px;
  --ui-radius-lg: 22px;
  --ui-shadow-soft: 0 10px 28px rgba(32, 25, 17, 0.08);
  --ui-shadow-card: 0 16px 34px rgba(32, 25, 17, 0.1);
  --ui-focus-ring: 0 0 0 3px rgba(212, 175, 55, 0.22);
  --ui-gold-soft: var(--secondary-soft, #fff8e7);
  --ui-ink: var(--text-dark, #201911);
  --ui-muted: var(--text-light, #6f675f);
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: linear-gradient(180deg, #fffdf8 0%, #ffffff 32%, #fbf8f2 100%);
  color: var(--ui-ink);
  text-rendering: optimizeLegibility;
}

a,
button,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: none !important;
  box-shadow: var(--ui-focus-ring) !important;
  border-color: var(--secondary-color, #d4af37) !important;
}

img {
  height: auto;
}

.container,
.section {
  width: min(100% - 32px, 1280px);
  margin-inline: auto;
}

.btn,
.btn-primary,
.btn-secondary,
.gold-btn-primary,
.checkout-btn,
.btn-checkout,
.investment-pill-btn,
.product-action-btn,
.single-product-actions a,
.single-product-actions button {
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover,
.btn-primary:hover,
.btn-secondary:hover,
.gold-btn-primary:hover,
.checkout-btn:hover,
.btn-checkout:hover,
.investment-pill-btn:hover,
.product-action-btn:hover,
.single-product-actions a:hover,
.single-product-actions button:hover {
  transform: translateY(-1px);
  box-shadow: var(--ui-shadow-soft);
}

.product-card,
.blog-card,
.occasion-card,
.category-card,
.checkout-card,
.checkout-success-card,
.account-list-card,
.account-sidebar,
.scheme-highlight-card,
.scheme-table-section,
.comparison-card,
.contact-card,
.policy-card,
.size-card,
.faq-card {
  border-radius: var(--ui-radius-lg);
  border: 1px solid rgba(138, 106, 60, 0.14);
  box-shadow: var(--ui-shadow-soft);
}

.product-card {
  background: #fff;
  overflow: hidden;
}

.product-image-wrapper {
  background: linear-gradient(145deg, #fffaf0, #f6f1e8);
}

.product-image-wrapper img,
.product-image {
  transform: translateZ(0);
  transition: transform 0.35s ease;
}

.product-card:hover .product-image-wrapper img,
.product-card:hover .product-image {
  transform: scale(1.035);
}

.product-name,
.blog-title,
.section-title,
.category-intro-heading,
.checkout-title,
.account-dashboard-header h1 {
  color: var(--ui-ink);
  letter-spacing: -0.015em;
}

.product-category,
.section-subtitle,
.category-intro-description,
.checkout-subtitle,
.account-item-meta,
.policy-section p {
  color: var(--ui-muted);
}

.current-price,
.price,
.checkout-summary-row.total,
.checkout-success-field.highlight strong {
  color: var(--accent-color, #8a6a3c);
}

input,
select,
textarea,
.form-control,
.form-select,
.price-input,
.account-input,
.checkout-field,
.checkout-address-option {
  border-radius: var(--ui-radius-sm) !important;
}

input,
select,
textarea,
.form-control,
.form-select,
.price-input,
.account-input {
  border: 1px solid rgba(138, 106, 60, 0.18) !important;
  background: #fff !important;
  color: var(--ui-ink) !important;
}

input::placeholder,
textarea::placeholder {
  color: rgba(111, 103, 95, 0.68);
}

table {
  border-collapse: separate;
  border-spacing: 0;
}

th {
  font-weight: 800;
  color: var(--ui-ink);
}

td,
th {
  vertical-align: middle;
}

.nav-link,
.dropdown-link,
.footer-link {
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.footer-link:hover {
  color: var(--accent-color, #8a6a3c) !important;
}

.metal-rates-ticker {
  scrollbar-width: none;
}

.metal-rates-ticker::-webkit-scrollbar {
  display: none;
}

.empty-state,
.account-empty-text,
.checkout-empty {
  border-radius: var(--ui-radius-lg);
  background: linear-gradient(145deg, #fffaf0, #ffffff);
}

.alert,
.checkout-alert {
  border-radius: var(--ui-radius-sm);
}

@media (min-width: 1024px) {
  .product-card,
  .blog-card,
  .occasion-card,
  .category-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  }

  .product-card:hover,
  .blog-card:hover,
  .occasion-card:hover,
  .category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--ui-shadow-card);
    border-color: rgba(138, 106, 60, 0.28);
  }
}

@media (max-width: 1023px) {
  .container,
  .section {
    width: min(100% - 28px, 100%);
  }

  .top-bar,
  .header,
  .mobile-header {
    position: relative;
    z-index: 1000;
  }

  #mainNav {
    border-radius: 0 22px 22px 0;
  }
}

@media (max-width: 768px) {
  .container,
  .section {
    width: min(100% - 24px, 100%);
  }

  h1,
  .checkout-title,
  .account-dashboard-header h1 {
    font-size: clamp(24px, 7vw, 34px) !important;
    line-height: 1.12 !important;
  }

  h2,
  .section-title {
    font-size: clamp(21px, 6vw, 30px) !important;
    line-height: 1.18 !important;
  }

  h3 {
    font-size: clamp(18px, 5vw, 24px) !important;
  }

  p {
    line-height: 1.6;
  }

  .product-card,
  .blog-card,
  .occasion-card,
  .category-card,
  .checkout-card,
  .checkout-success-card,
  .account-list-card,
  .scheme-highlight-card,
  .scheme-table-section,
  .comparison-card {
    border-radius: var(--ui-radius-md);
  }

  .product-info {
    min-height: auto !important;
  }

  .product-name {
    min-height: 34px;
  }

  .product-category {
    font-size: 11.5px !important;
  }

  .current-price,
  .price {
    font-weight: 800;
  }

  .checkout-actions,
  .checkout-success-actions,
  .investment-cta-row,
  .single-product-actions {
    gap: 10px !important;
  }

  .checkout-actions > *,
  .checkout-success-actions > *,
  .single-product-actions > * {
    width: 100%;
    justify-content: center;
  }

  .sidebar-body {
    padding-bottom: 130px;
  }
}

@media (max-width: 480px) {
  .container,
  .section {
    width: min(100% - 20px, 100%);
  }

  .product-card {
    box-shadow: 0 8px 18px rgba(32, 25, 17, 0.07);
  }

  .product-name {
    font-size: 12.5px !important;
  }

  .current-price,
  .price {
    font-size: 14px !important;
  }

  .action-btn {
    width: 32px !important;
    height: 32px !important;
  }
}
