/* Premium palette: deeper plum, champagne gold and ivory. Shared with the admin theme. */
:root {
    --plum: #2d1530;
    --plum-soft: #4a2550;
    --plum-deep: #1f0c1e;
    --plum-900: #2a1229;
    --rose: #a9466f;
    --rose-light: #e9a2b6;
    --rose-pale: #faebf1;
    --gold: #c39a57;
    --gold-light: #efd9ae;
    --gold-deep: #9a7335;
    --cream: #fbf7f3;
    --ink: #241326;
    --muted: #6f5d70;
    --line: #ebe2e6;
    --gradient-brand: linear-gradient(135deg, #2a1229 0%, #4d2749 55%, #6b2c58 100%);
    --gradient-gold: linear-gradient(135deg, #f1dcb0 0%, #c39a57 100%);
    --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* Ruvessa Glow storefront additions: header, announcement bar, product actions, reviews, coupons, footer.
   Loaded last, after storefront.css, shop.css, cart.css and track.css. */

/* Announcement bar (set in Marketing in the admin) */
.announce {
    background: linear-gradient(135deg, var(--plum), var(--plum-soft));
    color: #fff;
    text-align: center;
    font-size: 0.9rem;
    padding: 8px 16px;
}

/* Body: a soft rose and gold glow over the ivory page */
body {
    background:
        radial-gradient(900px 460px at 92% -12%, rgba(233, 162, 182, 0.3), transparent 62%),
        radial-gradient(760px 520px at -12% 42%, rgba(195, 154, 87, 0.16), transparent 60%),
        linear-gradient(180deg, #fdfaf7 0%, #f8f0ec 100%);
    background-color: var(--cream);
}

/* Header: deep plum bar with a gold hairline.
   Phones: brand and cart on row one, four menu tiles below.
   Computers: brand, menu and tools on one row, and the bar stays at the top while scrolling. */
.site-header {
    position: relative;
    z-index: 50;
    background: linear-gradient(135deg, #2a1229 0%, #4d2749 58%, #6b2c58 100%);
    border-bottom: 0;
    box-shadow: 0 16px 30px -24px rgba(42, 18, 41, 0.85);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

.site-header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    pointer-events: none;
}

.header-inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
        "brand tools"
        "nav nav";
    align-items: center;
    gap: 12px 14px;
    padding-top: 12px;
    padding-bottom: 14px;
}

.brand-link {
    grid-area: brand;
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 10px 22px -16px rgba(0, 0, 0, 0.7);
}

/* Brand: full logo from tablet width up, the R mark on phones (the logo has a small tagline that is too small to read there). */
.brand-link img {
    display: block;
    height: auto;
    max-width: 100%;
}

.brand-link .brand-logo {
    width: 66px;
}

.brand-link .brand-mark {
    display: none;
    width: 46px;
    height: 46px;
}

@media (max-width: 639px) {
    .brand-link .brand-logo {
        display: none;
    }

    .brand-link .brand-mark {
        display: block;
    }
}

.header-tools {
    grid-area: tools;
    display: flex;
    align-items: center;
    justify-self: end;
    gap: 10px;
    order: 0;
    margin-left: 0;
}

.cart-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(239, 217, 174, 0.45);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}

.cart-link:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: var(--gold-light);
}

.cart-link .ico {
    color: var(--gold-light);
}

.cart-count {
    display: inline-grid;
    place-items: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--gold-light);
    color: var(--plum-900);
    font-size: 0.8rem;
    font-weight: 700;
}

.lang-switch {
    display: inline-flex;
    gap: 2px;
    padding: 3px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.lang-switch a {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.86rem;
    font-weight: 700;
    text-decoration: none;
}

.lang-switch a:hover {
    color: #fff;
}

.lang-switch a.active {
    background: var(--gold-light);
    color: var(--plum-900);
}

/* Menu on phones: four tiles with the icon above the label */
.site-nav {
    grid-area: nav;
    order: 0;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    justify-content: stretch;
    overflow: visible;
    white-space: normal;
}

.site-nav a {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 60px;
    padding: 8px 4px;
    border-radius: 14px;
    border: 1px solid rgba(233, 162, 182, 0.18);
    background: rgba(255, 255, 255, 0.06);
    color: #f3e6ee;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}

.site-nav a:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.site-nav a.active {
    background: linear-gradient(135deg, rgba(239, 217, 174, 0.24), rgba(195, 154, 87, 0.12));
    border-color: rgba(239, 217, 174, 0.55);
    color: #fff;
}

.site-nav .ico {
    width: 20px;
    height: 20px;
    color: var(--gold-light);
}

.site-nav a::after {
    display: none;
}

.ico {
    display: inline-block;
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    vertical-align: middle;
}

@media (max-width: 479px) {
    .cart-text {
        display: none;
    }

    .cart-link {
        padding: 0 12px;
    }
}

/* Computers: one row, underline on hover and on the current page */
@media (min-width: 860px) {
    .site-header {
        position: sticky;
        top: 0;
    }

    .header-inner {
        grid-template-columns: auto minmax(0, 1fr) auto;
        grid-template-areas: "brand nav tools";
        gap: 18px 28px;
        padding-top: 14px;
        padding-bottom: 14px;
    }

    .site-nav {
        width: auto;
        display: flex;
        justify-content: center;
        justify-self: center;
        gap: 26px;
    }

    .site-nav a {
        flex-direction: row;
        gap: 8px;
        min-height: 0;
        padding: 8px 2px;
        border: 0;
        border-radius: 0;
        background: none;
        font-size: 0.96rem;
    }

    .site-nav a:hover,
    .site-nav a.active {
        background: none;
        border: 0;
    }

    .site-nav a::after {
        display: block;
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        width: auto;
        bottom: -4px;
        height: 2px;
        border-radius: 2px;
        background: var(--gold-light);
        transform: scaleX(0);
        transform-origin: left center;
        transition: transform 0.35s var(--ease);
    }

    .site-nav a:hover::after,
    .site-nav a.active::after {
        transform: scaleX(1);
    }

    .site-nav .ico {
        width: 18px;
        height: 18px;
    }
}

.btn-sm {
    min-height: 40px;
    padding: 0 16px;
    font-size: 0.9rem;
}

/* Category chips with counts */
.chip-count {
    display: inline-block;
    min-width: 1.6em;
    margin-left: 4px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--rose-pale);
    color: var(--plum);
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.6;
    text-align: center;
}

.chip.is-active .chip-count {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* Product card: stock label and quick add */
.product-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.product-actions .stock-out {
    margin: 0;
}

.stock-in {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--ok-bg, #e7f4ec);
    color: var(--ok, #2f7d4f);
    font-size: 0.8rem;
    font-weight: 600;
}

.add-quick {
    margin: 0;
}

.add-quick .btn {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.add-quick .ico {
    width: 16px;
    height: 16px;
}

/* Honeypot field: hidden from people, filled only by bots */
.hp-field {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Product reviews */
.reviews {
    margin-top: 48px;
    padding-top: 28px;
    border-top: 1px solid var(--line);
}

.review-summary {
    font-weight: 600;
    color: var(--plum);
}

.stars {
    color: var(--gold);
    letter-spacing: 1px;
}

.review-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    margin-bottom: 12px;
}

.review-card p {
    margin: 6px 0 0;
}

.review-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    margin: 0;
}

.review-open {
    margin-top: 18px;
}

.review-open > summary {
    display: inline-flex;
    list-style: none;
    cursor: pointer;
}

.review-open > summary::-webkit-details-marker {
    display: none;
}

.review-form {
    margin-top: 14px;
}

/* Checkout coupon box */
.coupon-section {
    padding-top: 0;
    padding-bottom: 8px;
}

.coupon-title {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.coupon-box {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    margin-bottom: 18px;
}

.coupon-box p {
    margin: 0;
}

.coupon-form .field {
    flex: 1 1 220px;
    margin: 0;
}

.coupon-form .field input {
    width: 100%;
}

.coupon-box .btn {
    min-height: 44px;
}

/* Footer links */
.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin: 10px 0 12px;
}

.footer-links a {
    color: #f5e9ef;
}

@media (max-width: 480px) {
    .announce {
        font-size: 0.82rem;
    }

    .product-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .add-quick,
    .add-quick .btn {
        width: 100%;
    }
}

.btn-primary {
    background: var(--gradient-brand);
    color: #fff;
}

.btn-primary:hover {
    filter: brightness(1.08);
}

/* Footer: columns on a deep plum panel, gold headings and hover underlines */
.site-footer {
    position: relative;
    overflow: hidden;
    margin-top: 72px;
    padding: 56px 0 0;
    background: var(--gradient-brand);
    color: #f1e6ed;
}

.site-footer::before {
    content: "";
    position: absolute;
    right: -140px;
    bottom: -220px;
    width: 460px;
    height: 460px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(195, 154, 87, 0.22), transparent 66%);
    pointer-events: none;
}

.footer-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 36px;
}

.footer-brand-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.footer-logo {
    display: block;
    width: 116px;
    height: auto;
    padding: 8px 12px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 12px 24px -16px rgba(0, 0, 0, 0.6);
}

.footer-tagline {
    margin: 14px 0 0;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.2rem;
    color: #f6e7d0;
}

.footer-head {
    margin: 0 0 14px;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold-light);
}

.footer-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
}

.footer-col a {
    position: relative;
    color: #f1e6ed;
    font-size: 0.95rem;
    text-decoration: none;
    transition: color 0.25s var(--ease);
}

.footer-col a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -3px;
    height: 1px;
    background: var(--gold-light);
    transform: scaleX(0);
    transform-origin: right center;
    transition: transform 0.35s var(--ease);
}

.footer-col a:hover,
.footer-col a:focus-visible {
    color: #fff;
}

.footer-col a:hover::after,
.footer-col a:focus-visible::after {
    transform: scaleX(1);
    transform-origin: left center;
}

.footer-col a:focus-visible {
    outline: 2px solid var(--gold-light);
    outline-offset: 3px;
    border-radius: 4px;
}

.footer-muted {
    margin: 4px 0 0;
    font-size: 0.88rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.66);
}

.footer-bottom {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 18px;
    margin-top: 44px;
    padding-top: 18px;
    padding-bottom: 26px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.74);
}

.footer-bottom p {
    margin: 0;
}

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

    .footer-brand-block {
        grid-column: 1 / -1;
    }
}

@media (max-width: 480px) {
    .site-footer {
        padding-top: 44px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .footer-col a,
    .footer-col a::after,
    .site-footer .footer-col a {
        transition: none;
    }

    .site-footer .footer-col a:hover {
        transform: none;
    }
}

/* Footer text. These selectors are more specific than the older storefront rules, so headings stay
   gold, the logo keeps its white pill, and links are plain text with no underline. */
.site-footer .footer-logo {
    display: block;
    width: 100px;
    height: auto;
    padding: 8px 12px;
    border-radius: 14px;
    background: #fff;
}

.site-footer .footer-head {
    margin: 0 0 14px;
    padding: 0;
    font-family: inherit;
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold-light);
}

.site-footer .footer-tagline {
    margin: 14px 0 0;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: #f6e7d0;
}

.site-footer .footer-col a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #f1e6ed;
    font-size: 0.95rem;
    text-decoration: none;
    overflow-wrap: anywhere;
    transition: color 0.25s var(--ease), transform 0.25s var(--ease);
}

.site-footer .footer-col a::after {
    content: none;
}

.site-footer .footer-col a:hover,
.site-footer .footer-col a:focus-visible {
    color: #fff;
    text-decoration: none;
    transform: translateX(3px);
}

.site-footer .footer-col .ico {
    width: 16px;
    height: 16px;
    color: var(--gold-light);
}

.site-footer .footer-muted {
    margin: 4px 0 0;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.66);
}

.site-footer .footer-bottom {
    color: rgba(255, 255, 255, 0.74);
    text-decoration: none;
}

/* Brand mark as the picture for products with no photo, and for the cart thumbnail */
img.product-placeholder {
    object-fit: contain;
    padding: 18%;
    box-sizing: border-box;
    background: radial-gradient(circle at 30% 20%, #fbf3ea, #efdcc9 70%);
}

.cart-thumb img.cart-thumb-placeholder {
    object-fit: contain;
    padding: 14px;
    box-sizing: border-box;
    background: radial-gradient(circle at 30% 20%, #fbf3ea, #efdcc9 70%);
}
