/* ================================ GLOBAL THEME VARIABLES ================================ */

:root { /* COLORS */
    --primary: #7644ee ;/*#6C5CE7;*/
    --primary-hover: #5848d6;
    --secondary: #00B894;
    --bg-main: #f4f6fb;
    --bg-card: #ffffff;
    --bg-sidebar: #ffffff;
    --text-dark: #2d3436;
    --text-light: #636e72;
    --border-color: #e5e7eb;
    --danger: #e74c3c;
    --success: #2ecc71;
    --warning: #f39c12; /* SHADOWS */
    --shadow-soft: 0 8px 25px rgba(0,0,0,0.05);
    --shadow-hover: 0 10px 30px rgba(0,0,0,0.08); /* RADIUS */
    --radius-lg: 20px;
    --radius-md: 12px;
    --radius-sm: 8px; /* TRANSITION */
    --transition: all 0.3s ease;
}
/* ================================ GLOBAL RESET ================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
  /*   overflow-x: hidden; Prevents unwanted horizontal container breaks */
}

body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    background: var(--bg-main);
    color: var(--text-dark);
    margin: 0;
}
/* ================================ AUTH PAGE (LOGIN / REGISTER) ================================ */

.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px; /* Responsive safe padding */
}

.auth-card {
    width: 100%;
    max-width: 1100px;
    display: flex;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}
/* LEFT IMAGE PANEL */

.auth-left {
    flex: 1;
    background: linear-gradient(135deg, #e8ecff, #f5f7ff);
    display: flex;
    align-items: center;
    justify-content: center;
}

    .auth-left img {
        width: 100%;
        height: auto;
        border-top-left-radius: 20px;
        border-bottom-left-radius: 20px;
        border-top-right-radius: 0;
        border-bottom-right-radius: 0;
        display: block;
    }
/* RIGHT FORM PANEL */

.auth-right {
    flex: 1;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 10px;
}

.auth-subtitle {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 30px;
}
/* ================================ FORM ELEMENTS ================================ */

.form-group {
    margin-bottom: 20px;
}

label {
    font-size: 14px;
    margin-bottom: 6px;
    display: block;
}

input, select, textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    font-size: 14px;
    transition: var(--transition);
    background: #f9fafc;
}

    input:focus, select:focus, textarea:focus {
        outline: none;
        border-color: var(--primary);
        background: #fff;
        box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1);
    }
/* ================================ BUTTONS ================================ */

.btn {
    padding: 12px 20px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary);
    color: white;
}

    .btn-primary:hover {
        background: var(--primary-hover);
        box-shadow: var(--shadow-hover);
    }

.btn-secondary {
    background: var(--secondary);
    color: #fff;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
}

    .btn-outline:hover {
        background: var(--primary);
        color: #fff;
    }

/* ================================ TABLES ================================ */

/* Prevent structural breaks inside narrow parent tables layouts */
.table-responsive-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: visible;
    box-shadow: var(--shadow-soft);
}

    .table th, .table td {
        padding: 14px;
        text-align: left;
        font-size: 14px;
    }

    .table thead {
        background: #f1f3f9;
    }

    .table th {
        font-weight: 600;
        color: var(--text-dark);
    }

    .table tbody tr {
        border-top: 1px solid var(--border-color);
        transition: var(--transition);
    }

        .table tbody tr:hover {
            background: #f9f9ff;
        }
/* ================================ SIDEBAR MENU ================================ */

.sidebar {
    width: 260px;
    background: var(--primary);
    color: #fff;
    box-shadow: var(--shadow-soft);
    padding: 30px 10px;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    transition: var(--transition);
}

.sidebar-logo {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 40px;
    text-align: center;
    color: #fff;
}

.sidebar ul {
    list-style: none;
    padding-left: 0;
    padding-bottom:5px;
    margin: 0;
}

    .sidebar ul li {
        margin-bottom: 1px;
    }

        .sidebar ul li a {
            display: flex;
            align-items: center;
            padding: 12px 10px;
            border-radius: var(--radius-md);
            color: #fff;
            text-decoration: none;
            font-size: 14px;
            transition: var(--transition);
        }

            .sidebar ul li a i {
                margin-right: 10px;
            }

            .sidebar ul li a:hover,
            .sidebar ul li a.active {
                background: #fff;
                color: var(--primary);
            }

                .sidebar ul li a:hover i,
                .sidebar ul li a.active i {
                    color: var(--primary);
                }

/* ================================ MAIN CONTENT ================================ */

.main-content {
    margin-left: 260px;
    padding: 30px;
    min-height: 100vh;
    background: linear-gradient( 135deg, #f8f9ff 0%, #f4f6fb 40%, #eef1ff 100% );
    transition: var(--transition);
}

/* ================================ MODAL ================================ */

body.modal-open {
    overflow: hidden;
    padding-right: 0 !important;
}

.search-overlay {
    z-index: 999;
}

.dropdown-menu,
.action-menu {
    z-index: 1030;
}

.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

    .modal.show {
        display: flex;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

.modal-content {
    background: var(--bg-card);
    padding: 30px;
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 500px;
    box-shadow: var(--shadow-hover);
    position: relative;
    z-index: 1060;
}

.company-list {
    margin-top: 25px;
}

.company-item {
    padding: 18px 22px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    margin-bottom: 15px;
    cursor: pointer;
    transition: var(--transition);
}

    .company-item:hover {
        border-color: var(--primary);
        box-shadow: var(--shadow-soft);
    }

    .company-item.active {
        border-color: var(--primary);
        background: rgba(108, 92, 231, 0.08);
    }

.company-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
}

.company-meta {
    font-size: 13px;
    color: var(--text-light);
    margin-top: 6px;
}
/* ================================ SETTINGS TABS ================================ */

.settings-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
    overflow-x: auto; /* Ensures wide tab layouts look perfect on mobile screens */
}

.tab-btn {
    background: transparent;
    border: none;
    padding: 10px 18px;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-light);
    transition: var(--transition);
    white-space: nowrap;
}

    .tab-btn:hover {
        background: rgba(108, 92, 231, 0.08);
        color: var(--primary);
    }

    .tab-btn.active {
        background: var(--primary);
        color: #fff;
    }

.tab-content {
    display: none;
    animation: fadeIn 0.2s ease-in-out;
}

    .tab-content.active {
        display: block;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================= ACTION MENU ================= */
.action-menu-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px 8px;
    font-size: 16px;
}

    .action-menu-btn:hover {
        color: #6f42c1;
    }

.action-menu {
    position: absolute;
    text-align: left;
    right: 0;
    top: 35px;
    background: #fff;
    min-width: 160px;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border: 1px solid #eee;
    z-index: 99999;
}

    .action-menu a {
        display: block;
        padding: 8px 14px;
        cursor: pointer;
        font-size: 14px;
        text-decoration: none;
        color: #333;
    }

        .action-menu a:hover {
            background: rgba(108, 92, 231, 0.08);
            color: var(--primary);
        }

            .action-menu a:hover i {
                color: var(--primary);
            }

.info-grid {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 8px 10px;
    font-size: 13px;
}

.card {
    padding: 20px;
    border-radius: var(--radius-md);
    border: 1px solid #e5e7eb;
    background: var(--bg-card);
    box-shadow: var(--shadow-soft);
    overflow: visible !important;
}

h4, h5 {
    font-weight: 600;
}

.order-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
    transition: 0.2s;
}

    .order-card:hover {
        box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    }

#pagination {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    margin-top: 10px;
}

    #pagination button {
        flex: 0 0 auto;
    }

/* ================= SHOP PAGE ================= */

.shop-container {
    margin-top: 70px;
}

.filter-card {
    padding: 20px;
    position: sticky;
    top: 80px;
}

.shop-loader {
    text-align: center;
    padding: 20px;
    color: var(--text-light);
    display: none;
}

 /* ====================================
   UNIFIED PRODUCT CARD CORE SYSTEM
   ==================================== */

.pc-card {
    background: var(--bg-card, #ffffff);
    border: 1px solid var(--border-color, #e8e5e0);
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    height: auto; /* Changed from 100% to auto so it wraps content nicely */
}

    .pc-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    }

.pc-image-box {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4; /* Maintains uniform portrait shape */
    overflow: hidden;
    background-color: #f8f9ff;
}

.pc-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

/* Badge (Top Left) */
.pc-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 5;
    background: #111;
    color: #fff;
    padding: 4px 8px;
    font-size: 10px;
    text-transform: uppercase;
    border-radius: 2px;
}

/* Top Controls (Top Right) */
.pc-top-controls {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 5;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pc-wishlist-btn,
.pc-cart-icon-btn {
    pointer-events: auto;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

    /* Wishlist & Cart Button Interactive Hover States (Light Gray) */
    .pc-wishlist-btn:not(:disabled):hover,
    .pc-cart-icon-btn:not(:disabled):hover {
        background: #f1f1f1 !important;
        color: #111;
        transform: scale(1.05);
    }

    .pc-cart-icon-btn:disabled {
        cursor: not-allowed;
        opacity: 0.5;
        background: #ffffff;
        transform: none;
    }

/* Sizes Overlay (Bottom Center) */
.pc-sizes-overlay {
    position: absolute;
    bottom: 12px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 5px;
    z-index: 4;
}

.pc-size-chip {
    padding: 4px 8px;
    font-size: 11px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

    /* Size Chip Hover & Selected States (Light Gray) */
    .pc-size-chip:hover,
    .pc-size-chip.selected {
        background: #e5e5e5 !important;
        color: #111;
        border-color: #d1d1d1;
    }

/* Product Card Body */
.pc-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    /* Removed flex-grow: 1 so the body doesn't stretch empty vertical space */
}

.pc-title {
    font-size: 12px;
    font-weight: 100;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    margin: 0;
    line-height: 1.4;
    color: #7a7a7a;
    /*  color: var(--color-text-primary, #111111);*/
}

.pc-price {
    font-size: 15px;
    font-weight: 400;
    margin: 0;
    color: #333333;
}

.pc-colors {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-top: 4px;
}

.pc-color-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    cursor: pointer;
    border: 1px solid #ccc;
}

/* end of PC Styles*/
    .dialog {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(2px);
    z-index: 100000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .25s ease;
}

    .dialog.show {
        display: flex;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

.dialog-card {
    width: 100%;
    max-width: 500px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-hover);
    overflow: hidden;
    transform: translateY(-15px) scale(.98);
    transition: transform .25s ease;
}

.dialog.show .dialog-card {
    transform: translateY(0) scale(1);
}

.dialog-header {
    padding: 18px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dialog-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.dialog-body {
    padding: 24px;
}

.dialog-footer {
    padding: 18px 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.dialog-close {
    border: none;
    background: transparent;
    font-size: 22px;
    cursor: pointer;
    color: var(--text-light);
}

    .dialog-close:hover {
        color: var(--danger);
    }

/* Premium Topbar Container Layout */
.shop-topbar-wrapper {
    width: 100%;
    background-color: #ffffff;
    border-bottom: 1px solid #e5e5e5;
    margin-bottom: 2.5rem;
    padding: 0.75rem 0;
}

.shop-topbar-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

/* Control Elements Structuring */
.topbar-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-self: start;
}

/* Modern Minimal Filter Button */
.modern-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #ffffff;
    border: 1px solid #d1d1d1;
    padding: 0.5rem 1.25rem;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #111111;
    cursor: pointer;
    transition: all 0.2s ease;
    height: 38px;
}

    .modern-filter-btn:hover {
        border-color: #111111;
        background-color: #f9f9f9;
    }

/* Clean Custom Dropdown Menu */
.modern-sort-select {
    appearance: none;
    -webkit-appearance: none;
    background-color: #ffffff;
    border: 1px solid #d1d1d1;
    padding: 0.5rem 2rem 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: #111111;
    cursor: pointer;
    height: 38px;
    border-radius: 0;
    transition: border-color 0.2s ease;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23111111' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 10px;
}

    .modern-sort-select:hover,
    .modern-sort-select:focus {
        border-color: #111111;
        outline: none;
    }

/* Minimalist Typography Settings */
.topbar-title-block {
    justify-self: center;
}

.category-heading {
    font-family: inherit;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: #111111;
    margin: 0;
    text-transform: uppercase;
}

/* Pagination Tracker Formatting */
.topbar-meta {
    justify-self: end;
}

.modern-page-indicator {
    font-size: 0.85rem;
    font-weight: 500;
    color: #767676;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

/*===============Slider====================*/

/* Price Range Slider Core Styling */
.price-slider-container {
    width: 100%;
    padding: 1rem 0.5rem 0.5rem 0.5rem;
}

.slider-track-wrapper {
    position: relative;
    width: 100%;
    height: 5px;
    margin-bottom: 2rem;
    padding: 0 5px;
    box-sizing: border-box;
}

.slider-track {
    position: absolute;
    height: 100%;
    left: 0;
    right: 0;
    background: linear-gradient(to right, #e5e5e5 0%, #e5e5e5 100%);
    border-radius: 5px;
    z-index: 1;
}

/* Base reset for overlapping range inputs */
.range-input {
    position: absolute;
    width: 100%;
    height: 5px;
    top: 0;
    left: 0;
    background: none;
    pointer-events: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    margin: 0;
    z-index: 2;
}

    /* Style the slider handles (Thumbs) */
    .range-input::-webkit-slider-thumb {
        height: 18px;
        width: 18px;
        border-radius: 50%;
        background: #111111;
        border: 2px solid #ffffff;
        box-shadow: 0 2px 4px rgba(0,0,0,0.2);
        cursor: pointer;
        pointer-events: auto;
        -webkit-appearance: none;
        transition: transform 0.1s ease;
    }

        .range-input::-webkit-slider-thumb:hover {
            transform: scale(1.1);
        }

    .range-input::-moz-range-thumb {
        height: 14px;
        width: 14px;
        border-radius: 50%;
        background: #111111;
        border: 2px solid #ffffff;
        box-shadow: 0 2px 4px rgba(0,0,0,0.2);
        cursor: pointer;
        pointer-events: auto;
        transition: transform 0.1s ease;
    }

/* Numeric text layout underneath handles */
.price-values-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.value-box {
    flex: 1;
}

    .value-box span {
        font-size: 0.75rem;
        color: #767676;
        text-transform: uppercase;
        display: block;
        margin-bottom: 0.25rem;
    }

.currency-wrapper {
    font-size: 0.9rem;
    font-weight: 600;
    color: #111111;
    border: 1px solid #d1d1d1;
    padding: 0.4rem 0.75rem;
    background-color: #ffffff;
}

.value-divider {
    color: #767676;
    margin-top: 1rem;
}

/* Filter Options Styling */
.filter-chips-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-top: 0.5rem;
}

.filter-chip-btn {
    background: #ffffff;
    border: 1px solid #d1d1d1;
    color: #111111;
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    min-width: 40px;
    text-align: center;
    transition: all 0.2s ease;
}

    .filter-chip-btn:hover {
        border-color: #111111;
    }

    .filter-chip-btn.selected {
        background: #111111;
        border-color: #111111;
        color: #ffffff;
    }

/* Color rows */
.filter-list-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding-top: 0.5rem;
}

.filter-checkbox-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #111111;
    cursor: pointer;
    text-transform: capitalize;
}

    .filter-checkbox-row input[type="checkbox"] {
        accent-color: #111111;
        width: 15px;
        height: 15px;
    }

/* Modern Search Wrapper Styles */
.topbar-search-block {
    justify-self: end;
    width: 100%;
    max-width: 390px;
}

.modern-search-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid #d1d1d1;
    background: #ffffff;
    height: 38px;
    padding: 0 0.5rem 0 1rem;
    transition: border-color 0.2s ease;
}

    .modern-search-wrapper:focus-within {
        border-color: #111111;
    }

    .modern-search-wrapper input {
        border: none;
        background: transparent;
        outline: none;
        font-size: 0.85rem;
        color: #111111;
        width: 100%;
        height: 100%;
    }

    .modern-search-wrapper button {
        background: transparent;
        border: none;
        outline: none;
        color: #767676;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 0.5rem;
        height: 100%;
        transition: color 0.2s ease;
    }

        .modern-search-wrapper button:hover {
            color: #111111;
        }

.table-action-icon {
    font-size: 1.2rem;
    cursor: pointer;
}

.erp-add-btn {
    width: 38px;
    height: 36px;
    border: none;
    border-radius: 8px;
    background: #2563eb;
    color: white;
}

    .erp-add-btn:hover {
        background: #1d4ed8;
    }

.trust-banner-wrapper {
    width: 100%;
    background-color: #ebdcb9;
    padding: 2rem 0;
    box-sizing: border-box;
}

.trust-banner-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.trust-icon img {
    width: 40px;
    height: auto;
    display: block;
}

.trust-content h3 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #000000;
    line-height: 1.2;
}

.trust-content p {
    margin: 0.25rem 0 0 0;
    font-size: 0.8rem;
    color: #444444;
}

.trust-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
}

    .trust-icon i {
        font-size: 1.65rem;
        color: #000000;
    }

.reviews-section {
    max-width: 1200px;
    margin: 60px auto 20px auto;
    padding: 0 20px;
    font-family: inherit;
}

.reviews-header {
    border-bottom: 1px solid #eee;
    padding-bottom: 12px;
    margin-bottom: 24px;
}

.rating-summary-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
}

.stars-gold {
    color: #ffb400;
    letter-spacing: 2px;
}

/* Individual Comment Cards */
.review-card {
    padding: 16px 0;
    border-bottom: 1px solid #f5f5f5;
}

.review-meta {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #777;
    margin-top: 4px;
}

.review-comment {
    margin-top: 8px;
    font-size: 14px;
    color: #333;
    line-height: 1.5;
}

/* Submission Form inputs */
.review-form input, .review-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 12px;
}
.wishlist-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    /* Soft border matching your product card elements */
    border: 1px solid #e5e7eb;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600; /* Sophisticated semi-bold instead of heavy bold */
    border-radius: 20px; /* Rounded pill shape to match your 'Customize It' button */
    cursor: pointer;
    color: #111827;
    transition: all 0.2s ease;
}

    .wishlist-btn .heart-icon {
        fill: none;
        stroke: #111827;
        stroke-width: 2px;
        transition: fill 0.2s ease, stroke 0.2s ease;
    }

    /* 
   Active Wishlist State
   Uses a beautiful, rich crimson berry (#be123c) instead of pure bright red 
   to keep the luxury boutique aesthetic.
*/
    .wishlist-btn[data-wishlisted="true"] .heart-icon {
        fill: #be123c;
        stroke: #be123c;
    }

    .wishlist-btn[data-wishlisted="true"] {
        border-color: #be123c;
        color: #be123c;
    }

    /* 
   Hover State
   Matches your 'Add to Cart' hover behavior: 
   Fades into the signature lemon yellow background with dark text!
*/
    .wishlist-btn:hover {
        background: #E6FF6B; /* Your exact signature lemon yellow */
        border-color: #E6FF6B;
        color: #111827;
    }

        .wishlist-btn:hover .heart-icon {
            stroke: #111827; /* Keeps the heart outline sharp against the yellow background */
        }

/* ==========================================================================
   UNIFIED RESPONSIVE BREAKPOINTS (ALL MEDIAS FIXED)
   ========================================================================== */

@media (max-width: 992px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }

    .main-content {
        margin-left: 0;
        padding: 20px;
    }
}

@media (max-width: 991px) {
    .shop-topbar-container {
        grid-template-columns: 1fr 1fr;
        row-gap: 1.25rem;
    }

    .topbar-title-block {
        grid-column: 1 / span 2;
        grid-row: 1;
    }

    .topbar-actions {
        grid-column: 1;
        grid-row: 2;
    }

    .topbar-search-block {
        grid-column: 2;
        grid-row: 2;
        max-width: 100%;
    }

    .trust-banner-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        row-gap: 2rem;
    }

    .footer-col {
        width: 45%;
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .auth-card {
        flex-direction: column; /* Stack login images above form elements */
    }

    .auth-left img {
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    }

    .auth-right {
        padding: 30px 20px;
    }

    .shop-topbar-container {
        grid-template-columns: 1fr 1fr;
        row-gap: 1rem;
        padding: 0 1rem;
    }

    .topbar-title-block {
        grid-column: 1 / span 2;
        grid-row: 1;
        justify-self: center;
        margin-bottom: 0.25rem;
    }

    .topbar-actions {
        grid-column: 1;
        grid-row: 2;
    }

    .topbar-meta {
        grid-column: 2;
        grid-row: 2;
        align-self: center;
    }

    .category-heading {
        font-size: 1.25rem;
    }

    .pos-container {
        flex-direction: column;
    }

    .pos-left {
        width: 100%;
        height: 50%;
    }

    .pos-right {
        width: 100%;
        height: 50%;
    }

    .bottom-section {
        position: fixed;
        width: 100%;
        bottom: 0;
    }
}

@media(max-width: 500px) {
    .modern-footer {
        padding: 40px 20px;
    }

    .footer-col {
        width: 100%;
    }

    .subscribe-box {
        flex-direction: column;
    }

        .subscribe-box button {
            border-radius: 5px;
            margin-top: 10px;
        }
}

@media (max-width: 480px) {
    .trust-banner-container {
        grid-template-columns: 1fr;
        row-gap: 1.5rem;
    }

    .shop-topbar-container {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .topbar-actions {
        flex-direction: column;
        align-items: stretch;
    }
}

@media print {
    body {
        margin: 0;
    }
}


/* 1. Reset and Anchor */
.profile-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 15px); /* Creates a clean gap from the nav */
    right: 0;
    background: #ffffff;
    width: 220px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 12px;
    padding: 8px 0 !important;
    z-index: 9999;
    border: 1px solid #f0f0f0;
}

    .profile-dropdown-menu .dropdown-item {
        display: flex;
        align-items: center;
        justify-content: flex-start; /* Forces content to align to the left */
        flex-direction: row; /* Ensures Icon (left) -> Text (right) */
        gap: 15px;
        padding: 12px 15px !important;
        margin-bottom: 8px;
 
        border-radius: 12px;
        color: #333;
        font-size: 14px;
        font-weight: 500;
        text-decoration: none;
        cursor: pointer;
        transition: all 0.2s ease;
        text-align: left; /* Forces text to align left */
    }

        .profile-dropdown-menu .dropdown-item:hover {
            background-color: #f9f9f9;
            color: #b45309; /* Matches your luxury brand color */
        }

    /* 3. Icon Sizing (Prevents icons from being too large) */
    .profile-dropdown-menu .material-symbols-outlined {
        font-size: 18px !important;
    }

    /* 4. Small Arrow/Pointer */
    .profile-dropdown-menu::before {
        content: '';
        position: absolute;
        top: -6px;
        right: 15px;
        width: 12px;
        height: 12px;
        background: #fff;
        transform: rotate(45deg);
        border-left: 1px solid #f0f0f0;
        border-top: 1px solid #f0f0f0;
    }

/* Scoped strictly to category elements */
.categories-editorial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.category-card-premium {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    background: #fff;
    transition: transform 0.3s ease;
}

.category-img-container {
    width: 100%;
    aspect-ratio: 4 / 5; /* Specific to category lookbook */
    overflow: hidden;
}

    .category-img-container img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
    }

.category-card-premium:hover img {
    transform: scale(1.05);
}

.category-label-box {
    padding: 15px;
    text-align: center;
}