@font-face {
    font-family: 'Almarai';
    src: url('../fonts/Almarai-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Almarai';
    src: url('../fonts/Almarai-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

:root {
    --white-color: #FFF;
    --light-color: #f7f7f7;
    --main-color: #9b2335;
    --main-color-dark: #7d1c2b;
    --text-primary: #1a1a2e;
    --text-secondary: #6c757d;
    --border-color: #e9ecef;
    --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
    --shadow-btn: 0 6px 20px rgba(155, 35, 53, 0.35);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
}

* {
    box-sizing: border-box;
}

body {
    font-family: "Almarai", sans-serif;
    background-color: var(--light-color);
    color: var(--text-primary);
}

/* ======================== */
/*         Navbar           */
/* ======================== */
nav {
    background-color: var(--white-color);
}

nav .nav-item .nav-link i {
    font-size: 25px;
}

nav .badge-count {
    right: -2px;
    bottom: -3px;
    font-size: 12px;
    min-width: 17px;
    height: 17px;
    line-height: 17px;
    text-align: center;
    background-color: var(--main-color);
}

/* ======================== */
/*         Footer           */
/* ======================== */
.site-footer {
    margin-top: 3rem;
}

.footer-main {
    background: var(--text-primary);
    color: #ccc;
    padding: 2.5rem 0;
}

.footer-brand-name {
    color: var(--white-color);
    font-weight: 700;
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-brand-desc {
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
    color: #adb5bd;
}

.footer-heading {
    color: var(--white-color);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.6rem;
}

.footer-links a {
    color: #adb5bd;
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.2s ease, padding-inline-start 0.2s ease;
}

.footer-links a:hover {
    color: var(--white-color);
    padding-inline-start: 4px;
}

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    color: #adb5bd;
}

.footer-contact li i {
    color: var(--main-color);
    width: 16px;
    text-align: center;
    flex-shrink: 0;
}

.footer-bottom {
    background: #111827;
    padding: 1rem 0;
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.footer-bottom span {
    font-size: 0.8rem;
    color: #6b7280;
}

/* ======================== */
/*    Page Heading Banner    */
/* ======================== */
.heading {
    padding: 2.5rem 1rem;
    background: linear-gradient(135deg, #fdf2f4 0%, #f5e6e8 100%);
    border-bottom: 2px solid rgba(155, 35, 53, 0.1);
    text-align: center;
}

.heading h2 {
    text-align: center;
    color: var(--main-color);
    font-weight: 700;
    margin: 0;
    font-size: 1.5rem;
}

/* ======================== */
/*   Product List / Grid    */
/* ======================== */
.product-list {
    padding: 1.5rem 0 2rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

/* -- Product Card -- */
.product-card {
    background: var(--white-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.product-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.product-card .like {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--light-color);
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
    z-index: 1;
}

.product-card .like i {
    font-size: 20px;
    color: var(--main-color);
}

.product-card-img-link {
    display: block;
    text-decoration: none;
}

.product-card-img {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--light-color);
}

.product-card-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
    padding: 0.5rem;
}

.product-card:hover .product-card-img img {
    transform: scale(1.05);
}

/* -- Card Body -- */
.product-card-body {
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    flex: 1;
}

.product-card-name {
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--text-primary);
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.product-card-name:hover {
    color: var(--main-color);
}

.product-card-pricing {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.product-card-price {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--main-color);
}

.product-card-old-price {
    font-size: 0.78rem;
    color: var(--text-secondary);
    text-decoration: line-through;
}

/* -- Add to Cart Button -- */
.product-card-cart-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: 100%;
    padding: 0.55rem 0.75rem;
    margin-top: auto;
    border: 1.5px solid var(--main-color);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--main-color);
    font-weight: 600;
    font-size: 0.82rem;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.product-card-cart-btn:hover {
    background: var(--main-color);
    color: var(--white-color);
}

.product-card-cart-btn:active {
    transform: scale(0.97);
}

.product-card-cart-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ======================== */
/*     Product Detail       */
/* ======================== */
.product-detail {
    padding: 2rem 0;
}

/* -- Main Image -- */
.pd-image-wrapper {
    background: var(--white-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.pd-main-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    max-width: 520px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.pd-main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* -- Gallery -- */
.pd-gallery {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    max-width: 520px;
}

.pd-gallery-item {
    flex: 0 0 23%;
    aspect-ratio: 1 / 1;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--white-color);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pd-gallery-item.active,
.pd-gallery-item:hover {
    border-color: var(--main-color);
    box-shadow: var(--shadow-md);
}

.pd-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* -- Product Info -- */
.pd-info {
    padding-top: 0.5rem;
}

.pd-badge {
    display: inline-block;
    padding: 0.3rem 0.9rem;
    border-radius: 50px;
    background: var(--text-primary);
    color: var(--white-color);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.pd-title {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-primary);
    line-height: 1.35;
    margin-bottom: 0.75rem;
}

.pd-price {
    font-weight: 700;
    font-size: 1.6rem;
    color: var(--main-color);
    margin-bottom: 1.5rem;
}

.pd-add-form {
    margin-top: 0.5rem;
}

/* -- Product Description -- */
.pd-description {
    background: var(--white-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.pd-description-title {
    font-weight: 700;
    font-size: 1.1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--light-color);
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.pd-description-content {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #444;
}

/* ======================== */
/*      Components          */
/* ======================== */
.card-body {
    font-size: 14px;
}

/* ======================== */
/*   Bootstrap Overrides    */
/* ======================== */
.dropdown-menu .active,
.dropdown-menu .dropdown-item:active,
.dropdown-menu .dropdown-item:focus {
    background-color: var(--main-color) !important;
}

.list-group .active {
    background-color: var(--main-color);
}

/* django crispy forms */
.product-detail .asteriskField {
    display: none;
}

/* ======================== */
/*    Cart Detail Page       */
/* ======================== */

/* -- Cart Page Container -- */
.cart-page {
    padding-bottom: 2rem;
}

/* -- Cart Item Card -- */
.cart-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--white-color);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-bottom: 0.75rem;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    position: relative;
}

.cart-item:hover {
    box-shadow: var(--shadow-md);
}

/* -- Product Image -- */
.cart-item-image {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    border-radius: 10px;
    overflow: hidden;
    background: var(--light-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* -- Item Details -- */
.cart-item-details {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.cart-item-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.cart-item-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s ease;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cart-item-name:hover {
    color: var(--main-color);
}

.cart-item-unit-price {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* -- Actions Row (qty + price) -- */
.cart-item-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.cart-item-price {
    font-weight: 700;
    font-size: 1rem;
    color: var(--main-color);
    white-space: nowrap;
}

/* Animation for cart count badge */
@keyframes cartBump {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(2);
    background-color: #dc3545;
    color: white;
  }
  100% {
    transform: scale(1);
  }
}

.cart-animation {
  animation: cartBump 0.3s ease-in-out;
}

/* Optional: Add a pulse effect */
@keyframes cartPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(220, 53, 69, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
  }
}

.cart-pulse {
  animation: cartPulse 0.6s ease-out;
}

/* -- Quantity Stepper -- */
.qty-stepper {
    display: inline-flex;
    align-items: center;
    border: 1.5px solid #e0e0e0;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--white-color);
}

.qty-stepper .qty-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    color: #333;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
    font-size: 0.75rem;
}

.qty-stepper .qty-btn:hover {
    background: var(--main-color);
    color: var(--white-color);
}

.qty-stepper .qty-btn:active {
    transform: scale(0.92);
}

.qty-stepper input[type="number"] {
    width: 42px;
    height: 36px;
    text-align: center;
    border: none;
    border-left: 1.5px solid #e0e0e0;
    border-right: 1.5px solid #e0e0e0;
    font-weight: 600;
    font-size: 0.9rem;
    background: var(--light-color);
    -moz-appearance: textfield;
    appearance: textfield;
    color: var(--text-primary);
}

.qty-stepper input[type="number"]::-webkit-outer-spin-button,
.qty-stepper input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* -- Remove Button -- */
.cart-item-remove {
    flex-shrink: 0;
}

.btn-remove {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 10px;
    background: #fef2f2;
    color: #dc3545;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
    font-size: 0.85rem;
}

.btn-remove:hover {
    background: #dc3545;
    color: var(--white-color);
    transform: scale(1.08);
}

/* -- Order Summary Card -- */
.cart-summary {
    background: var(--white-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 80px;
}

.cart-summary-title {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.92rem;
    color: #555;
    padding: 0.35rem 0;
}

.cart-summary-divider {
    border-top: 1px solid #eee;
    margin: 0.75rem 0;
}

.cart-summary-total {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-primary);
}

/* -- Checkout Button -- */
.btn-checkout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.8rem 1.5rem;
    margin-top: 1.25rem;
    border: none;
    border-radius: 10px;
    background: var(--main-color);
    color: var(--white-color);
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.btn-checkout:hover {
    background: var(--main-color-dark);
    color: var(--white-color);
    transform: translateY(-1px);
    box-shadow: var(--shadow-btn);
}

.btn-checkout:active {
    transform: translateY(0);
}

/* -- Empty Cart State -- */
.cart-empty {
    text-align: center;
    padding: 3rem 1.5rem;
    margin-top: 2rem;
    background: var(--white-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.cart-empty-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fef2f2;
    color: var(--main-color);
    font-size: 1.8rem;
}

.cart-empty h4 {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
}

.cart-empty p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.btn-shop-now {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.8rem;
    border-radius: 10px;
    background: var(--main-color);
    color: var(--white-color);
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.btn-shop-now:hover {
    background: var(--main-color-dark);
    color: var(--white-color);
    transform: translateY(-1px);
    box-shadow: var(--shadow-btn);
}

/* ======================== */
/*   Responsive Overrides   */
/* ======================== */

/* -- Mobile (< 768px) -- */
@media (max-width: 767.98px) {
    /* Product Grid */
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .product-card-body {
        padding: 0.6rem;
    }

    .product-card-name {
        font-size: 0.82rem;
    }

    .product-card-price {
        font-size: 0.88rem;
    }

    .product-card-old-price {
        font-size: 0.72rem;
    }

    .product-card-cart-btn {
        font-size: 0.76rem;
        padding: 0.45rem 0.5rem;
    }

    /* Product Detail */
    .pd-title {
        font-size: 1.25rem;
    }

    .pd-price {
        font-size: 1.35rem;
    }

    .trust-badge {
        padding: 0.6rem 0.8rem;
    }

    /* Cart */
    .cart-item {
        flex-wrap: wrap;
        gap: 0.75rem;
        padding: 0.85rem;
    }

    .cart-item-image {
        width: 80px;
        height: 80px;
        border-radius: var(--radius-sm);
    }

    .cart-item-details {
        flex: 1;
        min-width: calc(100% - 80px - 38px - 1.5rem);
    }

    .cart-item-name {
        font-size: 0.88rem;
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .cart-item-actions {
        width: 100%;
        padding-top: 0.5rem;
        border-top: 1px solid #f0f0f0;
    }

    .cart-item-remove {
        position: absolute;
        top: 0.85rem;
        left: 0.85rem;
    }

    .btn-remove {
        width: 32px;
        height: 32px;
        font-size: 0.75rem;
    }

    .cart-summary {
        position: static;
        border-radius: var(--radius-md);
    }

    /* Checkout */
    .checkout-delivery-banner {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    /* Heading */
    .heading {
        padding: 1.75rem 1rem;
    }

    .heading h2 {
        font-size: 1.2rem;
    }
}

/* -- Small phones (< 400px) -- */
@media (max-width: 399.98px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .product-card-cart-btn {
        font-size: 0.7rem;
        padding: 0.4rem;
    }
}

/* -- Tablets & up (>= 768px and < 992px) -- */
@media (min-width: 768px) and (max-width: 991.98px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* -- Desktop (>= 992px) -- */
@media (min-width: 992px) {
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* -- Large Desktop (>= 1400px) -- */
@media (min-width: 1400px) {
    .product-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* ======================== */
/*   Marketing: Trust Badges */
/* ======================== */

/* -- Product Detail Trust Badges -- */
.pd-price-note {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    color: #16a34a;
    margin-top: -0.75rem;
    margin-bottom: 1rem;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 1rem;
    border-radius: var(--radius-sm);
    background: var(--light-color);
    margin-bottom: 0.5rem;
    border: 1px solid var(--border-color);
}

.trust-badge i {
    font-size: 1.2rem;
    flex-shrink: 0;
    width: 24px;
    text-align: center;
}

.delivery-badge i {
    color: #16a34a;
}

.invoice-badge i {
    color: #2563eb;
}

.trust-badge-text {
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
}

.trust-badge-text strong {
    font-size: 0.85rem;
    color: var(--text-primary);
}

.trust-badge-text span {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* -- Cart Summary Trust Badges -- */
.cart-summary-note {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    color: #16a34a;
    padding: 0.35rem 0;
    margin-top: 0.25rem;
}

.cart-trust-badges {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid #eee;
}

.cart-trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    text-align: center;
    flex: 1;
}

.cart-trust-item i {
    font-size: 1rem;
    color: var(--main-color);
}

.cart-trust-item span {
    font-size: 0.68rem;
    color: var(--text-secondary);
    font-weight: 600;
}

/* ======================== */
/*     Checkout Page         */
/* ======================== */
.checkout-page {
    padding-bottom: 2rem;
}

.checkout-card {
    background: var(--white-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.checkout-card-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #f0f0f0;
}

.checkout-card-header i {
    color: var(--main-color);
    font-size: 1.1rem;
}

.checkout-card-header h5 {
    margin: 0;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-primary);
}

.checkout-card-body {
    padding: 1.25rem;
}

.checkout-delivery-banner {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    margin-top: 1rem;
}

.checkout-delivery-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #dcfce7;
    color: #16a34a;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.checkout-delivery-info {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.checkout-delivery-info strong {
    font-size: 0.88rem;
    color: #15803d;
}

.checkout-delivery-info span {
    font-size: 0.78rem;
    color: #4ade80;
}

/* -- Checkout Summary Items -- */
.checkout-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid #f5f5f5;
}

.checkout-item:last-child {
    border-bottom: none;
}

.checkout-item-img {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    overflow: hidden;
    background: var(--light-color);
    flex-shrink: 0;
}

.checkout-item-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.checkout-item-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.checkout-item-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.checkout-item-qty {
    font-size: 0.78rem;
    color: var(--text-secondary);
}

/* ======================== */
/*   Order Confirmation      */
/* ======================== */
.order-confirmed {
    text-align: center;
    padding: 3rem 1.5rem;
    margin-top: 2rem;
    background: var(--white-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.order-confirmed-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f0fdf4;
    color: #16a34a;
    font-size: 2rem;
    animation: scaleIn 0.4s ease;
}

@keyframes scaleIn {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.order-confirmed h2 {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
}

.order-confirmed-msg {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.order-confirmed-id {
    display: inline-block;
    background: var(--light-color);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.order-confirmed-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.btn-invoice {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.8rem;
    border-radius: 10px;
    background: var(--main-color);
    color: var(--white-color);
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.btn-invoice:hover {
    background: var(--main-color-dark);
    color: var(--white-color);
    transform: translateY(-1px);
    box-shadow: var(--shadow-btn);
}

.btn-continue-shopping {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.5rem;
    border-radius: 10px;
    border: 1.5px solid var(--main-color);
    background: transparent;
    color: var(--main-color);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.2s ease, color 0.2s ease;
}

.btn-continue-shopping:hover {
    background: var(--main-color);
    color: var(--white-color);
}

.order-confirmed-delivery {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    background: #f0fdf4;
    color: #16a34a;
    font-size: 0.82rem;
    font-weight: 600;
}

.order-confirmed-delivery i {
    font-size: 1rem;
}

.asteriskField {
    color: red;
}