/* =========================================
   HASNURA SHOP — Premium Fintech CSS
   ========================================= */

:root {
    --primary: #C8A96E;        /* Gold premium */
    --primary-dark: #a8874e;
    --secondary: #0D0D0D;      /* Deep black */
    --accent: #E63946;         /* Action red */
    --whatsapp: #25D366;
    --surface: #FFFFFF;
    --surface-2: #F8F7F4;
    --surface-3: #F0EDE7;
    --border: #E8E4DC;
    --text: #1A1A1A;
    --text-muted: #6B6B6B;
    --text-light: #9E9E9E;
    --success: #2D9E6B;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 8px 30px rgba(0,0,0,0.10);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.14);
    --shadow-gold: 0 8px 30px rgba(200,169,110,0.25);
    --radius-sm: 10px;
    --radius-md: 18px;
    --radius-lg: 28px;
    --radius-xl: 40px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--surface-2);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* =====================
   HEADER
   ===================== */
#main-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 900;
    color: var(--secondary);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.logo-dot {
    color: var(--primary);
    font-size: 28px;
}

.header-badge {
    font-size: 11px;
    font-weight: 600;
    color: var(--success);
    background: rgba(45,158,107,0.08);
    padding: 6px 12px;
    border-radius: 50px;
    border: 1px solid rgba(45,158,107,0.2);
    letter-spacing: 0.5px;
}

/* =====================
   CATEGORY NAV
   ===================== */
.category-nav {
    display: flex;
    gap: 8px;
    padding: 10px 24px 12px;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    max-width: 1200px;
    margin: 0 auto;
}

.category-nav::-webkit-scrollbar { display: none; }

.cat-wrapper { display: inline-flex; flex-shrink: 0; }

.cat-btn {
    padding: 8px 20px;
    border-radius: 50px;
    border: 1.5px solid var(--border);
    background: var(--surface);
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    transition: var(--transition);
    font-family: 'DM Sans', sans-serif;
    /* Hold & copy hint */
    user-select: none;
    -webkit-user-select: none;
}

.cat-btn:hover {
    border-color: var(--primary);
    color: var(--primary-dark);
    background: rgba(200,169,110,0.06);
}

.cat-btn.active {
    background: var(--secondary);
    color: #fff;
    border-color: var(--secondary);
    box-shadow: 0 4px 14px rgba(13,13,13,0.2);
}

/* Hold progress ring on cat buttons */
.cat-btn.holding {
    background: rgba(200,169,110,0.15);
    border-color: var(--primary);
    color: var(--primary-dark);
    transition: background 0.8s linear;
}

/* =====================
   HERO MARQUEE STRIP
   ===================== */
.hero-strip {
    margin-top: 130px; /* below fixed header */
    background: var(--secondary);
    color: var(--primary);
    padding: 10px 0;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    display: flex;
    gap: 0;
    overflow: hidden;
    white-space: nowrap;
}

.hero-strip span {
    display: inline-block;
    padding: 0 40px;
    animation: marquee 22s linear infinite;
    flex-shrink: 0;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* =====================
   SHOP WRAPPER
   ===================== */
.shop-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 20px 100px;
}

/* =====================
   SECTION HEADER
   ===================== */
.section-header { text-align: center; margin-bottom: 40px; }

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(28px, 5vw, 42px);
    font-weight: 900;
    color: var(--secondary);
    letter-spacing: -0.5px;
}

.section-sub {
    font-size: 15px;
    color: var(--text-muted);
    margin-top: 6px;
    font-weight: 400;
}

/* =====================
   PRODUCT GRID
   ===================== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

/* =====================
   PRODUCT CARD
   ===================== */
.product-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(200,169,110,0.3);
}

/* Badges */
.card-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 10;
    background: var(--secondary);
    color: var(--primary);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 50px;
}
.card-badge.hot {
    background: var(--accent);
    color: #fff;
}

/* Share button */
.share-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 10;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(8px);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 15px;
    border: 1px solid var(--border);
    transition: var(--transition);
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
}

.share-btn:hover { background: #fff; box-shadow: var(--shadow-md); }
.share-btn.holding { background: var(--primary); border-color: var(--primary); }

/* Progress ring overlay */
.share-btn .hold-ring {
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 3px solid var(--primary);
    border-top-color: transparent;
    opacity: 0;
    transition: opacity 0.2s;
}
.share-btn.holding .hold-ring { opacity: 1; animation: spin-ring 0.8s linear; }
@keyframes spin-ring { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* Product image */
.product-img-wrap {
    width: 100%;
    aspect-ratio: 1/1;
    overflow: hidden;
    background: var(--surface-3);
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-img { transform: scale(1.05); }

/* Card body */
.card-body {
    padding: 18px 18px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
    line-height: 1.4;
}

.btn-info {
    display: inline-block;
    background: var(--surface-3);
    color: var(--text-muted);
    text-decoration: none;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 14px;
    transition: var(--transition);
    border: 1px solid var(--border);
    width: fit-content;
}
.btn-info:hover { background: var(--border); color: var(--text); }

.price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    margin-top: auto;
}

.price-tag {
    font-size: 22px;
    font-weight: 800;
    color: var(--secondary);
    font-family: 'Playfair Display', serif;
}

.stock-badge {
    font-size: 10px;
    font-weight: 700;
    color: var(--success);
    background: rgba(45,158,107,0.10);
    padding: 4px 10px;
    border-radius: 50px;
    border: 1px solid rgba(45,158,107,0.2);
    letter-spacing: 0.5px;
}

/* =====================
   BUTTONS
   ===================== */
.btn-primary {
    background: var(--secondary);
    color: #fff;
    border: none;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    cursor: pointer;
    width: 100%;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.5px;
    transition: var(--transition);
    font-family: 'DM Sans', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary:hover {
    background: var(--primary);
    color: var(--secondary);
    box-shadow: var(--shadow-gold);
}

.btn-primary:active { transform: scale(0.97); }

.btn-whatsapp {
    background: var(--whatsapp);
    color: #fff;
    border: none;
    padding: 18px 24px;
    border-radius: var(--radius-md);
    cursor: pointer;
    width: 100%;
    font-weight: 700;
    font-size: 16px;
    transition: var(--transition);
    font-family: 'DM Sans', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 8px 25px rgba(37,211,102,0.3);
}
.btn-whatsapp:hover { background: #20BA5A; box-shadow: 0 12px 35px rgba(37,211,102,0.4); }
.btn-whatsapp:active { transform: scale(0.98); }

/* =====================
   TRUST STRIP
   ===================== */
.trust-strip {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 60px 0 50px;
    padding: 30px;
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    padding: 8px 20px;
    background: var(--surface-3);
    border-radius: 50px;
}

/* =====================
   CHECKOUT SECTION
   ===================== */
#checkout-section {
    background: var(--surface);
    border-radius: var(--radius-xl);
    padding: 48px;
    margin-top: 60px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    display: none;
    animation: slideUp 0.5s cubic-bezier(0.4,0,0.2,1);
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.checkout-header { text-align: center; margin-bottom: 40px; }

.checkout-title {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 900;
    color: var(--secondary);
}

.checkout-sub {
    color: var(--text-muted);
    margin-top: 6px;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

@media (max-width: 768px) {
    .checkout-grid { grid-template-columns: 1fr; }
    #checkout-section { padding: 28px 20px; }
}

/* Cart Items */
.cart-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    gap: 10px;
}

.cart-item-info {}
.cart-item-name { font-weight: 700; font-size: 14px; color: var(--text); }
.cart-item-price { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

.qty-control {
    display: flex;
    align-items: center;
    background: var(--surface-3);
    border-radius: var(--radius-sm);
    padding: 4px 8px;
    gap: 12px;
    flex-shrink: 0;
}

.qty-btn {
    background: none;
    border: none;
    font-weight: 800;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    color: var(--primary-dark);
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}
.qty-btn:hover { background: var(--border); }

.qty-count { font-weight: 700; font-size: 14px; min-width: 20px; text-align: center; }

.cart-item-sub { font-weight: 800; font-size: 14px; color: var(--secondary); flex-shrink: 0; }

/* Total Display */
.total-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: var(--surface-3);
    border-radius: var(--radius-md);
    margin-top: 20px;
    border: 1px solid var(--border);
}

.total-label { font-weight: 700; color: var(--text-muted); }

.total-amount {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 900;
    color: var(--accent);
}

.total-note {
    font-size: 11px;
    color: var(--text-light);
    margin-top: 10px;
    padding: 0 4px;
    font-style: italic;
}

/* Delivery Form */
.delivery-form-box {
    background: var(--surface-2);
    border-radius: var(--radius-lg);
    padding: 28px;
    border: 1px solid var(--border);
}

.form-section-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 20px;
}

.input-group { margin-bottom: 16px; }

.input-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: 'DM Sans', sans-serif;
    outline: none;
    transition: var(--transition);
    background: var(--surface);
    color: var(--text);
    resize: none;
}

.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(200,169,110,0.12);
}

/* =====================
   CART FLOAT BUTTON
   ===================== */
.cart-float {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--secondary);
    color: #fff;
    padding: 16px 36px;
    border-radius: 50px;
    box-shadow: 0 10px 40px rgba(13,13,13,0.4);
    cursor: pointer;
    z-index: 200;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: var(--transition);
    display: none;
    align-items: center;
    gap: 12px;
    border: 2px solid rgba(255,255,255,0.1);
    white-space: nowrap;
}

.cart-float.visible { display: flex; }
.cart-float:hover { transform: translateX(-50%) translateY(-3px); box-shadow: 0 20px 50px rgba(13,13,13,0.5); background: #1a1a1a; }

.cart-icon { font-size: 18px; }
.cart-text { font-size: 13px; }

.cart-badge {
    background: var(--accent);
    color: #fff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
}

/* =====================
   TOAST NOTIFICATION
   ===================== */
.toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--secondary);
    color: #fff;
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    z-index: 999;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
    pointer-events: none;
    border-left: 4px solid var(--primary);
    white-space: nowrap;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* =====================
   FOOTER
   ===================== */
.site-footer {
    text-align: center;
    padding: 50px 20px 20px;
    color: var(--text-muted);
    font-size: 13px;
}

.footer-logo {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 900;
    color: var(--secondary);
    letter-spacing: 3px;
    margin-bottom: 10px;
}

.footer-logo span { color: var(--primary); }

/* =====================
   BLINK ANIMATION (share highlight)
   ===================== */
@keyframes blink-light {
    0% { box-shadow: none; }
    50% { box-shadow: 0 0 0 4px rgba(200,169,110,0.3); border-color: var(--primary); }
    100% { box-shadow: none; }
}

.blink-active { animation: blink-light 0.7s ease-in-out 3; }

/* =====================
   RESPONSIVE
   ===================== */
@media (max-width: 600px) {
    .hero-strip { margin-top: 120px; }
    .shop-wrapper { padding: 30px 14px 100px; }
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .product-title { font-size: 13px; }
    .price-tag { font-size: 18px; }
    .btn-primary { padding: 12px 14px; font-size: 12px; }
    .card-body { padding: 12px; }
    .trust-strip { gap: 8px; padding: 20px 12px; }
    .trust-item { font-size: 11px; padding: 6px 12px; }
    .cart-float { padding: 14px 24px; bottom: 20px; }
    #checkout-section { border-radius: 20px; }
}

@media (min-width: 768px) {
    .hero-strip { margin-top: 116px; }
}

@media (max-width: 380px) {
    .product-grid { grid-template-columns: 1fr; }
}