/* ── Animations & JS-rendered order components ── */
@import url('https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@400;500;600;700&family=DM+Serif+Display&display=swap');

:root {
    --accent: #c9853a;
    --accent2: #e8a84c;
    --primary: #1a1a2e;
    --success: #059669;
    --danger: #dc2626;
    --info: #0284c7;
    --border: #e5ddd3;
    --light: #f8f4ef;
}

/* Fonts */
body {
    font-family: 'Hind Siliguri', 'Inter', sans-serif;
}

.font-serif {
    font-family: 'DM Serif Display', serif;
}

/* Scroll appear */
.appear {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .55s ease, transform .55s ease;
}

.appear.vis {
    opacity: 1;
    transform: none;
}

/* Animations */
@keyframes blink {

    0%,
    100% {
        opacity: 1
    }

    50% {
        opacity: .35
    }
}

@keyframes heroFadeUp {
    from {
        opacity: 0;
        transform: translateY(30px)
    }

    to {
        opacity: 1;
        transform: none
    }
}

.hero-anim {
    animation: heroFadeUp .8s ease both;
}

.hero-anim-d1 {
    animation-delay: .15s;
}

.hero-anim-d2 {
    animation-delay: .3s;
}

.hero-anim-d3 {
    animation-delay: .45s;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    display: inline-block;
    animation: blink 1.4s infinite;
}

.sdot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #16a34a;
    display: inline-block;
    animation: blink 1.5s infinite;
}

/* ── ORDER COMPONENTS (JS-rendered) ── */
/* Product card */
.pc-wrap {
    background: #fff;
    border-radius: 14px;
    border: 1.5px solid var(--border);
    overflow: hidden;
    margin-bottom: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .06);
}

.pc-head {
    background: var(--primary);
    padding: .55rem 1rem;
    display: flex;
    align-items: center;
    gap: .5rem;
}

.pc-num {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pc-title {
    color: #fff;
    font-size: .87rem;
    font-weight: 600;
}

.pc-badge {
    margin-left: auto;
    font-size: .67rem;
    color: rgba(255, 255, 255, .6);
    border: 1px solid rgba(255, 255, 255, .2);
    padding: .12rem .5rem;
    border-radius: 10px;
}

.pc-body {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 1.1rem;
    padding: 1rem;
}

.pc-img-box {
    width: 130px;
    height: 168px;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid var(--border);
    background: var(--light);
    flex-shrink: 0;
}

.pc-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity .35s;
}

.pc-label {
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #9ca3af;
    margin-bottom: .45rem;
    display: block;
}

/* Color swatches */
.sw-row {
    display: flex;
    flex-wrap: wrap;
    gap: .42rem;
    margin-bottom: .7rem;
}

.sw {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 3px solid transparent;
    cursor: pointer;
    transition: all .22s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, .18);
    position: relative;
}

.sw:hover {
    border-color: var(--accent);
    transform: scale(1.1);
}

.sw.on {
    border-color: var(--accent);
    transform: scale(1.12);
}

.sw.on::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid #fff;
    pointer-events: none;
}

.sw.off {
    opacity: .32;
    cursor: not-allowed;
}

/* Stock-out color swatch: show with diagonal red line */
.sw.stock-out-sw {
    opacity: .5;
    cursor: not-allowed;
}
.sw.stock-out-sw::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, transparent 40%, rgba(220,38,38,.75) 40%, rgba(220,38,38,.75) 60%, transparent 60%);
    pointer-events: none;
}

.cpick {
    font-size: .8rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: .6rem;
    min-height: 18px;
}

/* Size buttons */
.sz-row {
    display: flex;
    flex-wrap: wrap;
    gap: .38rem;
}

.sz {
    padding: .27rem .62rem;
    border-radius: 7px;
    border: 1.5px solid var(--border);
    background: #fff;
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
    color: #374151;
    line-height: 1.4;
}

.sz:hover,
.sz.on {
    border-color: var(--accent);
    background: var(--accent);
    color: #fff;
}

/* Same size toggle */
.ss-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(2, 132, 199, .06);
    border: 1.5px solid rgba(2, 132, 199, .2);
    border-radius: 10px;
    padding: .72rem 1rem;
    margin: .7rem 0;
    cursor: pointer;
    user-select: none;
    transition: .2s;
}

.ss-bar:hover {
    background: rgba(2, 132, 199, .1);
}

.ss-pill {
    width: 40px;
    height: 22px;
    border-radius: 11px;
    background: var(--border);
    position: relative;
    transition: .3s;
    flex-shrink: 0;
}

.ss-pill.on {
    background: var(--info);
}

.ss-pill::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    transition: .3s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
}

.ss-pill.on::after {
    left: 21px;
}

/* Responsive order card */
@media(max-width:580px) {
    .pc-body {
        grid-template-columns: 1fr;
    }

    .pc-img-box {
        width: 100%;
        height: 180px;
    }
}