:root {
    --primary: #5F443B;
    --secondary: #D4C5B9;
    --accent: #2D2D2D;
    --light-bg: #F5F3F0;
    --white: #FFFFFF;
    --border: #E8E3DD;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--light-bg);
    color: var(--accent);
}

.main-wrapper {
    max-width: 900px;
    margin: 0 auto;
    background-color: var(--white);
    transition: margin-left 0.3s ease;
}

.navbar {
    background-color: var(--white);
    border-bottom: 1px solid var(--border);
    /* padding: 1rem 0; */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: margin-left 0.3s ease;
}

.navbar-brand {
    font-weight: 700;
    color: var(--primary) !important;
}

.cart-badge {
    background-color: var(--primary);
    color: var(--white);
    padding: 0.25rem 0.5rem;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 600;
}

.product-container {
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
}

.page-header {
    background: linear-gradient(135deg, var(--primary) 0%, #5F443B 100%);
    color: var(--white);
    padding: 0.6rem;
    text-align: center;
}

.page-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.product-header {
    background: linear-gradient(135deg, var(--primary) 0%, #5F443B 100%);
    color: var(--white);
    padding: 0.25rem;
    text-align: center;
}

.product-title {
    font-size: 0.9rem;
    font-weight: 400;
    margin-bottom: 0.25rem;
}

.stock-info {
    font-size: 0.85rem;
    opacity: 0.9;
}

.selection-section {
    padding: 1rem;
}

.section-label {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    color: var(--accent);
}

.top-buttons-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.top-buttons-group {
    display: flex;
    gap: 0.5rem;
}

.top-btn {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    background-color: var(--secondary);
    color: var(--accent);
}

.top-btn:hover {
    background-color: var(--primary);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(139, 111, 71, 0.2);
}

.add-to-cart-top {
    background-color: var(--primary);
    color: var(--white);
}

.add-to-cart-top:hover {
    background-color: #5F443B;
    box-shadow: 0 4px 12px rgba(139, 111, 71, 0.3);
}

.matrix-container {
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

.matrix-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--white);
}

.matrix-table thead {
    background-color: var(--primary);
    color: var(--white);
}

.matrix-table th {
    padding: 0.1rem 0.1rem;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid var(--border);
}

.matrix-table td {
    padding: 0;
    border: 1px solid var(--border);
    text-align: center;
    height: 30px;
}

.matrix-color-label {
    padding: 0.1rem 0.1rem;
    font-weight: 500;
    font-size: 0.9rem;
    background-color: var(--secondary);
}

.matrix-cell {
    width: 100%;
    height: 100%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    position: relative;
    background-color: var(--white);
    padding: 0;
}

.matrix-cell:focus {
    background-color: #FFE066;
    outline: 2px solid #FFC107;
}

.matrix-cell:hover {
    background-color: var(--light-bg);
}

.matrix-cell.selected {
    background-color: #FFE066;
    color: var(--accent);
    font-weight: 600;
    outline: 2px solid #FFC107;
}

.matrix-cell.has-value {
    background-color: #90EE90;
    color: var(--accent);
    font-weight: 600;
}

.matrix-cell.has-value:focus {
    background-color: #FFE066;
    outline: 2px solid #FFC107;
}

.matrix-cell.disabled {
    /*opacity: 0.4;
    background-color: #f0f0f0;    
    */
    cursor: not-allowed;
    position: relative;
}

.matrix-cell.disabled::after {
    content: '✕';
    position: absolute;
    font-weight: bold;
    color: #ff8a8a;
}

.matrix-qty-input {
    width: 100%;
    height: 100%;
    border: none;
    text-align: center;
    font-weight: 600;
    background-color: transparent;
    padding: 0;
    font-size: 0.9rem;
    min-width: 0;
}

.matrix-qty-input:focus {
    outline: none;
}

.matrix-qty-input::-webkit-outer-spin-button,
.matrix-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.matrix-qty-input[type=number] {
    -moz-appearance: textfield;
}

.quantity-price-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.qty-label,
.price-label {
    font-weight: 500;
    font-size: 0.9rem;
}

.price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
}

.pricing-table {
    width: 100%;
    margin-bottom: 1.25rem;
}

.pricing-table thead {
    background-color: var(--secondary);
}

.pricing-table th {
    padding: 0.75rem;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
    border: 1px solid var(--border);
}

.pricing-table td {
    padding: 0.75rem;
    text-align: center;
    border: 1px solid var(--border);
    font-size: 0.9rem;
}

.pricing-table tbody tr:hover {
    background-color: var(--light-bg);
}


.footer-section {
    background-color: var(--secondary);
    padding: 1rem 1rem;
    border-radius: 8px;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 0.7rem;
    padding-bottom: 0.7rem;
    border-bottom: 1px solid var(--border);
}

.footer-links a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-credit {
    text-align: center;
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
}

.bottom-action-buttons {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.btn-order {
    flex: 1;
    background-color: var(--accent);
    color: var(--white);
    border: none;
    padding: 0.85rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.btn-order:hover {
    background-color: #1a1a1a;
    box-shadow: 0 4px 12px rgba(45, 45, 45, 0.3);
}

.side-item {
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    font-size: 16px;
    cursor: pointer;
    background-color: var(--white);
    color: var(--accent);
}

.side-item a {
    color: inherit;
    /* uses same color as side-item */
    text-decoration: none;
    /* removes underline */
    display: block;
    /* makes whole area clickable */
}

.side-item:hover {
    background: var(--light-bg);
}

body.menu-open .navbar,
body.menu-open .main-wrapper {
    margin-left: 260px;
}

#menuOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

body.menu-open #menuOverlay {
    opacity: 1;
    visibility: visible;
}

.brand-text {
    font-weight: 700;
    font-size: 30px;
    /* desktop size */
    line-height: 1.2;
    transition: font-size .15s ease;
}

.brand-text.bhavani {
    font-size: 20px;
    /* 2px less than 26px */
}

/* optional: keep logo proportional */
.navbar-logo {
    height: 60px;
    width: auto;
    transition: height .15s ease;
}

/* medium screens */
@media (max-width: 992px) {
    .brand-text {
        font-size: 22px;
    }

    .brand-text.bhavani {
        font-size: 16px;
    }

    /* 2px less than 18px */
    .navbar-logo {
        height: 50px;
    }
}

/* small/mobile screens */
@media (max-width: 576px) {
    .brand-text {
        font-size: 18px;
    }

    /* reduced on mobile */
    .brand-text.bhavani {
        font-size: 10px;
    }

    /* 2px less than 14px */
    .navbar-logo {
        height: 34px;
    }
}

@media (max-width: 1200px) {
    .main-wrapper {
        max-width: 100%;
    }
}

@media (max-width: 992px) {
    .navbar-brand {
        font-size: 2.25rem !important;
    }

    .top-buttons-group {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .navbar-brand {
        font-size: 2rem !important;
    }

    body.menu-open .navbar,
    body.menu-open .main-wrapper {
        margin-left: 0;
    }

    #sideMenu {
        width: 100%;
        left: -100%;
    }

    body.menu-open #sideMenu {
        left: 0;
    }

    .product-container {
        margin-bottom: 1.5rem;
        border-radius: 0;
    }

    .quantity-price-section {
        gap: 1rem;
    }

    .bottom-action-buttons {
        flex-direction: column;
    }

    .pricing-table {
        font-size: 0.85rem;
    }

    .pricing-table th,
    .pricing-table td {
        padding: 0.5rem 0.25rem;
    }

    .matrix-table th,
    .matrix-table td {
        padding: 0.1rem 0.1rem;
    }

    .matrix-cell {
        height: 40px;
        font-size: 0.85rem;
    }

    .top-buttons-row {
        flex-direction: column;
        align-items: stretch;
    }

    .top-buttons-group {
        justify-content: center;
    }

    .footer-links {
        gap: 1rem;
    }

    .footer-links a {
        font-size: 0.85rem;
    }

    .side-item {
        padding: 12px 16px;
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .navbar {
        padding: 0.75rem 0;
    }

    .navbar-brand {
        font-size: 1.75rem !important;
    }

    .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    #openMenuBtn,
    .btn-sm {
        padding: 0.375rem 0.5rem;
        font-size: 0.875rem;
    }

    .d-flex.align-items-center.gap-3 {
        gap: 0.5rem;
    }

    .me-3 {
        margin-right: 0.5rem !important;
    }

    .page-header {
        padding: 0.4rem;
    }

    .page-title {
        font-size: 0.95rem;
    }

    .stock-info {
        font-size: 0.8rem;
    }

    .category-tabs {
        padding: 0.75rem;
    }

    .category-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
        margin-right: 0.4rem;
    }

    .selection-section {
        padding: 0.75rem;
    }

    .section-label {
        font-size: 0.9rem;
    }

    .top-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }

    .product-header {
        padding: 0.2rem;
    }

    .product-title {
        font-size: 0.85rem;
    }

    .navbar .add-to-cart-top {
        width: 44px;
        height: 38px;
        padding: 0;
        justify-content: center;
        border-radius: 8px;
    }

    .navbar .add-to-cart-top .btn-text {
        display: none;
    }

    .navbar .add-to-cart-top i {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .navbar-brand {
        font-size: 1.5rem !important;
    }

    .matrix-table th,
    .matrix-table td {
        padding: 0.1rem 0.1rem;
        font-size: 0.8rem;
    }

    .matrix-cell {
        height: 35px;
    }

    .matrix-color-label {
        padding: 0.1rem 0.1rem;
        font-size: 0.8rem;
    }

    .top-btn {
        flex: 1;
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 0.5rem;
    }

    .footer-credit {
        font-size: 0.8rem;
    }
}

@media (max-width: 360px) {
    .navbar {
        padding: 0.5rem 0;
    }

    .navbar-brand {
        font-size: 1.25rem !important;
    }

    .d-flex.align-items-center.gap-3 {
        gap: 0.25rem;
    }

    #openMenuBtn {
        padding: 0.25rem 0.4rem;
        font-size: 0.75rem;
    }

    .top-btn {
        padding: 0.4rem 0.5rem;
        font-size: 0.75rem;
    }

    .category-btn {
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
    }
}




/* ================================
   CART / ORDER SUMMARY MATRIX
   (MATCHES MAIN MATRIX UI)
================================ */

.cart-product-block {
    margin-bottom: 1.5rem;
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

/* Cart table same feel as matrix-table */
.cart-matrix {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--white);
}

.cart-matrix th,
.cart-matrix td {
    border: 1px solid var(--border);
    text-align: center;
    padding: 0.4rem 0.25rem;
    font-size: 0.85rem;
}

/* Product name header */
.cart-matrix .product-header-row th {
    background: linear-gradient(135deg, var(--primary) 0%, #5F443B 100%);
    color: var(--white);
    text-align: left;
    font-weight: 600;
    padding: 0.6rem 0.75rem;
    font-size: 0.9rem;
}

/* Size header row */
.cart-matrix .size-header-row th {
    background-color: var(--primary);
    color: var(--white);
    font-weight: 600;
    font-size: 0.8rem;
}

/* Color column (same as matrix-color-label) */
.cart-matrix .color-cell {
    background-color: var(--secondary);
    font-weight: 600;
    text-align: left;
    padding-left: 0.5rem;
    white-space: nowrap;
}

/* Quantity cells */
.cart-matrix .qty-cell {
    background-color: var(--white);
    font-weight: 600;
}

/* Empty cells */
.cart-matrix .qty-cell.empty {
    background-color: var(--light-bg);
}

/* Disabled / unavailable */
.cart-matrix .qty-cell.disabled {
    position: relative;
    background-color: #f7f7f7;
}

.cart-matrix .qty-cell.disabled::after {
    content: '✕';
    color: #ff8a8a;
    font-weight: bold;
}

/* Responsive tightening */
@media (max-width: 768px) {

    .cart-matrix th,
    .cart-matrix td {
        padding: 0.3rem 0.2rem;
        font-size: 0.75rem;
    }
}



/* ================================
   DELIVERY MODAL UI
================================ */

.modal-header {
    background: linear-gradient(135deg, var(--primary) 0%, #5F443B 100%);
    color: var(--white);
    border-bottom: none;
}

.modal-title {
    font-weight: 600;
}

.modal-content {
    border-radius: 12px;
    overflow: hidden;
}

.modal-footer {
    border-top: 1px solid var(--border);
}

.modal-footer .btn {
    border-radius: 6px;
    font-weight: 600;
}


/* ================================
   DELIVERY MODAL – UI FIX
   Matches Main App UI
================================ */

/* Override header */
.delivery-modal .modal-header {
    background: linear-gradient(135deg, var(--primary) 0%, #5F443B 100%) !important;
    color: var(--white) !important;
    border-bottom: none;
    padding: 0.75rem 1rem;
}

.delivery-modal .modal-title {
    font-weight: 600;
    font-size: 1rem;
}

/* Modal body spacing */
.delivery-modal .modal-body {
    padding: 1rem;
    background-color: var(--light-bg);
}

/* Form labels */
.delivery-modal label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
}

/* Inputs */
.delivery-modal .form-control {
    border-radius: 6px;
    border: 1px solid var(--border);
    font-size: 0.85rem;
    padding: 0.55rem 0.6rem;
}

.delivery-modal .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(95, 68, 59, 0.15);
}

/* Country buttons */
.delivery-modal #indiaBtn {
    background-color: var(--primary) !important;
    color: var(--white) !important;
    border: none;
}

.delivery-modal #otherBtn {
    border-color: var(--border);
    color: var(--accent);
}

/* Shipping method box */
.delivery-modal .shipping-box {
    background-color: var(--white) !important;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
}

/* Radio buttons spacing */
.delivery-modal .form-check {
    margin-bottom: 0.5rem;
}

.delivery-modal .form-check-label {
    font-size: 0.85rem;
    font-weight: 500;
}

/* Self pickup info */
.delivery-modal #selfPickupInfo {
    background-color: var(--secondary) !important;
    color: var(--accent);
    border-radius: 8px;
    font-size: 0.8rem;
}

/* Save button */
.delivery-modal #saveDeliveryBtn {
    background-color: var(--primary);
    border: none;
    border-radius: 6px;
    font-weight: 600;
    padding: 0.7rem;
}

.delivery-modal #saveDeliveryBtn:hover {
    background-color: #5F443B;
}

/* Mobile */
@media (max-width: 576px) {
    .delivery-modal .modal-dialog {
        margin: 0.5rem;
    }

    .delivery-modal .modal-title {
        font-size: 0.9rem;
    }
}











/* ================================
   SOCIAL MEDIA SECTION
================================ */

.social-media-section {
    margin: 3rem 0 2rem 0;
    padding: 0 1rem;
}

.social-title {
    text-align: center;
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.social-underline {
    width: 60px;
    height: 3px;
    background-color: var(--primary);
    margin: 0 auto 2rem;
}

.social-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.social-card {
    background-color: var(--white);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    border: 2px solid transparent;
}

.social-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
}

.instagram-card {
    border-color: #E1306C;
}

.youtube-card {
    border-color: #FF0000;
}

.social-header {
    background: linear-gradient(135deg, var(--primary) 0%, #5F443B 100%);
    color: var(--white);
    padding: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.social-header i {
    font-size: 1.8rem;
}

.social-header h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: 0.3px;
}

.social-content {
    padding: 1.5rem;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.instagram-feed,
.youtube-feed {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.instagram-feed iframe,
.youtube-feed iframe {
    width: 100% !important;
    height: 100% !important;
    border: none !important;
}

.placeholder {
    text-align: center;
    color: var(--accent);
}

.placeholder i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
    display: block;
    opacity: 0.7;
}

.placeholder p {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--accent);
}

.social-link-btn {
    display: inline-block;
    background-color: var(--primary);
    color: var(--white);
    padding: 0.6rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.social-link-btn:hover {
    background-color: #5F443B;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(95, 68, 59, 0.3);
}

/* Corner Links */
.social-corner-link {
    position: absolute;
    top: 12px;
    right: 12px;
    background-color: rgba(255, 255, 255, 0.95);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 10;
    border: 2px solid transparent;
}

.social-corner-link:hover {
    transform: scale(1.15);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

.instagram-corner {
    background: linear-gradient(135deg, #E1306C 0%, #833AB4 100%) !important;
    color: white;
    border-color: white;
}

.instagram-corner:hover {
    color: white;
}

.youtube-corner {
    background: linear-gradient(135deg, #FF0000 0%, #FF6B6B 100%) !important;
    color: white;
    border-color: white;
}

.youtube-corner:hover {
    color: white;
}

.social-corner-link i {
    font-size: 1.4rem;
    margin-bottom: 2px;
}

.social-corner-link span {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Instagram specific styling */
.instagram-card .social-header {
    background: linear-gradient(135deg, #833AB4 0%, #E1306C 100%);
}

/* YouTube specific styling */
.youtube-card .social-header {
    background: linear-gradient(135deg, #FF0000 0%, #DC143C 100%);
    color: #fff;
}

.youtube-card .social-header i,
.youtube-card .social-header h3 {
    color: white;
}

.youtube-card .placeholder i {
    color: #FF0000;
}

/* Responsive */
@media (max-width: 768px) {
    .social-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .social-title {
        font-size: 1.4rem;
    }

    .social-content {
        min-height: 250px;
    }

    .social-header h3 {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .social-media-section {
        padding: 0 0.75rem;
        margin: 2rem 0 1.5rem 0;
    }

    .social-title {
        font-size: 1.2rem;
    }

    .social-content {
        padding: 1rem;
        min-height: 200px;
    }

    .placeholder i {
        font-size: 2.5rem;
    }

    .social-header {
        padding: 0.75rem;
    }

    .social-header i {
        font-size: 1.2rem;
    }

    .social-header h3 {
        font-size: 0.9rem;
    }
}


.faq-section {
    margin: 2rem 0;
    padding: 0 1rem;
}

.faq-title {
    text-align: center;
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.faq-underline {
    width: 60px;
    height: 3px;
    background-color: var(--primary);
    margin: 0 auto 2rem;
}

.faq-container {
    margin-bottom: 1.5rem;
}

.faq-item {
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border);
    animation: slideDown 0.3s ease;
}

.faq-item.hidden-faq {
    display: none;
}

.faq-item.show {
    display: block;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.faq-question {
    padding: 1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 1.15rem;
    color: var(--primary);
    transition: all 0.3s ease;
    background-color: var(--white);
}

.faq-question:hover {
    background-color: var(--light-bg);
}

.faq-icon {
    transition: transform 0.3s ease;
    font-size: 1.2rem;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 1rem;
    color: var(--accent);
    font-size: 1rem;
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 1rem;
}

/* More Button Styling */
.faq-more-button-container {
    text-align: center;
    margin-top: 1.5rem;
}

.faq-more-btn {
    background: linear-gradient(135deg, var(--primary) 0%, #5F443B 100%);
    color: var(--white);
    border: none;
    padding: 0.85rem 2rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.faq-more-btn:hover {
    box-shadow: 0 4px 12px rgba(95, 68, 59, 0.3);
    transform: translateY(-2px);
}

.faq-more-btn:active {
    transform: translateY(0);
}

.faq-more-btn i {
    transition: transform 0.3s ease;
    font-size: 0.9rem;
}

.faq-more-btn.expanded i {
    transform: rotate(180deg);
}

/* Responsive */
@media (max-width: 768px) {
    .faq-question {
        padding: 0.75rem;
        font-size: 0.9rem;
    }

    .faq-answer {
        font-size: 0.85rem;
    }

    .faq-more-btn {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .faq-section {
        padding: 0 0.75rem;
    }

    .faq-title {
        font-size: 1.2rem;
    }

    .faq-question {
        padding: 0.6rem;
        font-size: 1rem;
    }

    .faq-answer {
        font-size: 0.9rem;
        padding: 0 0.6rem;
    }

    .faq-more-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }

    .faq-item {
        margin-bottom: 0.75rem;
    }
}

@media (max-width: 480px) {
    .faq-title {
        font-size: 1.40rem;
    }

    .faq-question {
        padding: 0.6rem;
        font-size: 1rem;
    }

    .faq-answer {
        font-size: 0.9rem;
        padding: 0 0.6rem;
    }
}





/*  CSS FOR AUTH  */
.auth-tab-content {
    animation: slideIn 0.3s ease-in-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.order-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    background: #f9f9f9;
    transition: all 0.3s ease;
}

.order-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.order-status {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-processing {
    background: #cfe2ff;
    color: #084298;
}

.status-shipped {
    background: #d1ecf1;
    color: #0c5460;
}

.status-delivered {
    background: #d4edda;
    color: #155724;
}

.status-cancelled {
    background: #f8d7da;
    color: #721c24;
}

.order-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 1rem;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .order-grid {
        grid-template-columns: 1fr;
    }
}

.timeline {
    position: relative;
    padding: 1rem 0;
}

.timeline-item {
    display: flex;
    margin-bottom: 1.5rem;
    position: relative;
}

.timeline-marker {
    width: 40px;
    height: 40px;
    background: #5F443B;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    flex-shrink: 0;
}

.timeline-content {
    margin-left: 1.5rem;
    flex-grow: 1;
}

.timeline-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.3rem;
}

.timeline-date {
    font-size: 0.8rem;
    color: #999;
}

.timeline-note {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.3rem;
}

/* Address Selection Styles */
.address-card {
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.address-card:hover {
    border-color: #5F443B;
    box-shadow: 0 2px 8px rgba(95, 68, 59, 0.1);
}

.address-card.selected {
    border-color: #5F443B;
    background-color: #f5f1ed;
    box-shadow: 0 0 0 3px rgba(95, 68, 59, 0.1);
}

.address-card.default {
    border-color: #4CAF50;
}

.shipping-box {
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.order-status {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.order-status.status-pending {
    background-color: #fff3cd;
    color: #856404;
}

.order-status.status-confirmed {
    background-color: #cfe2ff;
    color: #084298;
}

.order-status.status-shipped {
    background-color: #d1ecf1;
    color: #0c5460;
}

.order-status.status-delivered {
    background-color: #d4edda;
    color: #155724;
}

.order-status.status-cancelled {
    background-color: #f8d7da;
    color: #721c24;
}

.order-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    background: white;
    transition: all 0.3s ease;
}

.order-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.order-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 1rem;
    align-items: center;
}

@media (max-width: 768px) {
    .order-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }
}

.timeline {
    position: relative;
    padding: 1rem 0;
}

.timeline-item {
    display: flex;
    margin-bottom: 1.5rem;
    position: relative;
}

.timeline-marker {
    width: 40px;
    height: 40px;
    background: #5F443B;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 1rem;
    flex-shrink: 0;
}

.timeline-content {
    flex: 1;
}

.timeline-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.3rem;
}

.timeline-date {
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 0.3rem;
}

.timeline-note {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
}






/* ================================
   CATEGORY TABS WITH PRODUCTS (COMPACT)
================================ */

/* TAB NAVIGATION */
.category-tabs {
    display: flex;
    border-bottom: 2px solid var(--border);
    overflow-x: auto;
    background: var(--white);
    padding: 0;
}

.category-btn {
    flex: 1;
    min-width: 140px;
    background: none;
    border: none;
    color: var(--accent);
    padding: 0.75rem 1rem;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    border-bottom: 3px solid transparent;
    text-align: center;
    white-space: nowrap;
}

.category-btn:hover {
    color: var(--primary);
}

.category-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* TAB CONTENT */
.tab-content {
    display: none;
    padding: 0.7rem;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Products Grid inside each tab - COMPACT */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.5rem;
    margin: 0;
}

.product-card {
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: var(--white);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    padding: 0.5rem;
    text-align: center;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.product-card.selected {
    background-color: var(--light-bg);
    border: 2px solid var(--primary);
    box-shadow: 0 3px 12px rgba(95, 68, 59, 0.2);
    font-weight: 600;
}

.product-card.selected .product-card-name {
    color: var(--primary);
    font-weight: 700;
}

.product-card-image {
    display: none;
}

.product-card-image i {
    display: none;
}

.product-card-content {
    padding: 0;
    text-align: center;
}

.product-card-name {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--accent);
    margin: 0;
    line-height: 1.2;
    padding: 0.25rem 0;
}

.product-card-desc {
    display: none;
}

.product-card-btn {
    display: none;
}

/* Responsive */
@media (max-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 0.6rem;
    }

    .category-btn {
        min-width: 110px;
        padding: 0.6rem 0.8rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 0.5rem;
    }

    .product-card {
        padding: 0.4rem;
    }

    .product-card-name {
        font-size: 0.8rem;
    }

    .category-btn {
        min-width: 90px;
        padding: 0.5rem 0.6rem;
        font-size: 0.75rem;
    }

    .tab-content {
        padding: 0.5rem;
    }
}

@media (max-width: 576px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
        gap: 0.4rem;
    }

    .product-card {
        padding: 0.3rem;
    }

    .product-card-name {
        font-size: 0.7rem;
    }

    .category-btn {
        min-width: 70px;
        padding: 0.4rem 0.5rem;
        font-size: 0.65rem;
    }

    .tab-content {
        padding: 0.3rem;
    }
}

/* ===== LIVE STOCK SECTION STYLES ===== */
.stock-display-section {
    background: linear-gradient(135deg, #F5F3F0 0%, #FFFFFF 100%);
    padding: 2.5rem 1.5rem;
    margin: 2.5rem 0;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.stock-header {
    margin-bottom: 2rem;
    text-align: center;
}

.stock-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.stock-title i {
    font-size: 1.7rem;
    color: #5F6B59;
}

.stock-summary {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.summary-card {
    background: linear-gradient(135deg, var(--primary) 0%, #8B6F47 100%);
    color: var(--white);
    padding: 1.2rem 2rem;
    border-radius: 12px;
    min-width: 200px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(95, 68, 59, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.summary-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(95, 68, 59, 0.3);
}

.summary-label {
    font-size: 0.85rem;
    font-weight: 600;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.summary-value {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -1px;
}

/* Stock Category Tabs */
.stock-category-tabs {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 2rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.stock-tab-btn {
    background: var(--secondary);
    color: var(--primary);
    border: 2px solid transparent;
    padding: 0.7rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.stock-tab-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, #8B6F47 100%);
    transition: left 0.3s ease;
    z-index: -1;
}

.stock-tab-btn:hover {
    color: var(--white);
    transform: translateY(-2px);
}

.stock-tab-btn.active {
    background: linear-gradient(135deg, var(--primary) 0%, #8B6F47 100%);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(95, 68, 59, 0.3);
}

/* Stock Content Area */
.stock-content-wrapper {
    margin-top: 2rem;
}

.stock-content-area {
    min-height: 400px;
}

.stock-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 300px;
    color: var(--primary);
}

.loading-spinner i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--secondary);
}

.loading-spinner p {
    font-size: 1rem;
    color: var(--accent);
}

/* Product Stock Cards */
.product-stock-card {
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.product-stock-card:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 16px rgba(95, 68, 59, 0.12);
}

.product-stock-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--light-bg);
}

.product-stock-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
}

.product-stock-code {
    font-size: 0.85rem;
    color: #999;
    margin-top: 0.2rem;
}

.product-total-stock {
    background: linear-gradient(135deg, #E8F5E9 0%, #C8E6C9 100%);
    color: #2E7D32;
    font-size: 1.2rem;
    font-weight: 700;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    min-width: 120px;
    text-align: center;
}

/* Color-Size Matrix Table */
.stock-matrix-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    overflow-x: auto;
}

.stock-matrix-table thead {
    background: linear-gradient(135deg, #F5F3F0 0%, #E8E3DD 100%);
}

.stock-matrix-table th {
    padding: 0.8rem;
    text-align: center;
    font-weight: 700;
    color: var(--primary);
    border: 1px solid var(--border);
    font-size: 0.8rem;
}

.stock-matrix-table th:first-child {
    text-align: left;
    min-width: 120px;
}

.stock-matrix-table td {
    padding: 0.8rem;
    text-align: center;
    border: 1px solid var(--border);
    background: var(--white);
}

.stock-matrix-table tbody tr {
    transition: background-color 0.2s ease;
}

.stock-matrix-table tbody tr:hover {
    background-color: #FBF9F7;
}

.color-cell {
    font-weight: 600;
    color: var(--primary);
    text-align: left;
    min-width: 120px;
}

.quantity-cell {
    font-weight: 600;
    color: var(--accent);
    background: linear-gradient(135deg, #FAFAF8 0%, #F5F3F0 100%);
}

.quantity-cell.high {
    color: #2E7D32;
    background: #E8F5E9;
}

.quantity-cell.medium {
    color: #F57C00;
    background: #FFE0B2;
}

.quantity-cell.low {
    color: #C62828;
    background: #FFEBEE;
}

.stock-total-row {
    background: linear-gradient(135deg, #F5F3F0 0%, #E8E3DD 100%);
    font-weight: 700;
}

.stock-total-row td {
    padding: 1rem;
    border: 2px solid var(--border);
}

/* Responsive */
@media (max-width: 1024px) {
    .stock-display-section {
        padding: 2rem 1rem;
    }
    
    .summary-card {
        min-width: 150px;
        padding: 1rem 1.5rem;
    }
    
    .stock-matrix-table {
        font-size: 0.8rem;
    }
    
    .stock-matrix-table th,
    .stock-matrix-table td {
        padding: 0.6rem;
    }
}

@media (max-width: 768px) {
    .stock-display-section {
        padding: 1.5rem 1rem;
        margin: 1.5rem 0;
    }
    
    .stock-title {
        font-size: 1.4rem;
    }
    
    .stock-category-tabs {
        gap: 0.5rem;
        justify-content: flex-start;
        overflow-x: auto;
        padding: 0.5rem;
    }
    
    .stock-tab-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.8rem;
    }
    
    .product-stock-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .product-total-stock {
        margin-top: 0.8rem;
        width: 100%;
    }
    
    .stock-matrix-table {
        font-size: 0.75rem;
        display: block;
        overflow-x: auto;
    }
    
    .stock-matrix-table th,
    .stock-matrix-table td {
        padding: 0.5rem;
    }
    
    .stock-matrix-table th:first-child,
    .color-cell {
        min-width: 100px;
        font-size: 0.75rem;
    }
    
    .summary-card {
        min-width: 130px;
        padding: 0.8rem 1.2rem;
    }
    
    .summary-value {
        font-size: 1.8rem;
    }
}

@media (max-width: 576px) {
    .stock-display-section {
        padding: 1rem;
        margin: 1rem 0;
    }
    
    .stock-title {
        font-size: 1.2rem;
    }
    
    .stock-title i {
        font-size: 1.3rem;
    }
    
    .summary-card {
        min-width: 120px;
        padding: 0.7rem 1rem;
    }
    
    .summary-label {
        font-size: 0.75rem;
    }
    
    .summary-value {
        font-size: 1.5rem;
    }
    
    .stock-tab-btn {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }
    
    .product-stock-card {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .product-stock-name {
        font-size: 1rem;
    }
    
    .stock-matrix-table {
        font-size: 0.7rem;
    }
    
    .stock-matrix-table th,
    .stock-matrix-table td {
        padding: 0.4rem;
    }
    
    .color-cell {
        min-width: 80px;
        font-size: 0.7rem;
    }
}