/* ==========================================================================
   Genesis Chess Academy — Shop Stylesheet
   Cleaned up, de-duplicated, and rebuilt for consistent responsive behavior.
   ========================================================================== */

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    overflow-x: hidden;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield;
}

img {
    max-width: 100%;
}

:root {
    --primary-text-color: #000000;
    --secondry-text-color: #ffffff;
    --text-color: #5e5e5e;
    --bg-color: #ffffff;
    --secondry-bg-color: #171717;
    --color1: #00bfa5;
    --color2: #1de4c9;
    --color3: #00a192;
    --color4: #04c8b1;
    --headingColor: #0d544f;
    --color5: #8ebaa5;
    --shopheadingColor: #003332;
    --shopBorderColor: #058075;
    --card-radius: 14px;
    --shadow-soft: 0 6px 24px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 14px 32px rgba(0, 0, 0, 0.14);
    --transition-base: 0.25s ease;

    /* Fluid spacing scale — shared across sections so gaps stay proportional at every width */
    --space-2xs: clamp(4px, 1vw, 6px);
    --space-xs: clamp(8px, 1.5vw, 10px);
    --space-sm: clamp(12px, 2vw, 16px);
    --space-md: clamp(16px, 3vw, 24px);
    --space-lg: clamp(24px, 4vw, 32px);
    --space-xl: clamp(32px, 6vw, 56px);

    --page-gutter: 6vw;
}

@media (max-width: 480px) {
    :root {
        --page-gutter: 16px;
    }
}

body.hoc {
    --color1: #ffc107;
    --color2: #fbc02d;
    --color3: #DCA604;
    --color4: #ffde59;
    --headingColor: #95500b;
    --color5: #f5e6a6;
    --shopheadingColor: #431e05;
    --shopBorderColor: #ffdf1b;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[role="button"]:focus-visible {
    outline: 2px solid var(--color1);
    outline-offset: 2px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.6;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

/* ==========================================================================
   Marquee
   ========================================================================== */

.marquee-wrapper {
    background: linear-gradient(90deg, var(--shopheadingColor) 0%, var(--headingColor) 50%, var(--shopheadingColor) 100%);
    position: relative;
    overflow: hidden;
}

.marquee-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(45deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.03) 2px,
            rgba(255, 255, 255, 0.03) 4px);
}

.marquee {
    overflow: hidden;
    white-space: nowrap;
    padding: 12px 0;
    font-size: 0.85rem;
    position: relative;
}

.marquee-inner {
    display: inline-flex;
    animation: marquee 20s linear infinite;
    align-items: center;
}

.marquee-inner:hover {
    animation-play-state: paused;
}

.marquee-message {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 60px;
    color: #fff;
    font-weight: 500;
    letter-spacing: 0.3px;
    font-size: 0.85rem;
}

.marquee-message i {
    color: var(--color1);
    font-size: 0.9rem;
    animation: pulse 2s ease-in-out infinite;
}

.marquee-divider {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--color1);
    border-radius: 50%;
    margin: 0 20px;
    opacity: 0.7;
    flex: none;
}

@media (max-width: 480px) {
    .marquee-message {
        padding: 0 28px;
        font-size: 0.78rem;
        gap: 6px;
    }

    .marquee-divider {
        margin: 0 10px;
    }
}

/* ==========================================================================
   Search bar (shared header across shop / product / cart / checkout)
   ========================================================================== */

.search-bar-wrapper {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.04);
}

.search-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    padding: 14px var(--page-gutter);
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.search-container {
    position: relative;
    flex: 1 1 520px;
    max-width: 520px;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    background: #fff;
    border: 2px solid #e8e8e8;
    border-radius: 50px;
    padding: 4px 4px 4px 18px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.search-box:focus-within {
    border-color: var(--color1);
    box-shadow: 0 4px 20px rgba(0, 191, 165, 0.15);
    transform: translateY(-1px);
}

.search-icon-left {
    color: #999;
    font-size: 1rem;
    margin-right: 10px;
    flex: none;
}

#search-input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    font-size: 0.9rem;
    padding: 11px 0;
    background: transparent;
    color: #333;
    font-weight: 400;
}

#search-input::placeholder {
    color: #bbb;
    font-weight: 300;
}

.search-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: none;
}

.search-loader {
    display: none;
    width: 18px;
    height: 18px;
    border: 2.5px solid #e0e0e0;
    border-top-color: var(--color1);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    flex: none;
}

.search-clear {
    cursor: pointer;
    color: #999;
    width: 32px;
    height: 32px;
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    flex: none;
}

.search-clear:hover {
    background: #f5f5f5;
    color: #666;
}

#search-btn {
    border: none;
    background: var(--color1);
    color: #06231f;
    padding: 11px 22px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex: none;
}

#search-btn:hover {
    background: var(--color2);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 191, 165, 0.3);
}

#search-btn:active {
    transform: translateY(0);
}

.cart-btn {
    flex: none;
}

.cart-btn a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--shopheadingColor);
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 51, 50, 0.2);
}

.cart-btn a:hover {
    background: var(--color3);
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 51, 50, 0.3);
}

.cart-btn .cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #e53935;
    color: #fff;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    border: 2px solid #fff;
}

#suggestions {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    z-index: 60;
    overflow: hidden;
    display: none;
    max-height: 420px;
    overflow-y: auto;
    border: 1px solid #e8e8e8;
}

#suggestions::-webkit-scrollbar {
    width: 6px;
}

#suggestions::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 3px;
}

#suggestions .no-results {
    padding: 24px 16px;
    color: var(--text-color);
    font-size: 0.9rem;
    text-align: center;
}

#suggestions .no-results i {
    font-size: 2rem;
    color: #ddd;
    margin-bottom: 8px;
    display: block;
}

#suggestions a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid #f8f8f8;
    transition: background 0.15s ease;
}

#suggestions a:last-child {
    border-bottom: none;
}

#suggestions a:hover,
#suggestions a:focus-visible {
    background: #f9f9f9;
}

#suggestions img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 10px;
    background: #f5f5f5;
    flex: none;
    border: 1px solid #eee;
}

#suggestions .sugg-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

#suggestions .sugg-name {
    font-size: 0.92rem;
    color: var(--primary-text-color);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

#suggestions .sugg-category {
    font-size: 0.75rem;
    color: var(--color3);
    font-weight: 500;
    line-height: 1.2;
}

#suggestions .sugg-price {
    font-size: 0.88rem;
    color: var(--shopheadingColor);
    font-weight: 700;
    line-height: 1.2;
}

@media (max-width: 640px) {
    .search-bar {
        gap: var(--space-sm);
        padding: 12px var(--page-gutter);
    }

    #search-btn span {
        display: none;
    }

    #search-btn {
        padding: 11px;
        width: 42px;
        height: 42px;
        justify-content: center;
    }

    .cart-btn a {
        width: 42px;
        height: 42px;
    }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero-wrapper {
    background: linear-gradient(135deg, var(--shopheadingColor) 0%, var(--color3) 100%);
    color: var(--secondry-text-color);
    padding: var(--space-xl) var(--page-gutter) 0;
}

.hero-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-lg);
}

.hero-eyebrow {
    display: inline-block;
    font-size: 0.72rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.15);
    padding: 5px 14px;
    border-radius: 30px;
    margin-bottom: 14px;
    backdrop-filter: blur(10px);
}

.hero-content h1 {
    font-size: clamp(1.5rem, 4vw, 2.6rem);
    line-height: 1.25;
    margin-bottom: 12px;
    font-weight: 700;
}

.hero-content p {
    font-size: clamp(0.85rem, 1.6vw, 0.95rem);
    opacity: 0.9;
    margin-bottom: var(--space-md);
    line-height: 1.6;
}

.hero-ctas {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    flex: 1 1 auto;
    min-height: 44px;
}

.btn-primary {
    background: var(--color1);
    color: #06231f;
}

.btn-secondary {
    background: transparent;
    color: var(--secondry-text-color);
    border: 1.5px solid rgba(255, 255, 255, 0.6);
}

.btn-primary:hover,
.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.banner-slider-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding-bottom: var(--space-lg);
}

.banner-slider .splide__track {
    border-radius: var(--card-radius);
    overflow: hidden;
}

.banner-slider .slide-img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 6;
    border-radius: var(--card-radius);
    overflow: hidden;
    background: #f5f5f5;
}

.banner-slider .slide-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.banner-slider .splide__pagination {
    bottom: -2em;
}

.banner-slider .splide__pagination__page.is-active {
    background: var(--color1);
    transform: scale(1.2);
}

.banner-slider .splide__arrow {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    width: 2.5em;
    height: 2.5em;
}

.banner-slider .splide__arrow svg {
    fill: var(--shopheadingColor);
}

@media (max-width: 768px) {
    .hero-wrapper {
        padding: var(--space-lg) var(--page-gutter) 0;
    }

    .banner-slider .slide-img {
        aspect-ratio: auto;
        background: transparent;
    }

    .banner-slider .slide-img img {
        position: static;
        width: 100%;
        height: auto;
        object-fit: initial;
        display: block;
    }
}

@media (max-width: 480px) {
    .hero-content {
        margin-bottom: var(--space-md);
    }

    .hero-ctas {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
    }
}

/* ==========================================================================
   Offering bar / why-us
   ========================================================================== */

.offering-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-sm);
    padding: var(--space-lg) var(--page-gutter);
    max-width: 1100px;
    margin: 0 auto;
}

.offering-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 18px;
    border-radius: var(--card-radius);
    background: #fafafa;
    border: 1px solid #eee;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.offering-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.offering-card .icon {
    width: 46px;
    height: 46px;
    min-width: 46px;
    border-radius: 50%;
    background: rgba(0, 191, 165, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--shopheadingColor);
    font-size: 1.15rem;
}

.offering-card h4 {
    font-size: 0.92rem;
    margin-bottom: 2px;
    color: var(--shopheadingColor);
}

.offering-card p {
    font-size: 0.78rem;
    color: var(--text-color);
    line-height: 1.4;
}

@media (max-width: 640px) {
    .offering-bar {
        grid-template-columns: 1fr;
        gap: var(--space-xs);
        padding: var(--space-md) var(--page-gutter);
    }
}

.why-us {
    background: #fafafa;
    padding: var(--space-xl) var(--page-gutter);
}

.why-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--space-md);
}

.why-card {
    text-align: center;
    padding: var(--space-sm) var(--space-xs);
    transition: transform var(--transition-base);
}

.why-card:hover {
    transform: translateY(-3px);
}

.why-card .icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--shopheadingColor);
    font-size: 1.4rem;
    box-shadow: var(--shadow-soft);
}

.why-card h4 {
    margin-bottom: 4px;
    color: var(--shopheadingColor);
    font-size: 0.95rem;
}

.why-card p {
    font-size: 0.82rem;
    color: var(--text-color);
}

/* ==========================================================================
   Section heading (shared)
   ========================================================================== */

.section-heading {
    text-align: center;
    max-width: 600px;
    margin: 0 auto var(--space-lg);
    padding: 0 var(--space-sm);
}

.section-heading span {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    color: var(--shopBorderColor);
    font-weight: 600;
}

.section-heading h2 {
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    color: var(--shopheadingColor);
    margin-top: 6px;
}

/* ==========================================================================
   Product grid (shop listing page)
   ========================================================================== */

.products-section {
    padding: var(--space-md) var(--page-gutter) var(--space-xl);
    max-width: 1000px;
    margin: 0 auto;
}

.products-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.product-card {
    display: grid;
    grid-template-columns: 300px 1fr;
    background: #fff;
    border-radius: var(--card-radius);
    border: 2px solid #e8e8e8;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
    position: relative;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
    border-color: var(--color1);
}

.product-card.sold-out-card {
    opacity: 0.85;
}

.sale-tag,
.sold-out-tag {
    position: absolute;
    top: 14px;
    left: 14px;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 20px;
    z-index: 3;
    letter-spacing: 0.5px;
}

.sale-tag {
    background: #e53935;
    box-shadow: 0 2px 8px rgba(229, 57, 53, 0.3);
}

.sold-out-tag {
    background: #6b7280;
}

.sold-out-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    pointer-events: none;
}

.sold-out-overlay span {
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 8px 20px;
    border-radius: 8px;
    letter-spacing: 0.5px;
}

.product-card .img {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid #f0f0f0;
}

.product-card .img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.description {
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: var(--space-sm);
    min-width: 0;
}

.description a {
    text-decoration: none;
    color: inherit;
}

.card-title {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--primary-text-color);
    font-weight: 700;
    position: relative;
    padding-bottom: 12px;
    line-height: 1.35;
}

.card-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--color1);
    border-radius: 2px;
}

.card-description {
    font-size: 0.88rem;
    color: var(--text-color);
    margin-bottom: var(--space-sm);
    line-height: 1.6;
}

.available-colors {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    margin-bottom: var(--space-sm);
    flex-wrap: wrap;
    padding: 10px 14px;
    background: #fafafa;
    border-radius: 10px;
    border: 1px solid #f0f0f0;
}

.available-colors strong {
    flex: 0 0 100%;
}

@media (min-width: 400px) {
    .available-colors strong {
        flex: none;
    }
}

.color-circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #ddd;
    display: inline-block;
    cursor: pointer;
    transition: all 0.15s ease;
    flex: none;
}

.color-circle:hover {
    transform: scale(1.15);
}

.color-circle.selected {
    border-color: var(--shopheadingColor);
    box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--shopheadingColor);
}

.size-option {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    padding: 7px 12px;
    margin: 0;
    border: 2px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.size-option:hover {
    border-color: var(--color1);
    background: #f5fffe;
}

.quantity-container {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    margin-bottom: var(--space-sm);
    padding: 10px 14px;
    background: #fafafa;
    border-radius: 10px;
    border: 1px solid #f0f0f0;
    flex-wrap: wrap;
}

.quantity-btn {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1.5px solid #ddd;
    background: #fff;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    user-select: none;
    color: var(--shopheadingColor);
    font-weight: 700;
    flex: none;
}

.quantity-btn:hover {
    background: var(--color1);
    border-color: var(--color1);
    color: #fff;
}

.quantity-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.quantity-input {
    width: 52px;
    text-align: center;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    padding: 8px 4px;
    font-size: 0.9rem;
    font-weight: 600;
    flex: none;
}

.quantity-input:focus {
    outline: none;
    border-color: var(--color1);
}

.low-stock-note {
    font-size: 0.75rem;
    color: #e65100;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    display: flex;
    align-items: center;
    gap: 6px;
}

.card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-sm);
    flex-wrap: wrap;
    padding-top: var(--space-sm);
    border-top: 1px solid #f0f0f0;
}

.card-price {
    font-weight: 700;
    font-size: 1.35rem;
    color: var(--shopheadingColor);
    letter-spacing: -0.5px;
}

.discount-price {
    text-decoration: line-through;
    color: #bbb;
    font-size: 0.88rem;
    margin-left: 6px;
}

.card-bottom button[type="submit"] {
    padding: 13px 28px;
    border: none;
    border-radius: 12px;
    background: var(--shopheadingColor);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all var(--transition-base);
    font-size: 0.88rem;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 12px rgba(0, 51, 50, 0.2);
    min-height: 46px;
}

.card-bottom button[type="submit"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.card-bottom button[type="submit"]:hover::before {
    left: 100%;
}

.card-bottom button[type="submit"]:hover {
    background: var(--color3);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 51, 50, 0.3);
}

.card-bottom button[type="submit"]:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 51, 50, 0.2);
}

.card-bottom button[type="submit"]:disabled,
.card-bottom button[type="submit"].sold-out-btn {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 2px 8px rgba(0, 51, 50, 0.1);
}

.card-bottom button[type="submit"].sold-out-btn {
    background: #9ca3af;
    box-shadow: none;
}

.card-bottom button[type="submit"].sold-out-btn:hover {
    background: #9ca3af;
    transform: none;
    box-shadow: none;
}

.card-bottom button[type="submit"] .btn-spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2.5px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

.card-bottom button[type="submit"].loading .btn-spinner {
    display: inline-block;
}

.card-bottom button[type="submit"].loading .btn-label,
.card-bottom button[type="submit"].loading .fa-cart-shopping {
    display: none;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-color);
}

.empty-state i {
    font-size: 2.4rem;
    color: var(--shopBorderColor);
    margin-bottom: 14px;
}

@media (max-width: 768px) {
    .product-card {
        grid-template-columns: 1fr;
    }

    .product-card .img {
        aspect-ratio: 4 / 3;
        max-height: 320px;
        border-right: none;
        border-bottom: 1px solid #f0f0f0;
    }

    .description {
        padding: var(--space-md);
    }
}

@media (max-width: 480px) {
    .products-section {
        padding: var(--space-sm) var(--page-gutter) var(--space-lg);
    }

    .products-grid {
        gap: var(--space-md);
    }

    .card-title {
        font-size: 1.08rem;
    }

    .card-bottom {
        flex-direction: column;
        align-items: stretch;
        gap: var(--space-xs);
    }

    .card-bottom > div:first-child {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
    }

    .card-bottom button[type="submit"] {
        width: 100%;
    }
}

/* ==========================================================================
   Toast — "Added to cart"
   ========================================================================== */

.added-to-cart {
    position: fixed;
    top: -220px;
    right: 24px;
    left: auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: var(--shadow-hover);
    padding: 22px;
    width: 300px;
    max-width: calc(100vw - 32px);
    z-index: 999;
    transition: top 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    border: 1px solid #e2e2e2;
}

.added-to-cart.show {
    top: 90px;
}

.added-to-cart .close-btn {
    position: absolute;
    top: 10px;
    right: 12px;
    cursor: pointer;
    color: var(--text-color);
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background var(--transition-base);
}

.added-to-cart .close-btn:hover {
    background: #f0f0f0;
}

.added-to-cart h3 {
    font-size: 0.95rem;
    margin-bottom: 14px;
    color: var(--shopheadingColor);
    padding-right: 18px;
}

.added-to-cart div.toast-actions {
    display: flex;
    gap: 10px;
}

.go-to-cart-btn {
    flex: 1;
    padding: 11px 14px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
    transition: all var(--transition-base);
}

.go-to-cart-btn:first-child {
    background: #f1f1f1;
    color: var(--primary-text-color);
}

.go-to-cart-btn:first-child:hover {
    background: #e5e5e5;
}

.go-to-cart-btn:last-child {
    background: var(--shopheadingColor);
    color: #fff;
}

.go-to-cart-btn:last-child:hover {
    background: var(--color3);
}

@media (max-width: 480px) {
    .added-to-cart {
        left: 16px;
        right: 16px;
        width: auto;
        max-width: none;
        padding: 18px;
    }

    .added-to-cart.show {
        top: 76px;
    }
}

/* ==========================================================================
   Product detail page
   ========================================================================== */

.zoom-container {
    position: relative;
    overflow: hidden;
    cursor: crosshair;
    width: 100%;
}

.zoom-container img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.zoom-img-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: var(--card-radius);
}

.zoom-lens {
    position: absolute;
    border: 2px solid rgba(0, 191, 165, 0.5);
    border-radius: 4px;
    width: 150px;
    height: 150px;
    pointer-events: none;
    opacity: 0;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    z-index: 5;
}

.zoom-container.active .zoom-lens {
    opacity: 1;
}

.zoom-result {
    position: absolute;
    top: 0;
    right: -420px;
    width: 400px;
    height: 400px;
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    background-repeat: no-repeat;
    background-color: #fff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 10;
    display: none;
    pointer-events: none;
}

.zoom-container.active .zoom-result {
    display: block;
}

.mobile-zoom-hint {
    display: none;
    position: absolute;
    bottom: 16px;
    right: 16px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    z-index: 5;
    pointer-events: none;
}

@media (min-width: 1025px) {
    .product-main-img.zoom-container {
        overflow: visible;
    }

    .mobile-zoom-hint {
        display: none !important;
    }
}

@media (max-width: 1024px) {
    .zoom-result,
    .zoom-lens {
        display: none !important;
    }

    .zoom-container {
        cursor: pointer;
        overflow: hidden;
    }

    .mobile-zoom-hint {
        display: block !important;
    }
}

/* ==========================================================================
   Mobile image lightbox (product detail page)
   ========================================================================== */

.image-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 1300;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

.image-lightbox.show {
    display: flex;
}

.image-lightbox .lightbox-scroll {
    width: 100%;
    height: 100%;
    overflow: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: pinch-zoom;
    -webkit-overflow-scrolling: touch;
}

.image-lightbox img {
    max-width: 100%;
    max-height: 100%;
    display: block;
    touch-action: pinch-zoom;
    margin: auto;
}

.lightbox-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 2;
    border: none;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.25);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    border: none;
    z-index: 2;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.25);
}

.lightbox-nav.prev {
    left: 12px;
}

.lightbox-nav.next {
    right: 12px;
}

.lightbox-hint {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.78rem;
    text-align: center;
    pointer-events: none;
}

@media (min-width: 1025px) {
    .image-lightbox {
        display: none !important;
    }
}

.product-container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--space-xl);
    max-width: 1200px;
    margin: var(--space-xl) auto;
    padding: 0 var(--page-gutter);
}

.product-img-container {
    position: sticky;
    top: 90px;
    align-self: start;
    min-width: 0;
}

.product-main-img {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: var(--card-radius);
    overflow: hidden;
    background: #f5f5f5;
    margin-bottom: var(--space-sm);
    border: 1px solid #eee;
}

.img-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--shopheadingColor);
    font-size: 1.1rem;
    transition: all 0.2s ease;
    z-index: 6;
    border: none;
}

.img-nav-btn:hover {
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.img-left-btn {
    left: 12px;
}

.img-right-btn {
    right: 12px;
}

.product-secondry-img-container {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 4px 2px 8px;
    -webkit-overflow-scrolling: touch;
}

.product-secondry-img-container img {
    width: 68px;
    height: 68px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    flex: none;
}

.product-secondry-img-container img:hover,
.product-secondry-img-container img.active {
    border-color: var(--color1);
}

.product-description-container {
    min-width: 0;
}

.product-description-container h2 {
    font-size: clamp(1.35rem, 3vw, 1.8rem);
    color: var(--shopheadingColor);
    margin-bottom: var(--space-sm);
    line-height: 1.3;
}

#price-container {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--shopheadingColor);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

#actual-price {
    text-decoration: line-through;
    color: #bbb;
    font-size: 1rem;
    margin-left: 4px;
}

#sale-tag {
    display: inline-block;
    background: #e53935;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    vertical-align: middle;
}

.product-description {
    font-size: 0.92rem;
    line-height: 1.7;
    color: var(--text-color);
    overflow-wrap: break-word;
}

.product-bullets p {
    font-size: 0.9rem;
    line-height: 1.8;
    color: var(--text-color);
}

.colors-options {
    display: inline-block;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid #ddd;
    cursor: pointer;
    margin: 4px 6px 4px 0;
    transition: all 0.15s ease;
    vertical-align: middle;
}

.colors-options:hover {
    transform: scale(1.15);
}

.colors-options.selected {
    border-color: var(--shopheadingColor);
    box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--shopheadingColor);
}

.size-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    padding: 9px 16px;
    margin: 4px 6px 4px 0;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.size-btn:hover {
    border-color: var(--color1);
}

.size-btn.selected {
    border-color: var(--shopheadingColor);
    background: var(--shopheadingColor);
    color: #fff;
    font-weight: 600;
}

.product-description-container .quantity-container {
    margin: var(--space-sm) 0;
}

.add-to-cart-btn {
    padding: 14px 40px;
    border: none;
    border-radius: 12px;
    background: var(--shopheadingColor);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
    transition: all var(--transition-base);
    margin-top: var(--space-sm);
    box-shadow: 0 4px 12px rgba(0, 51, 50, 0.2);
    width: 100%;
    min-height: 50px;
}

.add-to-cart-btn:hover {
    background: var(--color3);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 51, 50, 0.3);
}

.add-to-cart-btn:disabled,
.add-to-cart-btn.sold-out {
    opacity: 0.65;
    cursor: not-allowed;
    background: #9ca3af !important;
    transform: none;
    box-shadow: none;
}

#note {
    margin-top: var(--space-sm);
    font-size: 0.85rem;
    color: var(--text-color);
    line-height: 1.6;
}

#note span {
    color: #e53935;
    font-weight: 600;
}

#note a {
    color: var(--color3);
    font-weight: 600;
    text-decoration: none;
}

@media (max-width: 1024px) {
    .product-container {
        gap: var(--space-lg);
    }
}

@media (max-width: 768px) {
    .product-container {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
        margin: var(--space-lg) auto;
    }

    .product-img-container {
        position: static;
    }
}

@media (max-width: 480px) {
    .add-to-cart-btn {
        padding: 14px 24px;
    }
}

/* ==========================================================================
   Reviews
   ========================================================================== */

.product-review {
    max-width: 1200px;
    margin: var(--space-xl) auto;
    padding: 0 var(--page-gutter);
}

#add-review-btn {
    padding: 12px 24px;
    background: var(--shopheadingColor);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: var(--space-md);
    transition: all var(--transition-base);
    min-height: 44px;
}

#add-review-btn:hover {
    background: var(--color3);
}

#rating-stars {
    font-size: 1.4rem;
}

#rating-stars span {
    color: #ddd;
}

#rating-stars span.gold {
    color: #ffc107;
}

.review-card {
    background: #fafafa;
    padding: var(--space-md);
    border-radius: 12px;
    margin-bottom: var(--space-sm);
    border: 1px solid #eee;
}

.review-img-container {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.review-img-container img {
    width: 76px;
    height: 76px;
    object-fit: cover;
    border-radius: 8px;
}

.review-form {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: var(--space-lg);
    border-radius: 16px;
    box-shadow: var(--shadow-hover);
    z-index: 1000;
    width: 90%;
    max-width: 500px;
    max-height: 88vh;
    overflow-y: auto;
}

.review-form.show {
    display: block;
}

.close-review {
    position: absolute;
    top: 16px;
    right: 16px;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text-color);
}

.star-rating {
    display: flex;
    gap: 6px;
    margin: 8px 0;
}

.star-rating span {
    font-size: 1.6rem;
    cursor: pointer;
    color: #ddd;
    transition: color 0.2s ease;
}

.star-rating span:hover,
.star-rating span.active {
    color: #ffc107;
}

#backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

#backdrop.show {
    display: block;
}

@media (max-width: 480px) {
    .review-form {
        width: 92%;
        padding: var(--space-md);
    }
}

/* ==========================================================================
   Related products
   ========================================================================== */

.related-products {
    max-width: 1200px;
    margin: var(--space-xl) auto;
    padding: 0 var(--page-gutter);
}

.related-products h2 {
    font-size: 1.5rem;
    color: var(--shopheadingColor);
    margin-bottom: var(--space-md);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: var(--space-md);
}

.related-grid .product-card {
    grid-template-columns: 1fr;
    border: 1px solid #eee;
    box-shadow: var(--shadow-soft);
}

.related-grid .product-card:hover {
    box-shadow: var(--shadow-hover);
}

.related-grid .product-card .img {
    aspect-ratio: 1 / 1;
    border-right: none;
    border-bottom: 1px solid #f0f0f0;
}

.related-grid .product-card .description {
    padding: var(--space-sm) var(--space-md) var(--space-md);
    display: block;
}

.related-grid .card-title {
    font-size: 1.02rem;
    font-weight: 600;
    padding-bottom: 0;
    margin-bottom: 8px;
}

.related-grid .card-title::after {
    display: none;
}

.related-grid .card-price {
    font-size: 1.05rem;
}

@media (max-width: 480px) {
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-sm);
    }

    .related-grid .card-title {
        font-size: 0.92rem;
    }

    .related-grid .card-price {
        font-size: 0.92rem;
    }
}

/* ==========================================================================
   Cart page
   ========================================================================== */

.cart-page-header {
    background: linear-gradient(180deg, var(--color4) 0%, rgba(245, 247, 250, 1) 100%);
    padding: var(--space-xl) 20px var(--space-lg);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cart-page-header::before {
    content: '';
    position: absolute;
    top: -30%;
    left: -30%;
    width: 160%;
    height: 160%;
    background: radial-gradient(circle at center, rgba(245, 247, 250, 0.3) 0%, transparent 60%);
    pointer-events: none;
}

.cart-page-header .header-icon {
    font-size: 2.6rem;
    color: var(--shopheadingColor);
    margin-bottom: 12px;
    position: relative;
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

.cart-page-header h1 {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--shopheadingColor);
    position: relative;
    margin-bottom: 6px;
}

.cart-page-header .item-count {
    font-size: 0.92rem;
    color: var(--text-color);
    position: relative;
    font-weight: 500;
}

.cart-page-header .item-count span {
    color: var(--color3);
    font-weight: 700;
}

#cart-section {
    max-width: 1000px;
    margin: 0 auto;
    padding: var(--space-lg) var(--page-gutter) var(--space-xl);
}

.checkout-banner-error {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fee2e2;
    color: #b91c1c;
    font-size: 0.86rem;
    font-weight: 600;
    padding: 14px 16px;
    border-radius: 10px;
    margin-bottom: var(--space-md);
}

.cart-item-card {
    display: flex;
    gap: var(--space-md);
    background: var(--bg-color);
    border-radius: var(--card-radius);
    padding: var(--space-md);
    margin-bottom: var(--space-sm);
    border: 1px solid #e8ecf0;
    box-shadow: var(--shadow-soft);
    position: relative;
    transition: all var(--transition-base);
}

.cart-item-card:hover {
    box-shadow: var(--shadow-hover);
    border-color: #d8dde3;
}

.cart-item-card.invalid-item {
    border-color: #dc2626;
    background: #fff8f8;
}

.cart-item-card.removing {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.3s ease;
}

.item-image-wrapper {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
    border-radius: 10px;
    overflow: hidden;
    background: #f5f5f5;
    border: 1px solid #eef1f5;
}

.item-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-details {
    flex: 1;
    min-width: 0;
    position: relative;
    padding-right: 44px;
}

.item-details h2 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--shopheadingColor);
    margin-bottom: 10px;
    line-height: 1.4;
    overflow-wrap: break-word;
}

.stock-warning {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    background: #fee2e2;
    color: #b91c1c;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 10px 14px;
    border-radius: 8px;
    margin: 10px 0;
}

.stock-warning i {
    font-size: 0.95rem;
    margin-top: 1px;
}

.item-attributes {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 16px;
    margin-bottom: 12px;
    font-size: 0.84rem;
    color: var(--text-color);
}

.item-attribute {
    display: flex;
    align-items: center;
    gap: 6px;
}

.item-attribute b {
    color: var(--primary-text-color);
}

.color-swatch {
    display: inline-block;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #ddd;
    vertical-align: middle;
}

.remove-btn {
    position: absolute;
    top: 0;
    right: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #fee2e2;
    color: #dc2626;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 0.85rem;
}

.remove-btn:hover {
    background: #dc2626;
    color: #fff;
    transform: scale(1.08);
}

.remove-btn:active {
    transform: scale(0.95);
}

.item-price-section {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: var(--space-sm);
    flex-wrap: wrap;
}

.current-price {
    font-weight: 700;
    color: var(--shopheadingColor);
    font-size: 1.05rem;
}

.original-price {
    text-decoration: line-through;
    color: #b0b8c1;
    font-size: 0.85rem;
}

.savings-badge {
    display: none;
    padding: 2px 8px;
    background: #e8f5e9;
    color: #2e7d32;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.savings-badge.show {
    display: inline-block;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.quantity-controls b {
    font-size: 0.85rem;
    color: var(--primary-text-color);
    margin-right: 8px;
}

.qty-btn {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 2px solid #e2e6ea;
    background: var(--bg-color);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    color: var(--shopheadingColor);
}

.qty-btn:hover {
    background: var(--color1);
    border-color: var(--color1);
    color: #fff;
}

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

.qty-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f5f5f5;
    border-color: #e8ecf0;
    color: #ccc;
}

.qty-value {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 34px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--primary-text-color);
    background: #f8f9fb;
    border-radius: 6px;
    margin: 0 4px;
}

.item-subtotal {
    margin-top: 10px;
    font-size: 0.85rem;
    color: var(--text-color);
}

.item-subtotal span {
    font-weight: 700;
    color: var(--shopheadingColor);
}

.cart-summary-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.summary-card {
    background: var(--bg-color);
    border-radius: var(--card-radius);
    padding: var(--space-md);
    border: 1px solid #e8ecf0;
    box-shadow: var(--shadow-soft);
}

.summary-card h2 {
    font-size: 1.02rem;
    font-weight: 600;
    color: var(--shopheadingColor);
    margin-bottom: var(--space-sm);
    display: flex;
    align-items: center;
    gap: 8px;
}

.summary-card h2 i {
    color: var(--color1);
}

.free-delivery-banner {
    font-size: 0.83rem;
    color: var(--color3);
    font-weight: 500;
    margin-bottom: var(--space-sm);
    padding: 12px 14px;
    background: #f0fffd;
    border-radius: 8px;
    border: 1px solid #c8f0e8;
    display: flex;
    align-items: center;
    gap: 8px;
}

.free-delivery-banner i {
    color: var(--color1);
    font-size: 1.1rem;
}

.delivery-select-label {
    display: block;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--shopheadingColor);
    margin-bottom: 8px;
}

.delivery-select-label .required-mark {
    color: #dc2626;
}

.delivery-select {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 2px solid #e2e6ea;
    background: #fff;
    font-size: 0.88rem;
    font-family: inherit;
    color: var(--primary-text-color);
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 6px;
    min-height: 46px;
}

.delivery-select:focus {
    outline: none;
    border-color: var(--color1);
    box-shadow: 0 0 0 3px rgba(0, 191, 165, 0.15);
}

.delivery-select.error {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

.delivery-select-error {
    display: none;
    align-items: center;
    gap: 6px;
    color: #dc2626;
    font-size: 0.8rem;
    margin-bottom: 4px;
}

.delivery-select-error.show {
    display: flex;
}

.price-breakdown {
    margin-top: 4px;
}

.price-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-size: 0.88rem;
    color: var(--text-color);
    border-bottom: 1px solid #f3f5f7;
    gap: 8px;
}

.price-line.total {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--shopheadingColor);
    border-bottom: none;
    margin-top: 4px;
    padding-top: 14px;
    border-top: 2px solid #e2e6ea;
}

.price-line.savings {
    color: #2e7d32;
    font-weight: 500;
}

.price-line.savings span:last-child {
    color: #2e7d32;
    font-weight: 600;
}

.checkout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 24px;
    margin-top: var(--space-md);
    background: var(--secondry-bg-color);
    color: var(--secondry-text-color);
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    transition: all var(--transition-base);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    letter-spacing: 0.2px;
    min-height: 50px;
}

.checkout-btn:hover {
    background: #2a2a2a;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
}

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

.checkout-btn.disabled-checkout {
    background: #9ca3af;
    cursor: not-allowed;
    pointer-events: none;
    box-shadow: none;
}

.empty-cart-container {
    text-align: center;
    padding: var(--space-xl) var(--space-md);
    background: var(--bg-color);
    border-radius: var(--card-radius);
    border: 1px solid #e8ecf0;
    box-shadow: var(--shadow-soft);
}

.empty-cart-icon {
    font-size: 3.6rem;
    color: #d8dde3;
    margin-bottom: var(--space-sm);
}

.empty-cart-container h2 {
    font-size: 1.3rem;
    color: var(--shopheadingColor);
    margin-bottom: 8px;
}

.empty-cart-container p {
    font-size: 0.92rem;
    color: var(--text-color);
    margin-bottom: var(--space-lg);
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}

.shop-now-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: var(--shopheadingColor);
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all var(--transition-base);
    min-height: 48px;
}

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

.continue-shopping {
    display: inline-block;
    margin-top: var(--space-sm);
    color: var(--color3);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

.continue-shopping:hover {
    color: var(--shopheadingColor);
    text-decoration: underline;
}

.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
    animation: fadeIn 0.2s ease;
    padding: 16px;
}

.modal-overlay.show {
    display: flex;
}

.modal-dialog {
    background: var(--bg-color);
    border-radius: var(--card-radius);
    padding: var(--space-lg);
    max-width: 420px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
    animation: slideUp 0.3s ease;
}

.modal-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #fff3e0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.modal-icon i {
    font-size: 1.8rem;
    color: #e65100;
}

.modal-dialog h3 {
    font-size: 1.12rem;
    font-weight: 600;
    color: var(--shopheadingColor);
    margin-bottom: 8px;
}

.modal-dialog p {
    font-size: 0.9rem;
    color: var(--text-color);
    margin-bottom: var(--space-md);
    line-height: 1.5;
}

.modal-actions {
    display: flex;
    gap: 12px;
}

.modal-btn {
    flex: 1;
    padding: 13px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    font-family: inherit;
    min-height: 46px;
}

.modal-btn:hover {
    transform: translateY(-1px);
}

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

.modal-btn.cancel {
    background: #f5f5f5;
    color: var(--text-color);
    border: 1.5px solid #e2e6ea;
}

.modal-btn.cancel:hover {
    background: #e8ecf0;
}

.modal-btn.confirm {
    background: #dc2626;
    color: #fff;
}

.modal-btn.confirm:hover {
    background: #b91c1c;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.cart-toast {
    position: fixed;
    bottom: 28px;
    right: 28px;
    padding: 14px 22px;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 500;
    z-index: 1001;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    pointer-events: none;
    color: #fff;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 400px;
}

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

.cart-toast.success {
    background: #2e7d32;
}

.cart-toast.error {
    background: #c62828;
}

.loading-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.75);
    z-index: 999;
    justify-content: center;
    align-items: center;
}

.loading-overlay.show {
    display: flex;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e0e0e0;
    border-top-color: var(--color1);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@media (max-width: 768px) {
    .cart-summary-section {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .cart-item-card {
        gap: var(--space-sm);
        padding: var(--space-sm);
    }

    .item-image-wrapper {
        width: 96px;
        height: 96px;
    }

    .item-details {
        padding-right: 40px;
    }

    .item-details h2 {
        font-size: 0.96rem;
    }
}

@media (max-width: 480px) {
    .cart-page-header {
        padding: var(--space-lg) 16px var(--space-md);
    }

    #cart-section {
        padding: var(--space-md) var(--page-gutter) var(--space-lg);
    }

    .cart-item-card {
        flex-direction: column;
        padding: var(--space-sm);
    }

    .item-image-wrapper {
        width: 100%;
        height: 180px;
    }

    .item-details {
        padding-right: 0;
        margin-top: var(--space-xs);
    }

    .remove-btn {
        top: -4px;
        right: -4px;
    }

    .summary-card {
        padding: var(--space-sm);
    }

    .checkout-btn {
        font-size: 0.92rem;
        padding: 14px 20px;
    }

    .cart-toast {
        left: 16px;
        right: 16px;
        bottom: 16px;
        max-width: none;
    }

    .modal-dialog {
        padding: var(--space-md);
    }

    .modal-actions {
        flex-direction: column;
    }
}

/* ==========================================================================
   Checkout page
   ========================================================================== */

.checkout-header {
    background: linear-gradient(180deg, var(--color4) 0%, rgba(245, 247, 250, 1) 100%);
    padding: 20px 0;
    top: 0;
    z-index: 45;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--page-gutter);
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-text-color);
    font-size: 1.2rem;
    font-weight: 700;
}

.header-brand i {
    font-size: 1.4rem;
    color: var(--shopheadingColor);
}

.header-steps {
    display: flex;
    gap: clamp(16px, 4vw, 28px);
    align-items: center;
}

.step {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-color);
    font-size: 0.8rem;
    font-weight: 500;
    transition: var(--transition-base);
}

.step.active {
    color: var(--shopheadingColor);
    font-weight: 600;
}

.step.completed {
    color: var(--color3);
}

.step-circle {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 2px solid currentColor;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.75rem;
    transition: var(--transition-base);
    background: rgba(255, 255, 255, 0.7);
    flex: none;
}

.step.active .step-circle {
    background: var(--shopheadingColor);
    border-color: var(--shopheadingColor);
    color: var(--secondry-text-color);
}

.step.completed .step-circle {
    background: var(--color3);
    border-color: var(--color3);
    color: var(--secondry-text-color);
}

.header-secure {
    display: none;
}

.checkout-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-lg) var(--page-gutter) var(--space-xl);
    overflow-x: hidden;
}

.instructions-banner {
    background: var(--bg-color);
    border-left: 4px solid var(--color1);
    padding: var(--space-md);
    border-radius: var(--card-radius);
    box-shadow: var(--shadow-soft);
    margin-bottom: var(--space-md);
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.instructions-banner i {
    font-size: 1.3rem;
    color: var(--color1);
    margin-top: 2px;
    flex-shrink: 0;
}

.instructions-banner ul {
    list-style: none;
    padding: 0;
}

.instructions-banner li {
    font-size: 0.84rem;
    color: var(--text-color);
    padding: 4px 0;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.5;
}

.instructions-banner li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--color1);
    font-size: 0.75rem;
    margin-top: 4px;
}

.instructions-banner a {
    color: var(--color3);
    font-weight: 600;
    text-decoration: none;
}

.instructions-banner a:hover {
    color: var(--shopheadingColor);
    text-decoration: underline;
}

.checkout-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 400px);
    gap: var(--space-md);
    align-items: start;
}

.card {
    background: var(--bg-color);
    border-radius: var(--card-radius);
    box-shadow: var(--shadow-soft);
    border: 1px solid #e8ecf0;
    overflow: hidden;
}

.card-header {
    padding: 18px 20px;
    border-bottom: 1px solid #eef1f5;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fafbfc;
}

.card-header h2 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--shopheadingColor);
}

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

.card-body {
    padding: var(--space-md);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--primary-text-color);
    display: flex;
    align-items: center;
    gap: 6px;
}

.form-label .optional {
    font-weight: 400;
    color: #999;
    font-size: 0.75rem;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #e2e6ea;
    border-radius: 10px;
    font-size: 0.9rem;
    font-family: inherit;
    background: #fafbfc;
    color: var(--primary-text-color);
    transition: var(--transition-base);
    min-height: 46px;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color1);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0, 191, 165, 0.08);
}

.form-textarea {
    resize: vertical;
    min-height: 90px;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #b0b8c1;
}

.payment-option {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    border: 2px solid #e2e6ea;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition-base);
    background: #fafbfc;
    margin-bottom: 8px;
    gap: 10px;
}

.payment-option:hover {
    border-color: #ccd2d8;
    background: #fff;
}

.payment-option.selected {
    border-color: var(--color1);
    background: #f0fffd;
}

.payment-radio-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #ccd2d8;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
    flex-shrink: 0;
}

.payment-option.selected .payment-radio-icon {
    border-color: var(--color1);
}

.payment-radio-icon i {
    font-size: 0.6rem;
    color: var(--color1);
    opacity: 0;
    transform: scale(0);
    transition: var(--transition-base);
}

.payment-option.selected .payment-radio-icon i {
    opacity: 1;
    transform: scale(1);
}

.payment-label-content {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.payment-icon-box {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: #f0f4f8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--color1);
    flex: none;
}

.upload-area {
    border: 2px dashed #d8dde3;
    border-radius: 10px;
    padding: var(--space-md) var(--space-sm);
    text-align: center;
    transition: var(--transition-base);
    background: #fafbfc;
    cursor: pointer;
    margin: 12px 0 var(--space-md);
}

.upload-area:hover {
    border-color: var(--color1);
    background: #f0fffd;
}

.upload-area i {
    font-size: 2.1rem;
    color: var(--color1);
    margin-bottom: 10px;
}

.upload-area p {
    font-size: 0.84rem;
    color: var(--text-color);
    margin-bottom: 4px;
}

.upload-area .hint {
    font-size: 0.78rem;
    color: #999;
}

.upload-input {
    display: none;
}

.file-name-display {
    margin-top: 8px;
    font-size: 0.82rem;
    color: var(--color3);
    font-weight: 500;
    display: none;
    word-break: break-all;
}

.bank-section {
    margin-top: var(--space-md);
}

.bank-section h3 {
    font-size: 0.94rem;
    font-weight: 600;
    color: var(--shopheadingColor);
    margin-bottom: 12px;
}

.bank-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
    gap: 10px;
    margin-bottom: var(--space-sm);
    max-width: 260px;
}

.bank-card {
    padding: 12px 8px;
    border: 2px solid #e2e6ea;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-base);
    background: #fafbfc;
}

.bank-card:hover {
    border-color: #ccd2d8;
    transform: translateY(-1px);
}

.bank-card.active {
    border-color: var(--color1);
    background: #f0fffd;
}

.bank-card img {
    width: 100%;
    max-width: 64px;
    height: 36px;
    object-fit: contain;
    margin-bottom: 6px;
    border-radius: 4px;
}

.bank-card p {
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--primary-text-color);
}

.bank-detail-panel {
    background: #fafbfc;
    border-radius: 10px;
    padding: var(--space-sm);
    border: 1px solid #e2e6ea;
    display: block;
}

.bank-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eef1f5;
    font-size: 0.84rem;
    gap: 10px;
    flex-wrap: wrap;
}

.bank-detail-row:last-child {
    border-bottom: none;
}

.bank-detail-label {
    color: var(--text-color);
    font-weight: 500;
    flex: none;
}

.bank-detail-value {
    color: var(--primary-text-color);
    font-weight: 600;
    text-align: right;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
    word-break: break-all;
}

.copy-btn {
    padding: 4px 10px;
    font-size: 0.7rem;
    background: var(--color1);
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-base);
    white-space: nowrap;
    flex: none;
}

.copy-btn:hover {
    background: var(--color3);
}

.copy-btn.copied {
    background: #2e7d32;
}

.submit-btn {
    width: 100%;
    padding: 15px 24px;
    background: var(--secondry-bg-color);
    color: var(--secondry-text-color);
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-base);
    margin-top: var(--space-md);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 50px;
}

.submit-btn:hover {
    background: #2a2a2a;
    transform: translateY(-1px);
    box-shadow: var(--shadow-hover);
}

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

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.checkout-grid .summary-card {
    position: sticky;
    top: 90px;
}

.summary-items {
    max-height: 300px;
    overflow-y: auto;
    overflow-x: hidden;
    margin: -4px -8px;
    padding: 4px 8px;
}

.summary-items::-webkit-scrollbar {
    width: 4px;
}

.summary-items::-webkit-scrollbar-track {
    background: transparent;
}

.summary-items::-webkit-scrollbar-thumb {
    background: #d0d5da;
    border-radius: 10px;
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f3f5f7;
}

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

.item-image {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
    flex-shrink: 0;
    border: 1px solid #eef1f5;
}

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

.item-info {
    flex: 1;
    min-width: 0;
}

.item-name {
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--primary-text-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 3px;
}

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

.item-price {
    font-weight: 700;
    color: var(--shopheadingColor);
    font-size: 0.9rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.coupon-box {
    background: #f8f9fb;
    border-radius: 10px;
    padding: var(--space-sm);
    margin: var(--space-md) 0;
}

.coupon-input-row {
    display: flex;
    gap: 8px;
}

.coupon-input {
    flex: 1;
    min-width: 0;
    padding: 10px 14px;
    border: 2px solid #e2e6ea;
    border-radius: 8px;
    font-size: 0.84rem;
    font-family: inherit;
    background: #fff;
    transition: var(--transition-base);
}

.coupon-input:focus {
    outline: none;
    border-color: var(--color1);
}

.coupon-apply-btn {
    padding: 10px 16px;
    background: var(--shopheadingColor);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.82rem;
    cursor: pointer;
    transition: var(--transition-base);
    white-space: nowrap;
    flex: none;
}

.coupon-apply-btn:hover {
    background: var(--color3);
}

.coupon-message {
    font-size: 0.78rem;
    margin-top: 8px;
    min-height: 18px;
    font-weight: 500;
}

.coupon-message.success {
    color: #2e7d32;
}

.coupon-message.error {
    color: #c62828;
}

.applied-coupon-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #e8f5e9;
    color: #1b5e20;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    margin-top: 8px;
}

.remove-coupon {
    cursor: pointer;
    font-weight: 700;
    margin-left: 2px;
}

.delivery-section {
    margin: var(--space-sm) 0;
}

.checkout-wrapper .delivery-select {
    width: 100%;
    padding: 11px 14px;
    border: 2px solid #e2e6ea;
    border-radius: 8px;
    font-size: 0.86rem;
    font-family: inherit;
    background: #fff;
    margin-bottom: 12px;
    transition: var(--transition-base);
    min-height: 46px;
}

.checkout-wrapper .delivery-select:focus {
    outline: none;
    border-color: var(--color1);
}

.delivery-info-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 15px;
    background: #f0fffd;
    border-radius: 8px;
    border: 1px solid #c8f0e8;
}

.delivery-info-box i {
    font-size: 1.2rem;
    color: var(--color1);
    flex: none;
}

.delivery-info-box h4 {
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--shopheadingColor);
    margin-bottom: 2px;
}

.delivery-info-box p {
    font-size: 0.8rem;
    color: var(--text-color);
}

.free-delivery-note {
    font-size: 0.78rem;
    color: var(--color1);
    margin-top: 8px;
    font-weight: 500;
}

.checkout-wrapper .price-breakdown {
    margin-top: var(--space-sm);
    padding-top: var(--space-sm);
    border-top: 2px solid #eef1f5;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 0;
    font-size: 0.88rem;
    color: var(--text-color);
    gap: 8px;
}

.price-row.total {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--shopheadingColor);
    padding-top: 14px;
    margin-top: 10px;
    border-top: 2px solid #e2e6ea;
}

.free-badge {
    display: inline-block;
    padding: 2px 8px;
    background: #e8f5e9;
    color: #2e7d32;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 600;
}

.checkout-toast {
    position: fixed;
    bottom: 28px;
    right: 28px;
    padding: 14px 22px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 500;
    z-index: 1000;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    pointer-events: none;
    color: #fff;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 420px;
}

.checkout-toast.show {
    opacity: 1;
    transform: translateY(0);
}

.checkout-toast.success {
    background: #2e7d32;
}

.checkout-toast.error {
    background: #c62828;
}

.checkout-toast i {
    font-size: 1.1rem;
}

@media (max-width: 1024px) {
    .checkout-grid {
        grid-template-columns: 1fr;
        max-width: 640px;
        margin: 0 auto;
    }

    .checkout-grid .summary-card {
        position: static;
    }

    .header-steps {
        gap: 16px;
    }

    .step span {
        display: none;
    }
}

@media (max-width: 640px) {
    .checkout-wrapper {
        padding: var(--space-md) var(--page-gutter) var(--space-xl);
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .card-body {
        padding: var(--space-sm);
    }

    .card-header {
        padding: 14px 16px;
    }

    .instructions-banner {
        padding: var(--space-sm);
        flex-direction: column;
        gap: 6px;
    }

    .instructions-banner i {
        display: none;
    }

    .checkout-toast {
        left: 14px;
        right: 14px;
        bottom: 14px;
        max-width: none;
    }

    .bank-grid {
        max-width: none;
        grid-template-columns: repeat(3, minmax(0, 90px));
    }
}

@media (max-width: 480px) {
    .header-content {
        padding: 0 var(--page-gutter);
    }

    .header-brand {
        font-size: 1rem;
    }

    .bank-detail-value {
        text-align: left;
        justify-content: flex-start;
        width: 100%;
    }

    .bank-detail-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}

/* ==========================================================================
   Order success modal (checkout)
   ========================================================================== */

.success-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1200;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
    animation: fadeIn 0.2s ease;
    padding: 16px;
}

.success-modal-overlay.show {
    display: flex;
}

.success-modal-dialog {
    background: var(--bg-color);
    border-radius: var(--card-radius);
    padding: var(--space-lg);
    max-width: 420px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    text-align: center;
    animation: slideUp 0.3s ease;
}

.success-modal-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #e8f5e9;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
}

.success-modal-icon i {
    font-size: 2rem;
    color: #2e7d32;
}

.success-modal-dialog h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--shopheadingColor);
    margin-bottom: 10px;
}

.success-modal-dialog p {
    font-size: 0.9rem;
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: var(--space-md);
}

.success-modal-order-id {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--shopheadingColor);
    background: #f0fffd;
    border: 1px solid #c8f0e8;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: var(--space-md);
}

.success-modal-btn {
    width: 100%;
    padding: 14px 24px;
    background: var(--shopheadingColor);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.92rem;
    cursor: pointer;
    transition: var(--transition-base);
    min-height: 48px;
}

.success-modal-btn:hover {
    background: var(--color3);
    transform: translateY(-1px);
}

@media (max-width: 480px) {
    .success-modal-dialog {
        padding: var(--space-md);
    }
}