/*
 * চাঁদপুর ইলিশ — "HILISH PREMIUM" THEME v2
 * Vanilla CSS translation of the React/Tailwind prototype
 * Marine blue + Flame orange palette · Glassmorphism · Mobile-first
 */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Hind+Siliguri:wght@300;400;500;600;700&display=swap');

/* ===== CSS VARIABLES (from prototype Tailwind config) ===== */
:root {
    /* Marine palette */
    --marine-50:  #F0F9FF;
    --marine-100: #E0F2FE;
    --marine-200: #BAE6FD;
    --marine-300: #7DD3FC;
    --marine-400: #38BDF8;
    --marine-500: #0EA5E9;
    --marine-600: #0284C7;
    --marine-700: #0369A1;
    --marine-800: #075985;
    --marine-900: #0C4A6E;

    /* Flame palette */
    --flame-50:  #FFF7ED;
    --flame-100: #FFEDD5;
    --flame-200: #FED7AA;
    --flame-300: #FDBA74;
    --flame-400: #FB923C;
    --flame-500: #F97316;
    --flame-600: #EA580C;
    --flame-700: #C2410C;

    /* Semantic */
    --bg-main:      #F8FAFC;
    --bg-section:   #F1F5F9;
    --surface:      #FFFFFF;
    --surface-hover:#F8FAFC;
    --border:       #E2E8F0;
    --border-light: rgba(226,232,240,0.6);
    --text-primary: #0F172A;
    --text-secondary:#64748B;
    --text-muted:   #94A3B8;
    --success:      #22c55e;
    --danger:       #ef4444;
    --warning:      #f59e0b;

    /* Typography */
    --font-bn:      'Hind Siliguri', sans-serif;
    --font-sans:    'Poppins', sans-serif;

    /* Radii */
    --radius-sm:    12px;
    --radius-md:    20px;
    --radius-lg:    28px;
    --radius-xl:    36px;

    /* Shadows */
    --shadow-sm:    0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md:    0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg:    0 10px 40px rgba(0,0,0,0.10);
    --shadow-marine:0 8px 32px rgba(3,105,161,0.18);
    --shadow-flame: 0 8px 32px rgba(249,115,22,0.28);
}

/* ===== KEYFRAMES ===== */
@keyframes float-slow {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50%       { transform: translateY(-18px) rotate(2deg); }
}
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(249,115,22,0.55); }
    50%       { box-shadow: 0 0 0 16px rgba(249,115,22,0); }
}
@keyframes play-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%       { transform: scale(1.08); opacity: 0.85; }
}
@keyframes fade-up {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes slide-up {
    from { opacity: 0; transform: translateY(20px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
@keyframes bounce-dot {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-6px); }
}
@keyframes auto-slide {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
@keyframes shimmer {
    0%   { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* ===== GLOBAL RESETS ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; }

body {
    font-family: var(--font-bn);
    background-color: var(--bg-main);
    color: var(--text-secondary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-bn);
    color: var(--text-primary);
    line-height: 1.25;
    font-weight: 700;
}

img { max-width: 100%; height: auto; display: block; user-select: none; -webkit-user-drag: none; }
a   { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ===== LAYOUT ===== */
.cfi-container {
    width: 100%;
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: 20px;
}
@media (min-width: 768px) { .cfi-container { padding-inline: 32px; } }

.cfi-section { padding: 64px 0; }
@media (min-width: 768px) { .cfi-section { padding: 96px 0; } }

.cfi-section-header { text-align: center; margin-bottom: 48px; }
.cfi-section-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: 999px;
    background: var(--marine-50);
    color: var(--marine-700);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 16px;
    font-family: var(--font-sans);
}
.cfi-section-badge.flame {
    background: var(--flame-50);
    color: var(--flame-600);
}
.cfi-section-title { font-size: clamp(1.5rem, 3.5vw, 2.5rem); color: var(--text-primary); text-wrap: balance; }
.cfi-section-sub   { font-size: 1rem; color: var(--text-secondary); margin-top: 12px; }

/* ===== UTILITY ===== */
.glass-card {
    background: rgba(255,255,255,0.55);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.6);
}
.reveal { opacity: 0; }
.reveal.is-visible { animation: fade-up 0.7s cubic-bezier(0.22,1,0.36,1) forwards; }

/* ===== HEADER ===== */
.cfi-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(255,255,255,0.82);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    height: 64px;
}
.cfi-header__inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.cfi-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}
.cfi-logo__icon {
    width: 38px; height: 38px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--marine-600), var(--marine-800));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.cfi-logo__icon svg { width: 20px; height: 20px; color: white; stroke: white; fill: none; }
.cfi-logo__name {
    font-family: var(--font-bn);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-primary);
}
.cfi-nav-cta {
    font-family: var(--font-bn);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--marine-700);
    padding: 8px 20px;
    border-radius: 999px;
    border: 1.5px solid var(--marine-200);
    transition: all 0.2s ease;
}
.cfi-nav-cta:hover { background: var(--marine-50); color: var(--marine-800); }

/* ===== HERO SECTION ===== */
.cfi-hero {
    position: relative;
    overflow: hidden;
    padding-top: 112px;
    padding-bottom: 80px;
    padding-left: 20px;
    padding-right: 20px;
}
@media (min-width: 640px) { .cfi-hero { padding-top: 144px; } }

.cfi-hero__blob-bg {
    position: absolute; inset: 0; z-index: 0;
    background: linear-gradient(180deg, var(--marine-50) 0%, #ffffff 50%, var(--bg-section) 100%);
}
.cfi-hero__blob1 {
    position: absolute; top: 80px; left: -80px; z-index: 0;
    width: 288px; height: 288px;
    background: rgba(186,230,253,0.4);
    border-radius: 50%;
    filter: blur(80px);
}
.cfi-hero__blob2 {
    position: absolute; top: 160px; right: -80px; z-index: 0;
    width: 320px; height: 320px;
    background: rgba(254,215,170,0.3);
    border-radius: 50%;
    filter: blur(80px);
}
.cfi-hero__grid {
    position: relative; z-index: 1;
    max-width: 1200px;
    margin-inline: auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: center;
}
@media (min-width: 1024px) {
    .cfi-hero__grid { grid-template-columns: 1fr 1fr; }
}

/* Hero text */
.cfi-hero__text { text-align: center; order: 2; }
@media (min-width: 1024px) { .cfi-hero__text { text-align: left; order: 1; } }

.cfi-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 999px;
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(8px);
    border: 1px solid var(--marine-100);
    color: var(--marine-700);
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 24px;
    font-family: var(--font-sans);
}
.cfi-hero__badge svg { width: 14px; height: 14px; fill: currentColor; }

.cfi-hero__title {
    font-size: clamp(1.8rem, 4.5vw, 3.25rem);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    text-wrap: balance;
    margin-bottom: 20px;
}
.cfi-hero__desc {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.75;
    max-width: 440px;
    margin-inline: auto;
    margin-bottom: 32px;
}
@media (min-width: 1024px) { .cfi-hero__desc { margin-inline: 0; } }

.cfi-hero__actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    justify-content: center;
}
@media (min-width: 640px) { .cfi-hero__actions { flex-direction: row; } }
@media (min-width: 1024px) { .cfi-hero__actions { justify-content: flex-start; } }

.cfi-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 32px;
    border-radius: var(--radius-md);
    background: var(--flame-500);
    color: #fff;
    font-family: var(--font-bn);
    font-size: 1.1rem;
    font-weight: 700;
    box-shadow: var(--shadow-flame);
    animation: pulse-glow 2.5s ease-in-out infinite;
    transition: background 0.25s ease, transform 0.15s ease;
}
.cfi-btn-primary:hover  { background: var(--flame-600); }
.cfi-btn-primary:active { transform: scale(0.97); }

.cfi-hero__trust {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-family: var(--font-bn);
}
.cfi-hero__trust svg { width: 20px; height: 20px; color: var(--marine-600); stroke: var(--marine-600); fill: none; flex-shrink: 0; }

/* Hero image */
.cfi-hero__image-wrap { position: relative; order: 1; display: flex; justify-content: center; }
@media (min-width: 1024px) { .cfi-hero__image-wrap { order: 2; } }

.cfi-hero__image-glow {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
}
.cfi-hero__image-glow-inner {
    width: 320px; height: 320px;
    background: linear-gradient(135deg, rgba(186,230,253,0.5), rgba(254,215,170,0.4));
    border-radius: 50%;
    filter: blur(40px);
}
.cfi-hero__image-float {
    position: relative;
    animation: float-slow 6s ease-in-out infinite;
}
.cfi-hero__image-halo {
    position: absolute;
    inset: -16px;
    background: linear-gradient(135deg, rgba(186,230,253,0.4), rgba(254,215,170,0.3));
    border-radius: 36px;
    filter: blur(24px);
}
.cfi-hero__image-float img {
    position: relative;
    width: 288px; height: 288px;
    object-fit: cover;
    border-radius: 32px;
    box-shadow: var(--shadow-lg), 0 0 0 4px white;
}
@media (min-width: 640px) {
    .cfi-hero__image-float img { width: 384px; height: 384px; }
    .cfi-hero__image-glow-inner { width: 384px; height: 384px; }
}
.cfi-hero__live-badge {
    position: absolute;
    bottom: -16px; left: -16px;
    background: white;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-bn);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
}
@media (min-width: 640px) { .cfi-hero__live-badge { left: -32px; } }
.cfi-live-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--success);
    animation: pulse-glow 1.5s ease-in-out infinite;
    flex-shrink: 0;
}

/* Scroll hint */
.cfi-scroll-hint {
    display: none;
    margin: 48px auto 0;
    width: 40px; height: 40px;
    border-radius: 50%;
    background: white;
    box-shadow: var(--shadow-md);
    align-items: center;
    justify-content: center;
    color: var(--marine-600);
    animation: bounce-dot 2s ease-in-out infinite;
    cursor: pointer;
    border: none;
    position: relative;
    z-index: 1;
}
@media (min-width: 640px) { .cfi-scroll-hint { display: flex; } }
.cfi-scroll-hint svg { width: 20px; height: 20px; stroke: currentColor; fill: none; }

/* ===== TRUST STRIP ===== */
.cfi-trust {
    background: white;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 20px 0;
}
.cfi-trust__grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 32px;
}
.cfi-trust__item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-bn);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
}
.cfi-trust__item svg { width: 20px; height: 20px; color: var(--marine-600); stroke: var(--marine-600); fill: none; flex-shrink: 0; }

/* ===== WHY US SECTION ===== */
.cfi-whyus { background: var(--bg-main); }
.cfi-benefits__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}
@media (min-width: 768px) { .cfi-benefits__grid { grid-template-columns: repeat(3, 1fr); } }

.cfi-benefit-card {
    border-radius: var(--radius-lg);
    padding: 32px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: var(--shadow-sm);
}
.cfi-benefit-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-marine);
}
.cfi-benefit-card__icon {
    width: 64px; height: 64px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--marine-50), var(--marine-100));
    border: 1px solid var(--marine-100);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}
.cfi-benefit-card__icon svg { width: 28px; height: 28px; color: var(--marine-700); stroke: var(--marine-700); fill: none; }
.cfi-benefit-card h3 { font-size: 1.1rem; color: var(--text-primary); margin-bottom: 10px; }
.cfi-benefit-card p  { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.7; }

/* ===== VIDEO SECTION ===== */
.cfi-video-section { background: linear-gradient(180deg, transparent, rgba(240,249,255,0.4)); }
.cfi-video-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 64px;
}
@media (min-width: 1024px) { .cfi-video-layout { grid-template-columns: 1fr 1fr; } }

.cfi-video-thumb {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(3,105,161,0.15);
    aspect-ratio: 16/9;
    cursor: pointer;
}
.cfi-video-thumb video,
.cfi-video-thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}
.cfi-video-thumb:hover video,
.cfi-video-thumb:hover img { transform: scale(1.04); }

.cfi-video-info h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 16px; }
.cfi-video-info p  { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.8; margin-bottom: 24px; }
.cfi-video-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.cfi-video-tag {
    padding: 8px 16px;
    border-radius: 999px;
    background: white;
    color: var(--marine-700);
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid var(--marine-100);
    box-shadow: var(--shadow-sm);
    font-family: var(--font-bn);
}

/* ===== GALLERY ===== */
.cfi-gallery-heading { margin-bottom: 16px; }
.cfi-gallery-heading h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }

.cfi-gallery-masonry {
    column-count: 2;
    column-gap: 16px;
}
@media (min-width: 768px) { .cfi-gallery-masonry { column-count: 3; } }

.cfi-gallery-item {
    break-inside: avoid;
    margin-bottom: 16px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    cursor: pointer;
}
.cfi-gallery-item img {
    width: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}
.cfi-gallery-item:hover img { transform: scale(1.06); }

/* ===== SLIDER (hero & gallery) ===== */
.cfi-slider-wrapper { position: relative; overflow: hidden; }
.cfi-slider-viewport { position: relative; overflow: hidden; border-radius: var(--radius-xl); }
.cfi-slider-track {
    display: flex;
    transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}
.cfi-slide { position: relative; flex: 0 0 100%; min-width: 0; aspect-ratio: 4/3; overflow: hidden; }
.cfi-slide img {
    width: 100%; height: 100%;
    object-fit: cover;
    user-select: none; pointer-events: none;
}
.cfi-slider-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    z-index: 10;
    width: 40px; height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s, box-shadow 0.2s;
}
.cfi-slider-arrow:hover { background: white; box-shadow: var(--shadow-md); }
.cfi-slider-arrow svg { width: 18px; height: 18px; stroke: var(--text-primary); fill: none; }
.cfi-prev { left: 12px; }
.cfi-next { right: 12px; }
.cfi-slider-dots { display: flex; justify-content: center; gap: 6px; margin-top: 14px; }
.cfi-slider-dot {
    width: 8px; height: 8px;
    border-radius: 4px;
    background: var(--border);
    transition: background 0.3s, width 0.3s;
}
.cfi-slider-dot.is-active { background: var(--marine-500); width: 20px; }
.cfi-slider-track.is-dragging { transition: none !important; cursor: grabbing; }

/* ===== REVIEWS ===== */
.cfi-reviews-section { background: var(--bg-main); }
.cfi-reviews-text-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 40px;
}
@media (min-width: 768px) { .cfi-reviews-text-grid { grid-template-columns: repeat(3, 1fr); } }

.cfi-review-text-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.cfi-review-text-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.cfi-review-stars { display: flex; gap: 4px; margin-bottom: 16px; }
.cfi-review-stars svg { width: 20px; height: 20px; color: #f59e0b; fill: #f59e0b; }
.cfi-review-text { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.8; margin-bottom: 20px; }
.cfi-reviewer { display: flex; align-items: center; gap: 12px; }
.cfi-reviewer__avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--marine-100), var(--marine-200));
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 1.1rem; color: var(--marine-700);
    flex-shrink: 0;
}
.cfi-reviewer__name { font-weight: 700; font-size: 0.9rem; color: var(--text-primary); }
.cfi-reviewer__loc  { font-size: 0.75rem; color: var(--text-muted); }

/* Reviews image carousel */
.cfi-reviews-wrapper {
    position: relative;
    overflow: hidden;
}
.cfi-reviews-track {
    display: flex;
    gap: 16px;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 4px;
}
.cfi-reviews-track::-webkit-scrollbar { display: none; }
.cfi-review-card {
    flex: 0 0 280px;
    scroll-snap-align: start;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}
.cfi-review-card img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
}
@media (min-width: 640px) { .cfi-review-card { flex: 0 0 320px; } }

/* ===== DELIVERY NOTICE ===== */
.cfi-delivery-notice { padding: 0 20px 32px; }
.cfi-notice-card {
    max-width: 1200px;
    margin-inline: auto;
    display: flex;
    gap: 12px;
    padding: 20px;
    border-radius: var(--radius-md);
    background: #FEF2F2;
    border: 1px solid #FECACA;
}
.cfi-notice-card svg { width: 22px; height: 22px; stroke: var(--danger); fill: none; flex-shrink: 0; margin-top: 2px; }
.cfi-notice-card p {
    font-size: 0.875rem;
    color: #991B1B;
    line-height: 1.75;
    font-family: var(--font-bn);
}
.cfi-notice-card strong { font-weight: 700; }

/* ===== CHECKOUT ===== */
.cfi-checkout { padding: 64px 20px 96px; scroll-margin-top: 72px; }
@media (min-width: 768px) { .cfi-checkout { padding: 96px 20px 96px; } }
.cfi-checkout-wrapper { max-width: 760px; margin-inline: auto; }

/* Order summary bar */
.cfi-order-summary-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    background: var(--text-primary);
    color: white;
    cursor: pointer;
    user-select: none;
}
.cfi-order-summary-bar-left {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-bn);
    font-weight: 500;
    font-size: 0.95rem;
}
.cfi-chevron {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}
.cfi-chevron svg { width: 20px; height: 20px; stroke: white; fill: none; }
.cfi-chevron.open { transform: rotate(180deg); }
.cfi-order-summary-bar-total {
    font-family: var(--font-sans);
    font-size: 1.25rem;
    font-weight: 700;
}

/* Order summary panel */
.cfi-order-summary {
    background: #1E293B;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.35s ease;
    margin-bottom: 24px;
}
.cfi-order-summary.visible { max-height: 500px; }
.cfi-summary-items { list-style: none; padding: 20px 24px 0; }
.cfi-summary-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    font-size: 0.9rem;
}
.cfi-summary-item:last-child { border-bottom: none; }
.cfi-summary-item-name  { flex: 1; color: rgba(255,255,255,0.9); font-family: var(--font-bn); }
.cfi-summary-item-qty   { color: rgba(255,255,255,0.5); font-family: var(--font-sans); font-size: 0.8rem; }
.cfi-summary-item-price { font-family: var(--font-sans); font-weight: 600; color: white; }
.cfi-summary-thumb { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.cfi-summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 1.1rem;
    color: white;
}

/* Product list */
.cfi-cf-section-heading {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    font-family: var(--font-bn);
}
.cfi-product-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 32px; }

.cfi-product-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border-radius: var(--radius-md);
    border: 2px solid var(--border);
    background: white;
    cursor: pointer;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
    user-select: none;
}
.cfi-product-item input[type="checkbox"] { display: none; }
.cfi-product-item:hover { border-color: var(--marine-200); box-shadow: var(--shadow-md); }
.cfi-product-item.selected {
    border-color: var(--flame-500);
    background: var(--flame-50);
    box-shadow: 0 4px 20px rgba(249,115,22,0.15);
    transform: scale(1.008);
}

.cfi-product-check {
    flex-shrink: 0;
    width: 24px; height: 24px;
    border-radius: 8px;
    border: 2px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    transition: all 0.25s ease;
    background: white;
}
.cfi-product-item.selected .cfi-product-check {
    border-color: var(--flame-500);
    background: var(--flame-500);
}
.cfi-product-check svg { width: 14px; height: 14px; stroke: white; fill: none; opacity: 0; transition: opacity 0.2s; }
.cfi-product-item.selected .cfi-product-check svg { opacity: 1; }

.cfi-product-thumb {
    width: 52px; height: 52px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid var(--border);
    transition: border-color 0.25s;
}
.cfi-product-item.selected .cfi-product-thumb { border-color: var(--flame-200); }
.cfi-product-thumb img { width: 100%; height: 100%; object-fit: cover; }

.cfi-product-info { flex: 1; min-width: 0; }
.cfi-product-title-wrap { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cfi-product-title { font-family: var(--font-bn); font-size: 0.9rem; font-weight: 600; color: var(--text-primary); }
.cfi-product-qty-badge {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    color: var(--text-muted);
    background: var(--bg-section);
    padding: 2px 8px;
    border-radius: 999px;
}
.cfi-product-price-wrap {
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-top: 4px;
    display: block;
}
@media (min-width: 640px) { .cfi-product-price-wrap { display: none; } }

.cfi-product-price-side {
    display: none;
    font-family: var(--font-sans);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    flex-shrink: 0;
    transition: color 0.25s;
}
@media (min-width: 640px) { .cfi-product-price-side { display: block; } }
.cfi-product-item.selected .cfi-product-price-side { color: var(--flame-600); }

/* Form */
.cfi-form-section { margin-bottom: 28px; }
.cfi-form-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 640px) { .cfi-form-grid { grid-template-columns: 1fr 1fr; } }
.cfi-form-row { display: grid; grid-template-columns: 1fr; gap: 16px; }

.cfi-form-group { display: flex; flex-direction: column; gap: 6px; }
.cfi-form-group label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    font-family: var(--font-bn);
}
.cfi-form-group input,
.cfi-form-group textarea,
.cfi-form-group select {
    width: 100%;
    padding: 12px 16px;
    border-radius: 14px;
    background: var(--bg-section);
    border: 1.5px solid var(--border);
    color: var(--text-primary);
    font-family: var(--font-bn);
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}
.cfi-form-group input::placeholder { color: var(--text-muted); }
.cfi-form-group input:focus {
    border-color: var(--marine-400);
    box-shadow: 0 0 0 4px rgba(56,189,248,0.12);
    background: white;
}
.cfi-form-group.has-error input { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(239,68,68,0.1); }
.cfi-form-error { font-size: 0.75rem; color: var(--danger); display: none; font-family: var(--font-bn); }
.cfi-form-group.has-error .cfi-form-error { display: block; }

/* Trust row */
.cfi-form-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 16px 0 24px;
    font-family: var(--font-bn);
}
.cfi-form-trust-item { display: flex; align-items: center; gap: 6px; }
.cfi-form-trust-item svg { width: 16px; height: 16px; stroke: var(--marine-600); fill: none; }

/* Shipping box */
.cfi-shipping-box {
    padding: 14px 18px;
    border-radius: var(--radius-md);
    background: var(--bg-section);
    border: 1.5px solid var(--border);
    font-family: var(--font-bn);
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.cfi-shipping-box svg { width: 20px; height: 20px; stroke: var(--marine-600); fill: none; flex-shrink: 0; }

/* Payment notice */
.cfi-payment-notice {
    padding: 16px 18px;
    border-radius: var(--radius-md);
    background: #FEF3C7;
    border: 1px solid #FDE68A;
    margin-bottom: 20px;
}
.cfi-payment-notice p { font-size: 0.875rem; color: #92400E; line-height: 1.75; font-family: var(--font-bn); }

/* Place order button */
.cfi-place-order-btn {
    width: 100%;
    padding: 18px;
    border-radius: var(--radius-md);
    background: var(--flame-500);
    color: white;
    font-family: var(--font-bn);
    font-size: 1.1rem;
    font-weight: 700;
    box-shadow: var(--shadow-flame);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.15s ease;
    margin-top: 8px;
    cursor: pointer;
    border: none;
}
.cfi-place-order-btn:hover  { background: var(--flame-600); box-shadow: 0 12px 40px rgba(249,115,22,0.38); }
.cfi-place-order-btn:active { transform: scale(0.98); }
.cfi-place-order-btn:disabled { opacity: 0.65; cursor: not-allowed; transform: none; }
.btn-total { font-family: var(--font-sans); font-size: 0.95rem; font-weight: 700; }

/* Privacy notice */
.cfi-privacy-notice {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-align: center;
    margin: 16px 0 0;
    line-height: 1.6;
}

/* ===== SPINNER ===== */
.cfi-spinner {
    display: inline-block;
    width: 18px; height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.65s linear infinite;
    vertical-align: middle;
}

/* ===== THANK YOU MODAL ===== */
.cfi-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 500;
    background: rgba(15,23,42,0.7);
    backdrop-filter: blur(6px);
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}
.cfi-modal-overlay.active { display: flex; }

.cfi-modal {
    background: white;
    border-radius: var(--radius-xl);
    padding: 40px 32px;
    max-width: 480px;
    width: 100%;
    position: relative;
    box-shadow: 0 32px 80px rgba(0,0,0,0.2);
    animation: slide-up 0.4s cubic-bezier(0.22,1,0.36,1) forwards;
    text-align: center;
}

.cfi-modal-close {
    position: absolute;
    top: 16px; right: 16px;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--bg-section);
    border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: background 0.2s;
}
.cfi-modal-close:hover { background: var(--border); }

.cfi-modal-icon {
    width: 72px; height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 24px;
    box-shadow: 0 8px 32px rgba(34,197,94,0.35);
}
.cfi-modal-icon svg { width: 36px; height: 36px; stroke: white; fill: none; }

.cfi-modal h2 { font-size: 1.75rem; color: var(--text-primary); margin-bottom: 10px; }
.cfi-modal-subtitle { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 28px; font-family: var(--font-bn); }

.cfi-modal-order-details {
    background: var(--bg-section);
    border-radius: var(--radius-md);
    padding: 20px;
    text-align: left;
    margin-bottom: 20px;
}
.cfi-modal-order-details h4 { font-size: 0.9rem; font-weight: 700; color: var(--text-primary); margin-bottom: 14px; font-family: var(--font-bn); }
.cfi-modal-order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.875rem;
}
.cfi-modal-order-item:last-child { border-bottom: none; }
.item-name  { color: var(--text-secondary); font-family: var(--font-bn); }
.item-price { font-family: var(--font-sans); font-weight: 700; color: var(--text-primary); }
.cfi-modal-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 2px solid var(--border);
}
.total-label { font-weight: 700; color: var(--text-primary); font-family: var(--font-bn); }
.total-price { font-family: var(--font-sans); font-size: 1.25rem; font-weight: 700; color: var(--flame-600); }

.cfi-modal-payment-note {
    background: var(--flame-50);
    border: 1px solid var(--flame-200);
    border-radius: var(--radius-md);
    padding: 16px;
    text-align: left;
}
.cfi-modal-payment-note p { font-size: 0.85rem; color: #92400E; line-height: 1.7; font-family: var(--font-bn); }

/* ===== STICKY MOBILE CTA ===== */
.cfi-sticky-cta {
    display: none;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 200;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(16px);
    border-top: 1px solid var(--border);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
    padding: 12px 16px;
    padding-bottom: max(12px, env(safe-area-inset-bottom));
    flex-direction: row;
    align-items: center;
    gap: 12px;
}
@media (max-width: 639px) { .cfi-sticky-cta { display: flex; } }
@media (min-width: 640px) { .cfi-sticky-cta { display: none !important; } }
.cfi-sticky-cta.is-visible { display: flex; }

.cfi-sticky-price-wrap { flex: 1; min-width: 0; }
.cfi-sticky-price { font-family: var(--font-sans); font-size: 1.25rem; font-weight: 700; color: var(--text-primary); line-height: 1; }
.cfi-sticky-trust { display: flex; align-items: center; gap: 4px; margin-top: 4px; }
.cfi-sticky-trust svg { width: 14px; height: 14px; stroke: var(--marine-600); fill: none; }
.cfi-sticky-trust span { font-family: var(--font-bn); font-size: 11px; color: var(--text-muted); }
.cfi-sticky-btn {
    padding: 14px 24px;
    border-radius: 14px;
    background: var(--flame-500);
    color: white;
    font-family: var(--font-bn);
    font-weight: 700;
    font-size: 1rem;
    box-shadow: var(--shadow-flame);
    white-space: nowrap;
    transition: background 0.2s, transform 0.15s;
    cursor: pointer;
    border: none;
}
.cfi-sticky-btn:active { transform: scale(0.96); }

/* ===== FOOTER ===== */
.cfi-footer {
    background: var(--text-primary);
    color: rgba(255,255,255,0.55);
    padding: 40px 20px;
    text-align: center;
}
.cfi-footer__logo { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 12px; }
.cfi-footer__logo-icon {
    width: 36px; height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--marine-500), var(--marine-700));
    display: flex; align-items: center; justify-content: center;
}
.cfi-footer__logo-icon svg { width: 18px; height: 18px; stroke: white; fill: none; }
.cfi-footer__logo-name { font-family: var(--font-bn); font-weight: 700; color: white; font-size: 1rem; }
.cfi-footer p { font-family: var(--font-bn); font-size: 0.875rem; }

/* ===== TOAST ===== */
.cfi-toast-container {
    position: fixed;
    top: 80px;
    right: 16px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.cfi-toast {
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-family: var(--font-bn);
    box-shadow: var(--shadow-lg);
    max-width: 320px;
    animation: fade-up 0.3s ease;
    color: white;
}
.cfi-toast.success { background: var(--success); }
.cfi-toast.error   { background: var(--danger); }
.cfi-toast.info    { background: var(--marine-600); }
