/**
 * gizmo_racing/public/css/shop.css
 * Gizmo Racing shop page — motorsport precision aesthetic
 * Dark sidebar, red accents, clean product grid.
 */

/* ═══════════════════════════════════════════════════════════════════ */
/*  Page wrapper                                                       */
/* ═══════════════════════════════════════════════════════════════════ */

.gr-shop-wrap {
    margin: 0;
    padding: 1.5rem 1.5rem 3rem;
    width: 100%;
    box-sizing: border-box;
}

/* ═══════════════════════════════════════════════════════════════════ */
/*  Top bar: search + sort + view toggle                               */
/* ═══════════════════════════════════════════════════════════════════ */

.gr-shop-topbar {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

/* Search */
.gr-search-wrap {
    display: flex;
    flex: 1;
    min-width: 200px;
    max-width: 480px;
    border: 2px solid #2a2d35;
    border-radius: 3px;
    overflow: hidden;
    transition: border-color 0.15s;
}

.gr-search-wrap:focus-within {
    border-color: #e8001c;
}

.gr-search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 0.55rem 0.8rem;
    font-family: 'Barlow', sans-serif;
    font-size: 0.88rem;
    background: #f7f8fa;
    color: #1a1d24;
}

.gr-search-btn {
    padding: 0 0.85rem;
    background: #e8001c;
    border: none;
    cursor: pointer;
    color: #fff;
    display: flex;
    align-items: center;
    transition: background 0.15s;
}

.gr-search-btn:hover { background: #c40018; }

/* Right-side controls */
.gr-topbar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
}

/* Sort */
.gr-sort-wrap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.gr-sort-label {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #888;
}

.gr-sort-select {
    font-family: 'Barlow', sans-serif;
    font-size: 0.85rem;
    padding: 0.45rem 2rem 0.45rem 0.65rem;
    border: 2px solid #2a2d35;
    border-radius: 3px;
    background: #f7f8fa url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23555'/%3E%3C/svg%3E") no-repeat right 0.6rem center;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    color: #1a1d24;
    transition: border-color 0.15s;
}

.gr-sort-select:focus { outline: none; border-color: #e8001c; }

/* View toggle */
.gr-view-toggle {
    display: flex;
    border: 2px solid #2a2d35;
    border-radius: 3px;
    overflow: hidden;
}

.gr-view-btn {
    padding: 0.45rem 0.65rem;
    background: #f7f8fa;
    border: none;
    cursor: pointer;
    color: #888;
    display: flex;
    align-items: center;
    transition: background 0.12s, color 0.12s;
    border-right: 1px solid #2a2d35;
}

.gr-view-btn:last-child { border-right: none; }

.gr-view-btn:hover,
.gr-view-btn--active {
    background: #f7f8fa;
    color: #e8001c;
}

/* ═══════════════════════════════════════════════════════════════════ */
/*  Two-column body                                                    */
/* ═══════════════════════════════════════════════════════════════════ */

.gr-shop-body {
    display: flex;
    align-items: flex-start;
    gap: 0;
}

/* ═══════════════════════════════════════════════════════════════════ */
/*  Sidebar                                                            */
/* ═══════════════════════════════════════════════════════════════════ */

.gr-sidebar {
    width: 270px;
    min-width: 270px;
    flex-shrink: 0;
    align-self: flex-start;
    background: #f7f8fa;
    border-right: 3px solid #e8001c;
    position: sticky;
    top: 80px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #e8001c #e0e0e0;
}

.gr-sidebar::-webkit-scrollbar        { width: 4px; }
.gr-sidebar::-webkit-scrollbar-track  { background: #e0e0e0; }
.gr-sidebar::-webkit-scrollbar-thumb  { background: #e8001c; border-radius: 2px; }

.gr-sidebar-header {
    padding: 0.9rem 1rem 0.7rem;
    font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #e8001c;
    border-bottom: 1px solid #e0e0e0;
    cursor: default;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ── Tree ──────────────────────────────────────────────────────── */

#gr-item-group-sidebar ul,
#gr-item-group-sidebar li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.gr-tree-list { padding: 0.4rem 0; }

.gr-tree-row {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 0.4rem 1rem 0.4rem 0.9rem; /* left-pad overridden inline by JS for depth */
    cursor: pointer;
    user-select: none;
    transition: background 0.1s, border-color 0.1s;
    border-left: 3px solid transparent;
}

.gr-tree-row:hover {
    background: #1e2128;
    border-left-color: #e8001c;
}

.gr-tree-row--active,
.gr-tree-row--active:hover {
    background: #1e2128;
    border-left-color: #e8001c;
}

.gr-tree-row--active .gr-tree-label  { color: #e8001c; font-weight: 700; }
.gr-tree-row--active .gr-tree-count  { color: #e8001c; }
.gr-tree-row--ancestor .gr-tree-label { color: #555; }

.gr-tree-children         { display: none; }
.gr-tree-children--open   { display: block; }

.gr-tree-arrow {
    display: inline-block;
    width: 14px;
    min-width: 14px;
    font-size: 0.5rem;
    color: #999;
    text-align: center;
    flex-shrink: 0;
    transition: color 0.1s;
    line-height: 1;
}

.gr-tree-row:hover .gr-tree-arrow,
.gr-tree-row--active .gr-tree-arrow,
.gr-tree-row--ancestor .gr-tree-arrow { color: #e8001c; }

.gr-tree-label {
    flex: 1;
    font-family: 'Barlow', sans-serif;
    font-size: 0.82rem;
    font-weight: 500;
    color: #9da3b4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.1s;
}

.gr-tree-row:hover .gr-tree-label { color: #e2e5ef; }

.gr-tree-count {
    font-family: 'Courier New', monospace;
    font-size: 0.68rem;
    color: #3d4252;
    margin-left: 0.4rem;
    flex-shrink: 0;
    transition: color 0.1s;
}

.gr-tree-row:hover .gr-tree-count { color: #606677; }

.gr-tree-loading,
.gr-tree-error {
    padding: 0.7rem 1rem;
    font-size: 0.78rem;
    color: #555a6a;
    font-style: italic;
}
.gr-tree-error { color: #e8001c; }

/* ═══════════════════════════════════════════════════════════════════ */
/*  Shop content (right of sidebar)                                    */
/* ═══════════════════════════════════════════════════════════════════ */

.gr-shop-content {
    flex: 1;
    min-width: 0;
    min-height: 600px;
    padding: 0 0 0 1.5rem;
}

/* Active filter breadcrumb */
.gr-active-filter {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #fff0f1;
    border: 1px solid #fbb;
    border-left: 3px solid #e8001c;
    padding: 0.3rem 0.7rem;
    margin-bottom: 0.75rem;
    border-radius: 2px;
    font-family: 'Barlow', sans-serif;
    font-size: 0.82rem;
}

.gr-active-filter-label { font-weight: 600; color: #1a1d24; }

.gr-active-filter-clear {
    color: #e8001c;
    text-decoration: none;
    font-size: 0.75rem;
    line-height: 1;
    padding: 0.1rem 0.2rem;
    border-radius: 2px;
    transition: background 0.1s;
}
.gr-active-filter-clear:hover { background: #fdd; }

/* Result meta */
.gr-result-meta {
    font-family: 'Barlow', sans-serif;
    font-size: 0.78rem;
    color: #888;
    margin-bottom: 1rem;
    min-height: 1.2em;
}

/* ═══════════════════════════════════════════════════════════════════ */
/*  Product listing container                                          */
/* ═══════════════════════════════════════════════════════════════════ */

#product-listing {
    min-height: 200px;
    position: relative;
}

/* Grid view — 3-up default, responsive */
#product-listing.gr-view-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.25rem;
}

/* List view — single column */
#product-listing.gr-view-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* ── Spinner ──────────────────────────────────────────────────────── */

.gr-spinner {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    background: rgba(255,255,255,0.7);
    z-index: 10;
}

.gr-spinner span {
    display: block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #e8001c;
    animation: gr-bounce 0.9s ease-in-out infinite;
}

.gr-spinner span:nth-child(2) { animation-delay: 0.15s; }
.gr-spinner span:nth-child(3) { animation-delay: 0.30s; }

@keyframes gr-bounce {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
    40%            { transform: scale(1.0); opacity: 1;   }
}

/* ── No results / error ───────────────────────────────────────────── */

.gr-no-results,
.gr-load-error {
    padding: 3rem 1rem;
    text-align: center;
    color: #888;
    font-family: 'Barlow', sans-serif;
    font-size: 0.9rem;
}

.gr-reset-link {
    display: inline-block;
    margin-top: 0.75rem;
    color: #e8001c;
    font-size: 0.85rem;
    text-decoration: underline;
}

/* ═══════════════════════════════════════════════════════════════════ */
/*  Pagination                                                         */
/* ═══════════════════════════════════════════════════════════════════ */

.gr-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-top: 2.5rem;
}

.gr-page-btn {
    min-width: 36px;
    height: 36px;
    padding: 0 0.5rem;
    background: #f7f8fa;
    border: 2px solid #e0e2e8;
    border-radius: 3px;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    color: #444;
    cursor: pointer;
    transition: background 0.12s, border-color 0.12s, color 0.12s;
}

.gr-page-btn:hover:not(:disabled) {
    border-color: #e8001c;
    color: #e8001c;
    background: #fff0f1;
}

.gr-page-btn--active {
    background: #e8001c !important;
    border-color: #e8001c !important;
    color: #fff !important;
    cursor: default;
}

.gr-page-btn--disabled,
.gr-page-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.gr-page-ellipsis {
    padding: 0 0.3rem;
    color: #aaa;
    font-size: 0.9rem;
    line-height: 36px;
}

/* ═══════════════════════════════════════════════════════════════════ */
/*  Product cards — shared, grid view, and list view                   */
/* ═══════════════════════════════════════════════════════════════════ */

.gr-product-card {
    background: #fff;
    border: 1px solid #e5e7ef;
    border-radius: 4px;
    overflow: hidden;
    transition: box-shadow 0.15s, border-color 0.15s;
}

.gr-product-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    border-color: #e8001c;
}

.gr-product-card a { text-decoration: none; color: inherit; }
.gr-product-card-no-img { background: #f0f1f5; }
.gr-product-name  { font-family: 'Barlow', sans-serif; font-size: 0.82rem; font-weight: 600; color: #1a1d24; margin: 0 0 0.25rem; }
.gr-product-price { font-family: 'Barlow Condensed', sans-serif; font-size: 1rem; font-weight: 700; color: #e8001c; margin: 0; }

/* Grid view */
#product-listing.gr-view-grid .gr-product-card { display: flex; flex-direction: column; }
#product-listing.gr-view-grid .gr-card-link { display: block; }
#product-listing.gr-view-grid .gr-product-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    padding: 0.5rem;
}
#product-listing.gr-view-grid .gr-product-card-no-img { width: 100%; aspect-ratio: 1; }
#product-listing.gr-view-grid .gr-product-card-body {
    padding: 0.6rem 0.8rem 0.8rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}
#product-listing.gr-view-grid .gr-add-to-cart-btn { margin-top: auto; }

/* List view — compact horizontal row */
#product-listing.gr-view-list .gr-product-card {
    display: flex;
    align-items: center;
}
#product-listing.gr-view-list .gr-card-link {
    display: block;
    flex-shrink: 0;
}
#product-listing.gr-view-list .gr-product-card img {
    width: 90px;
    min-width: 90px;
    height: 90px;
    object-fit: contain;
    padding: 0.4rem;
    background: #f7f8fa;
    flex-shrink: 0;
}
#product-listing.gr-view-list .gr-product-card-no-img {
    width: 90px;
    min-width: 90px;
    height: 90px;
    flex-shrink: 0;
}
#product-listing.gr-view-list .gr-product-card-body {
    padding: 0 1rem;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
#product-listing.gr-view-list .gr-product-name { font-size: 0.88rem; margin: 0; }
#product-listing.gr-view-list .gr-product-price { font-size: 1.05rem; white-space: nowrap; }




/* ── Brand logo in cards ──────────────────────────────────────────── */

.gr-card-img-wrap {
    position: relative;
}

.gr-card-brand {
    display: flex;
    align-items: center;
    margin-bottom: 0.25rem;
    min-height: 28px;
}

.gr-card-brand-logo {
    max-height: 56px;
    max-width: 160px;
    width: auto;
    object-fit: contain;
    object-position: left center;
    display: block;
}

.gr-card-brand-name {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #888;
}

/* Grid view — logo sits above the product name */
#product-listing.gr-view-grid .gr-card-brand {
    margin-bottom: 0.2rem;
}

#product-listing.gr-view-grid .gr-card-brand-logo {
    max-height: 48px;
    max-width: 140px;
}

/* List view — logo sits to the left of the name, contained in a fixed box */
#product-listing.gr-view-list .gr-product-card-body {
    flex-direction: row;
    align-items: center;
}

#product-listing.gr-view-list .gr-card-brand {
    width: 140px;
    min-width: 140px;
    margin-bottom: 0;
    margin-right: 0.75rem;
    justify-content: center;
    flex-shrink: 0;
}

#product-listing.gr-view-list .gr-card-brand-logo {
    max-height: 48px;
    max-width: 130px;
    object-position: center;
}

#product-listing.gr-view-list .gr-product-name {
    flex: 1;
}


/* ── Custom pricing ───────────────────────────────────────────────── */

.gr-price-loading {
    color: #ccc;
    font-size: 0.8rem;
}

.gr-price-standard {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #1a1d24;
}

.gr-price-special {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #1a8f3c;
}

.gr-price-was {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.85rem;
    color: #999;
    margin-left: 0.3rem;
}

.gr-price-badge {
    display: inline-block;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    background: #e8001c;
    color: #fff;
    padding: 0.1rem 0.35rem;
    border-radius: 2px;
    margin-left: 0.35rem;
    vertical-align: middle;
    line-height: 1.4;
}

/* List view — keep price elements inline */
#product-listing.gr-view-list .gr-product-price {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.2rem;
    white-space: nowrap;
}

/* ═══════════════════════════════════════════════════════════════════ */
/*  Mobile                                                             */
/* ═══════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .gr-shop-body     { flex-direction: column; }
    .gr-shop-content  { padding-left: 0; padding-top: 1rem; }

    .gr-sidebar {
        width: 100%;
        min-width: 0;
        position: static;
        max-height: none;
        border-right: none;
        border-bottom: 3px solid #e8001c;
    }

    .gr-sidebar-header {
        cursor: pointer;
    }

    .gr-sidebar-header::after {
        content: "▼";
        font-size: 0.6rem;
        color: #e8001c;
        transition: transform 0.2s;
    }

    .gr-sidebar--collapsed .gr-sidebar-header::after {
        transform: rotate(-90deg);
    }

    .gr-sidebar--collapsed #gr-item-group-sidebar {
        display: none;
    }

    .gr-shop-topbar { gap: 0.6rem; }
    .gr-topbar-right { margin-left: 0; width: 100%; }

    #product-listing.gr-view-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .gr-shop-wrap { padding: 1rem; }
    #product-listing.gr-view-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
/* ═══════════════════════════════════════════════════════════════════ */
/*  Add to Cart button                                                 */
/* ═══════════════════════════════════════════════════════════════════ */
.gr-add-to-cart-btn {
    display: inline-block;
    width: auto;
    margin-top: 0.6rem;
    padding: 0.5rem 0.75rem;
    background: #e8001c;
    color: #fff;
    border: none;
    border-radius: 3px;
    font-family: 'Barlow', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: background 0.15s;
}
.gr-add-to-cart-btn:hover:not(:disabled) { background: #ff1a32; }
.gr-add-to-cart-btn:disabled { opacity: 0.7; cursor: not-allowed; }
.gr-add-to-cart-btn.gr-btn-added { background: #1a7a1a; }
.gr-card-name-link { text-decoration: none; color: inherit; }
.gr-card-name-link:hover { text-decoration: none; }

/* ── Cart special pricing ─────────────────────────────────────────── */
.gr-cart-special-info {
    display: flex;
    align-items: center;
    gap: 8px;
}
.gr-cart-special-badge {
    display: inline-block;
    background: #e8001c;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 2px 7px;
    border-radius: 3px;
    white-space: nowrap;
}
.gr-cart-standard-price {
    text-decoration: line-through;
    color: #999;
    font-size: 0.85rem;
}
.gr-cart-special-price {
    color: #e8001c;
    font-weight: 600;
}

/* ── Price Range Slider ────────────────────────────────────────── */
.gr-price-slider {
    padding: 8px 8px 4px;
}
.gr-price-track {
    position: relative;
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    margin: 12px 6px;
}
.gr-price-track-fill {
    position: absolute;
    height: 100%;
    background: #e8001c;
    border-radius: 2px;
    left: 0%;
    width: 100%;
}
.gr-price-thumb {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    background: #fff;
    border: 2px solid #e8001c;
    border-radius: 50%;
    cursor: grab;
    z-index: 2;
    transition: box-shadow 0.15s;
}
.gr-price-thumb:hover,
.gr-price-thumb:active {
    box-shadow: 0 0 0 4px rgba(232,0,28,0.15);
    cursor: grabbing;
}
.gr-price-inputs {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px 8px;
}
.gr-price-input-wrap {
    display: flex;
    align-items: center;
    background: #f7f8fa;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 3px 6px;
    flex: 1;
}
.gr-price-symbol {
    font-size: 0.8rem;
    color: #666;
    margin-right: 2px;
}
.gr-price-input {
    border: none;
    background: transparent;
    width: 100%;
    font-size: 0.8rem;
    color: #333;
    outline: none;
    -moz-appearance: textfield;
}
.gr-price-input::-webkit-inner-spin-button,
.gr-price-input::-webkit-outer-spin-button { -webkit-appearance: none; }
.gr-price-separator {
    color: #999;
    font-size: 0.8rem;
    flex-shrink: 0;
}
.gr-price-clear-btn {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 0.75rem;
    padding: 2px 4px;
    flex-shrink: 0;
}
.gr-price-clear-btn:hover { color: #e8001c; }

/* ── In-stock / backorder badges on shop cards ─────────────────── */
.gr-card-instock-badge,
.gr-card-backorder-badge {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: 3px;
    padding: 0.15rem 0.5rem;
    margin-bottom: 0.5rem;
    min-height: 1.4rem;
    width: fit-content;
}
.gr-card-instock-badge {
    color: #1a7a3a;
    background: #e8f5ed;
    border: 1px solid #a8d5b5;
}
.gr-card-backorder-badge {
    color: #7a5a1a;
    background: #fdf3e0;
    border: 1px solid #d5c0a8;
}
.gr-card-stock-placeholder { display: block; min-height: 1.4rem; margin-bottom: 0.5rem; }

/* ── List view: stock badge fixed width to keep rows aligned ──── */
#product-listing.gr-view-list .gr-card-instock-badge,
#product-listing.gr-view-list .gr-card-backorder-badge,
#product-listing.gr-view-list .gr-card-stock-placeholder {
    display: block !important;
    width: 90px;
    min-width: 90px;
    flex-shrink: 0;
    margin-bottom: 0 !important;
    text-align: center;
}

/* ── List view: right-side actions wrapper ───────────────────── */
#product-listing.gr-view-list .gr-card-right-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
    flex-shrink: 0;
}
#product-listing.gr-view-list .gr-card-right-actions .gr-card-instock-badge,
#product-listing.gr-view-list .gr-card-right-actions .gr-card-backorder-badge,
#product-listing.gr-view-list .gr-card-right-actions .gr-card-stock-placeholder {
    display: block !important;
    width: 80px;
    min-width: 80px;
    margin-bottom: 0 !important;
    text-align: center;
}

/* ── Item code on product cards ─────────────────────────────── */
.gr-product-code {
    font-size: 0.72rem;
    color: #888;
    margin: 0 0 0.3rem;
    font-family: 'Barlow Condensed', sans-serif;
    letter-spacing: 0.05em;
}

/* ── Cart stock status messages ─────────────────────────────── */
.gr-cart-stock-message {
    font-size: 0.72rem;
    font-weight: 700;
    color: #c0392b;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    margin-top: 0.4rem;
    margin-right: 0;
    line-height: 1.4;
    display: block;
    width: 100%;
    border: 1px solid #e0a0a0;
    background: #fff5f5;
}
.gr-cart-stock-supplier {
    color: #c0392b;
    background: #fff5f5;
    border-color: #e0a0a0;
}
.gr-cart-stock-order {
    color: #c0392b;
    background: #fff5f5;
    border-color: #e0a0a0;
}

/* Discount ribbon on product grid images */
.discount-ribbon {
    position: absolute;
    top: 12px;
    left: -4px;
    background: #e53935;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 10px 3px 8px;
    letter-spacing: 0.03em;
    z-index: 2;
    clip-path: polygon(0 0, 100% 0, 92% 50%, 100% 100%, 0 100%);
    box-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.card-img-container {
    position: relative;
    overflow: hidden;
}
