/* Shared storefront theme */
:root {
    --amazon-ink: #131921;
    --amazon-night: #232f3e;
    --amazon-gold: #ff9900;
    --amazon-sand: #febd69;
    --amazon-cloud: #e5d6cf;
}

* {
    box-sizing: border-box;
}

img,
video,
svg {
    max-width: 100%;
    height: auto;
}

.amazon-body {
    position: relative;
    isolation: isolate;
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    font-family: 'Nunito Sans', sans-serif;
    color: #0f172a;
    background-color: var(--amazon-cloud);
    background-image: none;
}

.storefront-classic-home {
    background: var(--amazon-cloud);
}

.storefront-classic-home .floating-crackers-layer {
    display: none;
}

.floating-crackers-layer {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    filter: saturate(1.14);
}

.floating-crackers-layer::before,
.floating-crackers-layer::after {
    position: absolute;
    width: 44vw;
    height: 44vw;
    content: '';
    border-radius: 999px;
    opacity: 0.22;
    filter: blur(54px);
    animation: crackerAuraDrift 20s ease-in-out infinite alternate;
}

.floating-crackers-layer::before {
    top: -16vw;
    left: -10vw;
    background:
        radial-gradient(circle at 35% 35%, rgba(251, 191, 36, 0.52), transparent 58%),
        radial-gradient(circle at 72% 68%, rgba(248, 113, 113, 0.4), transparent 64%);
}

.floating-crackers-layer::after {
    right: -12vw;
    bottom: -18vw;
    background:
        radial-gradient(circle at 28% 30%, rgba(56, 189, 248, 0.46), transparent 56%),
        radial-gradient(circle at 64% 70%, rgba(132, 204, 22, 0.36), transparent 62%);
    animation-delay: -6s;
}

.cracker-float {
    --left: 50%;
    --delay: 0s;
    --duration: 18s;
    --pulse: 4s;
    --drift-x: 0px;
    --core-color: 255, 189, 105;
    --glow-color: 255, 153, 0;
    --tail-color: 255, 236, 199;
    position: absolute;
    left: var(--left);
    top: 112%;
    width: clamp(10px, 1.25vw, 18px);
    aspect-ratio: 1;
    border-radius: 999px;
    opacity: 0;
    background:
        radial-gradient(circle at 34% 34%, rgba(255, 255, 255, 0.97) 0 19%, rgba(var(--core-color), 0.96) 20% 47%, rgba(var(--core-color), 0.32) 48% 70%, rgba(var(--core-color), 0) 71%);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.4),
        0 0 18px rgba(var(--glow-color), 0.5),
        0 0 36px rgba(var(--glow-color), 0.22);
    animation:
        crackerDrift var(--duration) linear infinite,
        crackerPulse var(--pulse) ease-in-out infinite,
        crackerTwinkle calc(var(--pulse) * 1.4) ease-in-out infinite;
    animation-delay: var(--delay);
}

.cracker-float::before,
.cracker-float::after {
    position: absolute;
    top: 50%;
    left: 50%;
    content: '';
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(var(--tail-color), 0.95), rgba(255, 255, 255, 0));
    transform: translate(-50%, -50%);
}

.cracker-float::before {
    width: 180%;
    height: 2px;
}

.cracker-float::after {
    width: 2px;
    height: 180%;
}

.shape-burst {
    border-radius: 999px;
}

.shape-ring {
    background:
        radial-gradient(circle at center, rgba(255, 255, 255, 0) 0 24%, rgba(var(--core-color), 0.96) 25% 43%, rgba(var(--core-color), 0) 44%);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.45),
        0 0 17px rgba(var(--glow-color), 0.52),
        0 0 34px rgba(var(--glow-color), 0.24);
}

.shape-star {
    border-radius: 0;
    clip-path: polygon(50% 0%, 61% 34%, 98% 35%, 68% 56%, 79% 90%, 50% 68%, 21% 90%, 32% 56%, 2% 35%, 39% 34%);
}

.shape-comet {
    width: clamp(13px, 1.35vw, 20px);
    aspect-ratio: 2 / 1;
    border-radius: 999px;
    background:
        radial-gradient(circle at 24% 50%, rgba(255, 255, 255, 0.98) 0 24%, rgba(var(--core-color), 0.95) 25% 55%, rgba(var(--core-color), 0) 56%);
}

.shape-comet::before {
    width: 2px;
    height: 170%;
}

.shape-comet::after {
    width: 230%;
    height: 2px;
    left: 38%;
    transform: translate(0, -50%) rotate(-13deg);
    background: linear-gradient(90deg, rgba(var(--tail-color), 0.95), rgba(var(--tail-color), 0.45), rgba(255, 255, 255, 0));
}

.tone-gold {
    --core-color: 255, 196, 84;
    --glow-color: 255, 153, 0;
    --tail-color: 255, 241, 205;
}

.tone-cyan {
    --core-color: 56, 189, 248;
    --glow-color: 14, 165, 233;
    --tail-color: 224, 247, 255;
}

.tone-coral {
    --core-color: 251, 113, 133;
    --glow-color: 244, 63, 94;
    --tail-color: 255, 224, 230;
}

.tone-lime {
    --core-color: 132, 204, 22;
    --glow-color: 101, 163, 13;
    --tail-color: 234, 254, 220;
}

.tone-amber {
    --core-color: 251, 191, 36;
    --glow-color: 245, 158, 11;
    --tail-color: 255, 246, 214;
}

.tone-pink {
    --core-color: 244, 114, 182;
    --glow-color: 236, 72, 153;
    --tail-color: 255, 224, 241;
}

.tone-sky {
    --core-color: 96, 165, 250;
    --glow-color: 59, 130, 246;
    --tail-color: 227, 240, 255;
}

.tone-indigo {
    --core-color: 129, 140, 248;
    --glow-color: 99, 102, 241;
    --tail-color: 229, 231, 255;
}

.font-display {
    font-family: 'Archivo', sans-serif;
}

.bg-amazon-ink {
    background-color: var(--amazon-ink);
}

.bg-amazon-night {
    background-color: var(--amazon-night);
}

.bg-amazon-gold {
    background-color: var(--amazon-gold);
}

.bg-amazon-sand {
    background-color: var(--amazon-sand);
}

.text-amazon-gold {
    color: var(--amazon-gold);
}

.text-amazon-sand {
    color: var(--amazon-sand);
}

.amazon-link {
    border-radius: 0.5rem;
    padding: 0.4rem 0.75rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.86);
    transition: background-color 0.2s ease, color 0.2s ease;
}

.amazon-link:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.amazon-link.is-active {
    background-color: rgba(254, 189, 105, 0.2);
    color: var(--amazon-sand);
}

.site-secondary-nav {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    width: 100%;
    overflow-x: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.85rem;
    padding: 0.28rem;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
    scrollbar-width: thin;
}

.site-secondary-nav::-webkit-scrollbar {
    height: 6px;
}

.site-secondary-nav::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.25);
    border-radius: 999px;
}

.site-nav-link {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 0.62rem;
    padding: 0.45rem 0.82rem;
    font-size: 0.91rem;
    font-weight: 700;
    line-height: 1;
    color: rgba(255, 255, 255, 0.92);
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.site-nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.site-nav-link.is-active {
    background: linear-gradient(140deg, rgba(254, 189, 105, 0.36), rgba(254, 189, 105, 0.14));
    border-color: rgba(254, 189, 105, 0.58);
    color: #ffe1a9;
}

.site-nav-link:focus-visible {
    outline: 2px solid rgba(254, 189, 105, 0.8);
    outline-offset: 2px;
}

.link-hover {
    transition: color 0.2s ease;
}

.link-hover:hover {
    color: var(--amazon-sand);
}

.hero-surface {
    position: relative;
    background: linear-gradient(125deg, var(--amazon-ink) 0%, var(--amazon-night) 58%, #1f3f62 100%);
    box-shadow: 0 22px 45px rgba(19, 25, 33, 0.28);
}

.hero-surface::before {
    position: absolute;
    inset: 0;
    z-index: 0;
    content: '';
    background:
        radial-gradient(circle at 80% 10%, rgba(254, 189, 105, 0.22), transparent 36%),
        radial-gradient(circle at 5% 95%, rgba(255, 153, 0, 0.12), transparent 36%);
}

.surface-card {
    border: 1px solid #d9e3ea;
    border-radius: 1rem;
    background-color: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.surface-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.12);
}

.products-filter-sticky {
    position: static;
}

.products-table-modern {
    border: 1px solid #d4c8c1;
    border-radius: 1rem;
    background: linear-gradient(180deg, #f8f0eb 0%, #f1e4df 100%);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
}

.products-table-modern table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.products-table-modern thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    border-bottom: 1px solid #cfbeb6;
    background: linear-gradient(180deg, #fff9f4 0%, #f2e4dd 100%);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #334155;
}

.products-table-modern tbody td {
    border-top: 1px solid rgba(193, 169, 157, 0.56);
}

.products-table-modern tbody tr {
    transition: background-color 0.22s ease;
}

.products-table-modern tbody tr:nth-child(odd) {
    background: rgba(255, 255, 255, 0.58);
}

.products-table-modern tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.38);
}

.products-table-modern tbody tr:hover {
    background: rgba(255, 255, 255, 0.86);
}

.products-table-modern td[data-label='Price'] {
    white-space: normal;
    line-height: 1.28;
}

.products-table-modern td[data-label='Total'] {
    white-space: nowrap;
}

.products-table-modern td[data-label='Total'] [data-line-total] {
    display: inline-flex;
    min-width: 100px;
    justify-content: flex-start;
    color: #075985;
}

.products-table-modern td[data-label='Add to cart'] .btn {
    width: 100%;
    justify-content: center;
}

@media (min-width: 1024px) {
    .products-filter-sticky {
        position: sticky;
        top: var(--store-header-offset, 12rem);
        max-height: calc(100vh - var(--store-header-offset, 12rem) - 1rem);
        overflow-y: auto;
        scrollbar-gutter: stable;
    }
}

@media (max-width: 1023px) {
    .products-table-mobile {
        overflow-x: visible;
        border-radius: 0.5rem;
    }

    .products-table-mobile thead {
        display: none;
    }

    .products-table-mobile table {
        display: block;
        width: 100%;
        border-collapse: initial;
    }

    .products-table-mobile tbody {
        display: flex;
        flex-direction: column;
        gap: 0.85rem;
        padding: 0.6rem;
    }

    /* Override all Tailwind padding on mobile */
    .products-table-mobile tbody td {
        padding: 0 !important;
        margin: 0 !important;
        display: block !important;
        width: auto !important;
        border: none !important;
        background: none !important;
    }

    /* Mobile Card Container - Convert table row to grid */
    .products-table-mobile tbody tr {
        display: grid;
        grid-template-columns: 70px 1fr;
        grid-template-rows: auto auto auto auto;
        grid-template-areas:
            'image product'
            'image price'
            'qty qty'
            'button button';
        gap: 0.5rem;
        border: 1px solid #d4c8c1;
        border-radius: 0.6rem;
        background: linear-gradient(135deg, #ffffff 0%, #f9f5f2 100%);
        box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
        padding: 0.6rem;
        align-items: start;
        align-content: start;
        transition: all 0.2s ease;
        border-bottom: none !important;
        position: relative;
    }

    .products-table-mobile tbody tr:hover {
        background: linear-gradient(135deg, #ffffff 0%, #f5ede6 100%);
        box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1);
        border-color: #c0392b;
    }

    /* Image Cell */
    .products-table-mobile td[data-label='image'] {
        grid-area: image;
        display: flex !important;
        align-items: center;
        justify-content: center;
    }

    .products-table-mobile td[data-label='image'] a {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .products-table-mobile td[data-label='image'] img {
        width: 70px;
        height: 70px;
        object-fit: cover;
        border-radius: 0.5rem;
        border: 1px solid #e0d5cf;
        background: #f8f0ea;
        display: block;
    }

    /* Product Name Cell */
    .products-table-mobile td[data-label='product'] {
        grid-area: product;
        display: flex !important;
        flex-direction: column;
        gap: 0.25rem;
        justify-content: flex-start;
    }

    .products-table-mobile td[data-label='product'] a {
        font-size: 0.9rem;
        font-weight: 700;
        line-height: 1.25;
        color: #1a1a1a;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-decoration: none;
    }

    .products-table-mobile td[data-label='product'] a:hover {
        color: #c0392b;
        text-decoration: underline;
    }

    .products-table-mobile td[data-label='product'] p {
        font-size: 0.7rem;
        font-weight: 600;
        letter-spacing: 0.3px;
        margin: 0;
    }

    /* Price Cell */
    .products-table-mobile td[data-label='price'] {
        grid-area: price;
        display: flex !important;
        flex-direction: column;
        gap: 0.2rem;
        justify-content: flex-start;
    }

    .products-table-mobile td[data-label='price'] span[data-price-display] {
        font-size: 1rem;
        font-weight: 800;
        color: #c0392b;
        line-height: 1.1;
    }

    .products-table-mobile td[data-label='price'] p {
        font-size: 0.7rem;
        color: #666;
        margin: 0;
    }

    .products-table-mobile td[data-label='price'] .line-through {
        font-size: 0.7rem;
        color: #999;
        text-decoration: line-through;
        margin: 0;
    }

    /* Total Cell */
    .products-table-mobile td[data-label='total'] {
        display: block !important;
        padding: 0 !important;
        margin: 0 !important;
        position: absolute;
        right: 0.6rem;
        top: 2.8rem;
        font-size: 0.9rem;
        font-weight: 800;
        color: #c0392b;
        background: transparent;
        border: none;
    }

    .products-table-mobile td[data-label='total'] [data-line-total] {
        display: inline;
        font-size: 0.9rem;
        font-weight: 800;
        color: #c0392b;
    }

    /* Quantity Cell - Full Width */
    .products-table-mobile td[data-label='qty'] {
        grid-area: qty;
        display: flex !important;
        flex-direction: column;
        gap: 0.35rem;
        width: 100%;
    }

    .products-table-mobile td[data-label='qty'] label {
        font-size: 0.65rem;
        color: #666;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.2px;
        margin: 0;
    }

    .products-table-mobile td[data-label='qty'] select {
        width: 100%;
        min-height: 2rem;
        height: 2rem;
        padding: 0.3rem 0.5rem;
        border-radius: 0.45rem;
        font-size: 0.8rem;
        border: 1px solid #d0c5be;
        background: #f8f4f0;
        color: #333;
    }

    .products-table-mobile td[data-label='qty'] .inline-flex {
        border-radius: 0.45rem;
        overflow: hidden;
        border: 1px solid #d0c5be;
        background: #f0f0f0;
        height: 2rem;
        width: 100%;
        display: flex !important;
        align-items: stretch;
        gap: 0 !important;
    }

    .products-table-mobile td[data-label='qty'] .inline-flex button {
        width: 2rem;
        height: 2rem;
        padding: 0;
        font-size: 0.9rem;
        border: none;
        background: transparent;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #333;
        font-weight: 700;
        transition: background 0.2s;
        flex-shrink: 0;
    }

    .products-table-mobile td[data-label='qty'] .inline-flex button:hover:not(:disabled) {
        background: #e0e0e0;
    }

    .products-table-mobile td[data-label='qty'] .inline-flex button:disabled {
        opacity: 0.4;
        cursor: not-allowed;
    }

    .products-table-mobile td[data-label='qty'] .inline-flex input {
        flex: 1;
        width: auto !important;
        height: 2rem;
        border: 0;
        background: transparent;
        text-align: center;
        font-weight: 600;
        font-size: 0.95rem;
        color: #333;
    }

    .products-table-mobile td[data-label='qty'] .inline-flex input::-webkit-outer-spin-button,
    .products-table-mobile td[data-label='qty'] .inline-flex input::-webkit-inner-spin-button {
        -webkit-appearance: none;
        margin: 0;
    }

    .products-table-mobile td[data-label='qty'] .inline-flex input[type="number"] {
        -moz-appearance: textfield;
    }

    /* Add to Cart Button Cell */
    .products-table-mobile td[data-label='add-to-cart'] {
        grid-area: button;
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 100%;
        padding: 0 !important;
    }

    .products-table-mobile td[data-label='add-to-cart'] button {
        width: 100%;
        height: auto;
        min-height: 2.2rem;
        padding: 0.5rem !important;
        font-size: 0.75rem !important;
        font-weight: 700 !important;
        white-space: normal;
        line-height: 1.1;
        border-radius: 0.5rem;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 0.35rem;
        border: none !important;
        background: #c0392b !important;
        color: white !important;
        cursor: pointer;
        transition: all 0.2s;
        box-shadow: 0 2px 6px rgba(192, 57, 43, 0.3);
    }

    .products-table-mobile td[data-label='add-to-cart'] button:hover:not(:disabled) {
        background: #a93226 !important;
        box-shadow: 0 4px 10px rgba(192, 57, 43, 0.4);
        transform: translateY(-1px);
    }

    .products-table-mobile td[data-label='add-to-cart'] button:disabled {
        background: #ccc !important;
        color: #999 !important;
        cursor: not-allowed;
        box-shadow: none;
    }

    .products-table-mobile td[data-label='add-to-cart'] button i {
        font-size: 0.8rem;
        margin: 0 !important;
        display: inline;
    }
}

.product-thumb {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 0.8rem;
    background-color: #f1f5f9;
}

.price-current {
    font-size: 1.1rem;
    font-weight: 800;
    color: #0f766e;
}

.price-old {
    font-size: 0.8rem;
    color: #64748b;
    text-decoration: line-through;
}

.feature-pill {
    display: inline-flex;
    align-items: center;
    border: 1px solid #f5b24f;
    border-radius: 999px;
    background-color: #fff6e8;
    padding: 0.2rem 0.65rem;
    font-size: 0.73rem;
    font-weight: 700;
    color: #92400e;
}

.metric-chip {
    border: 1px solid #dbe5ef;
    border-radius: 0.75rem;
    background-color: #f8fafc;
    padding: 0.6rem 0.8rem;
}

.metric-chip .label {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #64748b;
}

.metric-chip .value {
    margin: 0.2rem 0 0;
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
}

.category-tile {
    display: block;
    height: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
    padding: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 26px rgba(15, 23, 42, 0.12);
}

.table-surface table {
    width: 100%;
    border-collapse: collapse;
}

.table-surface thead th {
    border-bottom: 1px solid #dbe4ea;
    background-color: #f8fafc;
    padding: 0.8rem 0.75rem;
    text-align: left;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #334155;
}

.table-surface tbody td {
    border-top: 1px solid #e2e8f0;
    padding: 0.8rem 0.75rem;
    vertical-align: top;
}

.table-surface tbody tr:hover {
    background-color: #f8fafc;
}

.qty-control {
    display: inline-flex;
    align-items: center;
    overflow: hidden;
    border: 1px solid #cbd5e1;
    border-radius: 0.7rem;
}

.qty-control button {
    border: 0;
    background: #f8fafc;
    padding: 0.35rem 0.7rem;
    font-weight: 800;
    color: #1e293b;
}

.qty-control input {
    width: 56px;
    border: 0;
    text-align: center;
    font-weight: 700;
    color: #0f172a;
}

.qty-control input:focus {
    outline: none;
}

.floating-whatsapp {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 60;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 999px;
    background-color: #25d366;
    padding: 0.68rem 1rem;
    font-size: 0.83rem;
    font-weight: 800;
    color: #fff;
    box-shadow: 0 14px 26px rgba(37, 211, 102, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.floating-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(37, 211, 102, 0.45);
}

.site-toast {
    position: fixed;
    left: 50%;
    bottom: 1rem;
    z-index: 80;
    min-width: 260px;
    max-width: calc(100vw - 2rem);
    transform: translateX(-50%);
    border: 1px solid #cbd5e1;
    border-radius: 0.8rem;
    background-color: #fff;
    padding: 0.7rem 0.9rem;
    font-size: 0.86rem;
    font-weight: 700;
    color: #0f172a;
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.18);
    animation: toastIn 0.2s ease forwards;
}

.site-toast.success {
    border-color: #86efac;
    background-color: #f0fdf4;
    color: #166534;
}

.site-toast.error {
    border-color: #fca5a5;
    background-color: #fef2f2;
    color: #991b1b;
}

.site-toast.info {
    border-color: #93c5fd;
    background-color: #eff6ff;
    color: #1d4ed8;
}

.cart-fly-rocket {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 95;
    display: block;
    width: clamp(3.3rem, 7vw, 4.3rem);
    height: clamp(3.3rem, 7vw, 4.3rem);
    background: transparent url('../images/rocket.png') center / contain no-repeat;
    pointer-events: none;
    opacity: 1;
    transform: translate3d(-9999px, -9999px, 0);
    transform-origin: center;
    will-change: transform, opacity;
    filter: drop-shadow(0 10px 14px rgba(15, 23, 42, 0.32)) drop-shadow(0 0 10px rgba(255, 166, 0, 0.45));
}

.cart-bump {
    animation: cartBump 0.52s cubic-bezier(0.22, 1, 0.36, 1);
}

.cart-launch {
    animation: cartLaunch 0.34s ease;
}

.cart-blast {
    position: fixed;
    z-index: 96;
    pointer-events: none;
    left: 0;
    top: 0;
    width: 0;
    height: 0;
    transform: translate(-50%, -50%);
}

.cart-blast-core {
    position: absolute;
    left: 0;
    top: 0;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 999px;
    background: radial-gradient(circle at 35% 35%, #fffbe6 0%, #ffd27a 45%, #ff8a00 100%);
    transform: translate(-50%, -50%) scale(0.35);
    opacity: 0.98;
    box-shadow: 0 0 0 4px rgba(255, 153, 0, 0.28), 0 0 22px rgba(255, 153, 0, 0.5);
    animation: cartBlastCore 0.55s ease-out forwards;
}

.cart-blast-ring {
    position: absolute;
    left: 0;
    top: 0;
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 999px;
    border: 2px solid rgba(255, 215, 120, 0.9);
    box-shadow: 0 0 14px rgba(255, 170, 0, 0.45);
    transform: translate(-50%, -50%) scale(0.2);
    opacity: 0.95;
    animation: cartBlastRing 0.75s ease-out forwards;
}

.cart-blast-spark {
    position: absolute;
    left: 0;
    top: 0;
    width: var(--spark-size, 0.42rem);
    height: var(--spark-size, 0.42rem);
    border-radius: 999px;
    background: radial-gradient(circle at 35% 35%, var(--spark-core, #fff8da) 0%, var(--spark-mid, #ffc15c) 58%, var(--spark-end, #ff8d00) 100%);
    transform: translate(-50%, -50%) rotate(var(--spark-tilt, 0deg)) translate(0, 0) scale(1);
    opacity: 0.95;
    box-shadow: 0 0 calc(var(--spark-size, 0.42rem) * 2.8) var(--spark-glow, rgba(255, 153, 0, 0.55));
    animation: cartBlastSpark var(--spark-duration, 0.55s) ease-out forwards;
    animation-delay: var(--spark-delay, 0s);
}

.cart-blast-spark.is-streak {
    width: calc(var(--spark-size, 0.42rem) * 1.9);
    height: calc(var(--spark-size, 0.42rem) * 0.58);
    border-radius: 999px;
}

.reveal-up {
    animation: riseIn 0.45s ease both;
}

.footer-link {
    color: #cbd5e1;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: var(--amazon-sand);
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translate(-50%, 20px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

@keyframes riseIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes cartBump {
    0% {
        transform: scale(1);
    }
    35% {
        transform: scale(1.17);
    }
    68% {
        transform: scale(0.96);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes cartLaunch {
    0% {
        transform: translateY(0) scale(1);
    }
    45% {
        transform: translateY(-2px) scale(0.96);
    }
    100% {
        transform: translateY(0) scale(1);
    }
}

@keyframes cartBlastCore {
    0% {
        transform: translate(-50%, -50%) scale(0.35);
        opacity: 0.98;
    }
    60% {
        transform: translate(-50%, -50%) scale(1.16);
        opacity: 0.78;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.35);
        opacity: 0;
    }
}

@keyframes cartBlastRing {
    0% {
        transform: translate(-50%, -50%) scale(0.2);
        opacity: 0.95;
    }
    100% {
        transform: translate(-50%, -50%) scale(2.25);
        opacity: 0;
    }
}

@keyframes cartBlastSpark {
    0% {
        transform: translate(-50%, -50%) rotate(var(--spark-tilt, 0deg)) translate(0, 0) scale(1);
        opacity: 0;
    }
    12% {
        opacity: 0.98;
    }
    100% {
        transform: translate(-50%, -50%) rotate(var(--spark-tilt, 0deg)) translate(var(--dx), var(--dy)) scale(0.12);
        opacity: 0;
    }
}

@keyframes crackerDrift {
    0% {
        transform: translate3d(0, 0, 0) scale(0.68) rotate(0deg);
        opacity: 0;
    }
    12% {
        opacity: 0.62;
    }
    70% {
        opacity: 0.54;
    }
    100% {
        transform: translate3d(var(--drift-x), -136vh, 0) scale(1.14) rotate(220deg);
        opacity: 0;
    }
}

@keyframes crackerPulse {
    0%,
    100% {
        filter: saturate(0.95) brightness(0.95);
    }
    50% {
        filter: saturate(1.2) brightness(1.08);
    }
}

@keyframes crackerTwinkle {
    0%,
    100% {
        box-shadow:
            0 0 0 1px rgba(255, 255, 255, 0.36),
            0 0 17px rgba(var(--glow-color), 0.48),
            0 0 34px rgba(var(--glow-color), 0.2);
    }
    50% {
        box-shadow:
            0 0 0 1px rgba(255, 255, 255, 0.5),
            0 0 24px rgba(var(--glow-color), 0.62),
            0 0 46px rgba(var(--glow-color), 0.3);
    }
}

@keyframes crackerAuraDrift {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    100% {
        transform: translate3d(6vw, -4vw, 0) scale(1.08);
    }
}

@media (max-width: 1024px) {
    .surface-card:hover {
        transform: none;
    }

    .hero-surface {
        padding: 1.25rem;
    }
}

@media (max-width: 768px) {
    .table-responsive {
        overflow-x: auto;
    }

    .table-grid-mobile.table-responsive {
        overflow-x: visible;
    }

    .table-grid-mobile thead {
        display: none;
    }

    .table-grid-mobile table,
    .table-grid-mobile tbody {
        display: block;
        width: 100%;
    }

    .table-grid-mobile tbody {
        padding: 0.45rem;
    }

    .table-grid-mobile tbody tr {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        grid-template-areas:
            'product product'
            'price stock'
            'qty total'
            'actions actions';
        gap: 0.45rem 0.6rem;
        margin-bottom: 0.55rem;
        border: 1px solid #dbe4ea;
        border-radius: 0.78rem;
        background-color: #fff;
        padding: 0.55rem;
    }

    .table-grid-mobile tbody td {
        display: block;
        width: 100%;
        border: 0;
        padding: 0;
        min-width: 0;
    }

    .table-grid-mobile tbody td[data-label='Product'] {
        grid-area: product;
    }

    .table-grid-mobile tbody td[data-label='Price'] {
        grid-area: price;
    }

    .table-grid-mobile tbody td[data-label='Stock'] {
        grid-area: stock;
    }

    .table-grid-mobile tbody td[data-label='Quantity'] {
        grid-area: qty;
    }

    .table-grid-mobile tbody td[data-label='Total'] {
        grid-area: total;
    }

    .table-grid-mobile tbody td[data-label='Actions'] {
        grid-area: actions;
    }

    .table-grid-mobile tbody td:not([data-label='Product'])::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 0.2rem;
        font-size: 0.62rem;
        font-weight: 800;
        letter-spacing: 0.03em;
        text-transform: uppercase;
        color: #64748b;
    }

    .table-grid-mobile tbody td[data-label='Product'] .flex {
        gap: 0.55rem;
    }

    .table-grid-mobile tbody td[data-label='Product'] img {
        width: 3.25rem;
        height: 3.25rem;
        border-radius: 0.45rem;
    }

    .table-grid-mobile tbody td[data-label='Product'] a.font-display {
        font-size: 0.98rem;
        line-height: 1.2;
    }

    .table-grid-mobile tbody td[data-label='Product'] p {
        display: none;
    }

    .table-grid-mobile .feature-pill {
        margin-top: 0.3rem;
        padding: 0.1rem 0.48rem;
        font-size: 0.66rem;
    }

    .table-grid-mobile .price-current {
        font-size: 0.95rem;
        line-height: 1.2;
    }

    .table-grid-mobile .price-old {
        font-size: 0.71rem;
    }

    .table-grid-mobile td[data-label='Stock'] span {
        font-size: 0.67rem;
        padding: 0.2rem 0.5rem;
    }

    .table-grid-mobile .qty-control {
        border-radius: 0.55rem;
    }

    .table-grid-mobile .qty-control button {
        padding: 0.24rem 0.48rem;
    }

    .table-grid-mobile .qty-control input {
        width: 36px;
        font-size: 0.8rem;
    }

    .table-grid-mobile [data-line-total] {
        font-size: 0.9rem;
    }

    .table-grid-mobile td[data-label='Actions'] .flex {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.35rem;
    }

    .table-grid-mobile .btn.btn-sm {
        min-height: 1.95rem;
        height: 1.95rem;
        padding-left: 0.45rem;
        padding-right: 0.45rem;
        font-size: 0.72rem;
    }

    .admin-panel .table-responsive {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    .admin-panel form .flex.gap-2 {
        flex-wrap: wrap;
    }

    .admin-panel form .flex.gap-2 > .btn,
    .admin-panel form .flex.gap-2 > a.btn {
        flex: 1 1 100%;
        justify-content: center;
    }

    .admin-panel .table-stack-mobile thead {
        display: none;
    }

    .admin-panel .table-stack-mobile table,
    .admin-panel .table-stack-mobile tbody,
    .admin-panel .table-stack-mobile tr,
    .admin-panel .table-stack-mobile td {
        display: block;
        width: 100%;
    }

    .admin-panel .table-stack-mobile tbody {
        padding: 0.55rem;
    }

    .admin-panel .table-stack-mobile tbody tr {
        margin-bottom: 0.7rem;
        border: 1px solid #dbe4ea;
        border-radius: 0.85rem;
        background-color: #fff;
        padding: 0.25rem 0;
    }

    .admin-panel .table-stack-mobile tbody td {
        border: 0;
        border-top: 1px solid #edf2f7;
        padding: 0.6rem 0.75rem;
    }

    .admin-panel .table-stack-mobile tbody td:first-child {
        border-top: 0;
    }

    .admin-panel .table-stack-mobile tbody td::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 0.3rem;
        font-size: 0.68rem;
        font-weight: 800;
        letter-spacing: 0.03em;
        text-transform: uppercase;
        color: #64748b;
    }

    .admin-panel .table-stack-mobile tbody td[colspan]::before {
        content: '';
        display: none;
    }

    .floating-whatsapp {
        right: 0.8rem;
        bottom: 0.9rem;
        padding: 0.58rem 0.9rem;
    }

    .site-toast {
        min-width: 0;
        width: calc(100vw - 1.25rem);
        max-width: calc(100vw - 1.25rem);
    }

    .cracker-float {
        width: 10px;
        opacity: 0.38;
    }

    .shape-comet {
        width: 14px;
    }

    .floating-crackers-layer::before,
    .floating-crackers-layer::after {
        opacity: 0.16;
        filter: blur(42px);
    }
}

@media (max-width: 640px) {
    .table-grid-mobile tbody {
        padding: 0.35rem;
    }

    .table-grid-mobile tbody tr {
        gap: 0.35rem 0.45rem;
        margin-bottom: 0.45rem;
        border-radius: 0.68rem;
        padding: 0.45rem;
    }

    .table-grid-mobile tbody td[data-label='Product'] img {
        width: 2.85rem;
        height: 2.85rem;
    }

    .table-grid-mobile tbody td[data-label='Product'] a.font-display {
        font-size: 0.9rem;
    }

    .table-grid-mobile .feature-pill {
        font-size: 0.62rem;
    }

    .table-grid-mobile .qty-control button {
        padding: 0.2rem 0.4rem;
    }

    .table-grid-mobile .qty-control input {
        width: 32px;
        font-size: 0.75rem;
    }

    .table-grid-mobile td[data-label='Actions'] .flex {
        gap: 0.3rem;
    }

    .table-grid-mobile .btn.btn-sm {
        min-height: 1.82rem;
        height: 1.82rem;
        font-size: 0.68rem;
    }

    .table-stack-mobile thead {
        display: none;
    }

    .table-stack-mobile table,
    .table-stack-mobile tbody,
    .table-stack-mobile tr,
    .table-stack-mobile td {
        display: block;
        width: 100%;
    }

    .table-stack-mobile tbody {
        padding: 0.55rem;
    }

    .table-stack-mobile tbody tr {
        margin-bottom: 0.7rem;
        border: 1px solid #dbe4ea;
        border-radius: 0.85rem;
        background-color: #fff;
        padding: 0.25rem 0;
    }

    .table-stack-mobile tbody td {
        border: 0;
        border-top: 1px solid #edf2f7;
        padding: 0.6rem 0.75rem;
    }

    .table-stack-mobile tbody td:first-child {
        border-top: 0;
    }

    .table-stack-mobile tbody td::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 0.3rem;
        font-size: 0.68rem;
        font-weight: 800;
        letter-spacing: 0.03em;
        text-transform: uppercase;
        color: #64748b;
    }

    .floating-whatsapp {
        padding: 0.62rem;
    }

    .floating-whatsapp span {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cracker-float {
        animation: none;
        top: auto;
        bottom: 10%;
        opacity: 0.2;
    }

    .floating-crackers-layer::before,
    .floating-crackers-layer::after {
        animation: none;
    }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    .no-print {
        display: none !important;
    }
    
    .glass {
        background: white !important;
        border: 1px solid #ddd !important;
    }
    
    .btn {
        background: #f8f9fa !important;
        color: #333 !important;
        border: 1px solid #ddd !important;
    }
}
