/* Base typography */
:root {
    --bg: #f8fafc;
    --surface: #ffffff;
    --muted: #6b7280;
    --text: #0f172a;
    --primary: #2563eb;
    /* brand blue */
    --primary-2: #06b6d4;
    /* accent */
    --card-radius: 16px;
    --card-shadow: 0 20px 40px -6px rgba(0, 0, 0, 0.06), 0 8px 16px -6px rgba(0, 0, 0, 0.03);
}

body,
button,
input,
select,
textarea {
    font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    color: var(--text);
    background-color: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Standard components */
.card {
    background: var(--surface);
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
}

.btn-primary {
    background: linear-gradient(90deg, var(--primary), var(--primary-2));
    color: white;
    padding: 10px 14px;
    border-radius: 10px;
    font-weight: 700;
    border: none;
    display: inline-block;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
    transition: all 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.12);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 1.5px solid rgba(255, 255, 255, 0.9);
    padding: 8px 12px;
    border-radius: 10px;
    font-weight: 600;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.06);
}

.poster-image {
    transition: transform 0.3s ease;
}

.poster-image:hover {
    transform: scale(1.05);
}

.sale-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    background: linear-gradient(90deg, #ef4444, #f97316);
    color: #fff;
    padding: 2px 5px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 10px;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.15);
    z-index: 20;
}



.zoomable {
    transition: transform 0.2s;
    cursor: zoom-in;
}

.zoomable.zoomed {
    transform: scale(1.35);
    cursor: zoom-out;
}

.announcement-bar {
    background: linear-gradient(90deg, #4f46e5, #ec4899);
    color: white;
    padding: 8px 0;
    text-align: center;
    font-weight: 500;
}

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}


/* Fix for all poster images */
.poster-image {
    width: 100% !important;
    height: 180px !important;
    object-fit: cover !important;
    object-position: center !important;
    -webkit-object-fit: cover !important;
    -webkit-object-position: center !important;
    display: block !important;
    max-width: 100% !important;
}

/* Fix for all cards */
.poster-card {
    width: 180px !important;
    flex: 0 0 auto !important;
    display: flex !important;
    flex-direction: column !important;
    transition: transform 360ms cubic-bezier(.2, .9, .2, 1), opacity 360ms ease, box-shadow 360ms ease;
    will-change: transform, opacity;
}

/* Centered card effect (slight zoom + nudge) */
.poster-card.center-card {
    transform: translateY(-6px) scale(1.06) !important;
    z-index: 10;
    box-shadow: 0 10px 28px rgba(14, 30, 60, 0.18);
    opacity: 1;
}

.poster-card.center-card .poster-image {
    transform: scale(1.06);
    transition: transform 420ms cubic-bezier(.2, .9, .2, 1);
    animation: nudgeX 1.2s ease 0s 1;
}

.poster-card:not(.center-card) {
    opacity: 0.92;
    filter: brightness(0.96);
    transform: none !important;
    box-shadow: none;
}

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

    25% {
        transform: translateX(-6px);
    }

    75% {
        transform: translateX(6px);
    }

    100% {
        transform: translateX(0);
    }
}

/* Poster overlay and primary button */
.poster-card .poster-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 10px;
    gap: 6px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 220ms ease;
}

.poster-card:hover .poster-overlay,
.poster-card.center-card .poster-overlay {
    opacity: 1;
    pointer-events: auto;
}

.btn-primary {
    background: linear-gradient(90deg, #2563eb, #06b6d4);
    color: white;
    padding: 6px 10px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.14);
    transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(37, 99, 235, 0.18);
}

/* Price chips/list for poster cards */
.price-list {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.price-item {
    background: rgba(37, 99, 235, 0.06);
    color: #0b1220;
    padding: 6px 8px;
    border-radius: 8px;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.price-item .label {
    font-weight: 600;
    color: #2563eb;
}

.price-item .old {
    text-decoration: line-through;
    color: #9ca3af;
    font-weight: 500;
    font-size: 11px;
}

.price-item .amount {
    font-weight: 700;
    color: #064e3b;
}

/* Size option buttons in product detail */
.size-option {
    border-radius: 10px;
    padding: 8px 10px;
    border: 1px solid #e6e9ef;
    background: white;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.size-option.selected {
    border-color: rgba(37, 99, 235, 0.9);
    background: linear-gradient(90deg, rgba(37, 99, 235, 0.06), rgba(6, 182, 212, 0.03));
    color: #0b1220;
}

.product-price-large {
    font-size: 1.6rem;
    font-weight: 800;
    color: #0b1220;
}

/* Cart toast and icon glow */
.cart-toast {
    position: fixed;
    right: 20px;
    bottom: 20px;
    background: linear-gradient(90deg, #064e3b, #2563eb);
    color: white;
    padding: 10px 14px;
    border-radius: 10px;
    box-shadow: 0 12px 40px rgba(6, 78, 59, 0.25);
    z-index: 9999;
    opacity: 0;
    transform: translateY(10px) scale(0.98);
    transition: all 260ms cubic-bezier(.2, .9, .2, 1);
    pointer-events: none;
    display: inline-block;
    min-width: 180px;
}

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

.cart-toast .title {
    font-weight: 700;
    margin-bottom: 3px;
}

.cart-toast .count {
    font-weight: 600;
    opacity: 0.9;
}

/* cart-glow removed: icon will no longer glow on add-to-cart */


/* Slide Counter for Category */
.category-counter {
    text-align: center;
    margin-top: 8px;
    font-weight: 600;
    color: #2563eb;
    font-size: 14px;
    letter-spacing: 0.5px;
}

/* Safari-specific fixes */
.scroll-container {
    display: -webkit-flex !important;
    display: flex !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    gap: 12px !important;
}

/* Animated Wave Gradient - Colors flowing Right to Left */
@keyframes waveFlow {
    0% {
        background-position: 200% 0;
    }

    50% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

@keyframes colorShift {
    0% {
        filter: hue-rotate(0deg);
    }

    25% {
        filter: hue-rotate(30deg);
    }

    50% {
        filter: hue-rotate(60deg);
    }

    75% {
        filter: hue-rotate(30deg);
    }

    100% {
        filter: hue-rotate(0deg);
    }
}

.gradient-hero {
    background: linear-gradient(90deg,
            #1e40af 0%,
            #2563eb 15%,
            #0ea5e9 30%,
            #06b6d4 45%,
            #0891b2 60%,
            #2563eb 75%,
            #1e40af 90%,
            #1e40af 100%);
    background-size: 200% 100%;
    animation: waveFlow 20s ease-in-out infinite, colorShift 25s ease-in-out infinite;
    position: relative;
    box-shadow: inset 0 0 80px rgba(59, 130, 246, 0.5),
        0 0 50px rgba(6, 182, 212, 0.4),
        inset -100px 0 100px rgba(14, 165, 233, 0.3);
}

.gradient-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(90deg,
            transparent 0%,
            rgba(59, 130, 246, 0.3) 20%,
            rgba(6, 182, 212, 0.3) 50%,
            rgba(14, 165, 233, 0.3) 80%,
            transparent 100%);
    animation: waveFlow 20s ease-in-out infinite reverse;
    pointer-events: none;
}

.gradient-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse 800px 100px at 0% 50%,
            rgba(59, 130, 246, 0.4) 0%,
            transparent 60%);
    animation: waveFlow 20s ease-in-out infinite;
    pointer-events: none;
}

/* About Us Box with Wave Gradient */
.gradient-about-box {
    background: linear-gradient(90deg,
            #1e40af 0%,
            #2563eb 15%,
            #0ea5e9 30%,
            #06b6d4 45%,
            #0891b2 60%,
            #2563eb 75%,
            #1e40af 90%,
            #1e40af 100%);
    background-size: 200% 100%;
    animation: waveFlow 20s ease-in-out infinite, colorShift 25s ease-in-out infinite;
    box-shadow:
        inset 0 0 80px rgba(59, 130, 246, 0.3),
        0 0 30px rgba(6, 182, 212, 0.3),
        inset -100px 0 100px rgba(14, 165, 233, 0.2);
    position: relative;
    overflow: hidden;
}

/* Full Footer Gradient (applies same wave + glow to the whole footer) */
.gradient-footer {
    background: linear-gradient(90deg,
            #1e40af 0%,
            #2563eb 15%,
            #0ea5e9 30%,
            #06b6d4 45%,
            #0891b2 60%,
            #2563eb 75%,
            #1e40af 90%,
            #1e40af 100%);
    background-size: 200% 100%;
    animation: waveFlow 20s ease-in-out infinite, colorShift 25s ease-in-out infinite;
    box-shadow:
        inset 0 0 100px rgba(59, 130, 246, 0.35),
        0 0 50px rgba(6, 182, 212, 0.25);
    position: relative;
    overflow: hidden;
}

.gradient-footer::before,
.gradient-about-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(90deg,
            transparent 0%,
            rgba(59, 130, 246, 0.25) 20%,
            rgba(6, 182, 212, 0.25) 50%,
            rgba(14, 165, 233, 0.25) 80%,
            transparent 100%);
    animation: waveFlow 20s ease-in-out infinite reverse;
    pointer-events: none;
}

.gradient-footer::after,
.gradient-about-box::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse 800px 100px at 0% 50%,
            rgba(59, 130, 246, 0.18) 0%,
            transparent 60%);
    animation: waveFlow 20s ease-in-out infinite;
    pointer-events: none;
}

.gradient-about-box>*,
.gradient-footer>* {
    position: relative;
    z-index: 1;
}

/* Footer typography and contrast improvements */
.gradient-footer .max-w-7xl {
    background: rgba(0, 0, 0, 0.28);
    padding: 1.25rem;
    border-radius: 0.6rem;
}

/* Navbar link style */
.nav-link {
    color: #374151;
    padding: 6px 8px;
    border-radius: 8px;
    font-weight: 600;
    transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.nav-link:hover {
    background: rgba(37, 99, 235, 0.06);
    color: #1e40af;
    transform: translateY(-1px);
}

/* Shiny site title */
.brand-shiny {
    position: relative;
    display: inline-block;
    color: var(--primary);
    font-weight: 800;
    letter-spacing: 0.6px;
    -webkit-font-smoothing: antialiased;
}

.brand-shiny::after {
    content: "";
    position: absolute;
    top: -10%;
    left: -60%;
    height: 120%;
    width: 40%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.95) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-20deg);
    filter: blur(6px);
    opacity: 0.95;
    pointer-events: none;
    mix-blend-mode: screen;
    animation: shine 2.6s linear infinite;
}

@keyframes shine {
    0% {
        left: -60%;
    }

    100% {
        left: 160%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .brand-shiny::after {
        animation: none;
        opacity: 0;
    }
}

/* Preloader styles */
#page-preloader {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.98);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 260ms ease, visibility 260ms ease;
}

#page-preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.preloader-brand {
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--primary);
}

.preloader-spinner {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: 6px solid rgba(37, 99, 235, 0.12);
    border-top-color: var(--primary);
    animation: spin 1s linear infinite;
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.12);
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .preloader-spinner {
        animation: none;
    }
}

.gradient-footer h3 {
    color: #ffffff;
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
}

.gradient-footer p,
.gradient-footer li,
.gradient-footer a {
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.98rem;
    line-height: 1.6;
}

.gradient-footer a:hover {
    color: #dbeafe;
    text-decoration: underline;
}

.gradient-footer .contact p {
    color: #e6f8ff;
    font-weight: 600;
}

.social-icons i {
    color: #ffffff;
    transition: transform 0.18s ease, color 0.18s ease;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.social-icons a:hover i {
    transform: translateY(-3px) scale(1.06);
    color: #a5f3fc;
}

@media (max-width: 640px) {
    .gradient-footer .max-w-7xl {
        padding: 1rem;
    }

    .gradient-footer h3 {
        font-size: 1rem;
    }

    .gradient-footer p,
    .gradient-footer a {
        font-size: 0.95rem;
    }
}

/* Accessibility: respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {

    .gradient-hero,
    .gradient-footer,
    .gradient-about-box,
    .poster-card .poster-image,
    .poster-card.center-card .poster-image {
        animation: none !important;
        transition: none !important;
    }
}

/* Marquee CSS */
@keyframes marquee {
    0% {
        transform: translateX(0);
    }

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

/* Optional: pause on hover */
#free-delivery-marquee:hover {
    animation-play-state: paused;
}

/* Custom Scrollbar */
.custom-scrollbar {
    scrollbar-width: thin;
    scrollbar-color: #cbd5e0 #f1f5f9;
}

.custom-scrollbar::-webkit-scrollbar {
    height: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.custom-scrollbar.dragging,
#reviews-container.dragging {
    cursor: grabbing;
    cursor: -webkit-grabbing;
}

/* Responsive iframe wrapper: default 16:9 aspect ratio, fills container */
.responsive-iframe-wrapper {
    position: relative;
    width: 100%;
}

.responsive-iframe-wrapper::before {
    content: "";
    display: block;
    padding-top: 56.25%;
    /* 16:9 */
}

.responsive-iframe-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

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

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

/* Optional: pause on hover */
#free-delivery-marquee:hover {
    animation-play-state: paused;
}

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

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

#scrollTopBtn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.4);
    color: white;
    font-size: 18px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

/* Professional Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 30px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

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

.animate-on-scroll {
    opacity: 0;
    will-change: opacity, transform;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: none;
}

.fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.scale-in {
    animation: scaleIn 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.stagger-1 {
    animation-delay: 100ms;
}

.stagger-2 {
    animation-delay: 200ms;
}

.stagger-3 {
    animation-delay: 300ms;
}

.stagger-4 {
    animation-delay: 400ms;
}

/* Micro-interactions */
.btn-primary:active,
.btn-outline:active {
    transform: scale(0.96);
}

.nav-link {
    transition: color 0.2s, transform 0.2s;
}

.nav-link:active {
    transform: scale(0.95);
}