/* Olive green leads Remi's logo-inspired palette; all rules stay shop-scoped. */
body.remi-store {
    --primary: #4f683d;
    --primary-rgb: 79, 104, 61;
    --secondary: #7f936b;
    --accent: var(--primary);
    --bg-color: #fdfaf4;
    --remi-soft: #eef2e7;
    --remi-olive-soft: #e9efdf;
    --remi-olive-ink: #435633;
    --remi-border: #d8e0cd;
    --remi-muted: #606953;
    --remi-ink: #293323;
    --remi-purchase: var(--primary);
    --remi-purchase-hover: #3b502d;
    --remi-header-clearance: 112px;
    --bs-primary-rgb: 79, 104, 61;
    --bs-secondary-rgb: 96, 105, 83;
    --bs-body-color: #293323;
    --bs-border-color: #d8e0cd;
    color: var(--remi-ink);
    background: var(--bg-color);
}

body.remi-store .store-navbar {
    gap: 20px;
    padding: 8px 28px;
    background: white;
    border-bottom: 1px solid var(--remi-border);
    box-shadow: 0 4px 20px rgba(79, 104, 61, 0.05);
}

body.remi-store .store-brand {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
    color: var(--primary);
    text-decoration: none;
    border-radius: 16px;
}

body.remi-store .store-brand-logo {
    display: block;
    width: 88px;
    height: 88px;
    flex: 0 0 88px;
    object-fit: contain;
}

body.remi-store .store-brand-name {
    min-width: 0;
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

body.remi-store .store-cart-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    border: 1px solid var(--remi-border);
    color: var(--primary);
    background: var(--remi-soft);
}

body.remi-store .store-cart-toggle:hover {
    border-color: var(--secondary);
    background: #dde6d1;
}

body.remi-store #nav-cart-badge {
    background-color: var(--primary) !important;
}

body.remi-store .store-hero {
    padding: 20px;
    margin-bottom: 16px;
    color: var(--primary);
    background: var(--bg-color);
    border-bottom: 1px solid var(--remi-border);
    border-radius: 0;
}

body.remi-store .store-hero h1 {
    margin-bottom: 6px;
    font-size: 1.4rem;
    line-height: 1.6;
}

body.remi-store .store-hero p {
    color: var(--remi-muted);
    opacity: 1;
    font-size: 0.88rem;
    line-height: 1.6;
}

body.remi-store .store-social {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 18px;
    margin-bottom: 16px;
    border-color: var(--remi-border);
    border-radius: 20px;
    background: linear-gradient(120deg, #f2f6eb, #ffffff 55%, #edf3e7);
    box-shadow: 0 8px 24px rgba(79, 104, 61, 0.06);
}

body.remi-store .store-social-intro {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: center;
    gap: 2px 8px;
    min-width: 0;
    text-align: center;
}

body.remi-store .store-social-eyebrow {
    margin: 0;
}

body.remi-store .store-social h2 {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.6;
}

body.remi-store .store-social p {
    flex-basis: 100%;
    font-size: 0.78rem;
    line-height: 1.6;
}

/* Social follows are the focus; one row leaves the catalog within view. */
body.remi-store .store-social-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 12px;
    width: 100%;
}

body.remi-store .store-social-link {
    --social-background: linear-gradient(125deg, #1452ad, #1261c9);
    --social-rgb: 20, 82, 173;
    min-width: 0;
    min-height: 110px;
    align-self: stretch;
    justify-content: center;
    gap: 14px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    color: white;
    background: var(--social-background);
    box-shadow: 0 6px 16px rgba(var(--social-rgb), 0.2);
    font-size: 1.05rem;
    line-height: 1.5;
}

body.remi-store .store-social-link--instagram {
    --social-background: linear-gradient(125deg, #7431a6, #b62272 62%, #b3472f);
    --social-rgb: 182, 34, 114;
}

body.remi-store .store-social-link--whatsapp {
    --social-background: linear-gradient(125deg, #087044, #118044);
    --social-rgb: 17, 128, 68;
}

body.remi-store .store-social-link--whatsapp-channel {
    --social-background: linear-gradient(125deg, #076257, #08776d);
    --social-rgb: 8, 119, 109;
}

body.remi-store .store-social-link:hover {
    color: white;
    border-color: rgba(255, 255, 255, 0.65);
    background: var(--social-background);
    box-shadow: 0 8px 20px rgba(var(--social-rgb), 0.3);
    transform: none;
}

body.remi-store .store-social-link .store-social-icon {
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.16);
    color: white;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
    font-size: 2.2rem;
}

body.remi-store .store-social-copy {
    min-width: 0;
    gap: 4px;
    text-align: start;
}

body.remi-store .store-social-copy small {
    display: block;
    color: white;
    font-size: 0.8rem;
    line-height: 1.5;
}

body.remi-store .store-social-copy small i,
body.remi-store .store-social-arrow {
    display: none;
}

body.remi-store .store-social-eyebrow,
body.remi-store .product-preview-hint {
    color: var(--primary);
}

body.remi-store .store-social p,
body.remi-store #catalogResultCount,
body.remi-store .product-desc,
body.remi-store #productDetailSkuRow,
body.remi-store #productDetailDescription,
body.remi-store #productGalleryCounter,
body.remi-store .cart-total-info span:first-child {
    color: var(--remi-muted);
}

body.remi-store .text-muted {
    color: var(--remi-muted) !important;
}

body.remi-store .product-price,
body.remi-store #productDetailPrice,
body.remi-store .cart-item-price,
body.remi-store .cart-total-info span:last-child,
body.remi-store #catalogTitle,
body.remi-store #storeCategoriesTitle,
body.remi-store #productDetailTitle,
body.remi-store #cartOffcanvasLabel,
body.remi-store .store-social h2 {
    color: var(--primary);
}

body.remi-store .store-catalog-toolbar {
    margin-bottom: 14px;
}

body.remi-store #catalogTitle {
    scroll-margin-top: var(--remi-header-clearance);
}

body.remi-store #storeCategories {
    border-color: var(--remi-border);
    background: white;
}

body.remi-store .category-menu-header {
    border-color: var(--remi-border);
}

body.remi-store .category-filter {
    color: var(--remi-muted);
    border-radius: 14px;
}

body.remi-store .category-filter:hover {
    color: var(--remi-olive-ink);
    background: var(--remi-olive-soft);
}

body.remi-store .category-count {
    color: var(--primary);
    background: var(--remi-soft);
}

body.remi-store .category-filter[aria-pressed="true"] {
    border-inline-start: 3px solid var(--secondary);
    background: var(--remi-olive-soft);
    color: var(--remi-ink);
    font-weight: 800;
    box-shadow: none;
}

body.remi-store .category-filter[aria-pressed="true"] .category-count {
    background: white;
    color: var(--remi-ink);
}

body.remi-store #categoryMenuToggle,
body.remi-store .category-menu-close,
body.remi-store .product-gallery-controls button {
    border-color: var(--remi-border);
    color: var(--remi-olive-ink);
    background: var(--remi-olive-soft);
    border-radius: 14px;
}

body.remi-store .product-card {
    border: 1px solid var(--remi-border);
    border-radius: 24px;
    background: white;
    box-shadow: 0 6px 22px rgba(79, 104, 61, 0.06);
}

body.remi-store .product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(79, 104, 61, 0.12);
}

body.remi-store .product-image {
    background: white;
    border-bottom: 1px solid #e5eadf;
    object-fit: contain;
    filter: none;
}

body.remi-store .product-title {
    color: var(--remi-ink);
    overflow-wrap: anywhere;
}

body.remi-store #productDetailCategories span,
body.remi-store .product-card-category {
    color: var(--remi-olive-ink);
    background: var(--remi-olive-soft);
}

body.remi-store .btn-add-cart,
body.remi-store #productDetailAdd,
body.remi-store .btn-checkout,
body.remi-store #checkoutForm .btn-accent {
    border: 1px solid var(--remi-purchase);
    border-radius: 14px;
    background: var(--remi-purchase);
    color: white;
    box-shadow: 0 4px 12px rgba(79, 104, 61, 0.12);
    transition: background-color 0.2s, border-color 0.2s, transform 0.2s;
}

body.remi-store .btn-add-cart:not(:disabled):hover,
body.remi-store #productDetailAdd:not(:disabled):hover,
body.remi-store .btn-checkout:hover,
body.remi-store #checkoutForm .btn-accent:hover {
    color: white;
    border-color: var(--remi-purchase-hover);
    background: var(--remi-purchase-hover);
}

body.remi-store .btn-add-cart:disabled,
body.remi-store #productDetailAdd:disabled {
    background: #e7ebdf;
    border-color: var(--remi-border);
    color: var(--remi-muted);
    box-shadow: none;
    opacity: 1;
    cursor: not-allowed;
}

/* Stock warnings must remain conspicuous after the scoped card/button rules. */
body.remi-store .product-card.is-out-of-stock {
    border: 3px solid #dc2626;
    background: white;
    box-shadow: 0 8px 24px rgba(220, 38, 38, 0.14);
}

body.remi-store .stock-label {
    border: 2px solid #ef4444;
    background: #fff1f2;
    color: #b91c1c;
    font-size: 1.2rem;
    font-weight: 800;
}

body.remi-store .product-card.is-out-of-stock .btn-add-cart:disabled,
body.remi-store #productDetailStock:not([hidden]) ~ #productDetailAdd:disabled {
    border-color: #dc2626;
    background: #dc2626;
    color: white;
    opacity: 1;
}

body.remi-store #productDetailsModal .modal-content {
    border: 1px solid var(--remi-border);
    border-radius: 28px;
    background: white;
    box-shadow: 0 18px 60px rgba(41, 51, 35, 0.15);
}

body.remi-store #productDetailsModal .modal-header {
    border-bottom: 1px solid var(--remi-border);
    background: var(--remi-soft);
}

body.remi-store .product-detail-photo {
    border: 1px solid var(--remi-border);
    border-radius: 22px;
    background: white;
}

body.remi-store #productDetailImage,
body.remi-store #productGalleryThumbs img,
body.remi-store .cart-item-img {
    object-fit: contain;
    filter: none;
}

body.remi-store #productGalleryThumbs button {
    border-color: var(--remi-border);
    border-radius: 12px;
}

body.remi-store #productGalleryThumbs button[aria-pressed="true"] {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--remi-soft);
}

body.remi-store .floating-cart {
    gap: 12px;
    background: white;
    border-top: 1px solid var(--remi-border);
    box-shadow: 0 -5px 25px rgba(79, 104, 61, 0.09);
    border-radius: 24px 24px 0 0;
}

body.remi-store .cart-total-info {
    min-width: 0;
    overflow-wrap: anywhere;
}

body.remi-store #floating-badge {
    color: var(--primary) !important;
}

body.remi-store #cartOffcanvas {
    color: var(--remi-ink);
    background: white;
    border-inline-start: 1px solid var(--remi-border);
}

body.remi-store #cartOffcanvas .offcanvas-header,
body.remi-store .cart-shopping-footer,
body.remi-store .cart-item {
    border-color: var(--remi-border);
}

body.remi-store #cartOffcanvas .bg-light {
    background-color: var(--remi-soft) !important;
}

body.remi-store .cart-shopping-footer {
    background: white;
    box-shadow: 0 -6px 20px rgba(79, 104, 61, 0.05);
}

body.remi-store .cart-close,
body.remi-store .cart-continue-shopping,
body.remi-store #success-section .btn-outline-secondary {
    border-color: var(--remi-border);
    color: var(--primary);
    background: var(--remi-soft);
    border-radius: 14px;
}

body.remi-store .cart-close:hover,
body.remi-store .cart-continue-shopping:hover,
body.remi-store #success-section .btn-outline-secondary:hover {
    border-color: var(--secondary);
    background: #dde6d1;
}

body.remi-store .cart-item-img {
    flex-shrink: 0;
    background: white;
}

body.remi-store .cart-item-info {
    min-width: 0;
    overflow-wrap: anywhere;
}

body.remi-store .quantity-controls {
    flex-shrink: 0;
    background: var(--remi-soft);
    border-radius: 10px;
}

body.remi-store .quantity-controls button {
    color: var(--primary);
    border-color: var(--remi-border);
}

body.remi-store .quantity-controls button:disabled {
    color: var(--remi-muted);
    background: #f0f2eb;
    cursor: not-allowed;
    opacity: 0.6;
}

body.remi-store #checkoutForm .form-control {
    border-color: var(--remi-border);
    border-radius: 12px;
    color: var(--remi-ink);
    background: white;
    padding: 12px;
}

body.remi-store #checkoutForm .form-control::placeholder {
    color: var(--remi-muted);
    opacity: 1;
}

body.remi-store #checkoutForm .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(79, 104, 61, 0.15);
}

body.remi-store :is(a, button, input, textarea):focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 3px;
}

body.remi-store .product-preview:focus-visible {
    outline-offset: -4px;
    border-radius: 22px;
}

@media (min-width: 992px) {
    body.remi-store #storeCategories {
        top: var(--remi-header-clearance);
        border-radius: 22px;
        box-shadow: 0 6px 24px rgba(79, 104, 61, 0.05);
    }

    body.remi-store #storeCategories .offcanvas-body {
        max-height: calc(100dvh - 208px);
    }
}

@media (max-width: 991px) {
    body.remi-store .store-social-link {
        flex-direction: column;
        gap: 8px;
    }

    body.remi-store .store-social-copy {
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 575px) {
    body.remi-store {
        --remi-header-clearance: 96px;
    }

    body.remi-store .store-navbar {
        gap: 12px;
        padding: 8px 14px;
    }

    body.remi-store .store-brand {
        gap: 8px;
    }

    body.remi-store .store-brand-logo {
        width: 72px;
        height: 72px;
        flex-basis: 72px;
    }

    body.remi-store .store-brand-name {
        font-size: 1.05rem;
    }

    body.remi-store .store-cart-toggle {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
    }

    body.remi-store .store-hero {
        padding: 12px;
        margin-bottom: 12px;
    }

    body.remi-store .store-hero h1 {
        font-size: 1.1rem;
    }

    body.remi-store .store-hero p {
        font-size: 0.8rem;
    }

    body.remi-store .store-social {
        gap: 12px;
        padding: 12px;
    }

    body.remi-store .store-social h2 {
        font-size: 1rem;
    }

    body.remi-store .store-social-links {
        gap: 8px;
    }

    body.remi-store .store-social-link {
        min-height: 140px;
        margin: 0;
        padding: 10px 5px;
        gap: 8px;
        border-radius: 14px;
        font-size: 0.85rem;
    }

    body.remi-store .store-social-link .store-social-icon {
        flex-basis: 48px;
        width: 48px;
        height: 48px;
        border-radius: 14px;
        font-size: 2rem;
    }

    body.remi-store .store-social-copy small {
        font-size: 0.72rem;
    }

    body.remi-store .floating-cart {
        gap: 10px;
        padding: 12px 14px calc(12px + env(safe-area-inset-bottom, 0px));
    }

    body.remi-store .cart-total-info span:last-child {
        font-size: 1rem;
    }

    body.remi-store .btn-checkout {
        flex-shrink: 0;
        gap: 6px;
        padding: 12px;
        font-size: 0.88rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.remi-store .product-card,
    body.remi-store .btn-add-cart,
    body.remi-store #productDetailAdd,
    body.remi-store .btn-checkout,
    body.remi-store #checkoutForm .btn-accent,
    body.remi-store .floating-cart {
        transition: none;
    }

    body.remi-store .product-card:hover,
    body.remi-store .btn-add-cart:active {
        transform: none;
    }
}
