/* =======================
   Extras Page Layout
   ======================= */
main {
    background-size: cover;
    background-position: center;
    min-height: 100vh;
}
.extra-cart-page {
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    padding-bottom: 180px;
}

.extra-cart-page h1 {
    font-size: 32px;
    font-weight: 600;
    color: #1f1f1f;
    margin-bottom: 20px;
}

.extra-cart-page h2 {
    font-size: 20px;
    font-weight: 600;
    color: #3b3b3b;
    margin-bottom: 16px;
}


/* =======================
   Product card design
   ======================= */
.extra-product-card {
    border-radius: 24px;
    background: #fff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.12);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.extra-product-card {
    position: relative;
}

.extra-product-card-link {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.extra-product-card-link .visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.extra-product-card-content {
    position: relative;
    z-index: 2;
}

.extra-product-btn {
    position: relative;
    z-index: 3;
}

.extra-product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.18);
}

.extra-product-card-media {
    position: relative;
    overflow: hidden;
    height: 220px;
    background: #f6f6f6;
}

.extra-product-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.extra-product-card:hover .extra-product-card-media img {
    transform: scale(1.06);
}

.extra-product-card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.extra-product-ref {
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 600;
    color: #c41232;
}

.extra-product-ref span + span {
    letter-spacing: normal;
    font-weight: 600;
    color: #333;
    text-transform: none;
    margin-left: 0.35rem;
}

.extra-product-card .card-title {
    font-family: 'Adelle Sans Extended', 'Inter', sans-serif;
    font-size: 1rem;
    color: #1f1f1f;
    margin-bottom: 0;
}

.extra-product-price {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: #1f1f1f;
}

.extra-product-price span {
    font-size: 0.95rem;
    font-weight: 500;
    color: #777;
}

.extra-product-btn {
    border-radius: 999px;
    padding: 10px 16px;
    border: none;
    background: linear-gradient(135deg, #d40015, #e12e3d);
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.05em;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-top: 8px;
}

.extra-product-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 22px rgba(212, 0, 21, 0.35);
}

.extra-product-btn:active {
    transform: translateY(0);
    box-shadow: none;
}

/* =======================
   Sticky CTA bar
   ======================= */
.extra-cart-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    background: #fff;
    padding: 14px 24px;
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.12);
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.extra-cart-cta .btn {
    border-radius: 999px;
    padding: 12px 28px;
    font-size: 15px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.extra-cart-cta .btn-secondary {
    background-color: #8b8b8b;
    border-color: #8b8b8b;
}

.extra-cart-cta .btn-primary {
    background-color: #d40015;
    border-color: #d40015;
}

.extra-cart-cta .btn:hover {
    opacity: 0.9;
}

/* =======================
   Pagination
   ======================= */
.pagination {
    justify-content: center;
    gap: 10px;
}

.pagination .page-link {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 2px solid #d40015;
    color: #d40015;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
}

.pagination .page-link:hover {
    background-color: #d40015;
    color: #fff;
}

.pagination .page-item.active .page-link {
    background-color: #d40015;
    color: #fff;
    border-color: #d40015;
}

.pagination .page-item.disabled .page-link {
    opacity: 0.4;
    pointer-events: none;
}

/* =======================
   Toast
   ======================= */
.cart-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 340px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.25);
    opacity: 0;
    transform: translateX(120%);
    transition: all 0.4s ease;
    z-index: 9999;
    overflow: hidden;
}

.cart-toast.show {
    opacity: 1;
    transform: translateX(0);
}

.cart-toast-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
    font-weight: 600;
}

.toast-close {
    border: none;
    background: none;
    font-size: 20px;
    cursor: pointer;
}

.cart-toast-body {
    padding: 16px;
}

.cart-toast-product {
    display: flex;
    gap: 12px;
    align-items: center;
}

.cart-toast-product img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 12px;
}

.cart-toast-info {
    flex: 1;
}

.product-title {
    font-weight: 600;
    font-size: 14px;
}

.product-price {
    font-weight: 600;
}

.cart-toast .btn-danger {
    width: 100%;
    border-radius: 10px;
    background-color: #d40015;
    border: none;
    color: #fff;
    font-weight: 600;
}

/* =======================
   Responsive tweaks
   ======================= */
@media (max-width: 992px) {

    .extra-cart-cta {
        padding: 16px;
        gap: 12px;
    }

    .extra-cart-cta .btn {
        flex: 1 1 45%;
    }

    .extra-product-card-media {
        height: 200px;
    }

    .extra-product-card {
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
    }
}

@media (max-width: 768px) {
    .extra-product-card-media {
        height: 180px;
    }

    .extra-product-card-content {
        padding: 18px;
    }

    .pagination {
        flex-wrap: wrap;
        gap: 8px;
    }
}

@media (max-width: 576px) {
    .extra-product-card-media {
        height: 220px;
    }

    .extra-cart-cta {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 12px 16px;
        box-shadow: 0 -8px 20px rgba(0, 0, 0, 0.18);
        justify-content: center;
        gap: 12px;
        border-radius: 0;
    }

    .extra-cart-cta .btn {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .cart-toast {
        width: calc(100% - 32px);
        right: 16px;
        top: 14px;
    }
}
