/* CSS Variables & Theme */
:root {
    --primary-color: #094D97; /* Logo Blue */
    --primary-hover: #073a72;
    --primary-soft: rgba(9, 77, 151, 0.08);
    --accent-color: #3498db;
    --bg-light: #f8fafc;
    --surface-light: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border-color: #f1f5f9;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 24px;
    --shadow-soft: 0 2px 10px rgba(0, 0, 0, 0.04);
    --shadow-premium: 0 15px 35px -5px rgba(9, 77, 151, 0.12);
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --glass-bg: rgba(255, 255, 255, 0.82);
    --glass-blur: blur(16px);
    --danger: #e11d48;
    --success: #059669;
    --secondary-color: #0088cc;
    --background-color: #f8fafc;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', 'Roboto', sans-serif;
}

body {
    background-color: var(--background-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    font-family: 'HandelGothic', sans-serif;
}

/* Utility Classes */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

.d-flex {
    display: flex;
}

.align-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

/* AI Premium Buttons */
.btn {
    padding: 12px 28px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 12px rgba(9, 77, 151, 0.2);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(9, 77, 151, 0.3);
}

.btn-danger {
    background: #fff;
    color: var(--danger);
    border: 2px solid var(--danger);
}

.btn-danger:hover {
    background: var(--danger);
    color: #fff;
    transform: translateY(-2px);
}

/* App Layout */
#app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Auth Login Page */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at top left, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
    overflow-y: auto;
    padding: 40px 0;
}

.login-page::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--primary-soft);
    border-radius: 50%;
    top: -100px;
    right: -100px;
    filter: blur(80px);
}

.login-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    padding: 50px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-premium);
    width: 100%;
    max-width: 480px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.login-card img {
    max-height: 60px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-main);
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.8);
    border-radius: var(--radius-md);
    font-size: 1rem;
    color: var(--text-main);
    transition: var(--transition-smooth);
}

.form-control:focus {
    border-color: var(--primary-color);
    background: #fff;
    box-shadow: 0 0 0 4px var(--primary-soft);
    outline: none;
}

/* Header */
.app-header {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1000; /* Ensured top visibility */
}

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

.header-logo {
    height: 60px;
    margin-right: 15px;
}

.header-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    flex: 1;
    display: flex;
    align-items: center;
    letter-spacing: 0.5px;
}

.header-exchange-rate {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(44, 62, 80, 0.05);
    padding: 8px 15px;
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--primary-color);
    margin-right: 20px;
}

.header-exchange-rate i {
    color: var(--secondary-color);
}

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

.user-info {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
}

/* Main Layout */
.main-layout {
    display: flex;
    flex: 1;
    min-height: calc(100vh - 84px);
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: #fff;
    border-right: 1px solid var(--border-color);
    padding: 30px 0;
}

.sidebar-title {
    padding: 0 24px 20px;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.category-item {
    padding: 12px 24px;
    margin: 2px 12px;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 500;
    color: var(--text-main);
    transition: var(--transition-smooth);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.category-item:hover {
    background: var(--primary-soft);
    color: var(--primary-color);
}

.category-item.active {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 12px rgba(9, 77, 151, 0.2);
}

.category-item i {
    font-size: 0.8rem;
    transition: transform 0.3s;
}

.category-item.expanded i {
    transform: rotate(90deg);
}

.pending-badge {
    background: var(--danger);
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 20px;
    margin-left: auto;
    font-weight: 700;
}

.category-item.has-pending-users {
    position: relative;
}

.all-products-btn {
    border: 1px solid #f9a825;
    font-weight: 600;
    margin-bottom: 15px;
}

.all-products-btn.active {
    border: 1px solid #fbc02d;
}

.sub-categories {
    padding-left: 15px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.sub-categories.open {
    max-height: 500px;
    margin-bottom: 10px;
}

.sub-category-item {
    padding: 8px 15px;
    font-size: 0.95rem;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 4px;
    transition: var(--transition);
}

.sub-category-item:hover {
    color: var(--secondary-color);
    background: rgba(0, 136, 204, 0.05);
}

.sub-category-item.active {
    color: #fff !important;
    background: var(--primary-color) !important;
}

/* Content Area */
.content-area {
    flex: 1;
    padding: 30px;
    background: var(--background-color);
    position: relative;
}

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

.page-title {
    font-size: 1.8rem;
    color: var(--primary-color);
}

/* Product Grid & Cards */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 32px;
}

.product-card {
    background: var(--surface-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -10px rgba(9, 77, 151, 0.18);
    border-color: var(--primary-soft);
}

.product-img {
    width: 100%;
    height: 220px;
    object-fit: contain;
    padding: 24px;
    background: transparent;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-smooth);
    mix-blend-mode: multiply;
}

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

.condition-badge-corner {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--primary-color);
    color: #fff;
    font-weight: 700;
    font-size: 0.7rem;
    padding: 5px 10px;
    border-radius: 50px;
    box-shadow: 0 4px 10px rgba(9, 77, 151, 0.2);
    z-index: 2;
    letter-spacing: 0.5px;
}

.stock-badge-bottom {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 700;
    font-size: 0.75rem;
    padding: 6px 14px;
    border-radius: 50px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    letter-spacing: 0.3px;
    transition: var(--transition-smooth);
    border: 1px solid transparent; /* Border color is set dynamically */
}

.stock-badge-bottom i {
    font-size: 0.8rem;
}

.stock-badges-container {
    margin-bottom: 12px;
}

.product-name {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-main);
    line-height: 1.3;
}

.product-price {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.price-badge {
    font-size: 0.75rem;
    background: var(--primary-soft);
    color: var(--primary-color);
    padding: 4px 12px;
    border-radius: 50px;
    font-weight: 700;
}

/* Modals */
.custom-modal-content {
    text-align: left;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 30px;
    align-items: start;
}

.modal-left-column {
    position: sticky;
    top: 0;
}

.modal-right-column {
    padding-bottom: 20px;
}

@media (max-width: 768px) {
    .custom-modal-content {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 10px;
    }
    .modal-left-column {
        position: static;
    }
}

.custom-modal-img {
    width: 100%;
    max-height: 400px;
    object-fit: contain;
    border-radius: 8px;
    background: #ffffff;
    margin-bottom: 20px;
}

/* Modals Refined */
.custom-modal-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 15px;
}

.custom-modal-price {
    font-family: 'Outfit', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary-color);
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Admin Panel Tables Premium */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-top: 20px;
}

.admin-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 24px;
    background: #fff;
    box-shadow: var(--shadow-soft);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.admin-table th {
    background: var(--bg-light);
    padding: 16px 20px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--border-color);
}

.admin-table td {
    padding: 18px 20px;
    font-size: 0.95rem;
    color: var(--text-main);
    border-bottom: 1px solid var(--border-color);
}

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

.admin-table tr:hover {
    background: var(--primary-soft);
}

.btn-icon {
    padding: 8px;
    border-radius: var(--radius-sm);
    background: var(--bg-light);
    color: var(--text-muted);
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

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

/* =========================================
   Product Detail Page (Full Page Layout)
   ========================================= */
.product-detail-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    align-items: start;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 30px;
    border: 1px solid var(--border-color);
}

.product-detail-gallery {
    position: sticky;
    top: 100px;
}

.product-detail-gallery-main {
    width: 100%;
    margin-bottom: 20px;
    background: #ffffff;
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    cursor: zoom-in;
    border: 1px solid var(--border-color);
}

.product-detail-gallery-main img {
    width: 100%;
    max-height: 500px;
    object-fit: contain;
    padding: 10px;
    display: block;
    mix-blend-mode: multiply;
    background: transparent;
}

.product-detail-gallery-thumbs {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.product-detail-gallery-thumbs img {
    height: 80px;
    width: 80px;
    object-fit: contain;
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    background: #ffffff;
    padding: 5px;
}

.product-detail-gallery-thumbs img.active {
    border-color: var(--primary-color);
}

.product-detail-info-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 20px;
    line-height: 1.2;
}

.product-detail-badges {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.product-detail-description {
    background: var(--surface-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 25px;
    margin-bottom: 30px;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-main);
}

.product-detail-description h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.2rem;
    color: var(--secondary-color);
    border-bottom: 2px solid var(--primary-soft);
    padding-bottom: 8px;
    display: inline-block;
}

.product-detail-price-box {
    background: var(--bg-light);
    border: 1px dashed var(--primary-soft);
    border-radius: var(--radius-md);
    padding: 25px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-back-products {
    background: var(--surface-color);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: var(--radius-md);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: var(--transition-smooth);
    margin-bottom: 20px;
}

.btn-back-products:hover {
    background: var(--bg-light);
    color: var(--primary-color);
    transform: translateX(-3px);
}

@media (max-width: 900px) {
    .product-detail-layout {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }
    .product-detail-gallery {
        position: static;
    }
    .product-detail-price-box {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

/* =========================================
   ========================================= */

@media (max-width: 992px) {
    .main-layout {
        position: relative;
    }

    .sidebar {
        position: absolute;
        left: -300px;
        top: 0;
        bottom: 0;
        z-index: 1000;
        height: 100%;
        box-shadow: var(--shadow-lg);
        transition: left 0.3s ease;
    }

    .sidebar.open {
        left: 0;
    }

    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }

    .sidebar-overlay.open {
        display: block;
    }

    .mobile-menu-toggle {
        display: block !important;
        background: none;
        border: none;
        font-size: 1.5rem;
        color: var(--primary-color);
        cursor: pointer;
        margin-right: 15px;
    }

    .header-actions {
        display: none;
    }

    .header-actions.show {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        right: 0;
        background: white;
        padding: 15px;
        box-shadow: var(--shadow-md);
        width: 100%;
        align-items: stretch;
        z-index: 101;
    }

    .header-actions-toggle {
        display: block !important;
        background: none;
        border: none;
        font-size: 1.5rem;
        color: var(--primary-color);
        cursor: pointer;
    }
}

@media (min-width: 993px) {
    .mobile-menu-toggle {
        display: none !important;
    }

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

    .sidebar-overlay {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .header-title {
        font-size: 1.2rem;
    }

    .header-logo {
        height: 40px;
    }

    .content-area {
        padding: 15px;
    }

    .page-title {
        font-size: 1.4rem;
    }

    .login-card {
        margin-top: 0;
        width: 100%;
        min-width: auto;
    }

    .custom-modal-content {
        padding: 10px;
    }

    .custom-modal-title {
        font-size: 1.4rem;
    }

    .custom-modal-price {
        font-size: 1.5rem;
        flex-direction: column;
        align-items: flex-start;
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .page-header > div {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }
}

/* Premium Custom Scrollbar - Global */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
    border: 2px solid var(--bg-light);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.whatsapp-float:hover {
    background-color: #128C7E;
    transform: scale(1.1);
    color: #FFF;
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 25px;
    }
}

/* Contact Page */
.contact-container {
    max-width: 1000px;
    margin: 0 auto;
}

.logo-gallery-rows {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-bottom: 60px;
    padding: 60px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.logo-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
}

.logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 180px;
    height: 100px;
}

.logo-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: var(--transition);
}

.logo-item img:hover {
    transform: scale(1.1);
}

.logo-item img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

.contact-details-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.contact-info-card {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.map-card {
    width: 100%;
}

.contact-info-block h3 {
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-info-block p {
    font-size: 1rem;
    margin-bottom: 8px;
    color: var(--text-main);
}

@media (max-width: 900px) {
    .contact-info-card {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .contact-info-card {
        grid-template-columns: 1fr;
        padding: 25px;
    }
}

/* Footer */
.app-footer {
    background: linear-gradient(135deg, #3498db 0%, var(--secondary-color) 100%);
    color: white;
    padding: 20px 0;
    margin-top: auto;
}

.app-footer .copyright {
    font-weight: 600;
}

.app-footer .designer {
    font-size: 0.9rem;
    opacity: 0.8;
}

.main-layout {
    display: flex;
    flex: 1;
    /* This ensures content area stretches to push footer down */
}

/* ===== Image Zoom Lightbox ===== */
.product-img-wrapper {
    position: relative;
    overflow: hidden;
    background: #ffffff;
    /* ✅ Blend mode trick: makes black-background JPEG images appear transparent */
    isolation: isolate;
}

.product-img-wrapper:hover .img-zoom-btn {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.img-zoom-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.7);
    opacity: 0;
    transition: all 0.25s ease;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    backdrop-filter: blur(4px);
}

.img-zoom-btn:hover {
    background: rgba(9, 77, 151, 0.85);
}

#img-lightbox-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
    animation: fadeInLb 0.2s ease;
}

#img-lightbox-overlay.active {
    display: flex;
}

#img-lightbox-overlay img {
    max-width: 90vw;
    max-height: 88vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    cursor: grab;
    transition: transform 0.1s ease-out;
    transform-origin: center center;
}

#img-lightbox-overlay img:active {
    cursor: grabbing;
}

#img-lightbox-caption {
    position: absolute;
    bottom: 25px;
    left: 0;
    right: 0;
    text-align: center;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    pointer-events: none;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

#img-lightbox-close {
    position: absolute;
    top: 20px;
    right: 25px;
    color: #fff;
    font-size: 2.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    cursor: pointer;
    line-height: 1;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 10001;
}

#img-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.zoom-controls {
    position: absolute;
    bottom: 70px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px 20px;
    border-radius: 50px;
    backdrop-filter: blur(8px);
    z-index: 10001;
}

.zoom-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.zoom-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

@keyframes fadeInLb {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.product-img-wrapper .product-img {
    transition: transform 0.35s ease;
    width: 100%;
    display: block;
}

.product-img-wrapper:hover .product-img {
    transform: scale(1.04);
}

/* Social Media Links */
.social-link:hover {
    transform: translateY(-5px) scale(1.1);
}

.social-link.tiktok:hover {
    color: #000 !important;
    text-shadow: 2px 2px 0 #ff0050, -2px -2px 0 #00f2ea;
}

.social-link.facebook:hover {
    color: #166fe5 !important;
}

.social-link.instagram:hover {
    color: #fd1d1d !important;
}

.social-link.youtube:hover {
    color: #cc0000 !important;
}

/* Contact Page Logo Hover */
.contact-logo-single-container img {
    transition: transform 0.4s ease, filter 0.4s ease;
}

.contact-logo-single-container img:hover {
    transform: scale(1.03) translateY(-10px);
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.15));
}

/* Premium Breadcrumbs */
.breadcrumbs-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
    font-size: 0.9rem;
    font-weight: 500;
}

.breadcrumb-item {
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.breadcrumb-item:hover {
    color: var(--primary-color);
}

.breadcrumb-item.active {
    color: var(--text-main);
    font-weight: 700;
    cursor: default;
}

.breadcrumb-separator {
    color: var(--border-color);
    font-size: 0.8rem;
}

/* Pulse Animations Refresh */
@keyframes pulse-primary {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(9, 77, 151, 0.4); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(9, 77, 151, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(9, 77, 151, 0); }
}

.pending-badge {
    background: var(--primary-color);
    color: white;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 50px;
    margin-left: 8px;
    animation: pulse-primary 2s infinite;
}

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

.fade-in {
    animation: fadeInUp 0.5s ease forwards;
}

/* New Arrivals Premium Styling */
.new-arrivals-btn {
    position: relative;
    overflow: hidden;
    color: var(--success) !important;
    border: 1px solid var(--success) !important;
    background: rgba(5, 150, 105, 0.05) !important;
}

.new-arrivals-btn:hover {
    background: rgba(5, 150, 105, 0.1) !important;
    transform: translateX(5px);
}

.new-arrivals-btn i {
    animation: sparkles 2s infinite alternate;
}

@keyframes sparkles {
    0% { transform: scale(1) rotate(0deg); color: #ffd700; text-shadow: 0 0 5px #ffd700; }
    50% { transform: scale(1.2) rotate(20deg); color: #fff; text-shadow: 0 0 10px #ffd700; }
    100% { transform: scale(1) rotate(0deg); color: #ffd700; text-shadow: 0 0 5px #ffd700; }
}

/* =========================================================================
   Marquee Logo Slider
   ========================================================================= */

.marquee-slider-container {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    padding: 30px 0;
    margin-bottom: 40px;
    background: transparent;
    display: flex;
    align-items: center;
}

/* Optional: Fading edges for a smoother entrance/exit effect */
.marquee-slider-container::before,
.marquee-slider-container::after {
    position: absolute;
    top: 0;
    width: 15%;
    height: 100%;
    content: "";
    z-index: 2;
    pointer-events: none;
}
.marquee-slider-container::before {
    left: 0;
    background: linear-gradient(to right, #f8f9fa 0%, transparent 100%);
}
.marquee-slider-container::after {
    right: 0;
    background: linear-gradient(to left, #f8f9fa 0%, transparent 100%);
}

.marquee-track {
    display: inline-block;
    animation: marquee-scroll 25s linear infinite;
    /* Optional: Pause animation when user hovers */
}

/* Pause on hover */
.marquee-slider-container:hover .marquee-track {
    animation-play-state: paused;
}

.marquee-track img {
    height: 90px; /* Increased from 60px */
    margin: 0 15px; /* Reduced from 40px */
    vertical-align: middle;
    object-fit: contain;
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: grayscale(100%) opacity(0.8);
}

.rotating-main-logo {
    height: 120px;
    object-fit: contain;
    animation: rotate-3d 6s linear infinite;
    display: inline-block;
}

@keyframes rotate-3d {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(360deg); }
}

.marquee-track img:hover {
    transform: scale(1.1);
    filter: grayscale(0%) opacity(1);
}

@keyframes marquee-scroll {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        /* Move left exactly halfway, allowing the duplicated group to smoothly loop */
        transform: translate3d(-50%, 0, 0);
    }
}