/* Refined typography for the home-page hero. */
.ov-store.ov-home .ref-hero .home-hero-title {
    max-width: 12em;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(44px, 5.5vw, 76px);
    font-weight: 500;
    line-height: 1.06;
    letter-spacing: -.025em;
    text-transform: none;
    overflow-wrap: normal;
    color: #fffaf3;
    text-shadow: 0 2px 24px #0004;
}
.ov-store.ov-home .ref-hero-copy > p {
    font-family: var(--body);
    font-size: clamp(14px, 1.25vw, 17px);
    font-weight: 400;
    line-height: 1.7;
    letter-spacing: .035em;
    max-width: 32ch;
    margin: 24px 0 32px;
    color: #eee3d6;
}
.ov-store.ov-home .ref-hero .ov-button {
    font-size: 11px;
    letter-spacing: .1em;
    padding: 15px 28px;
}
@media (max-width: 480px) {
    .ov-store.ov-home .ref-hero .home-hero-title {
        font-size: clamp(36px, 10vw, 48px);
        line-height: 1.1;
    }
    .ov-store.ov-home .ref-hero-copy > p { margin: 20px 0 28px; }
}

/* Shared sizing rules: keep content readable without hiding page overflow. */
body main, body main :where(section, article, form, fieldset, div) { min-width: 0; }
body main :where(input, select, textarea) { max-width: 100%; min-width: 0; }
body main :where(h1, h2, h3, p, address, dd) { overflow-wrap: anywhere; }
body #alert-container { width: min(420px, calc(100% - 32px)); right: 16px; }
body .alert-text, body .toast span { min-width: 0; overflow-wrap: anywhere; }
.ov-store main img { max-width: 100%; }
.ov-store .ov-product-layout > *, .ov-store .ov-cart-layout > *,
.ov-store .ov-footer-grid > *, .ov-store .ov-tracking-layout > * { min-width: 0; }
.ov-store .ov-cart-item { grid-template-columns: 110px minmax(0, 1fr) 24px; }
.ov-store .ov-cart-item h2, .ov-store .ov-footer a { overflow-wrap: anywhere; }
.ov-store .ov-cart-item img { max-width: 100%; }
.ov-store .ov-gallery { min-width: 0; }
.ov-store .ov-gallery > * { min-width: 0; }
.ov-store .ov-footer-bottom { gap: 12px; flex-wrap: wrap; }
.ov-store .ov-sort { min-width: 0; }
.ov-store .ov-sort select { max-width: 100%; }
.ov-store .profile-layout { display: grid; grid-template-columns: minmax(220px, 280px) minmax(0, 1fr); gap: 28px; align-items: start; }
.ov-store .profile-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ov-store .profile-avatar { margin-inline: auto; }
.ov-store .profile-section { background: #fffdfa; overflow-wrap: anywhere; }
.ov-store .profile-section input, .ov-store .profile-section textarea { min-height: 46px; }
.ov-store .profile-section .btn { min-height: 44px; font-size: 12px !important; }
.profile-heading { margin-bottom: 28px; }
.profile-heading p { margin-top: 10px; color: var(--muted); }
.profile-links { display: grid; gap: 10px; margin-top: 24px; padding-top: 20px; border-top: var(--rule); }
.profile-links .btn { width: 100%; }
.order-history-item { gap: 16px; flex-wrap: wrap; }
.order-history-item > div:first-child { flex: 1 1 180px; min-width: 0; }
.order-history-item img { flex-shrink: 0; }
.order-history-item > div:first-child > div { min-width: 0; overflow-wrap: anywhere; }
.rm-responsive-grid > * { min-width: 0; }
.rm-admin-page main div:has(> table) { overscroll-behavior-x: contain; }
/* Let table columns keep their readable minimum width and scroll in their wrapper. */
.rm-admin-page main table { table-layout: auto; }
.rm-admin-page main :is(th, td),
.rm-admin-page main td :is(h1, h2, h3, p, address, dd) {
    overflow-wrap: normal;
    word-break: normal;
}
.rm-admin-page main td:first-child,
.rm-admin-page main td > span,
.rm-admin-page main td :is(.rm-status, .btn, .rm-row-action) {
    white-space: nowrap;
}
.rm-admin-page main td:last-child { white-space: nowrap; }
.rm-admin-page main .rm-icon-action { width: 40px; height: 40px; min-width: 40px; }
.rm-admin-page main .rm-icon-action,
.rm-admin-page main .rm-icon-delete,
.rm-admin-page main .rm-icon-power,
.rm-admin-page main .rm-icon-check,
.rm-admin-page .ov-quick-actions a:nth-child(n) { color: #333; background: transparent; border: 1px solid #ddd; }
.rm-admin-page main .rm-icon-action:hover,
.rm-admin-page .ov-quick-actions a:nth-child(n):hover { color: #111; background: #f1f1ef; border-color: #999; }
.rm-admin-page .ov-admin-search { min-width: 0; }
.rm-admin-page .rm-panel-heading { flex-wrap: wrap; gap: 12px; }
.rm-admin-page .rm-summary-card > div { min-width: 0; }
.rm-admin-page .rm-summary-card strong { overflow-wrap: anywhere; }
.rm-admin-page main .rm-page-toolbar { flex-wrap: wrap; gap: 16px; }
.rm-admin-page .rm-admin-topbar .rm-signout { white-space: nowrap; }
.rm-admin-backdrop { display: none; }
@media (max-width: 1000px) {
    .rm-admin-page main .rm-detail-grid { grid-template-columns: minmax(0, 1fr) !important; }
    .rm-admin-page main :is(.detail-grid, .review-meta, .stats-row) { grid-template-columns: minmax(0, 1fr); }
    .ov-store .profile-layout { grid-template-columns: minmax(0, 1fr); }
    .ov-store .profile-layout > .profile-section { max-width: 100%; }
    .ov-store .ov-header-inner { height: 68px; gap: 12px; }
    .ov-store .ov-header .rm-menu-toggle { display: grid; order: -1; margin: 0; }
    .ov-store .ov-actions { margin-left: auto; }
    .ov-store .ov-header .ov-nav { display: none !important; }
    .ov-store .ov-header .ov-nav.is-open { display: flex !important; position: absolute !important; top: 68px; left: 0; right: 0; width: 100% !important; max-height: calc(100dvh - 68px); overflow-y: auto; background: #141512 !important; padding: 24px !important; align-items: stretch; flex-direction: column; gap: 12px; }
    .ov-store .ov-header .ov-nav > a { font-size: 14px; min-height: 44px; padding: 12px 0; }
}
@media (max-width: 800px) {
    .rm-admin-page:not(.rm-sidebar-hidden) { overflow: hidden; }
    .rm-admin-page:not(.rm-sidebar-hidden) .rm-admin-backdrop { display: block; position: fixed; inset: 0; z-index: 165; background: #0006; border: 0; }
    .rm-admin-page .rm-admin-sidebar { max-width: calc(100vw - 48px); }
    .rm-admin-page main .rm-responsive-grid { grid-template-columns: minmax(0, 1fr) !important; }
    .rm-admin-page main .spec-row { grid-template-columns: minmax(0, 1fr) !important; padding-bottom: 16px; border-bottom: var(--rule); }
    .rm-admin-page main .spec-row .remove-spec { justify-self: start; }
    .rm-admin-page main form[method="GET" i] { flex-wrap: wrap; }
    .rm-admin-page main form[method="GET" i] > :is(input, select) { min-width: 0 !important; flex: 1 1 180px; width: 100%; }
}
@media (max-width: 760px) {
    .ov-store main :is(input:not([type=checkbox]):not([type=radio]), select, textarea),
    .rm-admin-page main :is(input:not([type=checkbox]):not([type=radio]), select, textarea) { font-size: 16px !important; }
    .ov-store .ov-cart-item { grid-template-columns: 75px minmax(0, 1fr) 24px; gap: 12px; }
    .ov-store .ov-cart-item img { width: 75px; height: 90px; }
    .ov-store .ov-contact-strip { gap: 20px; overflow-wrap: anywhere; }
    .ov-store .profile-fields { grid-template-columns: minmax(0, 1fr); }
    .ov-store .profile-section { padding: 20px 16px; }
    .ov-store .profile-section .btn { width: 100%; }
    .ov-store .profile-heading h1 { font-size: 34px; }
    .ov-store .ov-quick-add { min-height: 40px; }
    .ov-store .ov-icon { min-height: 40px; }
}
@media (max-width: 480px) {
    body.rm-admin-page .rm-admin-topbar { flex-wrap: wrap; height: auto; min-height: 112px; gap: 8px; padding: 10px 14px; }
    .rm-admin-page .rm-admin-topbar .ov-admin-search { order: 3; flex-basis: 100%; padding: 8px 12px; }
    .rm-admin-page .rm-admin-topbar .ov-admin-search input { font-size: 16px; }
    .rm-admin-page .rm-admin-top-actions { margin-left: auto; }
    body.rm-admin-page { padding-top: 124px; }
    .rm-admin-page .ov-quick-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rm-admin-page main .rm-summary-card { flex-direction: column; }
    .ov-store .ov-header-inner { gap: 7px; }
    .ov-store .ov-actions { gap: 0; }
    .ov-store .ov-header .ov-brand-image { width: 94px; }
    .ov-store .ov-footer-grid { gap: 26px 16px; }
    .ov-store .ov-footer-grid > div:first-child { grid-column: 1 / -1; }
    .ov-store .ov-price del { display: block; margin-left: 0; }
    .ov-store .ov-tracking-card { padding: 24px 16px; }
    .ov-store .ov-category h3 { font-size: 21px; }
    .ov-store .ov-category > div { padding: 16px; }
}

/* Keep action labels available to assistive technology without showing text. */
.rm-sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.rm-sidebar-toggle .rm-menu-reopen { display: none; }
.rm-sidebar-hidden .rm-sidebar-toggle .rm-menu-cross { display: none; }
.rm-sidebar-hidden .rm-sidebar-toggle .rm-menu-reopen { display: block; }
.rm-admin-page .rm-dashboard-sidebar-close { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 6px; background: #29241f; color: #fff; cursor: pointer; }
.rm-admin-page .rm-sidebar-reopen[hidden] { display: none; }
.rm-admin-page:has(.rm-dashboard-sidebar-close) .ov-sidebar-brand { margin-top: 20px; }

.rm-menu-mobile-bars, .rm-admin-page .rm-mobile-only-close { display: none; }
@media (max-width: 800px) {
    .rm-menu-mobile-bars { display: block; }
    .rm-menu-desktop-arrow { display: none; }
    .rm-admin-page .rm-mobile-only-close { display: grid; }
    body.rm-admin-page .rm-admin-sidebar { position: fixed; inset: 0 auto 0 0; width: min(320px, calc(100vw - 48px)); height: 100dvh; max-height: 100dvh; overflow-y: auto; box-shadow: 10px 0 40px #0004; }
    .rm-admin-page .rm-admin-backdrop[hidden] { display: none; }
}

/* Keep the empty cart message and action centered as one group. */
.ov-store .ov-cart > .ov-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: clamp(280px, 42vh, 440px);
    padding: 48px 16px;
    gap: 18px;
    text-align: center;
}
.ov-store .ov-cart > .ov-empty > h2 {
    width: 100%;
    max-width: 680px;
    margin: 0;
    font-size: clamp(28px, 3vw, 40px);
    line-height: 1.2;
    text-align: center;
}
.ov-store .ov-cart > .ov-empty > p {
    width: 100%;
    max-width: 560px;
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
    text-align: center;
}
.ov-store .ov-cart > .ov-empty > .ov-button {
    align-self: center;
    max-width: 100%;
    margin-top: 8px;
    text-align: center;
}
