/* Dhila AI - Main Stylesheet
 * Brand Kit: Dark Purple Black #0D0A1F | Primary Purple #7C3AED | Lime Accent #C1FF3D | Secondary #A855F7
 */

:root {
    --dhila-bg: #0D0A1F;
    --dhila-primary: #7C3AED;
    --dhila-text: #FFFFFF;
    --dhila-secondary: #A855F7;
    --dhila-lavender: #C4B5FD;
    --dhila-lime: #C1FF3D;
    --dhila-glow: #5B21B6;

    --primary: #7C3AED;
    --primary-dark: #5B21B6;
    --primary-light: #F3E8FF;
    --accent: #C1FF3D;
    --accent-light: #ECFCCB;
    --navy: #0D0A1F;
    --navy-light: #18113B;
    --bg: #F8FAFC;
    --surface: #FFFFFF;
    --text: #0F172A;
    --text-muted: #64748B;
    --border: #E2E8F0;
    --success: #16A34A;
    --success-light: #DCFCE7;
    --warning: #D97706;
    --warning-light: #FEF3C7;
    --danger: #DC2626;
    --danger-light: #FEE2E2;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(124, 58, 237, 0.15), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(124, 58, 237, 0.2), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font);
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Announcement Bar */
.announcement-bar {
    background: linear-gradient(90deg, #101828, #1e1b4b);
    color: #f8fafc;
    font-size: 13px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.announcement-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.announcement-bar a {
    color: #93c5fd;
    text-decoration: underline;
}

.announcement-links {
    display: flex;
    gap: 16px;
    list-style: none;
}

.announcement-links a {
    color: #cbd5e1;
    text-decoration: none;
}

.announcement-links a:hover {
    color: #fff;
}

/* Header & Navigation */
.header-main {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    gap: 20px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.brand-logo svg, .brand-logo img {
    height: 38px;
    width: auto;
}

.brand-name {
    font-size: 19px;
    font-weight: 800;
    color: var(--navy);
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.brand-name span {
    color: var(--primary);
}

.search-bar-wrap {
    flex: 1;
    max-width: 500px;
}

.search-form {
    display: flex;
    position: relative;
}

.search-input {
    width: 100%;
    height: 42px;
    padding: 0 44px 0 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 14px;
    background: #f8fafc;
    transition: all 0.2s ease;
}

.search-input:focus {
    outline: none;
    background: #fff;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.search-btn {
    position: absolute;
    right: 6px;
    top: 4px;
    height: 34px;
    width: 34px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    transition: color 0.2s ease;
}

.search-btn:hover {
    color: #2563eb;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.nav-action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--navy);
    padding: 8px 12px;
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 14px;
    position: relative;
    transition: background 0.2s ease;
}

.nav-action-btn:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.cart-badge {
    background: var(--danger);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    height: 18px;
    min-width: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    position: absolute;
    top: 2px;
    right: 2px;
}

.sub-nav {
    display: none;
}

.sub-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sub-nav a {
    color: #334155;
    font-weight: 500;
}

.mobile-search-box {
    display: none;
}

.home-product-tab-content {
    animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--navy);
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 60%, #172554 100%);
    color: #fff;
    padding: 60px 0 70px;
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(37, 99, 235, 0.2);
    border: 1px solid rgba(147, 197, 253, 0.3);
    color: #93c5fd;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.hero-title span {
    background: linear-gradient(90deg, #60a5fa, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 16px;
    color: #cbd5e1;
    margin-bottom: 28px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: #fff;
    transform: translateY(-1px);
}

.btn-outline-white {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.btn-secondary {
    background: #e2e8f0;
    color: #1e293b;
}

.btn-secondary:hover {
    background: #cbd5e1;
    color: #0f172a;
}

.btn-success {
    background: var(--success);
    color: #fff;
}

.btn-success:hover {
    background: #15803d;
    color: #fff;
}

.btn-danger {
    background: var(--danger);
    color: #fff;
}

.btn-danger:hover {
    background: #b91c1c;
    color: #fff;
}

.btn-block {
    display: flex;
    width: 100%;
}

.hero-badge-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-xl);
}

.hero-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.h-feat-item {
    background: rgba(255, 255, 255, 0.06);
    padding: 14px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.h-feat-item h4 {
    font-size: 14px;
    color: #fff;
    margin-bottom: 4px;
}

.h-feat-item p {
    font-size: 12px;
    color: #94a3b8;
}

/* Trust Bar */
.trust-bar {
    background: #fff;
    padding: 24px 0;
    border-bottom: 1px solid var(--border);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 14px;
}

.trust-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.trust-item h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--navy);
}

.trust-item p {
    font-size: 12px;
    color: var(--text-muted);
}

/* Category Grid */
.section-py {
    padding: 60px 0;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 30px;
}

.section-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--navy);
    letter-spacing: -0.5px;
}

.section-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 4px;
}

.view-all-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.category-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    text-align: center;
    transition: all 0.2s ease;
    display: block;
    color: inherit;
}

.category-card:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.category-icon-box {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 22px;
}

.category-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 4px;
}

.category-desc {
    font-size: 12px;
    color: var(--text-muted);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.product-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.product-card:hover {
    box-shadow: var(--shadow-xl);
    border-color: #cbd5e1;
    transform: translateY(-4px);
}

.product-thumb-wrap {
    position: relative;
    padding-top: 65%;
    background: #f8fafc;
    overflow: hidden;
}

.product-thumb-wrap img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 16px;
    transition: transform 0.3s ease;
}

.product-card:hover .product-thumb-wrap img {
    transform: scale(1.05);
}

.product-type-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(16, 24, 40, 0.85);
    backdrop-filter: blur(4px);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    z-index: 2;
}

.badge-delivery-a {
    background: #1e3a8a;
}

.badge-delivery-b {
    background: #065f46;
}

.badge-delivery-c {
    background: #581c87;
}

.product-info {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-category-meta {
    font-size: 12px;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.35;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 40px;
}

.product-card:hover .product-title {
    color: var(--primary);
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #f59e0b;
    margin-bottom: 12px;
}

.product-rating span {
    color: var(--text-muted);
}

.product-pricing {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: auto;
    margin-bottom: 14px;
}

.price-current {
    font-size: 19px;
    font-weight: 800;
    color: var(--navy);
}

.price-regular {
    font-size: 13px;
    color: #94a3b8;
    text-decoration: line-through;
}

.price-discount-tag {
    font-size: 11px;
    font-weight: 700;
    color: var(--danger);
    background: var(--danger-light);
    padding: 2px 6px;
    border-radius: 4px;
}

.product-actions-btn {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
}

.btn-add-cart {
    background: var(--primary-light);
    color: var(--primary);
    border: none;
    font-weight: 600;
    font-size: 13px;
    padding: 8px 12px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-add-cart:hover {
    background: var(--primary);
    color: #fff;
}

.btn-quick-buy {
    background: var(--navy);
    color: #fff;
    padding: 8px 12px;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 600;
    text-align: center;
}

.btn-quick-buy:hover {
    background: #000;
    color: #fff;
}

/* Why Choose Us & Instant Delivery Section */
.features-section {
    background: #fff;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.feat-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.feat-box {
    padding: 24px;
    border-radius: var(--radius-md);
    background: #f8fafc;
    border: 1px solid var(--border);
}

.feat-box-icon {
    font-size: 28px;
    margin-bottom: 12px;
}

.feat-box h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
}

.feat-box p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* FAQ Accordion */
.faq-wrap {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    overflow: hidden;
}

.faq-question {
    padding: 16px 20px;
    font-weight: 700;
    font-size: 15px;
    color: var(--navy);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.faq-question:hover {
    color: var(--primary);
}

.faq-answer {
    padding: 0 20px 16px;
    font-size: 14px;
    color: #475569;
    line-height: 1.6;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

/* Footer */
.footer-main {
    background: #0f172a;
    color: #cbd5e1;
    padding: 60px 0 20px;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    color: #fff;
    font-size: 20px;
    margin-bottom: 12px;
}

.footer-brand p {
    font-size: 13px;
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 16px;
}

.footer-col h4 {
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 16px;
    position: relative;
    padding-bottom: 8px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 24px;
    height: 2px;
    background: var(--primary);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #94a3b8;
    font-size: 13px;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #fff;
}

.footer-contact p {
    font-size: 13px;
    margin-bottom: 8px;
    color: #94a3b8;
}

.footer-contact strong {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #64748b;
    flex-wrap: wrap;
    gap: 16px;
}

.dev-attribution {
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
}

.dev-attribution strong {
    color: #60a5fa;
}

.dev-attribution a {
    color: #cbd5e1;
    font-weight: 600;
}

.dev-attribution a:hover {
    color: #fff;
    text-decoration: underline;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 600;
    border-radius: var(--radius-sm);
}

.badge-success {
    background: var(--success-light);
    color: var(--success);
}

.badge-warning {
    background: var(--warning-light);
    color: var(--warning);
}

.badge-danger {
    background: var(--danger-light);
    color: var(--danger);
}

.badge-info {
    background: var(--primary-light);
    color: var(--primary);
}

.badge-secondary {
    background: #f1f5f9;
    color: #475569;
}

/* Alerts / Flash Messages */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background: var(--success-light);
    color: #14532d;
    border: 1px solid #bbf7d0;
}

.alert-error, .alert-danger {
    background: var(--danger-light);
    color: #7f1d1d;
    border: 1px solid #fecaca;
}

.alert-warning {
    background: var(--warning-light);
    color: #78350f;
    border: 1px solid #fde68a;
}

.alert-info {
    background: var(--primary-light);
    color: #1e3a8a;
    border: 1px solid #bfdbfe;
}

/* Forms */
.form-group {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    height: 42px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 14px;
    background: #fff;
    color: var(--text);
    transition: all 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

textarea.form-control {
    height: auto;
    padding: 12px 14px;
    min-height: 100px;
}

/* Toast Notification */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: var(--navy);
    color: #fff;
    padding: 12px 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Home Collection Tabs */
.home-tabs-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    background: #e2e8f0;
    padding: 6px;
    border-radius: var(--radius-full);
    width: fit-content;
    max-width: 100%;
    overflow-x: auto;
}

.home-tab-pill {
    padding: 8px 20px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    border: none;
    background: transparent;
    transition: all 0.2s ease;
    user-select: none;
}

.home-tab-pill:hover {
    color: var(--navy);
}

.home-tab-pill.active {
    background: #fff;
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

/* 3-Step Instant Delivery Process */
.process-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    position: relative;
}

.process-step-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    position: relative;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

.process-step-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: #cbd5e1;
}

.step-num-bubble {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 18px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    border: 2px solid #bfdbfe;
}

.process-step-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
}

.process-step-card p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* bKash Official Security Banner */
.bkash-banner {
    background: linear-gradient(135deg, #101828 0%, #1e1b4b 50%, #4a044e 100%);
    border-radius: var(--radius-lg);
    padding: 36px 40px;
    color: #fff;
    margin: 40px 0;
    border: 1px solid rgba(226, 19, 110, 0.3);
    box-shadow: var(--shadow-lg);
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 30px;
}

.bkash-banner h3 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 8px;
    color: #fff;
}

.bkash-banner p {
    font-size: 14px;
    color: #cbd5e1;
    line-height: 1.6;
    max-width: 680px;
}

.bkash-banner-badge {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 20px 24px;
    border-radius: var(--radius-md);
    text-align: center;
}

/* Customer Reviews Grid */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.review-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.review-stars {
    color: #f59e0b;
    font-size: 14px;
    margin-bottom: 12px;
}

.review-text {
    font-size: 13px;
    color: #334155;
    line-height: 1.6;
    margin-bottom: 16px;
    flex: 1;
}

.reviewer-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    border-top: 1px solid #f1f5f9;
    padding-top: 12px;
}

.reviewer-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #eff6ff;
    color: #2563eb;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.reviewer-info h4 {
    font-size: 13px;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.2;
}

.reviewer-info span {
    font-size: 11px;
    color: var(--success);
    font-weight: 600;
}

/* Newsletter Container */
.newsletter-section {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 60%, #7c3aed 100%);
    border-radius: var(--radius-lg);
    padding: 44px;
    color: #fff;
    text-align: center;
    margin: 50px 0 20px;
    box-shadow: var(--shadow-xl);
}

.newsletter-section h2 {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 8px;
}

.newsletter-section p {
    font-size: 14px;
    color: #bfdbfe;
    max-width: 520px;
    margin: 0 auto 24px;
}

.newsletter-form {
    display: flex;
    max-width: 480px;
    margin: 0 auto;
    gap: 8px;
}

.newsletter-input {
    flex: 1;
    height: 46px;
    border-radius: var(--radius-full);
    border: none;
    padding: 0 20px;
    font-size: 14px;
}

.newsletter-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.4);
}

.newsletter-btn {
    height: 46px;
    padding: 0 24px;
    border-radius: var(--radius-full);
    border: none;
    background: #0f172a;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.newsletter-btn:hover {
    background: #000;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; }
    .categories-grid { grid-template-columns: repeat(3, 1fr); }
    .products-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .trust-grid { grid-template-columns: repeat(2, 1fr); }
    .feat-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .reviews-grid { grid-template-columns: repeat(2, 1fr); }
    .bkash-banner { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .navbar { height: 60px; }
    .search-bar-wrap { display: none; }
    .mobile-toggle { display: block; }
    .mobile-search-box { display: block; padding: 0 4px 12px; }
    .sub-nav {
        display: none;
        background: #fff;
        border-bottom: 2px solid var(--primary);
        padding: 16px 0;
    }
    .sub-nav.active {
        display: block !important;
    }
    .sub-nav ul {
        flex-direction: column;
        gap: 0;
        padding: 0;
        overflow-x: visible;
    }
    .sub-nav a {
        display: block;
        padding: 10px 14px;
        border-bottom: 1px solid #f1f5f9;
        font-size: 14.5px;
        font-weight: 600;
    }
    .categories-grid { grid-template-columns: repeat(2, 1fr); }
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .hero-title { font-size: 28px; }
    .process-grid-3 { grid-template-columns: 1fr; }
    .reviews-grid { grid-template-columns: 1fr; }
    .newsletter-form { flex-direction: column; }
    .newsletter-section { padding: 30px 20px; }
    .footer-grid { grid-template-columns: 1fr; }
    .trust-grid { grid-template-columns: 1fr; }
    .feat-grid-4 { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
    .products-grid { grid-template-columns: 1fr; }
    .product-actions-btn { grid-template-columns: 1fr; }
}

/* ==============================================================
 * DIGISOFT-INSPIRED CLEAN STOREFRONT & QUICK CHECKOUT STYLES
 * ============================================================== */

/* Header Search Input & Nav Actions */
.header-actions .nav-icon {
    font-size: 15px;
}
.header-actions .nav-label {
    font-size: 13.5px;
    font-weight: 600;
}

/* Promotional Banner (Digisoft Premium Style) */
.banner-hero-wrap {
    margin-bottom: 28px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    background: #fff;
    border: 1px solid #f1f5f9;
}

.banner-hero-link {
    display: block;
    width: 100%;
    line-height: 0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.banner-hero-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.banner-hero-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
    object-fit: cover;
}

/* Top Categories */
.digi-section-title {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.3px;
    margin-bottom: 16px;
}

.top-categories-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

.top-cat-card {
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    padding: 16px 10px;
    text-align: center;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
    transition: all 0.2s ease;
}

.top-cat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.06);
    border-color: #cbd5e1;
}

.top-cat-icon {
    font-size: 26px;
    line-height: 1;
}

.top-cat-name {
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
    white-space: nowrap;
}

/* Flash Sales Section */
.flash-sale-wrapper {
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 16px;
    padding: 20px 24px 24px;
    margin-bottom: 36px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.flash-sale-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.flash-sale-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 18px;
    font-weight: 800;
    color: #dc2626;
}

.flash-countdown {
    display: flex;
    align-items: center;
    gap: 4px;
}

.count-box {
    background: #0f172a;
    color: #ffffff;
    font-weight: 800;
    font-size: 13px;
    padding: 3px 8px;
    border-radius: 6px;
    min-width: 28px;
    text-align: center;
}

.count-colon {
    font-weight: 800;
    color: #0f172a;
    font-size: 14px;
}

.flash-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.flash-card {
    background: #ffffff;
    border-radius: 14px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease;
}

.flash-card:hover {
    transform: translateY(-3px);
}

.flash-img-box {
    background: #f8fafc;
    border-radius: 14px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 150px;
    margin-bottom: 8px;
    position: relative;
}

.flash-img-box img {
    max-height: 85px;
    max-width: 85px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.08));
    transition: transform 0.25s ease;
}

.flash-card:hover .flash-img-box img {
    transform: scale(1.08);
}

.flash-discount-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #dc2626;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    z-index: 2;
}

.flash-title {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 4px;
}

.flash-price {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
}

/* Product Cards & Grids (Best Selling & Popular Products) */
.digi-section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.digi-view-all {
    font-size: 12px;
    font-weight: 600;
    color: #4338ca;
    text-decoration: none;
}

.digi-view-all:hover {
    text-decoration: underline;
}

.digi-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.digi-card {
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 14px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.digi-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    border-color: #e2e8f0;
}

.digi-img-box {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 145px;
    margin-bottom: 8px;
    text-decoration: none;
}

.digi-img-box img {
    max-height: 80px;
    max-width: 80px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.08));
    transition: transform 0.25s ease;
}

.digi-card:hover .digi-img-box img {
    transform: scale(1.08);
}

.digi-title {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.digi-title a {
    color: #0f172a;
    text-decoration: none;
}

.digi-price {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 10px;
}

.digi-actions-row {
    display: flex;
    gap: 8px;
    margin-top: auto;
    align-items: center;
}

.btn-digi-buynow {
    flex: 1;
    background: #260058;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    text-align: center;
    padding: 8px 10px;
    border-radius: 9999px;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: background 0.2s ease;
}

.btn-digi-buynow:hover {
    background: #3b0764;
    color: #ffffff;
}

.btn-digi-cart {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #475569;
    font-size: 14px;
    transition: all 0.2s ease;
}

.btn-digi-cart:hover {
    background: #e2e8f0;
    color: #0f172a;
}

/* Clean Footer */
.footer-clean {
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    padding: 50px 0 24px;
    margin-top: 60px;
}

.footer-clean-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-clean-brand {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 10px;
}

.footer-clean-desc {
    font-size: 13.5px;
    color: #64748b;
    line-height: 1.6;
    max-width: 440px;
    margin-bottom: 16px;
}

.footer-clean-badge {
    display: inline-block;
    background: #eff6ff;
    color: #2563eb;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    margin-bottom: 16px;
    border: 1px solid #bfdbfe;
}

.footer-social-row {
    display: flex;
    gap: 10px;
}

.footer-social-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid #e2e8f0;
}

.footer-social-btn:hover {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
    transform: translateY(-2px);
}

.footer-clean-heading {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 16px;
}

.footer-clean-links {
    list-style: none;
}

.footer-clean-links li {
    margin-bottom: 10px;
}

.footer-clean-links a {
    font-size: 13.5px;
    color: #64748b;
    text-decoration: none;
    transition: color 0.15s ease;
}

.footer-clean-links a:hover {
    color: #2563eb;
}

.footer-clean-bottom {
    border-top: 1px solid #f1f5f9;
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12.5px;
    color: #94a3b8;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-attribution-text a {
    color: #64748b;
    text-decoration: none;
    font-weight: 600;
}

.footer-attribution-text a:hover {
    color: #2563eb;
}

/* Floating WhatsApp Chat Widget */
.floating-chat-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #7c3aed;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 10px 20px rgba(124, 58, 237, 0.4);
    z-index: 999;
    text-decoration: none;
    transition: transform 0.2s ease, background 0.2s ease;
}

.floating-chat-widget:hover {
    background: #6d28d9;
    transform: scale(1.08);
    color: #fff;
}

/* ==============================================================
   RESPONSIVE ADAPTATIONS & MOBILE POLISH (Native App Experience)
   ============================================================== */
.mobile-top-search-wrap {
    display: none;
}

.mobile-bottom-bar {
    display: none;
}

@media (max-width: 1024px) {
    .top-categories-grid { grid-template-columns: repeat(4, 1fr); }
    .flash-products-grid { grid-template-columns: repeat(3, 1fr); }
    .digi-products-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-clean-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    html, body {
        overflow-x: hidden;
        max-width: 100vw;
    }

    body {
        padding-bottom: 64px; /* Space for mobile bottom app bar */
    }

    .container {
        padding: 0 14px;
    }

    /* Navbar & Header on Mobile */
    .navbar {
        height: 60px;
        padding: 0;
        gap: 10px;
    }

    .brand-logo svg, .brand-logo img {
        height: 32px;
    }

    .search-bar-wrap {
        display: none !important;
    }

    .mobile-top-search-wrap {
        display: block;
        width: 100%;
        margin: 4px 0 10px 0;
    }

    .mobile-top-search-wrap .search-input {
        height: 40px;
        font-size: 13.5px;
        background: #f1f5f9;
        border-radius: 9999px;
    }

    .header-actions {
        gap: 8px;
    }

    .header-actions .hide-on-mobile {
        display: none !important;
    }

    .header-actions .nav-action-btn {
        padding: 6px 8px;
    }

    .header-actions .nav-label {
        display: none !important;
    }

    .header-actions .nav-icon {
        font-size: 18px;
    }

    /* Top Categories: Modern Horizontal Swipe Carousel on Mobile */
    .top-categories-grid {
        display: flex !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        -webkit-overflow-scrolling: touch !important;
        gap: 10px !important;
        padding: 4px 2px 10px 2px !important;
        margin: 0 -4px 10px -4px !important;
        scrollbar-width: none !important;
    }

    .top-categories-grid::-webkit-scrollbar {
        display: none !important;
    }

    .top-cat-card {
        min-width: 84px !important;
        flex: 0 0 auto !important;
        scroll-snap-align: start !important;
        padding: 12px 6px !important;
        border-radius: 12px !important;
        box-shadow: 0 1px 4px rgba(0,0,0,0.03) !important;
    }

    .top-cat-icon {
        font-size: 22px !important;
    }

    .top-cat-name {
        font-size: 11px !important;
    }

    /* Promotional Hero Banner */
    .banner-hero-wrap {
        margin-bottom: 20px;
        border-radius: 12px;
    }
    .banner-hero-img {
        border-radius: 12px;
    }

    /* Flash Sales on Mobile */
    .flash-sale-wrapper {
        padding: 14px 12px 16px;
        border-radius: 14px;
        margin-bottom: 24px;
    }

    .flash-sale-header {
        margin-bottom: 12px;
        flex-wrap: nowrap;
    }

    .flash-sale-title {
        font-size: 15px;
        gap: 4px;
    }

    .count-box {
        font-size: 11px;
        padding: 2px 5px;
        min-width: 22px;
        border-radius: 5px;
    }

    .count-colon {
        font-size: 12px;
    }

    .flash-products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    .flash-card {
        border-radius: 12px;
    }

    .flash-img-box {
        height: 115px;
        padding: 10px;
        border-radius: 10px;
        margin-bottom: 6px;
    }

    .flash-img-box img {
        max-height: 65px;
        max-width: 65px;
    }

    .flash-discount-badge {
        top: 6px;
        left: 6px;
        font-size: 9.5px;
        padding: 1.5px 5px;
    }

    .flash-title {
        font-size: 12px;
        margin-bottom: 2px;
    }

    .flash-price {
        font-size: 12.5px;
    }

    /* Product Cards & 2-Column Responsive Grid */
    .digi-section-head {
        margin-bottom: 10px;
    }

    .digi-section-title {
        font-size: 16px;
        margin-bottom: 0;
    }

    .digi-view-all {
        font-size: 12px;
    }

    .digi-products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    .digi-card {
        padding: 10px;
        border-radius: 12px;
    }

    .digi-img-box {
        height: 115px;
        padding: 10px;
        border-radius: 10px;
        margin-bottom: 6px;
    }

    .digi-img-box img {
        max-height: 65px;
        max-width: 65px;
    }

    .digi-title {
        font-size: 12px;
        margin-bottom: 3px;
        line-height: 1.3;
    }

    .digi-price {
        font-size: 12.5px;
        font-weight: 800;
        margin-bottom: 8px;
    }

    .digi-actions-row {
        gap: 6px;
    }

    .btn-digi-buynow {
        font-size: 10.5px;
        font-weight: 800;
        padding: 7px 6px;
        letter-spacing: 0.3px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .btn-digi-cart {
        width: 32px;
        height: 32px;
        font-size: 13px;
        border-radius: 6px;
        flex-shrink: 0;
    }

    /* Footer Clean on Mobile */
    .footer-clean {
        padding: 36px 0 20px;
        margin-top: 40px;
    }

    .footer-clean-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer-clean-bottom {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    /* Floating WhatsApp Button on Mobile */
    .floating-chat-widget {
        bottom: 74px !important;
        right: 16px !important;
        width: 46px !important;
        height: 46px !important;
        font-size: 20px !important;
    }

    /* Mobile Bottom Navigation App Bar */
    .mobile-bottom-bar {
        display: flex !important;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 58px;
        background: #ffffff;
        border-top: 1px solid #e2e8f0;
        z-index: 999;
        align-items: center;
        justify-content: space-around;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
        padding: 0 4px;
    }

    .mobile-bar-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        color: #64748b;
        font-size: 10px;
        font-weight: 700;
        flex: 1;
        height: 100%;
        transition: color 0.15s ease;
    }

    .mobile-bar-item.active,
    .mobile-bar-item:hover {
        color: #2563eb;
    }

    .mobile-bar-icon {
        font-size: 18px;
        line-height: 1.1;
        margin-bottom: 2px;
    }

    .mobile-cart-badge {
        position: absolute;
        top: -4px;
        right: -8px;
        background: #dc2626;
        color: #fff;
        font-size: 9.5px;
        font-weight: 800;
        border-radius: 9px;
        min-width: 16px;
        height: 16px;
        padding: 0 3px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Other Grids Responsive Fixes */
    .catalog-layout-grid,
    .cart-layout-grid,
    .checkout-layout-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .order-meta-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }

    .top-cat-card {
        min-width: 78px !important;
        padding: 10px 4px !important;
    }

    .flash-products-grid,
    .digi-products-grid {
        gap: 8px !important;
    }

    .digi-card,
    .flash-card {
        padding: 8px;
    }

    .digi-img-box,
    .flash-img-box {
        height: 105px;
        padding: 8px;
    }

    .digi-img-box img,
    .flash-img-box img {
        max-height: 58px;
        max-width: 58px;
    }
}

/* ==========================================================================
   DIGISOFT MODALS SYSTEM (Matches User Images 2, 3, 4)
   ========================================================================== */

.digi-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.digi-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.digi-modal-box {
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 30px 70px -15px rgba(0, 0, 0, 0.38), 0 0 0 1px rgba(255, 255, 255, 0.25);
    width: 100%;
    max-width: 480px;
    max-height: 92vh;
    display: none;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    will-change: transform, opacity;
}

/* 3D Sliding & Entrance Animations */
@keyframes modal3DEntrance {
    0% {
        opacity: 0;
        transform: perspective(1400px) rotateX(16deg) translateY(50px) scale(0.92);
    }
    60% {
        transform: perspective(1400px) rotateX(-2deg) translateY(-4px) scale(1.01);
    }
    100% {
        opacity: 1;
        transform: perspective(1400px) rotateX(0deg) translateY(0) scale(1);
    }
}

@keyframes slideOut3DLeft {
    0% {
        opacity: 1;
        transform: perspective(1400px) rotateY(0deg) translateX(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: perspective(1400px) rotateY(-20deg) translateX(-90px) scale(0.91);
    }
}

@keyframes slideIn3DRight {
    0% {
        opacity: 0;
        transform: perspective(1400px) rotateY(20deg) translateX(90px) scale(0.91);
    }
    60% {
        transform: perspective(1400px) rotateY(-2deg) translateX(-4px) scale(1.01);
    }
    100% {
        opacity: 1;
        transform: perspective(1400px) rotateY(0deg) translateX(0) scale(1);
    }
}

@keyframes slideOut3DRight {
    0% {
        opacity: 1;
        transform: perspective(1400px) rotateY(0deg) translateX(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: perspective(1400px) rotateY(20deg) translateX(90px) scale(0.91);
    }
}

@keyframes slideIn3DLeft {
    0% {
        opacity: 0;
        transform: perspective(1400px) rotateY(-20deg) translateX(-90px) scale(0.91);
    }
    60% {
        transform: perspective(1400px) rotateY(2deg) translateX(4px) scale(1.01);
    }
    100% {
        opacity: 1;
        transform: perspective(1400px) rotateY(0deg) translateX(0) scale(1);
    }
}

.anim-3d-entrance {
    animation: modal3DEntrance 0.38s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

.anim-slide-out-left {
    animation: slideOut3DLeft 0.32s cubic-bezier(0.4, 0, 0.2, 1) forwards !important;
}

.anim-slide-in-right {
    animation: slideIn3DRight 0.38s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

.anim-slide-out-right {
    animation: slideOut3DRight 0.32s cubic-bezier(0.4, 0, 0.2, 1) forwards !important;
}

.anim-slide-in-left {
    animation: slideIn3DLeft 0.38s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

/* Button Appearance Resets */
button.digi-pill,
button.digi-tab-link,
button.digi-read-more-btn,
button.btn-digi-modal-buy,
button.btn-digi-modal-cart,
button.btn-digi-modal-purple,
button.btn-digi-buynow,
button.btn-digi-cart,
button.digi-modal-close,
button.digi-step-btn,
button.btn-copy-mfs-num,
button.btn-digi-auto-gateway,
button.digi-modal-back-btn {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    outline: none !important;
    border: none;
    font-family: inherit;
}

.digi-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.15s ease;
}

.digi-modal-close:hover {
    background: #e2e8f0;
    color: #0f172a;
    transform: rotate(90deg);
}

.digi-modal-back-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #475569;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-right: 4px;
}

.digi-modal-back-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
    transform: translateX(-2px);
}

/* Modal 1: Product Detail Styles (Image 2) */
.digi-modal-cat-badge {
    display: inline-block;
    background: #f1f5f9;
    color: #475569;
    font-size: 10.5px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.digi-modal-title {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.25;
    margin-bottom: 16px;
    padding-right: 32px;
}

.digi-modal-section-label {
    font-size: 10.5px;
    font-weight: 800;
    color: #64748b;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.digi-pills-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.digi-pill {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    color: #334155;
    font-size: 12.5px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.digi-pill:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.digi-pill.active {
    background: #f8fafc;
    border-color: #0f172a;
    color: #0f172a;
    font-weight: 700;
}

.digi-pill.active::before {
    content: "✓ ";
    font-weight: 800;
}

.digi-modal-price-row {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 16px;
}

.digi-modal-price {
    font-size: 24px;
    font-weight: 900;
    color: #0f172a;
}

.digi-modal-stock {
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
}

.digi-modal-tabs-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 12px;
    padding-bottom: 2px;
}

.digi-modal-tabs-left {
    display: flex;
    gap: 12px;
}

.digi-tab-link {
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 6px 4px;
    font-size: 11px;
    font-weight: 800;
    color: #64748b;
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: all 0.15s ease;
}

.digi-tab-link.active {
    color: #0f172a;
    border-bottom-color: #0f172a;
}

.digi-read-more-btn {
    background: none;
    border: none;
    color: #854d0e;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    padding: 4px 6px;
}

.digi-tab-content-area {
    font-size: 13px;
    line-height: 1.6;
    color: #334155;
    max-height: 180px;
    overflow-y: auto;
    padding-right: 6px;
    transition: max-height 0.25s ease;
}

.digi-tab-content-area.expanded {
    max-height: 340px;
}

.digi-modal-footer {
    display: flex;
    gap: 10px;
    padding: 16px 28px 24px;
    background: #ffffff;
    border-top: 1px solid #f1f5f9;
}

.btn-digi-modal-buy {
    flex: 1;
    background: #260058;
    color: #ffffff;
    font-size: 13.5px;
    font-weight: 800;
    border: none;
    border-radius: 10px;
    padding: 13px;
    cursor: pointer;
    text-align: center;
    letter-spacing: 0.5px;
    transition: background 0.15s ease;
}

.btn-digi-modal-buy:hover {
    background: #1c0042;
}

.btn-digi-modal-cart {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #0f172a;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-digi-modal-cart:hover {
    background: #e2e8f0;
}

/* Modal 2 & 3: Checkout Details & Payment (Images 3 & 4) */
.digi-modal-header-simple {
    padding: 22px 28px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.digi-modal-head-title {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 10px;
}

.digi-form-field {
    margin-bottom: 14px;
}

.digi-field-label {
    display: block;
    font-size: 11px;
    font-weight: 800;
    color: #475569;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.digi-input-icon-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.digi-modal-input {
    width: 100%;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 14px;
    color: #0f172a;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.digi-modal-input:focus {
    outline: none;
    border-color: #7c3aed;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
}

.digi-input-dot-icon {
    position: absolute;
    right: 14px;
    color: #94a3b8;
    font-size: 14px;
    pointer-events: none;
}

.digi-order-summary-box {
    background: #f8fafc;
    border-radius: 14px;
    padding: 16px;
    margin: 16px 0;
    border: 1px solid #f1f5f9;
}

.digi-summary-top-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.digi-summary-prod-name {
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.3;
}

.digi-summary-variant-tag {
    font-size: 11.5px;
    font-weight: 800;
    color: #b45309;
    margin: 3px 0 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.digi-summary-unit-price {
    font-size: 12.5px;
    color: #64748b;
}

.digi-stepper {
    display: inline-flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 6px;
}

.digi-step-btn {
    border: none;
    background: #f8fafc;
    width: 28px;
    height: 28px;
    font-weight: 800;
    font-size: 14px;
    cursor: pointer;
    color: #334155;
    transition: background 0.15s ease;
}

.digi-step-btn:hover {
    background: #e2e8f0;
}

.digi-step-val {
    width: 28px;
    text-align: center;
    font-size: 13px;
    font-weight: 800;
    color: #0f172a;
}

.digi-summary-line-total {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
}

.digi-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f1f5f9;
    padding-top: 14px;
    margin-top: 8px;
}

.digi-total-label {
    font-size: 15px;
    font-weight: 700;
    color: #475569;
}

.digi-total-amount {
    font-size: 24px;
    font-weight: 900;
    color: #0f172a;
}

.btn-digi-modal-purple {
    width: 100%;
    background: #260058;
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    border: none;
    border-radius: 10px;
    padding: 14px;
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: background 0.15s ease, transform 0.15s ease;
}

.btn-digi-modal-purple:hover {
    background: #1c0042;
    transform: translateY(-1px);
}

/* Modal 3: Payment Verification Elements (Image 4) */
.digi-pay-total-box {
    background: #f1f5f9;
    border-radius: 14px;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.digi-pay-total-title {
    font-size: 11px;
    font-weight: 800;
    color: #475569;
    letter-spacing: 0.5px;
}

.digi-pay-total-sub {
    font-size: 11px;
    color: #64748b;
    margin-top: 2px;
}

.digi-pay-total-val {
    font-size: 24px;
    font-weight: 900;
    color: #0f172a;
}

.digi-mfs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.digi-mfs-card {
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 8px;
    text-align: center;
    cursor: pointer;
    position: relative;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    user-select: none;
}

.digi-mfs-card:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.digi-mfs-card.active {
    border-color: #854d0e;
    box-shadow: 0 0 0 2px #eab308;
    background: #fffdf5;
}

.digi-mfs-name {
    font-size: 12px;
    font-weight: 700;
    color: #0f172a;
}

.digi-instructions-box {
    background: #f8fafc;
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 16px;
    border: 1px solid #f1f5f9;
}

.digi-instructions-title {
    font-size: 11px;
    font-weight: 800;
    color: #64748b;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.digi-instructions-text {
    font-size: 13px;
    color: #334155;
    line-height: 1.5;
    margin-bottom: 12px;
}

.digi-number-highlight {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.digi-number-text {
    font-size: 18px;
    font-weight: 900;
    color: #0f172a;
    font-family: monospace;
    letter-spacing: 1px;
}

.btn-copy-mfs-num {
    background: #fef3c7;
    color: #854d0e;
    font-size: 12px;
    font-weight: 700;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.15s ease;
}

.btn-copy-mfs-num:hover {
    background: #fde68a;
}

.btn-digi-auto-gateway {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-digi-auto-gateway:hover {
    background: #dbeafe;
}

/* Modal 4: bKash Gateway Styles */
.bkash-gw-header {
    background: #D12053;
    padding: 20px 24px;
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.bkash-gw-merchant {
    display: flex;
    align-items: center;
    gap: 12px;
}
.bkash-gw-bird {
    height: 34px;
    filter: brightness(0) invert(1);
}
.bkash-gw-amount-box {
    text-align: right;
}
.bkash-gw-amount-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
}
.bkash-gw-amount-val {
    font-size: 22px;
    font-weight: 900;
}
.bkash-gw-input {
    width: 100%;
    background: #ffffff;
    border: 1.5px solid #D12053;
    border-radius: 10px;
    padding: 13px 16px;
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    box-sizing: border-box;
    text-align: center;
    transition: box-shadow 0.2s ease;
}
.bkash-gw-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(209, 32, 83, 0.25);
}
.btn-bkash-gw-confirm {
    flex: 1;
    background: #D12053 !important;
    color: #ffffff !important;
    font-size: 13.5px;
    font-weight: 800;
    border: none !important;
    border-radius: 10px;
    padding: 13px;
    cursor: pointer;
    text-align: center;
    letter-spacing: 0.5px;
    transition: background 0.15s ease, transform 0.15s ease;
}
.btn-bkash-gw-confirm:hover {
    background: #b01742 !important;
}
.btn-bkash-gw-cancel {
    background: #f1f5f9 !important;
    color: #475569 !important;
    font-size: 13px;
    font-weight: 700;
    border: none !important;
    border-radius: 10px;
    padding: 13px 20px;
    cursor: pointer;
    transition: background 0.15s ease;
}
.btn-bkash-gw-cancel:hover {
    background: #e2e8f0 !important;
}

/* Modal 5: Order Delivery & Status Screen Styles */
.success-icon-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #dcfce7;
    color: #16a34a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 16px;
    box-shadow: 0 8px 20px -4px rgba(22, 163, 74, 0.3);
}
.pending-icon-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #fef3c7;
    color: #d97706;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 16px;
    box-shadow: 0 8px 20px -4px rgba(217, 119, 6, 0.3);
}
.license-key-dispensed-box {
    background: #eff6ff;
    border: 1.5px dashed #2563eb;
    border-radius: 12px;
    padding: 16px;
    margin: 16px 0;
    text-align: center;
}
.license-key-code {
    font-family: monospace;
    font-size: 17px;
    font-weight: 800;
    color: #1d4ed8;
    letter-spacing: 1px;
    word-break: break-all;
    user-select: all;
}
.btn-copy-license-success {
    margin-top: 10px;
    background: #2563eb !important;
    color: #ffffff !important;
    font-size: 12.5px;
    font-weight: 700;
    border: none !important;
    padding: 8px 18px;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.15s ease;
}
.btn-copy-license-success:hover {
    background: #1d4ed8 !important;
}
.download-dispensed-box {
    background: #f0fdf4;
    border: 1.5px solid #86efac;
    border-radius: 12px;
    padding: 16px;
    margin: 16px 0;
    text-align: center;
}
.btn-download-product-success {
    background: #16a34a !important;
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 800;
    border: none !important;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.25);
    transition: background 0.15s ease;
}
.btn-download-product-success:hover {
    background: #15803d !important;
}
