/* ==========================================================================
   Premium SaaS UI / Global Stylesheet (Frontend & Admin)
   Theme: Modern Blue Gradient & Soft UI
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    /* Unified Premium Blue Palette */
    --primary-blue: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #eff6ff;
    --primary-gradient: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    
    /* Backgrounds & Text */
    --light-bg: #f8fafc;
    --white: #ffffff;
    --text-dark: #0f172a;
    --text-muted: #64748b;
    
    /* Status Colors */
    --danger: #ef4444;
    --success: #10b981;
    --warning: #f59e0b;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--light-bg);
    color: var(--text-dark);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* ==========================================================================
   Global Utilities & Typography
   ========================================================================== */

.text-blue { color: var(--primary-blue) !important; }
.bg-blue { background: var(--primary-gradient) !important; color: var(--white); }

/* ==========================================================================
   Global Components (Buttons, Forms, Cards)
   ========================================================================== */

/* Unified Gradient Buttons (Replaces flat slate/blue buttons) */
.btn-slate, .btn-order, .btn-action-primary, .btn-login {
    background: var(--primary-gradient);
    color: var(--white);
    border: none !important;
    border-radius: 10px;
    padding: 14px 24px;
    font-size: 1.05rem;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.btn-slate:hover, .btn-order:hover, .btn-action-primary:hover, .btn-login:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(37, 99, 235, 0.35);
    color: var(--white);
}

/* Form Elements - Strict No Border Policy */
.form-control, .form-select {
    background-color: #f1f5f9;
    border: none !important; 
    border-radius: 10px;
    padding: 14px 18px;
    font-size: 0.95rem;
    color: var(--text-dark);
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: inset 0 0 0 1px transparent;
}

.form-control:focus, .form-select:focus {
    background-color: var(--white);
    box-shadow: inset 0 0 0 2px var(--primary-blue) !important;
    outline: none;
}

/* Premium Cards */
.card-premium, .card-clean {
    background: var(--white);
    border-radius: 16px;
    border: none !important;
    box-shadow: 0 10px 35px rgba(15, 23, 42, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 24px;
}

/* ==========================================================================
   Admin Panel Layout (100% Responsive)
   ========================================================================== */

.admin-wrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

.sidebar-header {
    padding: 24px 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.sidebar-brand {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    font-size: 1.5rem;
    text-decoration: none;
}
.admin-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-width: 0; 
}

.admin-topbar {
    background-color: var(--white);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    z-index: 1030;
}

.admin-main {
    padding: 30px;
    flex-grow: 1;
    overflow-y: auto;
}

/* ==========================================================================
   Admin Sidebar Width & Scrollbar Fix (Prevents Layout Shift)
   ========================================================================== */
.admin-sidebar {
    width: 260px; /* Ensure a fixed width */
    min-width: 260px;
    flex-shrink: 0;
    overflow-y: auto; /* Enable scrolling */
    overflow-x: hidden;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.admin-sidebar::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.admin-sidebar {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

/* Ensure text never breaks into two lines awkwardly */
.sidebar-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ==========================================================================
   Frontend: Product Grid & Details
   ========================================================================== */

.product-grid-card {
    background: var(--white);
    border-radius: 16px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    box-shadow: inset 0 0 0 2px transparent, 0 4px 15px rgba(0,0,0,0.04);
}

.product-grid-card:hover {
    transform: translateY(-4px);
    box-shadow: inset 0 0 0 2px rgba(37, 99, 235, 0.1), 0 15px 30px rgba(37, 99, 235, 0.1);
}

.product-grid-card.selected {
    box-shadow: inset 0 0 0 3px var(--primary-blue), 0 15px 30px rgba(37, 99, 235, 0.15);
}

.product-img-box {
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
    background: #f1f5f9;
    margin-bottom: 15px;
}

.product-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.selection-indicator {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 32px;
    height: 32px;
    background: var(--primary-gradient);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.3s ease;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}

.product-grid-card.selected .selection-indicator {
    opacity: 1;
    transform: scale(1);
}

.product-desc-snippet {
    font-size: 0.9rem;
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==========================================================================
   Frontend: Checkout & Payment Selection
   ========================================================================== */

.payment-method {
    background: #f1f5f9;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: inset 0 0 0 2px transparent;
}

.payment-method input[type="radio"] {
    transform: scale(1.4);
    margin-right: 18px;
    accent-color: var(--primary-blue);
}

.payment-method.active {
    background: var(--primary-light);
    box-shadow: inset 0 0 0 2px var(--primary-blue);
}

.payment-details {
    display: none;
    background: var(--white);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    font-size: 0.95rem;
    animation: fadeInDown 0.3s ease;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.qty-btn {
    background: var(--light-bg);
    color: var(--primary-dark);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background 0.2s;
}

.qty-btn:hover {
    background: var(--primary-light);
}

/* Mobile Sticky Footer */
.mobile-sticky-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--white);
    box-shadow: 0 -10px 30px rgba(0,0,0,0.08);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1050;
}

@media (min-width: 992px) {
    .mobile-sticky-footer { display: none; }
    body { padding-bottom: 0; }
}

/* ==========================================================================
   Order Badges & Thumbnails
   ========================================================================== */

.order-thumb {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
}

.status-badge {
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    display: inline-block;
}

.status-Pending { background-color: #fffbeb; color: #d97706; }
.status-Processing { background-color: var(--primary-light); color: var(--primary-blue); }
.status-Completed { background-color: #d1fae5; color: #059669; }
.status-Cancelled { background-color: #fee2e2; color: #dc2626; }

/* Inline Admin Status Form */
.update-status-form {
    display: flex;
    gap: 8px;
    align-items: center;
}

.update-status-form select {
    padding: 6px 12px;
    font-size: 0.9rem;
    border-radius: 8px;
    border: none;
    background: #f1f5f9;
    box-shadow: inset 0 0 0 1px transparent;
    cursor: pointer;
    outline: none;
}

.update-status-form select:focus {
    box-shadow: inset 0 0 0 2px var(--primary-blue);
}

.update-status-form button {
    padding: 6px 12px;
    font-size: 0.9rem;
    border-radius: 8px;
}

/* ==========================================================================
   Secure Login & Product Details Overrides
   ========================================================================== */

.login-wrapper {
    min-height: 100vh;
    background: var(--light-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-card {
    background: var(--white);
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.08);
    width: 100%;
    max-width: 420px;
    padding: 50px 40px;
    border: none; 
}

.details-img-box {
    background-color: var(--white);
    border-radius: 24px;
    padding: 15px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.05);
    position: sticky;
    top: 20px;
}

.details-content-box {
    background-color: var(--white);
    border-radius: 24px;
    padding: 45px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.05);
    height: 100%;
}

.feature-check-icon {
    background-color: var(--primary-light);
    color: var(--primary-blue);
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 15px;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.15);
}

/* ==========================================================================
   Secure Login Page Styles (Responsive & Premium)
   ========================================================================== */

.login-wrapper {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--light-bg) 0%, var(--primary-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-card {
    background: var(--white);
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.08);
    width: 100%;
    max-width: 420px;
    padding: 45px 35px;
    border: none;
    transition: transform 0.3s ease;
}

@media (max-width: 575.98px) {
    .login-card {
        padding: 35px 25px;
    }
}

.login-input {
    background-color: #f1f5f9;
    border: none !important;
    border-radius: 10px;
    padding: 14px 20px;
    width: 100%;
    font-size: 0.95rem;
    color: var(--text-dark);
    transition: all 0.3s ease;
    box-shadow: inset 0 0 0 1px transparent;
}

.login-input:focus {
    background-color: var(--white);
    box-shadow: inset 0 0 0 2px var(--primary-blue) !important;
    outline: none;
}

.btn-login {
    background: var(--primary-gradient);
    color: var(--white);
    border: none;
    border-radius: 10px;
    padding: 14px;
    font-size: 1.1rem;
    font-weight: 700;
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
    cursor: pointer;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(37, 99, 235, 0.35);
}

/* ==========================================================================
   Advanced System Settings Page Styles
   ========================================================================== */

.settings-nav-pills {
    background: var(--white);
    padding: 10px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.03);
    gap: 10px;
}

.settings-nav-pills .nav-link {
    border-radius: 10px;
    color: var(--text-muted);
    font-weight: 600;
    padding: 14px 20px;
    transition: all 0.3s ease;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.settings-nav-pills .nav-link:hover {
    background: #f8fafc;
    color: var(--primary-dark);
}

.settings-nav-pills .nav-link.active {
    background: var(--primary-light) !important;
    color: var(--primary-blue) !important;
    box-shadow: inset 0 0 0 2px var(--primary-blue);
}

.settings-tab-pane {
    background: var(--white);
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.04);
    animation: fadeTab 0.4s ease-in-out;
}

@keyframes fadeTab {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.settings-icon-wrapper {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    background: var(--primary-light);
    color: var(--primary-blue);
}

/* ==========================================================================
   Floating Chat Buttons (WhatsApp & Messenger)
   ========================================================================== */

.floating-chat-container {
    position: fixed;
    bottom: 90px; /* Above mobile sticky footer */
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1040;
}

@media (min-width: 992px) {
    .floating-chat-container {
        bottom: 30px;
    }
}

.chat-btn {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.chat-btn:hover {
    transform: translateY(-4px) scale(1.05);
    color: var(--white);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.whatsapp-btn {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
}

.messenger-btn {
    background: linear-gradient(135deg, #00B2FF 0%, #006AFF 100%);
}

.chat-btn svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
}

/* ==========================================================================
   Order Details Page Styles (Screen)
   ========================================================================== */

.order-detail-card {
    background: var(--white);
    border-radius: 16px;
    border: none;
    box-shadow: 0 10px 35px rgba(15, 23, 42, 0.04);
    padding: 25px;
    margin-bottom: 24px;
}

.order-detail-header {
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding-bottom: 15px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-dark);
}

.info-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
    margin-bottom: 5px;
}

.info-value {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-dark);
    word-break: break-word;
}

.product-summary-box {
    background: #f8fafc;
    border-radius: 12px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.product-summary-box img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* Receipt Row Base Styles */
.receipt-total-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
}

/* Add dotted border to items except the first and last for a receipt look */
.receipt-box .receipt-total-row {
    border-bottom: 1px dashed rgba(0,0,0,0.08);
}

/* Styling for the final Total Paid row */
.receipt-box .receipt-total-row:last-child {
    border-bottom: none;
    font-size: 1.25rem !important;
    font-weight: 800 !important;
    padding-top: 15px;
    margin-top: 5px;
}

/* ==========================================================================
   Responsive Overrides for Mobile & Tablets (NEW)
   ========================================================================== */

@media (max-width: 767.98px) {
    /* Reduce padding on mobile to save space */
    .order-detail-card {
        padding: 15px 20px;
        border-radius: 12px;
        margin-bottom: 15px;
    }

    /* Adjust header font size and padding */
    .order-detail-header {
        font-size: 1.1rem;
        padding-bottom: 12px;
        margin-bottom: 15px;
    }

    .order-detail-header svg {
        width: 18px;
        height: 18px;
    }

    /* Adjust font sizes for info items */
    .info-label {
        font-size: 0.75rem;
    }

    .info-value {
        font-size: 0.95rem;
    }

    /* Make product summary more compact */
    .product-summary-box {
        padding: 12px;
        gap: 10px;
        border-radius: 10px;
    }

    .product-summary-box img {
        width: 55px;
        height: 55px;
    }

    /* Adjust receipt text sizes */
    .receipt-total-row {
        font-size: 0.9rem;
        padding: 8px 0;
    }

    .receipt-box .receipt-total-row:last-child {
        font-size: 1.1rem !important;
        padding-top: 12px;
    }

    /* Stack the top action buttons if screen is very small */
    .no-print-area.d-flex.justify-content-between {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 15px;
    }

    .no-print-area .d-flex.gap-2 {
        width: 100%;
        justify-content: flex-start;
    }
}

/* ==========================================================================
   Global & Theme Variables
   ========================================================================== */
:root {
    --theme-blue: #0d6efd;
    --theme-blue-hover: #0b5ed7;
    --text-dark: #212529;
    --text-muted: #6c757d;
    --bg-light: #f8f9fa;
    --primary-light: #e7f1ff;
    
    /* Order Status Colors */
    --status-pending: #fd7e14;
    --status-processing: #0dcaf0;
    --status-completed: #198754;
    --status-cancelled: #dc3545;
}

/* ==========================================================================
   Utilities
   ========================================================================== */
.text-blue {
    color: var(--theme-blue) !important;
}

.bg-blue {
    background-color: var(--theme-blue);
    color: #ffffff;
}

/* ==========================================================================
   Flash Offer Bar & Timer
   ========================================================================== */
.flash-offer-bar {
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.countdown-wrapper {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
    padding: 4px 12px;
    border-radius: 50px;
}

.timer-text {
    font-size: 0.9rem;
    margin-right: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.time-box {
    background: #ffffff;
    color: var(--theme-blue);
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 800;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: baseline;
    min-width: 40px;
    justify-content: center;
}

.time-box small {
    font-size: 0.7rem;
    margin-left: 2px;
    font-weight: 600;
}

.colon {
    margin: 0 4px;
    font-weight: bold;
    animation: blink 1s step-start infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

/* ==========================================================================
   Track Order Search Box
   ========================================================================== */
.tracking-search-box {
    background: #ffffff;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #eaedf1;
    margin-bottom: 30px;
}

.tracking-search-box .form-control {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 14px 20px;
    font-size: 1.05rem;
    transition: all 0.3s ease;
}

.tracking-search-box .form-control:focus {
    border-color: var(--theme-blue);
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.1);
}

.btn-action-primary {
    background-color: var(--theme-blue);
    color: #ffffff;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-action-primary:hover {
    background-color: var(--theme-blue-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

/* ==========================================================================
   Order Details Card
   ========================================================================== */
.card-clean {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #eaedf1;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.info-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 4px;
}

.info-value {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-dark);
}

/* Status Badges */
.status-badge {
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    display: inline-block;
}

.status-Pending { background: #fff3cd; color: #856404; border: 1px solid #ffeeba; }
.status-Processing { background: #cff4fc; color: #055160; border: 1px solid #b6effb; }
.status-Completed { background: #d1e7dd; color: #0f5132; border: 1px solid #badbcc; }
.status-Cancelled { background: #f8d7da; color: #842029; border: 1px solid #f5c2c7; }

/* ==========================================================================
   Order Status Timeline
   ========================================================================== */
.status-timeline {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin: 40px 0 30px;
    padding: 0 10px;
}

.status-timeline::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 40px;
    right: 40px;
    height: 3px;
    background: #eaedf1;
    z-index: 1;
}

.step-item {
    position: relative;
    z-index: 2;
    text-align: center;
    flex: 1;
}

.step-icon {
    width: 44px;
    height: 44px;
    background: #ffffff;
    border: 3px solid #eaedf1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    color: #adb5bd;
    transition: all 0.3s ease;
}

.step-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
}

/* Active State */
.step-item.active .step-icon {
    border-color: var(--theme-blue);
    background: var(--theme-blue);
    color: #ffffff;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.15);
}

.step-item.active .step-label {
    color: var(--theme-blue);
    font-weight: 700;
}

/* Line Progress Logic */
.step-item.active ~ .step-item::before {
    display: none; /* Hide progress line for incomplete steps */
}

.step-item:not(:first-child)::after {
    content: '';
    position: absolute;
    top: 20px;
    left: -50%;
    width: 100%;
    height: 3px;
    background: var(--theme-blue);
    z-index: -1;
    transition: all 0.3s ease;
    opacity: 0;
}

.step-item.active:not(:first-child)::after {
    opacity: 1; /* Show blue line connecting active steps */
}

/* ==========================================================================
   Product Summary Box (Inside Track Order)
   ========================================================================== */
.product-summary-box {
    display: flex;
    align-items: center;
    padding: 16px;
    border-radius: 12px;
    gap: 16px;
}

.product-summary-box img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 768px) {
    /* Flash Offer adjustments */
    .flash-offer-bar span {
        font-size: 0.95rem !important;
    }
    
    .countdown-wrapper {
        margin-left: 0 !important;
        margin-top: 5px;
        padding: 4px 10px;
    }
    
    .time-box {
        font-size: 1rem;
        min-width: 32px;
        padding: 3px 6px;
    }

    /* Tracking Search Box */
    .tracking-search-box {
        padding: 15px;
    }
    
    .tracking-search-box .btn-action-primary {
        margin-top: 10px;
    }

    /* Timeline Adjustments for Mobile */
    .status-timeline {
        margin: 30px 0 20px;
    }
    
    .status-timeline::before {
        left: 20px;
        right: 20px;
    }

    .step-icon {
        width: 36px;
        height: 36px;
    }
    
    .step-icon svg {
        width: 14px;
        height: 14px;
    }

    .step-label {
        font-size: 0.8rem;
    }

    /* Card padding */
    .card-clean {
        padding: 20px !important;
    }
    
    .d-flex.justify-content-between.align-items-center.mb-4 {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 15px;
    }
    
    .text-end {
        text-align: left !important;
    }
}

@media (max-width: 480px) {
    .time-box {
        font-size: 0.9rem;
        min-width: 28px;
    }
    
    .status-timeline::before {
        left: 15px;
        right: 15px;
    }
    
    .step-label {
        font-size: 0.75rem;
    }
}

/* ==========================================================================
   Public Frontend Header Styles
   ========================================================================== */

.public-header {
    background-color: var(--white);
    position: sticky;
    top: 0;
    z-index: 1030;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.03) !important;
    border-bottom: 1px solid rgba(0,0,0,0.03);
}

.public-header .brand-logo {
    color: var(--primary-dark);
    transition: opacity 0.3s ease;
}

.public-header .brand-logo:hover {
    opacity: 0.8;
}

.btn-track-order {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    transition: all 0.3s ease;
}

.btn-track-order:hover {
    background-color: var(--primary-blue);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(37, 99, 235, 0.2) !important;
}

/* ==========================================================================
   Customer Database Core Styles
   ========================================================================== */

.customer-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2);
    flex-shrink: 0; /* Prevents avatar from squishing */
}

.bg-success-subtle { background-color: #d1fae5 !important; }
.text-success { color: #059669 !important; }
.bg-info-subtle { background-color: #e0f2fe !important; }
.text-info { color: #0284c7 !important; }

/* Pagination Customization */
.pagination .page-item.active .page-link {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    color: var(--white);
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2);
}

.pagination .page-link {
    color: var(--text-dark);
    border-radius: 8px;
    margin: 0 3px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.pagination .page-link:hover {
    background-color: #f1f5f9;
}

/* ==========================================================================
   100% Responsive Table Design (Desktop -> Tablet -> Mobile)
   ========================================================================== */

/* Default Table Adjustments */
.print-table th, .print-table td {
    vertical-align: middle;
}

/* --- Tablet Adjustments (max-width: 991.98px) --- */
@media (max-width: 991.98px) {
    /* Truncate long addresses on tablets */
    .address-col .text-truncate {
        max-width: 150px !important;
    }
}

/* --- Mobile Adjustments (max-width: 767.98px) --- 
   Transforms the table rows into independent cards */
@media (max-width: 767.98px) {
    
    /* Header adjustments */
    .print-container .d-flex.justify-content-between {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 15px;
    }

    .print-container .d-flex.gap-2 {
        width: 100%;
        justify-content: flex-start;
    }

    /* Hide standard table headers */
    .print-table thead {
        display: none;
    }

    /* Transform table elements into blocks */
    .print-table, 
    .print-table tbody, 
    .print-table tr, 
    .print-table td {
        display: block;
        width: 100%;
    }

    /* Style each row to look like a Card */
    .print-table tr {
        margin-bottom: 15px;
        border: 1px solid rgba(0,0,0,0.08);
        border-radius: 12px;
        padding: 15px;
        background: #fff;
        box-shadow: 0 2px 8px rgba(0,0,0,0.02);
    }

    /* Style individual cells */
    .print-table td {
        border-bottom: 1px solid rgba(0,0,0,0.04);
        padding: 10px 0 !important;
        position: relative;
        text-align: right !important; /* Push values to right */
    }

    .print-table td:last-child {
        border-bottom: none;
        padding-bottom: 0 !important;
    }

    /* Insert pseudo-element labels before the values */
    .print-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        font-size: 0.8rem;
        font-weight: 700;
        color: var(--text-muted);
        text-transform: uppercase;
        letter-spacing: 0.5px;
        background: #fff; /* Ensures text readability */
        padding-right: 10px;
    }

    /* Specific Cell Adjustments for Mobile Card Look */
    
    /* 1. Customer Name Cell (Top of Card) */
    .print-table td:nth-of-type(1) {
        text-align: left !important;
        border-bottom: 1px dashed rgba(0,0,0,0.1);
        padding-bottom: 15px !important;
        padding-top: 0 !important;
    }
    
    .print-table td:nth-of-type(1)::before {
        display: none; /* No label for name */
    }

    /* 2. Contact Number Cell */
    .print-table td:nth-of-type(2) {
        display: flex;
        justify-content: flex-end;
        align-items: center;
        gap: 10px;
    }
    
    .print-table td:nth-of-type(2) .d-flex {
        margin-top: 0 !important; /* Reset margin from desktop */
    }

    /* 3. Address Cell */
    .print-table td.address-col {
        text-align: right !important;
    }
    .print-table td.address-col .text-truncate {
        max-width: 60% !important; /* Allow more space on mobile */
        display: inline-block;
        white-space: normal; /* Let it wrap on mobile if needed */
        text-align: right;
    }
    .print-table td.address-col svg {
        display: none; /* Hide location icon on mobile to save space */
    }

    /* Pagination Box on Mobile */
    .print-container .d-flex.justify-content-between.p-4 {
        flex-direction: column;
        gap: 15px;
        padding: 20px 15px !important;
    }
    
    .pagination {
        flex-wrap: wrap;
        justify-content: center;
    }
}


/* ==========================================================================
   Customer Database - Print / PDF Optimization (A4 Landscape)
   ========================================================================== */

@media print {
    /* 1. Hide UI elements, headers, footers, sidebars */
    .admin-sidebar, 
    .admin-topbar, 
    .sidebar-overlay, 
    .btn, 
    footer,
    .no-print,
    .pagination-container /* Hide pagination in print */ {
        display: none !important;
    }

    /* Force Links to look like normal text */
    a, a:link, a:visited {
        text-decoration: none !important;
        color: #000 !important;
    }

    /* 2. Reset Body and Container constraints */
    body, html {
        margin: 0 !important;
        padding: 0 !important;
        background-color: #fff !important;
        font-size: 10pt !important;
        color: #000 !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    .admin-wrapper, 
    .admin-content, 
    .admin-main,
    .container-fluid {
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow: visible !important;
    }

    .card {
        box-shadow: none !important;
        border: none !important;
        background-color: transparent !important;
        padding: 0 !important;
    }

    /* 3. Table Print Fixes */
    .table-responsive {
        overflow: visible !important;
        display: block !important;
        width: 100% !important;
    }

    .print-table {
        width: 100% !important;
        max-width: 100% !important;
        font-size: 10pt !important;
        border-collapse: collapse !important;
    }

    .print-table tr {
        page-break-inside: avoid !important;
    }

    .print-table th, .print-table td {
        padding: 8px 5px !important;
        border-bottom: 1px solid #ddd !important;
        color: #000 !important; 
        text-align: left !important;
        vertical-align: top !important;
    }

    .print-table thead th {
        background-color: #eee !important;
        border-bottom: 2px solid #000 !important;
        font-weight: bold !important;
    }

    /* Wrap long addresses */
    .print-wrap {
        max-width: none !important;
        white-space: normal !important;
    }

    /* Simplify badges and avatars for print */
    .customer-avatar {
        background: transparent !important;
        color: #000 !important;
        border: 1px solid #000 !important;
        box-shadow: none !important;
        width: 30px !important;
        height: 30px !important;
        font-size: 10pt !important;
    }

    .print-badge {
        border: 1px solid #000 !important;
        background: transparent !important;
        color: #000 !important;
        padding: 2px 6px !important;
        border-radius: 4px !important;
        box-shadow: none !important;
    }

    .print-only {
        display: block !important;
        margin-bottom: 15px !important;
        text-align: center !important;
        font-size: 14pt !important;
        font-weight: bold !important;
        border-bottom: 2px solid #000 !important;
        padding-bottom: 10px !important;
    }

    @page {
        size: A4 landscape; 
        margin: 1.5cm;
    }
}

/* ==========================================================================
   Order Filter Pills Navigation (Responsive)
   ========================================================================== */

.filter-pills-container {
    gap: 12px;
    -webkit-overflow-scrolling: touch; /* Smooth horizontal scroll on iOS */
    scrollbar-width: none; /* Hide scrollbar for Firefox */
    padding-bottom: 5px;
}

.filter-pills-container::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome/Safari/Edge */
}

.filter-pill {
    padding: 8px 22px;
    border-radius: 50px;
    background-color: var(--white);
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border: 1px solid rgba(15, 23, 42, 0.08);
    transition: all 0.3s ease;
    white-space: nowrap; /* Prevents text from wrapping to next line */
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.filter-pill:hover {
    background-color: #f8fafc;
    color: var(--primary-dark);
    transform: translateY(-1px);
}

.filter-pill.active {
    background: var(--primary-gradient) !important;
    color: var(--white) !important;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.25);
}

/* ==========================================================================
   Product Grid & Selection Styles
   ========================================================================== */
.product-grid-card {
    background: var(--white);
    border-radius: 16px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    box-shadow: inset 0 0 0 2px transparent, 0 4px 15px rgba(0,0,0,0.04);
}
.product-grid-card:hover {
    transform: translateY(-4px);
    box-shadow: inset 0 0 0 2px rgba(37, 99, 235, 0.1), 0 12px 25px rgba(37, 99, 235, 0.12);
}
.product-grid-card.selected {
    box-shadow: inset 0 0 0 3px var(--primary-blue), 0 12px 25px rgba(37, 99, 235, 0.15);
}
.product-img-box {
    height: 180px;
    border-radius: 12px;
    overflow: hidden;
    background: #f1f5f9;
    margin-bottom: 15px;
}
.product-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.selection-indicator {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 28px;
    height: 28px;
    background: var(--primary-blue);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.3s ease;
    z-index: 2;
}
.product-grid-card.selected .selection-indicator {
    opacity: 1;
    transform: scale(1);
}
.product-desc-snippet {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==========================================================================
   Countdown Timer Styles
   ========================================================================== */
.flash-offer-bar {
    background: var(--primary-gradient);
    color: var(--white);
    border-bottom: 3px solid rgba(0,0,0,0.1);
}

.countdown-wrapper {
    background: rgba(0,0,0,0.2);
    padding: 4px 12px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.timer-text {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.time-box {
    background: var(--white);
    color: var(--primary-dark);
    padding: 2px 6px;
    border-radius: 6px;
    font-weight: 800;
    font-family: monospace;
    font-size: 1.1rem;
    min-width: 32px;
    text-align: center;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.time-box small {
    font-size: 0.6rem;
    margin-left: 1px;
    font-weight: 600;
    color: var(--text-muted);
}

.colon {
    font-weight: bold;
    margin: 0 2px;
    animation: blink 1s linear infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

@media (max-width: 767px) {
    .flash-offer-bar {
        padding-top: 10px !important;
        padding-bottom: 10px !important;
    }
    .countdown-wrapper {
        margin-top: 5px;
    }
}

/* ==========================================================================
   Admin Panel Specific Styles (Settings & Switches)
   ========================================================================== */

/* Custom Large Toggle Switch for Timer Status */
.form-switch-lg {
    padding-left: 3rem;
}
.form-switch-lg .form-check-input {
    width: 2.5rem;
    height: 1.25rem;
    margin-left: -3rem;
    cursor: pointer;
}
.form-switch-lg .form-check-input:checked {
    background-color: var(--success);
    border-color: var(--success);
}

/* Custom styling for Radio Buttons looking like Cards */
.timer-type-box .btn-outline-primary {
    border: 2px solid #e2e8f0;
    color: var(--text-dark);
    background: var(--white);
    transition: all 0.3s ease;
}

.timer-type-box .btn-outline-primary:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.timer-type-box .btn-check:checked + .btn-outline-primary {
    border-color: var(--primary-blue);
    background: var(--primary-light);
    color: var(--primary-dark);
    box-shadow: inset 0 0 0 1px var(--primary-blue);
}

.timer-type-box .btn-check:checked + .btn-outline-primary span {
    color: var(--primary-dark) !important;
}

/* Ensure Settings form elements look consistent on mobile */
@media (max-width: 767px) {
    .timer-type-box {
        flex: 1 1 100%; /* Stacks the options on small screens */
    }
    .timer-type-box .btn-outline-primary {
        min-height: auto;
    }
}

/* ==========================================================================
   Premium Admin Sidebar Styles (Redesigned & Fully Responsive)
   ========================================================================== */

.admin-sidebar {
    width: 270px; /* Slightly wider for modern feel */
    background-color: var(--white);
    border-right: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    z-index: 1040;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100vh;
    position: sticky;
    top: 0;
    overflow-y: auto; /* Allow scroll if screen is too small */
}

/* Hide default scrollbar for a cleaner look but keep functionality */
.admin-sidebar::-webkit-scrollbar {
    width: 4px;
}
.admin-sidebar::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.1);
    border-radius: 4px;
}

.sidebar-header {
    padding: 24px 25px;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 0;
    background: var(--white);
    z-index: 10;
}

.sidebar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    text-decoration: none;
    color: var(--text-dark);
}

.sidebar-brand .text-blue {
    color: var(--primary-blue);
}

.sidebar-menu-wrapper {
    padding: 20px 15px;
}

.sidebar-heading {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    color: #94a3b8;
    margin: 15px 0 10px 15px;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-link {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 12px;
    margin-bottom: 6px;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

/* The icon wrapper inside the link */
.sidebar-icon {
    width: 36px;
    height: 36px;
    background-color: #f1f5f9;
    color: #64748b;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    transition: all 0.3s ease;
}

/* Hover Effects */
.sidebar-link:hover {
    color: var(--primary-dark);
    background-color: #f8fafc;
}

.sidebar-link:hover .sidebar-icon {
    background-color: var(--primary-light);
    color: var(--primary-blue);
    transform: scale(1.05);
}

/* Active State Design (Gradient & Shadow) */
.sidebar-link.active {
    background: var(--primary-gradient);
    color: var(--white);
    box-shadow: 0 6px 15px rgba(37, 99, 235, 0.2);
}

.sidebar-link.active .sidebar-icon {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--white);
}

/* Logout Button Specific Style */
.sidebar-link.logout-link:hover {
    background-color: #fef2f2;
    color: #dc2626 !important;
}

/* ==========================================================================
   Responsive Overrides for Mobile & Tablets
   ========================================================================== */

@media (max-width: 991.98px) {
    .admin-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        height: 100vh;
        transform: translateX(-100%);
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.1);
    }

    /* When the sidebar is toggled via JS */
    .admin-sidebar.show {
        transform: translateX(0);
    }

    /* The dark overlay that appears behind the sidebar on mobile */
    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(15, 23, 42, 0.5);
        backdrop-filter: blur(3px);
        z-index: 1035;
        display: none;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .sidebar-overlay.show {
        display: block;
        opacity: 1;
    }
}

/* =======================================
   Very Small Mobile Devices (Max: 400px)
   ======================================= */
@media (max-width: 400px) {
    /* Stack labels and values on very tiny screens */
    .table td[data-label] {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .table td[data-label]::before {
        margin-bottom: 2px;
    }
    
    .table td[data-label] > div,
    .table td:nth-of-type(2) small,
    .table td:nth-of-type(3) .d-flex,
    .table td:nth-of-type(3) .fw-semibold,
    .table td:nth-of-type(5) > div,
    .table td:nth-of-type(5) > small {
        text-align: left;
        justify-content: flex-start;
    }
}

/* ==========================================================================
   Custom FAQ Accordion Styles (index.php)
   ========================================================================== */

.faq-container {
    background: transparent;
    border: none;
    box-shadow: none !important;
}

.custom-accordion {
    overflow: hidden;
    background: var(--white);
    border: 1px solid rgba(0,0,0,0.05);
}

.custom-accordion .accordion-item {
    background-color: transparent;
    transition: all 0.3s ease;
}

.custom-accordion .accordion-item:last-child {
    border-bottom: none;
}

.custom-accordion .accordion-button {
    box-shadow: none !important;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    padding: 16px 20px;
}

.custom-accordion .accordion-button:focus {
    box-shadow: none;
}

/* Remove default bootstrap blue background on active and add custom style */
.custom-accordion .accordion-button:not(.collapsed) {
    color: var(--primary-blue);
    background-color: #f8fafc;
    box-shadow: none;
}

/* Add a subtle highlight when opened */
.custom-accordion .accordion-item:has(.accordion-collapse.show) {
    background-color: #f8fafc;
}

/* Customize the dropdown arrow icon */
.custom-accordion .accordion-button::after {
    background-size: 1.1rem;
    transition: transform 0.3s ease;
}

.custom-accordion .accordion-body {
    background-color: #f8fafc;
    border-radius: 0 0 12px 12px;
}

/* ==========================================================================
   Responsive Overrides for FAQ
   ========================================================================== */

/* Tablets (Max width: 991.98px) */
@media (max-width: 991.98px) {
    .faq-container {
        padding: 20px 10px !important;
    }
}

/* Mobile Devices (Max width: 767.98px) */
@media (max-width: 767.98px) {
    .faq-container h3 {
        font-size: 1.5rem !important;
    }
    
    .faq-container p {
        font-size: 0.95rem;
    }

    .custom-accordion .accordion-button {
        font-size: 0.95rem;
        padding: 14px 15px !important;
    }
    
    /* Ensure the icon doesn't shrink on small screens */
    .custom-accordion .accordion-button span {
        display: flex;
        align-items: center;
        flex-shrink: 0;
    }
    
    .custom-accordion .accordion-button svg {
        width: 16px;
        height: 16px;
    }

    .custom-accordion .accordion-body {
        font-size: 0.9rem !important;
        padding: 0 15px 15px 15px !important;
        line-height: 1.5;
    }
}

/* Very Small Mobile Devices (Max: 400px) */
@media (max-width: 400px) {
    .custom-accordion .accordion-button {
        font-size: 0.9rem;
        padding: 12px !important;
    }
    
    .custom-accordion .accordion-body {
        padding: 0 12px 12px 12px !important;
    }
}

/* ==========================================================================
   Global & Theme Variables
   ========================================================================== */
:root {
    --theme-blue: #0d6efd; /* আপনি চাইলে আপনার ওয়েবসাইটের ব্র্যান্ড কালার দিতে পারেন */
    --theme-blue-hover: #0b5ed7;
    --text-dark: #212529;
    --text-muted: #6c757d;
    --danger-color: #dc3545;
    --success-color: #198754;
    --bg-light: #f8f9fa;
}

/* ==========================================================================
   Typography & Utilities
   ========================================================================== */
.text-blue {
    color: var(--theme-blue) !important;
}

.bg-blue {
    background-color: var(--theme-blue);
    color: #ffffff;
}

/* ==========================================================================
   Product Gallery Styles
   ========================================================================== */
.product-gallery-wrapper {
    position: sticky;
    top: 20px;
}

.details-img-box {
    border: 1px solid #eaedf1;
    border-radius: 12px;
    padding: 15px;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 350px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    overflow: hidden;
}

.details-img-box img {
    max-width: 100%;
    max-height: 500px;
    object-fit: contain;
    border-radius: 8px;
}

/* Thumbnails */
.product-gallery-thumbnails {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    /* Smooth scroll for mobile devices */
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.product-gallery-thumbnails::-webkit-scrollbar {
    height: 6px;
}

.product-gallery-thumbnails::-webkit-scrollbar-thumb {
    background-color: #ced4da;
    border-radius: 10px;
}

.gallery-thumb {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border: 2px solid #eaedf1;
    border-radius: 8px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #fff;
    padding: 4px;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.gallery-thumb:hover {
    border-color: #adb5bd;
}

.gallery-thumb.active {
    border-color: var(--theme-blue);
    box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.25);
}

/* ==========================================================================
   Stock Urgency Bar
   ========================================================================== */
.stock-urgency-wrapper {
    background-color: #fff5f5;
    border: 1px solid #ffdfdf;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 24px;
    transition: all 0.3s ease;
}

.stock-urgency-text {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-weight: 600;
    color: var(--danger-color);
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.stock-icon {
    display: flex;
    align-items: center;
    gap: 6px;
}

.stock-count {
    background-color: var(--danger-color);
    color: #ffffff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: 700;
    display: inline-block;
}

.stock-progress-bg {
    background-color: #ffdfdf;
    height: 8px;
    border-radius: 10px;
    width: 100%;
    overflow: hidden;
}

.stock-progress-fill {
    background-color: var(--danger-color);
    height: 100%;
    width: 0%; /* JS will update this */
    border-radius: 10px;
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   Product Details Content
   ========================================================================== */
.product-description-content {
    line-height: 1.8;
    color: #495057;
    font-size: 1.05rem;
}

.feature-check-icon {
    color: var(--theme-blue);
    margin-right: 12px;
    background: rgba(13, 110, 253, 0.1);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ==========================================================================
   Call to Action Button
   ========================================================================== */
.btn-action-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--theme-blue);
    color: #ffffff;
    padding: 16px 32px;
    font-size: 1.25rem;
    font-weight: 700;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
    width: 100%;
    border: none;
    cursor: pointer;
}

.btn-action-primary:hover {
    background-color: var(--theme-blue-hover);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 110, 253, 0.4);
}

/* ==========================================================================
   Floating Chat Buttons (WhatsApp & Messenger)
   ========================================================================== */
.floating-chat-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    z-index: 1050;
}

.chat-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    text-decoration: none;
}

.chat-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.whatsapp-btn {
    background-color: #25d366;
}

.messenger-btn {
    background-color: #0084ff;
}

/* ==========================================================================
   Responsive Breakpoints (Mobile & Tablet Adjustments)
   ========================================================================== */
@media (max-width: 991px) {
    .product-gallery-wrapper {
        position: relative;
        top: 0;
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    /* Adjust Fonts for Mobile */
    h1.fw-bolder {
        font-size: 1.8rem !important;
    }
    
    h2.fw-bolder {
        font-size: 2rem !important;
    }

    .details-img-box {
        min-height: 250px;
        padding: 10px;
    }

    .gallery-thumb {
        width: 65px;
        height: 65px;
    }

    /* Stack pricing neatly on small screens */
    .d-flex.align-items-center.mb-4.pb-4 {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 10px;
    }

    .btn-action-primary {
        font-size: 1.1rem;
        padding: 14px 20px;
    }

    .floating-chat-container {
        bottom: 16px;
        right: 16px;
        gap: 12px;
    }

    .chat-btn {
        width: 50px;
        height: 50px;
    }

    .chat-btn svg {
        width: 26px;
        height: 26px;
    }
}

@media (max-width: 480px) {
    h1.fw-bolder {
        font-size: 1.5rem !important;
    }

    h2.fw-bolder {
        font-size: 1.6rem !important;
    }

    .stock-urgency-text {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ==========================================================================
   Global & Theme Variables
   ========================================================================== */
:root {
    --theme-blue: #0d6efd; /* আপনি চাইলে আপনার ওয়েবসাইটের ব্র্যান্ড কালার দিতে পারেন */
    --theme-blue-hover: #0b5ed7;
    --text-dark: #212529;
    --text-muted: #6c757d;
    --danger-color: #dc3545;
    --success-color: #198754;
    --bg-light: #f8f9fa;
}

/* ==========================================================================
   Typography & Utilities
   ========================================================================== */
.text-blue {
    color: var(--theme-blue) !important;
}

.bg-blue {
    background-color: var(--theme-blue);
    color: #ffffff;
}

/* ==========================================================================
   Product Gallery Styles
   ========================================================================== */
.product-gallery-wrapper {
    position: sticky;
    top: 20px;
}

.details-img-box {
    border: 1px solid #eaedf1;
    border-radius: 12px;
    padding: 15px;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 350px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    overflow: hidden;
}

.details-img-box img {
    max-width: 100%;
    max-height: 500px;
    object-fit: contain;
    border-radius: 8px;
}

/* Thumbnails */
.product-gallery-thumbnails {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    /* Smooth scroll for mobile devices */
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.product-gallery-thumbnails::-webkit-scrollbar {
    height: 6px;
}

.product-gallery-thumbnails::-webkit-scrollbar-thumb {
    background-color: #ced4da;
    border-radius: 10px;
}

.gallery-thumb {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border: 2px solid #eaedf1;
    border-radius: 8px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #fff;
    padding: 4px;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.gallery-thumb:hover {
    border-color: #adb5bd;
}

.gallery-thumb.active {
    border-color: var(--theme-blue);
    box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.25);
}

/* ==========================================================================
   Stock Urgency Bar
   ========================================================================== */
.stock-urgency-wrapper {
    background-color: #fff5f5;
    border: 1px solid #ffdfdf;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 24px;
    transition: all 0.3s ease;
}

.stock-urgency-text {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-weight: 600;
    color: var(--danger-color);
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.stock-icon {
    display: flex;
    align-items: center;
    gap: 6px;
}

.stock-count {
    background-color: var(--danger-color);
    color: #ffffff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: 700;
    display: inline-block;
}

.stock-progress-bg {
    background-color: #ffdfdf;
    height: 8px;
    border-radius: 10px;
    width: 100%;
    overflow: hidden;
}

.stock-progress-fill {
    background-color: var(--danger-color);
    height: 100%;
    width: 0%; /* JS will update this */
    border-radius: 10px;
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   Product Details Content
   ========================================================================== */
.product-description-content {
    line-height: 1.8;
    color: #495057;
    font-size: 1.0rem;
    font-weight: bold;
    text-align: justify;
    text-justify: inter-word;
}

.feature-check-icon {
    color: var(--theme-blue);
    margin-right: 12px;
    background: rgba(13, 110, 253, 0.1);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ==========================================================================
   Call to Action Button
   ========================================================================== */
.btn-action-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--theme-blue);
    color: #ffffff;
    padding: 16px 32px;
    font-size: 1.25rem;
    font-weight: 700;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
    width: 100%;
    border: none;
    cursor: pointer;
}

.btn-action-primary:hover {
    background-color: var(--theme-blue-hover);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 110, 253, 0.4);
}

/* ==========================================================================
   Floating Chat Buttons (WhatsApp & Messenger)
   ========================================================================== */
.floating-chat-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    z-index: 1050;
}

.chat-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    text-decoration: none;
}

.chat-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.whatsapp-btn {
    background-color: #25d366;
}

.messenger-btn {
    background-color: #0084ff;
}

/* ==========================================================================
   Responsive Breakpoints (Mobile & Tablet Adjustments)
   ========================================================================== */
@media (max-width: 991px) {
    .product-gallery-wrapper {
        position: relative;
        top: 0;
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    /* Adjust Fonts for Mobile */
    h1.fw-bolder {
        font-size: 1.8rem !important;
    }
    
    h2.fw-bolder {
        font-size: 2rem !important;
    }

    .details-img-box {
        min-height: 250px;
        padding: 10px;
    }

    .gallery-thumb {
        width: 65px;
        height: 65px;
    }

    /* Stack pricing neatly on small screens */
    .d-flex.align-items-center.mb-4.pb-4 {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 10px;
    }

    .btn-action-primary {
        font-size: 1.1rem;
        padding: 14px 20px;
    }

    .floating-chat-container {
        bottom: 16px;
        right: 16px;
        gap: 12px;
    }

    .chat-btn {
        width: 50px;
        height: 50px;
    }

    .chat-btn svg {
        width: 26px;
        height: 26px;
    }
}

@media (max-width: 480px) {
    h1.fw-bolder {
        font-size: 1.5rem !important;
    }

    h2.fw-bolder {
        font-size: 1.6rem !important;
    }

    .stock-urgency-text {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ==========================================================================
   Premium Product Gallery Styles (Fully Responsive)
   ========================================================================== */

.product-gallery-wrapper {
    position: sticky;
    top: 20px;
    width: 100%;
}

.details-img-box {
    background: #f8fafc;
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    height: 420px; /* Fixed height for consistent layout */
    border: 1px solid rgba(0,0,0,0.04);
    box-shadow: inset 0 0 20px rgba(0,0,0,0.01);
}

.details-img-box img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Ensures images are never stretched or cropped */
    border-radius: 8px;
    transition: opacity 0.2s ease-in-out;
}

/* Thumbnail Area */
.product-gallery-thumbnails {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 5px 2px 10px 2px;
    margin-top: 15px !important;
    scrollbar-width: thin;
    scroll-behavior: smooth;
}

.product-gallery-thumbnails::-webkit-scrollbar {
    height: 5px;
}

.product-gallery-thumbnails::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 10px;
}

/* Individual Thumbnail */
.gallery-thumb {
    width: 75px;
    height: 75px;
    border-radius: 10px;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.5;
    transition: all 0.3s ease;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-thumb:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.gallery-thumb.active {
    border-color: var(--primary-blue, #0d6efd);
    opacity: 1;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.25);
    transform: translateY(0);
}

/* =========================================
   Mobile & Tablet Responsive Adjustments
   ========================================= */
@media (max-width: 991.98px) {
    .details-img-box {
        height: 360px;
    }
    .product-gallery-wrapper {
        position: relative;
        top: 0;
    }
}

@media (max-width: 575.98px) {
    .details-img-box {
        height: 280px;
        padding: 10px;
        border-radius: 12px;
    }
    .gallery-thumb {
        width: 60px;
        height: 60px;
        border-radius: 8px;
    }
    .product-gallery-thumbnails {
        gap: 10px;
    }
}

/* ==========================================================================
   Admin Stock Management Styles (Fully Responsive)
   ========================================================================== */

.stock-table-wrapper {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    overflow-x: auto; /* Makes table scrollable on small screens */
    border: 1px solid #e2e8f0;
    margin-bottom: 30px;
}

.stock-table {
    width: 100%;
    min-width: 700px; /* Prevents columns from crushing on mobile */
    border-collapse: collapse;
}

.stock-table th {
    background: #f8fafc;
    color: #475569;
    font-weight: 700;
    padding: 16px 20px;
    text-transform: uppercase;
    font-size: 0.85rem;
    border-bottom: 2px solid #e2e8f0;
    text-align: left;
    white-space: nowrap;
}

.stock-table td {
    padding: 16px 20px;
    vertical-align: middle;
    border-bottom: 1px solid #f1f5f9;
    color: #1e293b;
}

.stock-table tr:last-child td {
    border-bottom: none;
}

.stock-table tr:hover {
    background-color: #f8fafc;
}

/* Product Info Cell */
.stock-product-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.stock-product-img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid #e2e8f0;
}

/* Update Form Input */
.stock-input-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stock-input {
    width: 80px;
    padding: 8px 12px;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    text-align: center;
    font-weight: 700;
    color: #0f172a;
    outline: none;
    transition: all 0.3s ease;
}

.stock-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.stock-update-btn {
    background: #10b981;
    color: #ffffff;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.stock-update-btn:hover {
    background: #059669;
}

/* Status Badges */
.stock-badge-low {
    background: #fee2e2;
    color: #dc2626;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
}

.stock-badge-good {
    background: #d1fae5;
    color: #059669;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
}

/* ==========================================================================
   Index Page Stock Indicator Styles
   ========================================================================== */

/* Out of Stock Card Effect */
.out-of-stock-card {
    opacity: 0.6;
    cursor: not-allowed !important;
    filter: grayscale(100%);
    pointer-events: none; /* Prevents clicking */
}

/* Sold Out Badge over image */
.sold-out-badge {
    background-color: rgba(220, 38, 38, 0.9);
    color: white;
    font-weight: 900;
    letter-spacing: 1px;
    border-radius: 4px;
    z-index: 10;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

/* Mini Stock Indicator Text */
.stock-mini-indicator {
    font-size: 0.85rem;
}

/* Pulse animation for low stock text */
.pulse-text {
    animation: text-pulse 1.5s infinite;
}

@keyframes text-pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* ==========================================================================
   Telegram Settings UI Styles (Fully Responsive)
   ========================================================================== */
.telegram-status-card {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 12px;
    padding: 15px 20px;
    transition: all 0.3s ease;
}

@media (max-width: 575.98px) {
    .telegram-status-card {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 10px;
    }
}

/* ==========================================================================
   License Verification Checker Styles (license-checker.php)
   ========================================================================== */

.checker-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
}

.checker-container {
    background: var(--white);
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.08);
    width: 100%;
    max-width: 600px;
    padding: 50px;
    border: 1px solid rgba(255,255,255,0.5);
    backdrop-filter: blur(10px);
}

.checker-icon-wrapper {
    width: 64px;
    height: 64px;
    background: var(--primary-light);
    color: var(--primary-blue);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.1);
}

.search-box-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.checker-input {
    background-color: #f1f5f9;
    border: 2px solid transparent !important;
    border-radius: 14px;
    padding: 16px 20px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    font-family: monospace;
    letter-spacing: 1px;
    text-align: center;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

.checker-input:focus {
    background-color: var(--white);
    border-color: var(--primary-blue) !important;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1) !important;
}

.checker-btn {
    width: 100%;
    margin-top: 15px;
    border-radius: 12px;
    padding: 14px;
    font-size: 1.1rem;
}

/* Results Card */
.license-result-card {
    background: var(--white);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    animation: fadeInDown 0.4s ease-out forwards;
    box-shadow: 0 10px 25px rgba(0,0,0,0.03);
}

.result-header {
    background: #f8fafc;
    padding: 16px 24px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.result-body {
    padding: 24px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 1px dashed #e2e8f0;
}

.info-row .info-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-row .info-value {
    font-size: 1.05rem;
    color: var(--text-dark);
    text-align: right;
}

.hover-primary:hover {
    color: var(--primary-blue) !important;
}

/* Responsive Overrides for Mobile */
@media (max-width: 575.98px) {
    .checker-container {
        padding: 30px 20px;
    }
    
    .checker-input {
        font-size: 1rem;
        padding: 14px;
    }
    
    .result-body {
        padding: 20px 15px;
    }
    
    .info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .info-row .info-value {
        text-align: left;
        width: 100%;
        font-size: 1rem;
    }
}

/* ========================================================
   LICENSE INFO COMPONENT STYLES
   ======================================================== */
.license-card {
    border-radius: 16px;
    overflow: hidden;
    background: #ffffff;
}

.license-icon-wrapper {
    width: 80px;
    height: 80px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2563eb; /* Primary Blue */
}

.border-end-lg {
    border-right: 1px solid #e2e8f0;
}

@media (max-width: 991px) {
    .border-end-lg {
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
        padding-bottom: 1.5rem;
    }
}

.license-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.license-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px dashed #e2e8f0;
}

.license-info-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.license-label {
    color: #64748b;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.license-value {
    color: #0f172a;
    font-weight: 700;
    font-size: 0.95rem;
    text-align: right;
}

.license-value.key-text {
    font-family: 'Courier New', Courier, monospace;
    background: #f1f5f9;
    padding: 4px 10px;
    border-radius: 6px;
    letter-spacing: 1px;
}

/* Badge specific for License */
.badge-license-active {
    background-color: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}
.badge-license-suspended {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* ==========================================================================
   Product XML Feed Integration Card (100% Responsive)
   ========================================================================== */
.feed-integration-card {
    background: linear-gradient(to right bottom, #ffffff, #f8fafc);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
}

.feed-integration-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(to bottom, #2563eb, #38bdf8);
}

.feed-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.feed-icon-box {
    background: #eff6ff;
    color: #2563eb;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feed-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}

.feed-subtitle {
    color: #64748b;
    font-size: 0.9rem;
    margin: 0;
    font-weight: 500;
}

.feed-url-box {
    background: #f1f5f9;
    border: 2px dashed #cbd5e1;
    border-radius: 10px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    transition: all 0.3s ease;
}

.feed-url-box:hover {
    border-color: #94a3b8;
    background: #e2e8f0;
}

.feed-url-text {
    font-family: monospace;
    font-size: 1rem;
    color: #334155;
    word-break: break-all;
    font-weight: 600;
}

.feed-copy-btn {
    background: #2563eb;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.3s;
    white-space: nowrap;
}

.feed-copy-btn:hover {
    background: #1d4ed8;
}

.feed-platforms {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.platform-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #475569;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

/* Mobile Responsiveness */
@media (max-width: 767.98px) {
    .feed-url-box {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    .feed-copy-btn {
        justify-content: center;
    }
    .feed-platforms {
        justify-content: center;
    }
}

/* ==========================================================================
   Modern Product Feed UI (Matches Admin Theme) - 100% Responsive
   ========================================================================== */
.feed-card-modern {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
    border: 1px solid #e2e8f0;
    height: 100%;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feed-card-modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.feed-card-header-modern {
    padding: 20px 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid #f1f5f9;
    background-color: #f8fafc;
}

.feed-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 12px;
}

.xml-icon-bg { background: #eff6ff; color: var(--primary-blue); }
.csv-icon-bg { background: #f1f5f9; color: #475569; }

.feed-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.feed-card-body-modern {
    padding: 25px;
}

.feed-card-body-modern p {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.feed-url-wrapper {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    display: flex;
    align-items: center;
    padding: 6px;
    margin-bottom: 20px;
    transition: border-color 0.3s ease;
}

.feed-url-wrapper:focus-within {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.feed-url-wrapper input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 10px 15px;
    font-family: monospace;
    color: #334155;
    font-size: 0.95rem;
    outline: none;
}

.feed-copy-action {
    background: var(--primary-blue);
    color: #ffffff;
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.feed-copy-action:hover {
    background: #1d4ed8;
}

.csv-theme-btn { background: #475569; }
.csv-theme-btn:hover { background: #334155; }

.platform-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
    margin-right: 8px;
    margin-bottom: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.alert-modern {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px 25px;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.03);
}

/* Mobile Responsiveness */
@media (max-width: 767.98px) {
    .feed-url-wrapper {
        flex-direction: column;
        padding: 12px;
        gap: 10px;
    }
    .feed-url-wrapper input {
        width: 100%;
        text-align: center;
        padding: 5px;
    }
    .feed-copy-action {
        width: 100%;
        justify-content: center;
        padding: 12px;
    }
}

/* ==========================================================================
   Advanced Sitemap Generator UI - 100% Responsive
   ========================================================================== */
.sitemap-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.sitemap-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
    border: 1px solid #e2e8f0;
    padding: 35px;
    position: relative;
    overflow: hidden;
}

.sitemap-header-box {
    text-align: center;
    margin-bottom: 35px;
}

.sitemap-icon-glow {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
}

.sitemap-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 35px;
}

.stat-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s;
}

.stat-item:hover {
    transform: translateY(-3px);
    border-color: #cbd5e1;
}

.stat-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
}

.stat-value.status-live { color: #059669; }
.stat-value.status-none { color: #ef4444; }

.sitemap-action-area {
    background: #f1f5f9;
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
}

.btn-generate-sitemap {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
    border: none;
    padding: 14px 35px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.2);
}

.btn-generate-sitemap:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e3a8a 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
    color: #ffffff;
}

/* Mobile Adjustments */
@media (max-width: 576px) {
    .sitemap-card { padding: 25px 20px; }
    .sitemap-action-area { padding: 20px; }
    .btn-generate-sitemap { width: 100%; justify-content: center; }
}

/* ==========================================================================
   Database Backup & Restore UI - 100% Responsive
   ========================================================================== */
.db-manager-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.db-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
    border: 1px solid #e2e8f0;
    padding: 30px;
    height: 100%;
    transition: transform 0.3s ease;
}

.db-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
}

.db-icon-box {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.icon-export { background: #ecfdf5; color: #059669; }
.icon-import { background: #eff6ff; color: #2563eb; }

.db-card-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 10px;
}

.db-card-text {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

.file-upload-wrapper {
    border: 2px dashed #cbd5e1;
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.file-upload-wrapper:hover {
    border-color: #94a3b8;
    background: #f1f5f9;
}

.file-upload-wrapper input[type="file"] {
    display: block;
    width: 100%;
    font-size: 0.9rem;
    color: #475569;
}

.file-upload-wrapper input[type="file"]::file-selector-button {
    background: #e2e8f0;
    color: #334155;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    margin-right: 15px;
    cursor: pointer;
    transition: background 0.3s;
}

.file-upload-wrapper input[type="file"]::file-selector-button:hover {
    background: #cbd5e1;
}

.btn-db-action {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    transition: all 0.3s ease;
}

.btn-export {
    background: #059669;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.2);
}
.btn-export:hover { background: #047857; color: white; }

.btn-import {
    background: #2563eb;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.2);
}
.btn-import:hover { background: #1d4ed8; color: white; }

/* Mobile Adjustments */
@media (max-width: 767px) {
    .db-card { padding: 20px; }
}

/* ==========================================================================
   License Suspension / Error Page UI - 100% Responsive
   ========================================================================== */
.license-error-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    background-color: #f8fafc;
    font-family: 'Segoe UI', system-ui, sans-serif;
    box-sizing: border-box;
}

.license-error-card {
    background: #ffffff;
    max-width: 500px;
    width: 100%;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(239, 68, 68, 0.08), 0 5px 15px rgba(0,0,0,0.04);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.license-error-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120px;
    background: linear-gradient(180deg, #fef2f2 0%, rgba(254, 242, 242, 0) 100%);
    z-index: 0;
}

.license-error-icon {
    position: relative;
    z-index: 1;
    width: 70px;
    height: 70px;
    background: #fee2e2;
    color: #ef4444;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    box-shadow: 0 0 0 10px rgba(254, 226, 226, 0.5);
}

.license-error-card h2 {
    position: relative;
    z-index: 1;
    color: #0f172a;
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.license-error-reason-box {
    position: relative;
    z-index: 1;
    background: #f1f5f9;
    border: 1px dashed #cbd5e1;
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    text-align: left;
}

.license-error-reason-box strong {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 5px;
    letter-spacing: 0.5px;
}

.license-error-reason-box span {
    color: #334155;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;
}

.license-error-help-text {
    position: relative;
    z-index: 1;
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.license-error-btn {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #0f172a;
    color: #ffffff;
    text-decoration: none;
    padding: 14px 30px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.15);
}

.license-error-btn:hover {
    background: #1e293b;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.25);
    color: #ffffff;
}

/* Mobile Adjustments */
@media (max-width: 576px) {
    .license-error-card { padding: 30px 20px; }
    .license-error-card h2 { font-size: 1.5rem; }
    .license-error-btn { width: 100%; }
}

/* ==========================================================================
   Variation Management UI - 100% Responsive
   ========================================================================== */
.var-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.03);
    border: 1px solid #e2e8f0;
    height: 100%;
    overflow: hidden;
}

.var-card-header {
    background: #f8fafc;
    padding: 15px 20px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.var-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.attr-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.attr-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.2s;
    text-decoration: none;
    color: #334155;
    font-weight: 600;
}

.attr-list-item:hover, .attr-list-item.active {
    background: #eff6ff;
    color: #2563eb;
}

.attr-list-item.active {
    border-left: 4px solid #2563eb;
    padding-left: 16px;
}

.var-badge {
    background: #e2e8f0;
    color: #475569;
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 50px;
    font-weight: 700;
}

.attr-list-item.active .var-badge {
    background: #dbeafe;
    color: #1d4ed8;
}

.opt-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
    padding: 20px;
}

.opt-box {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    position: relative;
    transition: all 0.2s;
}

.opt-box:hover {
    border-color: #94a3b8;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.color-swatch-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin: 0 auto 10px;
    border: 2px solid #e2e8f0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.opt-val-text {
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 10px;
    font-size: 0.95rem;
    word-break: break-all;
}

.btn-delete-opt {
    background: #fee2e2;
    color: #ef4444;
    border: none;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-delete-opt:hover { background: #fca5a5; color: #991b1b; }

.empty-state-box {
    text-align: center;
    padding: 50px 20px;
    color: #64748b;
}

/* Mobile Responsiveness */
@media (max-width: 767px) {
    .opt-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================================================
   Custom Page Builder & Frontend Page UI - 100% Responsive
   ========================================================================== */
/* Admin UI */
.page-builder-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.03);
    border: 1px solid #e2e8f0;
    padding: 25px;
}

/* Frontend UI */
.front-page-wrapper {
    max-width: 850px;
    margin: 40px auto;
    padding: 50px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.06);
    border: 1px solid #f1f5f9;
}

.front-page-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e2e8f0;
}

.front-page-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #334155;
}

.front-page-content h1, .front-page-content h2, .front-page-content h3 {
    color: #1e293b;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 700;
}

.front-page-content p { margin-bottom: 15px; }
.front-page-content ul { margin-bottom: 15px; padding-left: 20px; }
.front-page-content a { color: #2563eb; text-decoration: underline; font-weight: 600; }

/* ==========================================================================
   Premium Footer Links & Floating Chat - 100% Responsive & High Conversion
   ========================================================================== */

/* 1. Professional Site Footer */
.site-footer-wrapper {
    background-color: #f8fafc;
    padding: 35px 20px 25px;
    text-align: center;
    border-top: 1px solid #e2e8f0;
    margin-top: 60px;
}

/* Add extra padding on mobile so it doesn't hide behind the sticky footer */
@media (max-width: 991px) {
    .site-footer-wrapper {
        padding-bottom: 110px; 
    }
}

.footer-page-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 12px 25px;
}

.footer-page-links a {
    color: #64748b;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.footer-page-links a:hover {
    color: #2563eb;
}

/* Add a clean dot separator between links on desktop */
@media (min-width: 576px) {
    .footer-page-links a:not(:last-child)::after {
        content: '•';
        position: absolute;
        right: -15px;
        color: #cbd5e1;
        pointer-events: none;
    }
}

.footer-copyright {
    margin-top: 20px;
    font-size: 0.85rem;
    color: #94a3b8;
    font-weight: 500;
}

/* 2. Floating Chat Icons - Pro UI */
.floating-chat-container {
    position: fixed;
    right: 25px;
    bottom: 30px; /* Default for Desktop */
    z-index: 1050;
    display: flex;
    flex-direction: column;
    gap: 15px;
    pointer-events: none; /* Let clicks pass through empty space */
}

.floating-chat-container .chat-btn {
    pointer-events: auto; /* Enable clicks on buttons */
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Bouncy effect */
}

.floating-chat-container .chat-btn svg {
    width: 28px;
    height: 28px;
    transition: transform 0.3s ease;
}

.floating-chat-container .whatsapp-btn {
    background: linear-gradient(135deg, #25D366, #128C7E);
}

.floating-chat-container .messenger-btn {
    background: linear-gradient(135deg, #00C6FF, #0078FF);
}

.floating-chat-container .chat-btn:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.floating-chat-container .chat-btn:hover svg {
    transform: scale(1.1);
}

/* Subtle Pulse Animation for WhatsApp (Drives attention for sales) */
@keyframes chatPulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
.floating-chat-container .whatsapp-btn {
    animation: chatPulse 2s infinite;
}
.floating-chat-container .whatsapp-btn:hover {
    animation: none; /* Stop pulse on hover */
}

/* Mobile Adjustments for Chat Icons (Prevents collision with sticky footer) */
@media (max-width: 991px) {
    .floating-chat-container {
        bottom: 105px !important; /* Forces it above the sticky footer */
        right: 15px;
        gap: 12px;
    }
    .floating-chat-container .chat-btn {
        width: 50px;
        height: 50px;
    }
    .floating-chat-container .chat-btn svg {
        width: 24px;
        height: 24px;
    }
}

/* ==========================================================================
   Variations Setup UI - 100% Mobile Responsive Fix & Premium Design
   ========================================================================== */
.var-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.03);
    overflow: hidden;
    display: block !important;
    width: 100%;
    margin-bottom: 20px;
}
.var-card-header {
    padding: 16px 20px;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}
.var-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #0f172a;
}
.attr-list {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 400px;
    overflow-y: auto;
}
.attr-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #475569;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}
.attr-list-item:hover, .attr-list-item.active {
    background: #eff6ff;
    border-color: #3b82f6;
    color: #1d4ed8;
}
.var-badge {
    font-size: 0.75rem;
    background: #f1f5f9;
    padding: 4px 10px;
    border-radius: 50px;
    color: #64748b;
    font-weight: 700;
}
.attr-list-item.active .var-badge {
    background: #bfdbfe;
    color: #1e40af;
}
.opt-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 15px;
    padding: 20px;
}
.opt-box {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}
.color-swatch-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #e2e8f0;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}
.opt-val-text {
    font-weight: 700;
    color: #1e293b;
    font-size: 0.95rem;
}
.btn-delete-opt {
    background: #fee2e2;
    color: #ef4444;
    border: none;
    padding: 5px 15px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-delete-opt:hover {
    background: #fca5a5;
    color: #991b1b;
}
.empty-state-box {
    text-align: center;
    padding: 40px 20px;
}

/* ==========================================================================
   MOBILE SPECIFIC FIX (Forces Add Attribute to show & Smart Order)
   ========================================================================== */
@media (max-width: 991px) {
    .attr-list {
        max-height: 220px !important; /* Prevents list from pushing down the form */
        overflow-y: auto !important;
    }
    .var-card {
        min-height: auto !important;
        height: auto !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    /* Smart Order UX: When an attribute is clicked on mobile, show its options at the TOP */
    .row.g-4 {
        display: flex;
        flex-direction: column;
    }
    .col-lg-8 {
        order: 1; /* Shows options section first */
    }
    .col-lg-4 {
        order: 2; /* Shows Attributes list and Add New form below it */
        display: flex;
        flex-direction: column;
    }
    .col-lg-4 .var-card:first-child { order: 1; }
    .col-lg-4 .var-card:last-child { order: 2; margin-bottom: 40px; }
}

/* ==========================================================================
   Mobile Footer Margin Fix (Prevents hiding text behind Sticky Footer)
   ========================================================================== */
@media (max-width: 991px) {
    .site-footer-wrapper, 
    .footer-page-links {
        padding-bottom: 30px !important; /* Ensures space above the sticky 'Order Now' bar */
    }
}

/* ==========================================================================
   Premium Customer Reviews Section - 100% Responsive & High Conversion
   ========================================================================== */
.review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.review-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    border-color: #cbd5e1;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.review-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #eff6ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 800;
    flex-shrink: 0;
    text-transform: uppercase;
    border: 2px solid #dbeafe;
}

.review-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.review-meta h5 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
}

.review-stars {
    color: #f59e0b; /* Golden Yellow */
    font-size: 0.95rem;
    margin-top: 2px;
    letter-spacing: 1px;
}

.verified-badge {
    font-size: 0.75rem;
    color: #059669; /* Trust Green */
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 700;
    margin-top: 3px;
}

.review-text {
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.6;
    flex-grow: 1;
    font-style: italic;
}

.review-text::before {
    content: '"';
    font-size: 1.5rem;
    color: #cbd5e1;
    font-family: serif;
    line-height: 0;
    vertical-align: -0.2rem;
    margin-right: 2px;
}

.review-text::after {
    content: '"';
    font-size: 1.5rem;
    color: #cbd5e1;
    font-family: serif;
    line-height: 0;
    vertical-align: -0.2rem;
    margin-left: 2px;
}

.review-attached-img {
    margin-top: 15px;
    border-radius: 8px;
    overflow: hidden;
    height: 140px;
    width: 100%;
    border: 1px solid #f1f5f9;
}

.review-attached-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.review-attached-img:hover img {
    transform: scale(1.05);
}

/* Mobile Adjustments */
@media (max-width: 767px) {
    .review-grid { grid-template-columns: 1fr; gap: 15px; }
    .review-card { padding: 20px; }
}

/* ==========================================================================
   Customer Reviews Section - 100% Accessible, Responsive & Fast
   ========================================================================== */
.reviews-section {
    padding: 30px 0;
    margin-bottom: 20px;
}

.review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 30px;
}

.review-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.03);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 16px;
}

.review-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #e0e7ff; /* Darker blue background for better text contrast */
    color: #1e3a8a; /* Darker blue text */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 800;
    flex-shrink: 0;
    border: 2px solid #bfdbfe;
    overflow: hidden;
}

.review-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-meta h3 { /* Changed to h3 for SEO Semantic flow */
    margin: 0 0 3px 0;
    font-size: 1.1rem;
    font-weight: 800;
    color: #0f172a;
}

.review-stars {
    color: #d97706; /* Darker golden yellow for better accessibility */
    font-size: 1.1rem;
    letter-spacing: 1px;
    line-height: 1;
}

.verified-badge {
    font-size: 0.75rem;
    color: #065f46; /* Much darker green for perfect contrast against light green bg */
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 800;
    background: #d1fae5;
    padding: 3px 8px;
    border-radius: 50px;
}

.review-text {
    color: #334155; /* Darker grey for better readability */
    font-size: 0.95rem;
    line-height: 1.6;
    flex-grow: 1;
    font-style: italic;
    margin-bottom: 15px;
}

.review-text::before {
    content: '"';
    font-size: 1.5rem;
    color: #94a3b8;
    font-family: serif;
    line-height: 0;
    vertical-align: -0.15rem;
    margin-right: 2px;
}

.review-text::after {
    content: '"';
    font-size: 1.5rem;
    color: #94a3b8;
    font-family: serif;
    line-height: 0;
    vertical-align: -0.15rem;
    margin-left: 2px;
}

.review-attached-img {
    margin-top: auto; 
    border-radius: 8px;
    overflow: hidden;
    height: 150px;
    width: 100%;
    border: 1px solid #f1f5f9;
}

.review-attached-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 767px) {
    .review-grid { grid-template-columns: 1fr; gap: 16px; }
    .review-card { padding: 20px; }
    .reviews-section { padding: 15px 0; }
}

/* ==========================================================================
   Dynamic FAQ Accordion Section - 100% Responsive, Accessible & Fast
   ========================================================================== */
.custom-accordion {
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}
.custom-accordion .accordion-item {
    border: none;
    border-bottom: 1px solid #e2e8f0;
    background-color: transparent;
    margin-bottom: 0;
}
.custom-accordion .accordion-item:last-child {
    border-bottom: none;
}
.custom-accordion .accordion-button {
    font-weight: 700;
    color: #0f172a;
    padding: 18px 24px;
    background-color: #ffffff;
    box-shadow: none !important;
    transition: all 0.3s ease;
}
.custom-accordion .accordion-button:not(.collapsed) {
    color: #004085;
    background-color: #f8fafc;
}
.custom-accordion .faq-icon {
    color: #004085;
    margin-right: 12px;
    flex-shrink: 0;
}
.custom-accordion .accordion-body {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #334155; /* Darker text for better contrast */
    padding: 4px 24px 20px 54px; /* Align text exactly below the question text */
    background-color: #ffffff;
}

/* Mobile Adjustments */
@media (max-width: 767px) {
    .custom-accordion .accordion-button {
        padding: 16px 20px;
        font-size: 0.95rem;
    }
    .custom-accordion .accordion-body {
        padding: 4px 20px 18px 46px; /* Adjusted padding for mobile */
        font-size: 0.9rem;
    }
}

/* ==========================================================================
   Advanced Sales & Profit Analytics UI - 100% Responsive & Premium
   ========================================================================== */
/* KPI Cards */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}
.kpi-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.03);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.kpi-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
}

.kpi-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}
.kpi-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: #0f172a;
}
.kpi-icon {
    position: absolute;
    right: 20px;
    top: 24px;
    opacity: 0.1;
    transform: scale(2.5);
}

/* Advanced Filter Box */
.advanced-filter-box {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
}

/* Data Table */
.sales-table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
}
.sales-table th {
    background-color: #f1f5f9;
    color: #475569;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    padding: 15px;
    white-space: nowrap;
}
.sales-table td {
    padding: 15px;
    color: #334155;
    font-size: 0.95rem;
    vertical-align: middle;
}
.sales-table tbody tr:hover {
    background-color: #f8fafc;
}

/* Smart Pagination */
.smart-pagination {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 5px;
    margin-top: 20px;
}
.smart-pagination a, .smart-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s;
}
.smart-pagination a {
    background: #ffffff;
    color: #475569;
}
.smart-pagination a:hover {
    background: #f1f5f9;
    color: #0f172a;
}
.smart-pagination .active {
    background: #2563eb;
    color: #ffffff;
}

/* Status Badges */
.profit-badge { background: #d1fae5; color: #065f46; padding: 4px 8px; border-radius: 6px; font-weight: 700; font-size: 0.85rem; }