/* ==========================================================================
   Design System & Styling variables
   ========================================================================== */
:root {
    /* Fonts */
    --font-primary: 'Noto Sans Bengali', sans-serif;
    --font-bengali: 'Noto Sans Bengali', sans-serif;

    /* Theme: Light (Default) */
    --bg-base: #f8fafc;
    --bg-surface: #ffffff;
    --bg-surface-glass: rgba(255, 255, 255, 0.8);
    --border-color: rgba(0, 0, 0, 0.08);
    --border-color-hover: rgba(20, 184, 166, 0.6);

    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-inverse: #ffffff;

    --accent-light: rgba(20, 184, 166, 0.1);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 16px 40px rgba(15, 23, 42, 0.12);

    /* Branding Accent Colors */
    --accent: #14b8a6;
    /* Cyan-Teal */
    --accent-rgb: 20, 184, 166;
    --accent-hover: #0d9488;

    --secondary: #a855f7;
    /* Purple */
    --secondary-hover: #9333ea;

    --success: #10b981;
    /* Emerald */
    --danger: #ef4444;
    /* Crimson Red */
    --warning: #f59e0b;
    /* Amber */

    --shadow-accent: 0 0 15px rgba(20, 184, 166, 0.3);

    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);

    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
}

/* Dark Theme Variables */
body.dark-theme {
    --bg-base: #080b11;
    --bg-surface: #0f1524;
    --bg-surface-glass: rgba(15, 21, 36, 0.7);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-color-hover: rgba(20, 184, 166, 0.4);

    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --text-inverse: #0f172a;

    --accent-light: rgba(20, 184, 166, 0.15);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.5);
}

/* ==========================================================================
   Base & Common Styles
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-base);
    color: var(--text-main);
    font-family: var(--font-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color var(--transition-smooth), color var(--transition-smooth);
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

button,
input,
select,
textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    background: none;
    border: none;
    outline: none;
}

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

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-base);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: var(--border-radius-sm);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Helper Utilities */
.text-center {
    text-align: center;
}

.value-highlight {
    color: var(--accent);
    font-weight: 600;
}

.required {
    color: var(--danger);
    margin-left: 2px;
}

/* ==========================================================================
   Buttons UI
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 600;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: transform var(--transition-fast), background-color var(--transition-fast), box-shadow var(--transition-fast);
    text-align: center;
    border: 1px solid transparent;
}

.btn:active {
    transform: scale(0.97);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: var(--text-inverse);
    box-shadow: 0 4px 14px rgba(20, 184, 166, 0.4);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--accent-hover), #0f766e);
    box-shadow: 0 6px 20px rgba(20, 184, 166, 0.6);
}

.btn-secondary {
    background-color: var(--bg-surface);
    border-color: var(--border-color);
    color: var(--text-main);
}

.btn-secondary:hover {
    background-color: var(--accent-light);
    border-color: var(--accent);
    color: var(--accent);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 16px 28px;
    font-size: 1.1rem;
    border-radius: var(--border-radius-md);
}

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

.btn-xs {
    padding: 6px 12px;
    font-size: 0.75rem;
    border-radius: 4px;
}

.icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: background-color var(--transition-fast), border-color var(--transition-fast);
}

.icon-btn:hover {
    background-color: var(--accent-light);
    border-color: var(--accent);
    color: var(--accent);
}

/* Animations */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 14px rgba(20, 184, 166, 0.4);
    }

    50% {
        transform: scale(1.02);
        box-shadow: 0 6px 24px rgba(20, 184, 166, 0.7);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 4px 14px rgba(20, 184, 166, 0.4);
    }
}

.pulse-animation {
    animation: pulse 2s infinite ease-in-out;
}

/* ==========================================================================
   Header & Promo Bar
   ========================================================================== */
.promo-bar {
    background: linear-gradient(90deg, var(--accent), var(--secondary));
    color: var(--text-inverse);
    text-align: center;
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    position: relative;
    z-index: 1000;
}

.promo-bar .badge {
    background-color: rgba(0, 0, 0, 0.25);
    color: #ffffff;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.75rem;
    margin-right: 6px;
}

.header {
    position: sticky;
    top: 0;
    z-index: 999;
    background-color: var(--bg-surface-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 0;
    transition: background-color var(--transition-smooth);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--accent);
}

.ring-logo-icon {
    font-size: 1.7rem;
    color: var(--accent);
    text-shadow: 0 0 10px rgba(20, 184, 166, 0.4);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
}

.nav-link:hover {
    color: var(--accent);
}

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

/* Cart badge indicator */
.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--danger);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
    border: 2px solid var(--bg-surface);
}

/* Theme Toggle Config */
.theme-toggle .light-icon {
    display: none;
}

.theme-toggle .dark-icon {
    display: block;
}

body.dark-theme .theme-toggle .light-icon {
    display: block;
}

body.dark-theme .theme-toggle .dark-icon {
    display: none;
}

/* Responsive navigation hiding */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .header-cta-btn {
        display: none;
    }
}

/* ==========================================================================
   Product Showcase Layout
   ========================================================================== */
.product-showcase {
    padding: 48px 0;
}

.product-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: start;
}

/* Left: Gallery Column */
.product-gallery {
    position: sticky;
    top: 120px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.main-image-container {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    aspect-ratio: 1;
}

.main-img {
    width: 100%;
    object-fit: cover;
    transition: transform var(--transition-smooth);
    border-radius: 10px;
}

.main-image-container:hover .main-img {
    transform: scale(1.08);
}

.discount-tag {
    position: absolute;
    top: 24px;
    left: 24px;
    background-color: var(--danger);
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 30px;
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.3);
}

.thumbnail-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.thumb-btn {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
    transition: border-color var(--transition-fast), transform var(--transition-fast);
}

.thumb-btn img {
    max-height: 85%;
    max-width: 85%;
    object-fit: contain;
    border-radius: 6px;
}

.thumb-btn:hover {
    border-color: var(--border-color-hover);
    transform: translateY(-2px);
}

.thumb-btn.active {
    border-color: var(--accent);
    box-shadow: var(--shadow-accent);
}

/* Right: Product Info Panel */
.product-info-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 500;
}

.rating-badge .stars {
    color: #fbbf24;
    /* gold stars */
}

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

.product-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.5px;
}

.tagline {
    font-size: 1.1rem;
    color: var(--accent);
    font-weight: 500;
}

.price-container {
    display: flex;
    align-items: baseline;
    gap: 16px;
    padding: 12px 20px;
    background-color: var(--bg-surface);
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-color);
    width: fit-content;
}

.sale-price {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-main);
}

.regular-price {
    font-size: 1.3rem;
    text-decoration: line-through;
    color: var(--text-muted);
}

.savings {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--success);
    background-color: rgba(16, 185, 129, 0.1);
    padding: 2px 10px;
    border-radius: 20px;
}

.description-text {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.65;
}

/* Option picker elements */
.config-options {
    display: flex;
    flex-direction: column;
    gap: 24px;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 24px 0;
}

.option-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.option-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
}

.text-link {
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 600;
    cursor: pointer;
}

.text-link:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

/* Colors Selection */
.color-picker {
    display: flex;
    gap: 16px;
}

.color-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    border: 2px solid transparent;
    transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.color-btn::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    border: 2px solid transparent;
    transition: border-color var(--transition-fast);
}

.color-btn:hover {
    transform: scale(1.05);
}

.color-btn.active::after {
    border-color: var(--accent);
}

/* Sizes Selection */
.size-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.size-btn {
    min-width: 44px;
    height: 44px;
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border-color);
    background-color: var(--bg-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    cursor: pointer;
    transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

.size-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.size-btn.active {
    background-color: var(--accent-light);
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 0 10px rgba(20, 184, 166, 0.1);
}

/* Quantity selector */
.qty-selector {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    width: fit-content;
    background-color: var(--bg-surface);
    overflow: hidden;
}

.qty-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background-color: transparent;
    transition: background-color var(--transition-fast);
}

.qty-btn:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--accent);
}

.qty-val {
    width: 48px;
    text-align: center;
    font-weight: 700;
}

/* Call To Action Buttons wrapper */
.cta-actions {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 16px;
    margin-top: 10px;
}

/* Trust Badges styling */
.trust-badges {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
    background-color: var(--accent-light);
    border: 1px dashed var(--accent);
    padding: 16px;
    border-radius: var(--border-radius-md);
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    font-weight: 500;
}

.badge-item i {
    color: var(--accent);
    font-size: 1.1rem;
}

/* Responsive product Grid */
@media (max-width: 992px) {
    .product-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .product-gallery {
        position: relative;
        top: 0;
    }
}

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

    .product-title {
        font-size: 2rem;
    }
}

/* ==========================================================================
   Features section
   ========================================================================== */
.features-section {
    padding: 80px 0 40px 0;
}

.section-title-wrap {
    text-align: center;
    margin-bottom: 48px;
}

.sub-title {
    color: var(--accent);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-top: 8px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.feature-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 32px;
    transition: transform var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth);
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-color-hover);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 54px;
    height: 54px;
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 24px;
}

.feature-icon.bg-cyan {
    background-color: rgba(20, 184, 166, 0.1);
    color: #14b8a6;
}

.feature-icon.bg-purple {
    background-color: rgba(168, 85, 247, 0.1);
    color: #a855f7;
}

.feature-icon.bg-emerald {
    background-color: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.feature-icon.bg-blue {
    background-color: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ==========================================================================
   Specs Section (Accordion Style)
   ========================================================================== */
.specs-section {
    padding: 60px 0;
}

.specs-accordion {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.accordion-item {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    transition: border-color var(--transition-fast);
}

.accordion-item:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

.accordion-header {
    width: 100%;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
    text-align: left;
    transition: color var(--transition-fast);
}

.accordion-header:hover {
    color: var(--accent);
}

.toggle-icon {
    font-size: 0.9rem;
    transition: transform var(--transition-smooth);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-smooth) ease-out;
    background-color: rgba(0, 0, 0, 0.1);
}

.accordion-content p {
    padding: 20px 24px;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.65;
}

.accordion-item.open {
    border-color: var(--accent);
}

.accordion-item.open .toggle-icon {
    transform: rotate(180deg);
}

.accordion-item.open .accordion-content {
    max-height: 500px;
    /* arbitrary high value to allow expansion */
}

/* ==========================================================================
   Reviews section
   ========================================================================== */
.reviews-section {
    padding: 60px 0 80px 0;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.review-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.reviewer-meta {
    display: flex;
    align-items: center;
    gap: 16px;
}

.avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--secondary));
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.reviewer-meta h4 {
    font-weight: 700;
    font-size: 1.05rem;
}

.verified-buyer {
    font-size: 0.75rem;
    color: var(--success);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.stars-rating {
    color: #fbbf24;
    font-size: 0.85rem;
}

.review-comment {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ==========================================================================
   Modals & Backdrop Overlays
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-smooth);
}

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

.close-modal-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color var(--transition-fast), color var(--transition-fast);
}

.close-modal-btn:hover {
    background-color: var(--danger);
    color: #ffffff;
}

/* Sizing Guide modal styling */
.sizing-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    width: 100%;
    max-width: 500px;
    padding: 36px;
    position: relative;
    box-shadow: var(--shadow-lg);
    transform: translateY(20px);
    transition: transform var(--transition-smooth);
}

.modal-overlay.open .sizing-card {
    transform: translateY(0);
}

.sizing-card h2 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.size-steps {
    margin-left: 20px;
    margin-bottom: 24px;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.size-steps li {
    margin-bottom: 8px;
}

.table-wrap {
    margin-bottom: 24px;
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
}

.size-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    text-align: center;
}

.size-table th,
.size-table td {
    padding: 10px;
    border-bottom: 1px solid var(--border-color);
}

.size-table th {
    background-color: rgba(255, 255, 255, 0.03);
    font-weight: 600;
}

.size-table tr:last-child td {
    border-bottom: none;
}

/* ==========================================================================
   Checkout Drawer UI
   ========================================================================== */
.checkout-drawer {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    width: 95%;
    max-width: 900px;
    height: auto;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: var(--shadow-lg);
    overflow-y: auto;
    transform: scale(0.95);
    transition: transform var(--transition-smooth);
}

.modal-overlay.open .checkout-drawer {
    transform: scale(1);
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    height: auto;
    overflow: visible;
}

.checkout-form-column {
    padding: 36px;
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow: visible;
}

.checkout-summary-column {
    padding: 36px;
    background-color: rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    overflow: visible;
}

.form-title,
.summary-title {
    font-size: 1.4rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-title i,
.summary-title i {
    color: var(--accent);
}

.form-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: -12px;
}

/* Form Controls */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.form-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-main);
}

.form-control {
    background-color: var(--bg-base);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 12px 16px;
    font-size: 0.95rem;
    width: 100%;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.15);
}

.form-control.is-invalid {
    border-color: var(--danger);
}

.form-control.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.invalid-feedback {
    color: var(--danger);
    font-size: 0.75rem;
    font-weight: 500;
    display: none;
}

.form-control.is-invalid+.invalid-feedback {
    display: block;
}

.input-phone-wrap {
    display: flex;
    align-items: center;
    background-color: var(--bg-base);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    overflow: hidden;
}

.input-phone-wrap:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.15);
}

.input-phone-wrap .form-control {
    border: none;
    border-radius: 0;
    box-shadow: none;
}

.input-phone-wrap .form-control:focus {
    box-shadow: none;
}

.phone-prefix {
    padding: 12px 0 12px 16px;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.95rem;
    user-select: none;
}

.input-phone-wrap.is-invalid-wrap {
    border-color: var(--danger);
}

.input-phone-wrap.is-invalid-wrap+.invalid-feedback {
    display: block;
}

.select-control {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='black' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    padding-right: 40px;
}

body.dark-theme .select-control {
    background-image: url("data:image/svg+xml;utf8,<svg fill='white' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
}

.text-area-control {
    resize: none;
}

/* Payment selection badges */
.payment-method-selector {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.payment-option {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    background-color: var(--bg-base);
    transition: border-color var(--transition-fast), background-color var(--transition-fast);
}

.payment-option input {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
    cursor: pointer;
}

.payment-option label {
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    flex: 1;
}

.payment-option label i {
    font-size: 1.5rem;
    color: var(--text-muted);
}

.payment-option label div {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.payment-option label strong {
    font-size: 0.9rem;
    font-weight: 700;
}

.payment-option label span {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.payment-option:hover {
    border-color: var(--border-color-hover);
}

.payment-option.active {
    border-color: var(--accent);
    background-color: var(--accent-light);
}

.payment-option.active label i {
    color: var(--accent);
}

/* Invoice Calculations Styling */
.invoice-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 24px;
    flex: 1;
}

.invoice-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 12px 16px;
    border-radius: var(--border-radius-sm);
}

.item-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.item-name {
    font-size: 0.9rem;
    font-weight: 700;
}

.item-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.item-price {
    font-size: 0.95rem;
    font-weight: 700;
}

.summary-divider {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 20px 0;
}

.calc-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    margin-bottom: 12px;
    color: var(--text-muted);
}

.calc-row span:last-child {
    color: var(--text-main);
    font-weight: 600;
}

.grand-total-row {
    font-size: 1.2rem;
    color: var(--text-main);
    font-weight: 800;
    margin-bottom: 24px;
}

.total-payable-val {
    color: var(--accent) !important;
    font-size: 1.5rem;
    font-weight: 800 !important;
}

.security-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* Checkout Modal Responsive layout */
@media (max-width: 768px) {
    .checkout-drawer {
        height: 100vh;
        max-height: 100vh;
        width: 100%;
        border-radius: 0;
    }

    .checkout-grid {
        grid-template-columns: 1fr;
        grid-template-rows: 1.2fr 0.8fr;
    }

    .checkout-form-column {
        padding: 24px;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }

    .checkout-summary-column {
        padding: 24px;
    }
}

/* ==========================================================================
   Order Success Screen
   ========================================================================== */
.success-box {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    width: 95%;
    max-width: 520px;
    padding: 40px;
    text-align: center;
    position: relative;
    box-shadow: var(--shadow-lg);
    transform: scale(0.95);
    transition: transform var(--transition-smooth);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.modal-overlay.open .success-box {
    transform: scale(1);
}

.success-icon-wrap {
    font-size: 4rem;
    color: var(--success);
    margin-bottom: 8px;
}

.animated-check {
    animation: pulse 1.5s infinite ease-in-out;
}

.success-message {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.receipt-card {
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    width: 100%;
    text-align: left;
    overflow: hidden;
}

.receipt-header {
    background-color: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border-color);
    padding: 16px;
    display: flex;
    justify-content: space-between;
}

.receipt-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.receipt-val {
    font-size: 0.85rem;
    font-weight: 700;
}

.receipt-body {
    padding: 16px;
}

.receipt-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    margin-bottom: 8px;
    color: var(--text-muted);
}

.receipt-row span:last-child {
    color: var(--text-main);
    font-weight: 600;
}

.receipt-divider {
    border: none;
    border-top: 1px dashed var(--border-color);
    margin: 12px 0;
}

.receipt-total {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-main);
}

.receipt-total span:last-child {
    color: var(--accent);
}

.receipt-footer {
    background-color: rgba(20, 184, 166, 0.05);
    border-top: 1px solid var(--border-color);
    padding: 16px;
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.buyer-summary-title {
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 4px;
}

.download-info-text {
    font-size: 0.8rem;
    color: var(--warning);
    background-color: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.2);
    padding: 10px 14px;
    border-radius: var(--border-radius-sm);
    line-height: 1.45;
}

.download-info-text code {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.85rem;
    color: #ffffff;
}

.success-actions {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 12px;
    width: 100%;
}

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

/* ==========================================================================
   Shopping Cart Sidebar UI
   ========================================================================== */
.cart-sidebar {
    background-color: var(--bg-surface);
    border-left: 1px solid var(--border-color);
    width: 100%;
    max-width: 420px;
    height: 100%;
    position: absolute;
    right: 0;
    top: 0;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform var(--transition-smooth);
}

.modal-overlay.open .cart-sidebar {
    transform: translateX(0);
}

.cart-header {
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h3 {
    font-size: 1.15rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-header h3 i {
    color: var(--accent);
}

.cart-body {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.empty-cart-state {
    padding: 60px 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex: 1;
}

.empty-cart-state i {
    font-size: 3.5rem;
    color: var(--text-muted);
}

.empty-cart-state p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.cart-items-container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.cart-items-list {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cart-item {
    display: flex;
    gap: 16px;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 12px;
}

.cart-item-img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    background-color: var(--bg-base);
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-img img {
    max-height: 100%;
    object-fit: contain;
}

.cart-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cart-item-title {
    font-size: 0.9rem;
    font-weight: 700;
}

.cart-item-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.cart-item-price {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent);
}

.remove-cart-item {
    cursor: pointer;
    color: var(--text-muted);
    transition: color var(--transition-fast);
    padding: 8px;
}

.remove-cart-item:hover {
    color: var(--danger);
}

.cart-footer-calc {
    padding: 24px;
    background-color: rgba(0, 0, 0, 0.1);
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cart-calc-row {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    font-size: 1.05rem;
}

.cart-calc-row span:last-child {
    color: var(--accent);
}

.delivery-notice-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: -8px;
}

/* ==========================================================================
   Meta Pixel Configurations Sidebar
   ========================================================================== */
.settings-trigger-btn {
    position: fixed;
    left: 24px;
    bottom: 24px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bg-surface), rgba(15, 21, 36, 0.95));
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    color: var(--text-muted);
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1500;
    transition: transform var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

.settings-trigger-btn:hover {
    transform: rotate(45deg) scale(1.05);
    color: var(--accent);
    border-color: var(--accent);
}

.settings-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    max-width: 320px;
    height: 100%;
    background-color: var(--bg-surface);
    border-right: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    z-index: 1600;
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform var(--transition-smooth);
}

.settings-sidebar.open {
    transform: translateX(0);
}

.settings-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.settings-header h4 {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

.settings-header h4 i {
    color: #1877f2;
    /* facebook brand blue */
}

.close-settings-btn {
    cursor: pointer;
    font-size: 1rem;
    color: var(--text-muted);
}

.close-settings-btn:hover {
    color: var(--danger);
}

.settings-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.settings-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.code-input {
    font-family: monospace;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.pixel-status-card {
    background-color: var(--bg-base);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--danger);
}

.status-indicator.connected {
    background-color: var(--success);
    box-shadow: 0 0 8px var(--success);
}

.status-text {
    font-weight: 600;
    font-family: monospace;
}

.settings-divider {
    border: none;
    border-top: 1px dashed var(--border-color);
}

/* ==========================================================================
   Meta Pixel Debug Console Terminal
   ========================================================================== */
.debugger-console-widget {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 380px;
    max-height: 280px;
    background-color: #05070c;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-smooth), max-height var(--transition-smooth);
}

.debugger-console-widget.minimized {
    max-height: 40px;
}

.console-header {
    background-color: #0a0e1a;
    border-bottom: 1px solid var(--border-color);
    padding: 10px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    cursor: pointer;
}

.console-header .title {
    font-family: monospace;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 8px;
}

.console-actions {
    display: flex;
    gap: 12px;
}

.console-actions button {
    cursor: pointer;
    font-size: 0.75rem;
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

.console-actions button:hover {
    color: var(--accent);
}

#clearConsoleBtn:hover {
    color: var(--danger);
}

.console-body {
    padding: 12px;
    overflow-y: auto;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.75rem;
    line-height: 1.5;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: calc(100% - 40px);
}

/* Welcome system logs */
.console-welcome {
    color: #6b7280;
    border-left: 2px solid #4b5563;
    padding-left: 8px;
    font-style: italic;
}

/* Console logs style */
.console-log-entry {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 4px;
    padding: 8px;
}

.log-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
}

.log-time {
    color: #6b7280;
}

.log-event-tag {
    font-weight: 700;
    color: var(--accent);
    background-color: var(--accent-light);
    padding: 1px 6px;
    border-radius: 3px;
    text-transform: uppercase;
}

.log-event-tag.pageview {
    color: #3b82f6;
    background-color: rgba(59, 130, 246, 0.15);
}

.log-event-tag.addtocart {
    color: #e9d5ff;
    background-color: rgba(168, 85, 247, 0.15);
}

.log-event-tag.initiatecheckout {
    color: #fef08a;
    background-color: rgba(234, 179, 8, 0.15);
}

.log-event-tag.purchase {
    color: #a7f3d0;
    background-color: rgba(16, 185, 129, 0.15);
}

.log-payload {
    color: #10b981;
    /* neon green payload */
    white-space: pre-wrap;
    word-break: break-all;
    font-size: 0.7rem;
    margin-top: 4px;
}

/* Adjust debugger console screen spacing for mobile */
@media (max-width: 480px) {
    .debugger-console-widget {
        width: calc(100% - 32px);
        right: 16px;
        bottom: 16px;
    }

    .settings-trigger-btn {
        left: 16px;
        bottom: 16px;
    }
}

/* ==========================================================================
   Confetti Canvas overlay
   ========================================================================== */
#confettiCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

/* ==========================================================================
   Hero Slider & Multiproduct Grid Styles
   ========================================================================== */
.hero-slide-wrapper {
    height: 420px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
}

@media (max-width: 768px) {
    .hero-slide-wrapper {
        height: auto;
        padding: 40px 20px;
    }
}

.slide-prod-img {
    filter: drop-shadow(0 15px 30px rgba(6, 182, 212, 0.4));
    animation: floatImg 4s ease-in-out infinite;
}

@keyframes floatImg {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-12px);
    }

    100% {
        transform: translateY(0px);
    }
}

.product-item-card {
    transition: all 0.3s ease;
}

.product-item-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(6, 182, 212, 0.1) !important;
    border-color: var(--accent) !important;
}

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

.product-item-img {
    width: 100% !important;
    object-fit: cover !important;
    display: block !important;
    margin: 0 auto !important;
    border-radius: 5px !important;
}