/* Rasht Gold design tokens — navy primary, gold accents only. */
:root {
  --color-primary: #06172c;
  --color-primary-dark: #041225;
  --color-gold: #c9a24a;
  --color-gold-soft: #ead8b5;
  --color-bg: #f7f5f0;
  --color-surface: #ffffff;
  --color-text: #10233a;
  --color-muted: #66758a;
  --color-border: #e2e6eb;
  --color-danger: #c84b4b;
  --color-success: #16835a;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 8px 24px rgba(10, 31, 54, .08);
  --shadow-md: 0 18px 48px rgba(7, 27, 50, .12);
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --container: 1180px;
  --page-gutter: clamp(12px, 3vw, 40px);
  --touch: 44px;
  --font: var(--site-font, "IRANSans", Tahoma, "Segoe UI", sans-serif);
  --leading: 1.75;
}
html[data-theme="dark"] {
  --color-bg: #07172a;
  --color-surface: #0c223d;
  --color-text: #edf3fa;
  --color-muted: #9fadc0;
  --color-border: #ffffff22;
}

/* Cohesive storefront UI: cards, grid, buttons, overflow, RTL, mobile. Loaded last. */

html {
  overflow-x: clip;
}

html body .liquid-logo-loader {
  width: clamp(68px, 8vw, 100px);
}
html body .loader-city-emblem {
  top: 16%;
  width: clamp(14px, 2.1vw, 20px) !important;
  height: clamp(14px, 2.1vw, 20px) !important;
  overflow: hidden;
  font-size: 0 !important;
  line-height: 0;
}
html body .loader-city-emblem img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
}
@media (max-width: 650px) {
  html body .liquid-logo-loader {
    width: clamp(48px, 14vw, 64px) !important;
  }
  html body .loader-city-emblem {
    width: 12px !important;
    height: 12px !important;
  }
  html body .clay-municipality {
    width: 100vw !important;
    height: 80% !important;
    bottom: 13% !important;
  }
}

/* Mobile header: logo+menu on the right, search in the middle, theme then login on the left. */
@media (max-width: 900px) {
  html body .ticker {
    position: sticky;
    top: 0;
    z-index: 82;
    height: 34px;
    min-height: 34px;
  }
  html body .site-header,
  html body div.site-header,
  html body header.site-header {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr) 44px 44px !important;
    grid-template-rows: 48px !important;
    height: 64px !important;
    min-height: 64px;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    top: 34px;
    z-index: 81;
  }
  html body .site-header > .header-brand-cluster,
  html body .site-header > .brand {
    grid-column: 1;
    grid-row: 1;
    width: max-content;
    max-width: 100%;
    min-width: 0;
  }
  html body .header-brand-cluster {
    display: flex;
    align-items: center;
    gap: 6px;
  }
  html body .header-brand-cluster .mobile-menu-toggle,
  html body .mobile-menu-toggle {
    display: grid !important;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    flex: 0 0 44px;
  }
  html body .mobile-menu-toggle small { display: none; }
  html body .site-header .brand {
    display: flex;
    align-items: center;
    gap: 0;
    min-width: 0;
  }
  html body .site-header .brand-logo {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
  }
  html body .site-header .brand strong {
    display: none;
  }
  html body .site-header > .header-actions {
    display: contents !important;
    width: auto;
    min-width: 0;
  }
  html body .site-header .header-actions > .header-tool {
    display: none !important;
  }
  html body .site-header .theme-button,
  html body .site-header .icon-button.theme-button {
    grid-column: 3;
    grid-row: 1;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px;
    padding: 0 !important;
    display: grid !important;
    place-items: center;
    justify-self: center;
  }
  html body .site-header .theme-button small {
    display: none !important;
  }
  html body .site-header > .header-center {
    grid-column: 2;
    grid-row: 1;
    width: 100%;
    min-width: 0;
    display: block;
  }
  html body .site-header .header-center nav {
    display: none !important;
  }
  html body .live-search,
  html body .header-center .live-search {
    position: relative;
    top: auto;
    inset: auto;
    width: 100%;
    max-width: none;
  }
  html body .live-search > label {
    height: 40px;
    min-height: 40px;
    padding-inline: 10px;
  }
  html body .live-search input {
    min-width: 0;
    font-size: 13px;
  }
  html body .search-popover {
    z-index: 90;
    max-width: 100%;
  }
  html body .site-header .login-link,
  html body .site-header .header-logout,
  html body .site-header .header-actions > .login-link,
  html body .site-header .header-actions > .header-logout {
    grid-column: 4;
    grid-row: 1;
    display: grid !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 44px;
    height: 44px;
    min-width: 44px;
    place-items: center;
    justify-self: end;
    padding: 0;
  }
  html body .site-header .login-link small,
  html body .site-header .header-logout small {
    display: none !important;
  }
  html body .site-header .login-door {
    width: 28px !important;
    height: 28px !important;
  }
}
body {
  font-family: var(--font);
  color: var(--color-text);
  line-height: var(--leading);
  max-width: 100%;
}
img, video, canvas {
  max-width: 100%;
  height: auto;
}
.hero-slider img,
.hero-slider .bullion-uploaded-image {
  height: 100%;
  max-width: none;
}
.container {
  width: min(var(--container), calc(100% - (var(--page-gutter) * 2)));
  margin-inline: auto;
}
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-4);
  min-width: 0;
}
.section-head h2,
h1, h2, h3 {
  overflow-wrap: anywhere;
}

/* Buttons */
.button,
.wide-button,
.product-buy > button,
.admin-primary,
.admin-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--touch);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  gap: var(--space-2);
}
.button.primary,
.wide-button,
.product-buy > button {
  background: linear-gradient(135deg, #d4b36a, var(--color-gold));
  color: #12233a;
  border: 0;
}
.button.ghost {
  border: 1px solid color-mix(in srgb, var(--color-gold) 55%, transparent);
  color: inherit;
}
.hero-actions,
.product-buy,
.installment-feature-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  min-width: 0;
}
.hero-actions .button {
  flex: 1 1 auto;
  min-width: 0;
}

/* Product cards */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: var(--space-5);
  min-width: 0;
}
.product-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
}
.product-art {
  position: relative;
  aspect-ratio: 1;
  width: 100%;
  height: auto;
  min-height: 0;
  overflow: hidden;
  border-radius: 0;
}
.product-art > img,
.product-art .product-card-image {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}
.product-art > span {
  position: absolute;
  inset: auto auto 12px 12px;
  z-index: 1;
}
.product-art > b,
.product-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  color: #12233a;
  background: var(--color-gold);
}
.product-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: var(--space-3);
  min-width: 0;
  padding: var(--space-4);
}
.product-info h3 {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
}
.product-info h3 a {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}
.product-info dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
  margin: 0;
}
.product-buy {
  margin-top: auto;
  align-items: center;
}
.product-buy strong {
  color: var(--color-primary);
  font-size: 16px;
  min-width: 0;
}
.product-buy strong small {
  margin-right: 4px;
  color: var(--color-muted);
  font-size: 10px;
  font-weight: 700;
}
.product-buy > button {
  flex: 1 1 140px;
  min-width: 0;
}
.product-buy .form-error {
  flex-basis: 100%;
  white-space: normal;
}

.shop-results .product-grid,
.shop-page .product-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr));
}

/* Hide bulky homepage price-lock on small screens */
@media (max-width: 700px) {
  .offer-lock,
  .offer { display: none; }
  .shop-layout { grid-template-columns: 1fr; }
  .shop-layout:has(.shop-filter-toggle) .shop-filter { display: none; }
  .shop-layout:has(.shop-filter-toggle[aria-expanded="true"]) .shop-filter {
    display: block;
    position: fixed;
    inset: 72px 12px 88px;
    z-index: 70;
    overflow: auto;
    max-height: calc(100dvh - 170px);
  }
  .shop-filter-toggle {
    display: inline-flex;
    align-items: center;
    min-height: var(--touch);
  }
  .goftino-operator-launcher {
    bottom: 92px;
  }
  .shop-page,
  .content-page {
    padding-bottom: 96px;
  }
  .shop-results > header {
    position: sticky;
    top: 108px;
    z-index: 5;
    background: var(--color-bg);
    padding-bottom: var(--space-3);
  }
  .hero h1 { font-size: clamp(28px, 8vw, 39px); }
  .section { padding-block: var(--space-8); }
  .product-grid,
  .shop-results .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-3);
  }
  .product-info { padding: var(--space-3); gap: var(--space-2); }
  .product-info h3 { font-size: 13px; }
  .product-info dl { font-size: 11px; }
  .product-kicker > a { display: none; }
  .product-buy > button { flex-basis: 100%; min-height: var(--touch); }
  .footer-grid { grid-template-columns: 1fr; }
  .admin-form-grid,
  .catalog-entity-grid { grid-template-columns: 1fr; }
  .table-wrap,
  .data-table { display: block; max-width: 100%; overflow-x: auto; }
}

@media (max-width: 340px) {
  .product-grid,
  .shop-results .product-grid { grid-template-columns: 1fr; }
}

/* Overflow / shrink */
.product-card,
.shop-layout,
.shop-results,
.hero-copy,
.hero-visual,
.footer-grid,
.dashboard,
.admin-card {
  min-width: 0;
}

/* Forms */
input, select, textarea {
  max-width: 100%;
  min-height: var(--touch);
}
.field, .account-form-grid, .club-membership-form {
  min-width: 0;
}
@media (max-width: 700px) {
  .account-form-grid { grid-template-columns: 1fr; }
}

/* Tables & dialogs */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
[role="dialog"],
.modal,
.mobile-menu-panel {
  max-width: calc(100vw - 24px);
  max-height: calc(100dvh - 24px);
}

@media (prefers-reduced-motion: reduce) {
  .product-card { transition: none; }
}

@media (hover: hover) {
  .product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
}

.content-page {
  width: min(var(--container), calc(100% - (var(--page-gutter) * 2)));
  margin-inline: auto;
  padding-block: var(--space-8);
  min-width: 0;
}
.product-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: var(--space-8);
  align-items: start;
}
.product-detail-art {
  aspect-ratio: 1;
  height: auto;
  max-height: 560px;
  border-radius: var(--radius-lg);
}
.product-detail-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-detail-copy h1 {
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.45;
  margin: 8px 0 16px;
}
.buybox-checkout,
.panel .wide-button {
  width: 100%;
  margin-top: var(--space-3);
}
.checkout-form {
  display: grid;
  gap: var(--space-5);
}
.payment-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr));
  gap: var(--space-3);
}
.payment-methods label {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}
.payment-reference-image {
  width: 100%;
  max-height: 240px;
  object-fit: contain;
  border-radius: var(--radius-md);
  background: var(--color-bg);
}
.price-lock-notice {
  display: grid;
  gap: 4px;
  padding: var(--space-3);
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--color-gold) 12%, var(--color-surface));
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-6);
  padding: var(--space-10) var(--page-gutter);
}
.footer-grid a,
.footer-grid address {
  display: block;
  overflow-wrap: anywhere;
}
.copyright {
  padding: var(--space-4) var(--page-gutter) calc(var(--space-6) + env(safe-area-inset-bottom));
}
.price-grid {
  max-width: 100%;
  min-width: 0;
}
.auth-shell .panel,
.auth-shell .wide-button {
  position: relative;
  z-index: 2;
  pointer-events: auto;
}
.shop-filter summary {
  min-height: var(--touch);
}
@media (min-width: 701px) {
  .shop-filter-sheet { display: contents; }
  .shop-filter-sheet > summary { display: none; }
}
.shop-filter-sheet > summary {
  display: none;
}
.dashboard,
.admin-card,
.admin-form,
.account-layout {
  min-width: 0;
}
.admin-card,
.table-wrap {
  overflow-x: auto;
}

@media (max-width: 1024px) {
  .product-detail-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; padding-block: var(--space-6); }
  .saved-list article {
    grid-template-columns: 48px minmax(0, 1fr);
  }
  .saved-list article strong,
  .saved-list article button {
    grid-column: 1 / -1;
  }
  .price-grid {
    display: flex;
    gap: var(--space-3);
    overflow-x: auto;
    padding-inline: var(--page-gutter);
    scroll-snap-type: x proximity;
  }
  .price-grid article {
    flex: 0 0 168px;
    scroll-snap-align: start;
    min-width: 0;
  }
  .live-price-market {
    width: calc(100% - 20px);
    margin-inline: auto;
  }
  .jewel-showcase {
    width: min(100%, 290px);
    height: auto;
    aspect-ratio: 1;
  }
  .shop-filter-sheet > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    font-weight: 800;
    list-style: none;
    cursor: pointer;
  }
  .shop-filter-sheet:not([open]) > :not(summary) { display: none; }
  .shop-filter-sheet[open] > summary { border-bottom: 1px solid var(--color-border); }
  .checkout-form .panel { padding: var(--space-4); }
  .payment-methods { grid-template-columns: 1fr; }
  .product-detail-art { max-height: min(420px, 72vw); }
  .auth-shell { padding: 28px 12px 110px; }
  .auth-shell .panel { width: 100%; padding: 24px 16px; }
  .dashboard { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; gap: var(--space-3); }
  .address-list article {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-2);
  }
  .compare-grid {
    display: flex;
    gap: var(--space-3);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .compare-grid article,
  .compare-labels { flex: 0 0 168px; min-width: 0; }
  html body .empty-state,
  html body .rg-feedback-state {
    width: 100%;
    max-width: 100%;
    padding-inline: 4px;
  }
  html body .empty-state a.button,
  html body .empty-state a.button.primary,
  html body .empty-state .button,
  html body .empty-state .button.primary,
  html body .empty-state .wide-button,
  html body .empty-state .admin-secondary,
  html body .rg-feedback-state a.button,
  html body .rg-feedback-state a.button.primary,
  html body .rg-feedback-state .button,
  html body .rg-feedback-state .button.primary {
    display: flex;
    width: 100%;
    max-width: 100%;
    min-height: var(--touch);
    box-sizing: border-box;
    justify-content: center;
    margin-inline: 0;
  }
  html body .goftino-operator-launcher {
    bottom: calc(104px + env(safe-area-inset-bottom));
    z-index: 45;
  }
  .admin-app {
    grid-template-columns: 1fr;
    padding-bottom: 84px;
  }
  .admin-app .admin-sidebar {
    position: fixed;
    inset: auto 0 0 0;
    top: auto;
    height: 76px;
    width: auto;
    z-index: 70;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    border: 0;
    border-top: 1px solid #ffffff22;
  }
  .admin-app .admin-sidebar nav,
  .admin-app .admin-sidebar nav section,
  .admin-app .admin-sidebar nav section:nth-child(n + 2) {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    width: max-content;
    margin: 0;
    padding: 0;
    gap: 2px;
  }
  .admin-app .admin-sidebar nav h3,
  .admin-app .admin-brand,
  .admin-app .view-store {
    display: none;
  }
  .admin-app .admin-sidebar nav a,
  .admin-app .admin-sidebar nav section:first-child a {
    flex: 0 0 68px;
    width: 68px;
    height: 62px;
    display: grid;
    place-items: center;
    gap: 2px;
    margin: 0;
    padding: 4px 2px;
  }
  .admin-app .admin-sidebar nav a span,
  .admin-app .admin-sidebar nav section:first-child a span {
    display: block;
    max-width: 64px;
    overflow: hidden;
    font-size: 8px;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .admin-app .admin-main { padding: 14px 12px 24px; }
  .admin-app .admin-page-head { flex-direction: column; align-items: stretch; }
  .admin-app .admin-kpis { grid-template-columns: 1fr 1fr; }
  .admin-app .admin-modal {
    width: min(520px, calc(100vw - 24px));
    max-height: calc(100dvh - 24px);
    overflow: auto;
  }
  .admin-app .admin-toast { bottom: 88px; inset-inline: 12px; }
}

.field {
  display: grid;
  gap: 6px;
  min-width: 0;
}
.field label { font-size: 13px; font-weight: 700; }
.field input,
.field select,
.field textarea,
.auth-shell input,
.account-form-grid input,
.address-form input,
.address-form textarea,
.checkout-form input,
.checkout-form textarea,
.checkout-form select {
  width: 100%;
  box-sizing: border-box;
}
.auth-shell input {
  direction: ltr;
  text-align: left;
}
.dashboard-shell,
.dashboard-content,
.account-section,
.checkout-box {
  min-width: 0;
}
.checkout-box {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-5);
  padding: var(--space-4);
}
.saved-list article button {
  min-height: var(--touch);
}
.admin-app,
.admin-stage,
.admin-main {
  max-width: 100%;
  min-width: 0;
}

.settings-grid,
.admin-form-grid,
.product-admin-form .admin-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: var(--space-4);
  min-width: 0;
}
.toggle-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-height: var(--touch);
}
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-4);
}
.remember-row {
  min-height: var(--touch);
}
.narrow-page,
.track-form {
  max-width: 560px;
  min-width: 0;
}
.installment-calculator,
.installment-request {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: var(--space-6);
  align-items: start;
}
.installment-panel,
.installment-request form {
  min-width: 0;
}
.month-options {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.month-options button {
  min-height: var(--touch);
  flex: 1 1 88px;
}
.quote-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr));
  gap: var(--space-3);
}
.saved-media-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: var(--space-3);
}
.saved-media-list img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-sm);
}
.table-wrap .data-table {
  min-width: 560px;
}
.admin-login input {
  width: 100%;
}

@media (max-width: 900px) {
  .installment-calculator,
  .installment-request {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .settings-grid,
  .admin-form-grid,
  .product-admin-form .admin-form-grid,
  .seo-fieldset {
    grid-template-columns: 1fr;
  }
  .button-row,
  .catalog-section-head,
  .admin-card > header {
    display: grid;
    grid-template-columns: 1fr;
  }
  .button-row > button,
  .admin-card .admin-primary,
  .admin-card .admin-secondary {
    width: 100%;
  }
  .installment-panel label,
  .installment-request .field {
    display: grid;
    gap: 6px;
  }
  .installment-panel select,
  .installment-panel input {
    width: 100%;
  }
  .admin-tabs {
    width: 100%;
    max-width: 100%;
  }
}

.service-page-grid,
.guide-grid,
.editorial {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: var(--space-5);
  min-width: 0;
}
.service-page-grid article,
.guide-grid section,
.editorial article {
  min-width: 0;
}
.search-box {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  width: 100%;
  min-height: var(--touch);
  padding: 0 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
}
.search-box input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  min-height: var(--touch);
}
.admin-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
  margin-top: var(--space-5);
}
.video-section {
  min-width: 0;
  overflow: hidden;
}
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

@media (max-width: 900px) {
  html body .mobile-menu-panel {
    max-width: min(88vw, 390px);
    max-height: 100dvh;
    height: 100dvh;
  }
}

@media (max-width: 700px) {
  .service-page-grid,
  .guide-grid,
  .editorial { grid-template-columns: 1fr; }
  .content-page h1 { font-size: clamp(22px, 7vw, 32px); }
  .prose { max-width: none; }
  html body .goftino-operator-launcher {
    width: max-content;
    max-width: 72px;
    height: 72px;
    inset-inline: auto !important;
    left: auto !important;
    right: 10px !important;
    bottom: calc(64px + env(safe-area-inset-bottom));
    z-index: 40;
    pointer-events: none;
  }
  html body .goftino-operator-launcher .goftino-operator-button,
  html body .goftino-operator-menu,
  html body .goftino-operator-menu button {
    pointer-events: auto;
  }
  html body .goftino-operator-launcher .goftino-operator-button {
    width: 72px;
    height: 72px;
  }
  html body #goftino_w,
  html body iframe#goftino_w {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
  html body .content-page,
  html body .shop-page,
  html body .product-detail,
  html body main {
    padding-bottom: calc(120px + env(safe-area-inset-bottom));
  }
  html body .service-page-grid article,
  html body .guide-grid section,
  html body .editorial article,
  html body .content-page .empty-state,
  html body .content-page .rg-feedback-state,
  html body .content-page > p,
  html body .content-page .prose,
  html body .video-gallery-state,
  html body .installment-copy {
    padding-inline-end: 88px;
  }
  html body .month-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  html body .month-options button {
    flex: none;
    width: 100%;
  }
  html body .month-options button:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
  html body .product-detail-layout,
  html body .product-detail-layout > * {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
  html body .product-art,
  html body .product-detail-art {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }
  html body .product-art img,
  html body .product-detail-art img {
    width: 100%;
    max-width: 100%;
    display: block;
  }
  html body .otp-form,
  html body .otp-form .wide-button {
    width: 100%;
  }
  html body .data-table {
    width: 100%;
  }
  html body .data-table th,
  html body .data-table td {
    white-space: normal;
    overflow-wrap: anywhere;
  }
  html body .purchase-journey {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }
  html body .club-section,
  html body .club-membership-form {
    width: 100%;
    max-width: 100%;
  }
  html body .quote-grid {
    grid-template-columns: 1fr;
  }
  html body .installment-panel .wide-button,
  html body .installment-request .wide-button {
    width: 100%;
  }
  html body .shop-results-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
  }
  html body .shop-filter-toggle {
    flex: 1 1 140px;
    justify-content: center;
    min-width: 0;
    padding-inline: 14px;
  }
  html body .shop-results-tools label {
    flex: 1 1 160px;
    min-width: 0;
  }
  html body .shop-results-tools select {
    width: 100%;
  }
  html body .editorial-video-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
  html body .editorial-video-card video {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: var(--radius-md);
  }
  html body .narrow-page,
  html body .track-form,
  html body .narrow-page .panel {
    width: 100%;
    max-width: 100%;
  }
  html body .footer-grid section h3 {
    min-height: 44px;
    display: flex;
    align-items: center;
    font-size: 15px;
  }
  footer {
    padding-bottom: calc(88px + env(safe-area-inset-bottom));
  }
  .footer-grid section {
    padding-block: var(--space-4);
    border-bottom: 1px solid color-mix(in srgb, #fff 12%, transparent);
  }
  .trust-seals {
    padding: 16px 12px 8px;
  }
  .search-popover {
    max-height: min(60vh, 360px);
    overflow: auto;
  }
  .admin-form-actions { flex-direction: column; }
  .admin-form-actions > * { width: 100%; text-align: center; }
}

/* Hero slider: full-bleed cover image, rounded frame, no clip on desktop or mobile. */
html body .hero-visual {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: auto !important;
  overflow: hidden;
}
html body .hero-slider {
  width: 100% !important;
  max-width: 100% !important;
  height: clamp(280px, 38vw, 440px) !important;
  overflow: hidden !important;
  border-radius: 36px;
  justify-self: stretch;
}
html body .hero-slider .bullion-slide {
  width: 100% !important;
  height: 100% !important;
  overflow: hidden;
  border-radius: inherit;
}
html body .hero-slider .bullion-uploaded-picture,
html body .hero-slider .bullion-uploaded-image,
html body .hero-slider img.bullion-uploaded-image,
html body .hero-slider img {
  display: block !important;
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center center !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  border-radius: inherit;
}
html body .hero-slider .bullion-caption {
  z-index: 4;
  max-width: calc(100% - 24px);
  white-space: normal;
}

@media (max-width: 900px) {
  html body .hero-visual {
    height: auto !important;
    margin-inline: 0 !important;
    transform: none !important;
  }
  html body .hero-slider {
    height: clamp(220px, 68vw, 340px) !important;
    border-radius: 22px !important;
  }
  html body .hero-slider .bullion-caption {
    min-width: 0 !important;
    bottom: 14px !important;
    padding: 8px 12px !important;
    white-space: normal !important;
  }
}

@media (max-width: 700px) {
  html body .hero-actions {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    width: 100%;
  }
  html body .hero-actions .button,
  html body .hero-actions a.button,
  html body .hero-copy .hero-actions .button {
    flex: 1 1 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    justify-content: center;
    box-sizing: border-box;
    white-space: normal;
  }
  html body .hero-proof {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px 14px !important;
    width: 100%;
  }
  html body .hero-proof > * {
    flex: 1 1 calc(50% - 8px);
    min-width: 0;
  }
  html body .live-price-market {
    max-width: calc(100vw - 24px);
    overflow: hidden;
  }
  html body .live-price-hero {
    display: grid !important;
    width: 100%;
    gap: 16px;
  }
  html body .live-price-hero-meta {
    min-width: 0 !important;
    width: 100%;
  }
  html body .live-price-toolbar {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100%;
    align-items: stretch;
  }
  html body .live-price-toolbar label,
  html body .live-price-toolbar input,
  html body .live-price-toolbar > small {
    width: 100%;
    min-width: 0 !important;
    max-width: 100%;
    box-sizing: border-box;
  }
  html body .live-price-table-shell,
  html body .live-price-market .table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
  }
  html body .dashboard-shell,
  html body .dashboard,
  html body .dashboard-content {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    grid-template-columns: 1fr;
  }
  html body .dashboard aside {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  html body .account-form-grid {
    grid-template-columns: 1fr;
  }
  html body .dashboard-shell .button,
  html body .dashboard-shell .wide-button,
  html body .dashboard-shell button,
  html body .empty-state button,
  html body .rg-feedback-state button {
    width: 100%;
    max-width: 100%;
    min-height: var(--touch);
    box-sizing: border-box;
  }
  html body .luxury-intro,
  html body .editorial,
  html body .service-strip,
  html body .calculator-section,
  html body .purchase-journey,
  html body .testimonial-section,
  html body .faq-section,
  html body .benefits {
    display: none !important;
  }
}
