/* =============================================
   {{BRAND_NAME}} — PALESTINIAN TATREEZ THEME
   Ivory & embroidery-red heritage aesthetic.
   Tokens and pattern sources documented in THEME.md.
   ============================================= */

:root {
    /* Brand palette */
    --ivory: #F8F4EC;
    --linen: #EFE7D8;
    --surface: #FDFBF6;
    --tatreez-red: #A61C2B;
    --crimson: #C0392B;
    --burgundy: #6E1420;
    --thobe-black: #14100F;
    --gold: #C9A227;
    --ink: #241B18;
    --white: #ffffff;

    /* Neutrals & feedback */
    --gray: #6B5E55;
    --gray-light: #A99C90;
    --border: #DED3BE;
    --danger: #C0392B;
    --success: #2E7D4F;
    --warning: #B07D10;
    --info: #2E6E8E;

    /* Type */
    --font-display: 'Marcellus', Georgia, 'Times New Roman', serif;
    --font-body: 'Source Sans 3', 'Segoe UI', system-ui, sans-serif;

    /* Shape — squared corners, like stitched panels */
    --radius-sm: 2px;
    --radius: 3px;
    --radius-lg: 6px;

    /* Layout */
    --sidebar-width: 260px;
    --topbar-height: 64px;
    --transition: all 0.2s ease;

    /* Authentic thobe textile used for every light decorative band. */
    --tatreez-band-red: url('/images/brand/tatreez-strip.jpg');
    --tatreez-band-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='12' viewBox='0 0 24 12'%3E%3Crect x='3' y='3' width='6' height='6' transform='rotate(45 6 6)' fill='none' stroke='%23C9A227' stroke-width='1.4'/%3E%3Crect x='16.5' y='4.5' width='3' height='3' transform='rotate(45 18 6)' fill='%23C0392B'/%3E%3C/svg%3E");
    --tatreez-zigzag-red: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='8' viewBox='0 0 16 8'%3E%3Cpath d='M0 6 4 2 8 6 12 2 16 6' fill='none' stroke='%23A61C2B' stroke-width='1.4'/%3E%3C/svg%3E");
    --tatreez-zigzag-gold: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='8' viewBox='0 0 16 8'%3E%3Cpath d='M0 6 4 2 8 6 12 2 16 6' fill='none' stroke='%23C9A227' stroke-width='1.4'/%3E%3C/svg%3E");

    --tatreez-hem: url('/images/brand/tatreez-strip.jpg');
    --tatreez-belt: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Crect width='32' height='32' fill='%23A61C2B'/%3E%3Cline x1='2' y1='0' x2='2' y2='32' stroke='%23C9A227' stroke-width='1.4'/%3E%3Cline x1='30' y1='0' x2='30' y2='32' stroke='%23C9A227' stroke-width='1.4'/%3E%3Cline x1='5.5' y1='0' x2='5.5' y2='32' stroke='%23F8F4EC' stroke-width='1' stroke-dasharray='2 2'/%3E%3Cline x1='26.5' y1='0' x2='26.5' y2='32' stroke='%23F8F4EC' stroke-width='1' stroke-dasharray='2 2'/%3E%3Crect x='11' y='6' width='10' height='10' transform='rotate(45 16 11)' fill='none' stroke='%23F8F4EC' stroke-width='1.5'/%3E%3Crect x='14.2' y='9.2' width='3.6' height='3.6' transform='rotate(45 16 11)' fill='%23C9A227'/%3E%3Cpath d='M10 27 16 21 22 27' fill='none' stroke='%23F8F4EC' stroke-width='1.5'/%3E%3C/svg%3E");
}

* {
    box-sizing: border-box;
}

html {
    font-size: 15px;
    position: relative;
    min-height: 100%;
}

body {
    font-family: var(--font-body);
    color: var(--ink);
    background-color: var(--ivory);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    color: var(--burgundy);
    font-weight: 400;
}

a {
    color: var(--tatreez-red);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--crimson);
}

/* =============================================
   TATREEZ PATTERN UTILITIES
   Repeating embroidery bands drawn as inline SVG.
   ============================================= */

.tatreez-band {
    height: 12px;
    background-image: var(--tatreez-band-red);
    background-repeat: repeat-x;
    background-position: center 8%;
    background-size: 220px auto;
}

.tatreez-band-dark {
    height: 12px;
    background-image: var(--tatreez-band-dark);
    background-repeat: repeat-x;
    background-position: center;
}

.tatreez-divider {
    height: 14px;
    max-width: 320px;
    margin: 40px auto;
    background-image: var(--tatreez-hem);
    background-repeat: repeat-x;
    background-position: center;
    background-size: 240px auto;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 15%, #000 85%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 15%, #000 85%, transparent);
}

/* Vertical embroidered belts framing the storefront, like the
   embroidery columns running down a thobe */
body.storefront::before,
body.storefront::after {
    content: "";
    position: fixed;
    top: 0;
    bottom: 0;
    width: 26px;
    background-image: var(--tatreez-belt);
    background-repeat: repeat-y;
    background-size: 26px auto;
    z-index: 1050;
    pointer-events: none;
}

body.storefront::before {
    left: 0;
    box-shadow: 2px 0 10px rgba(20, 16, 15, 0.28);
}

body.storefront::after {
    right: 0;
    box-shadow: -2px 0 10px rgba(20, 16, 15, 0.28);
}

@media (max-width: 1199.98px) {
    body.storefront::before,
    body.storefront::after {
        display: none;
    }
}

/* =============================================
   BUTTONS
   ============================================= */

.btn-brand {
    background-color: var(--tatreez-red);
    color: var(--white);
    border: 2px solid var(--tatreez-red);
    padding: 10px 24px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-brand:hover {
    background-color: var(--crimson);
    border-color: var(--crimson);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(110, 20, 32, 0.25);
    outline: 1.5px dashed var(--gold);
    outline-offset: 2px;
}

.btn-brand-outline {
    background-color: transparent;
    color: var(--tatreez-red);
    border: 2px solid var(--tatreez-red);
    padding: 10px 24px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-brand-outline:hover {
    background-color: var(--tatreez-red);
    color: var(--white);
    transform: translateY(-1px);
    outline: 1.5px dashed var(--gold);
    outline-offset: 2px;
}

.btn-brand-sm {
    padding: 6px 16px;
    font-size: 0.82rem;
    border-radius: var(--radius-sm);
}

.btn-brand-danger {
    background-color: transparent;
    color: var(--danger);
    border: 2px solid var(--danger);
    padding: 6px 16px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.82rem;
    transition: var(--transition);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-brand-danger:hover {
    background-color: var(--danger);
    color: var(--white);
}

.btn-brand-success {
    background-color: transparent;
    color: var(--success);
    border: 2px solid var(--success);
    padding: 6px 16px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.82rem;
    transition: var(--transition);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-brand-success:hover {
    background-color: var(--success);
    color: var(--white);
}

.btn-brand-white {
    background-color: var(--ivory);
    color: var(--burgundy);
    border: 2px solid var(--ivory);
    padding: 10px 24px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-brand-white:hover {
    background-color: var(--linen);
    color: var(--burgundy);
    transform: translateY(-1px);
    outline: 1.5px dashed var(--gold);
    outline-offset: 2px;
}

/* =============================================
   ADMIN SIDEBAR LAYOUT
   ============================================= */

.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: var(--sidebar-width);
    background-color: var(--thobe-black);
    color: var(--white);
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.admin-sidebar-brand {
    padding: 24px 20px;
    border-bottom: 1px solid rgba(201, 162, 39, 0.3);
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-sidebar-brand .brand-text {
    font-family: var(--font-display);
    font-size: 1.3rem;
    letter-spacing: 0.5px;
    color: var(--ivory);
}

.admin-sidebar-brand .brand-badge {
    background-color: rgba(201, 162, 39, 0.18);
    color: var(--gold);
    font-size: 0.65rem;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-sidebar-nav {
    flex: 1;
    padding: 16px 0;
    overflow-y: auto;
}

.admin-sidebar-nav .nav-section {
    padding: 8px 20px 4px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.4);
    font-weight: 600;
}

.admin-sidebar-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: rgba(255,255,255,0.7);
    font-weight: 500;
    font-size: 0.92rem;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.admin-sidebar-nav .nav-link:hover {
    color: var(--white);
    background-color: rgba(166, 28, 43, 0.25);
}

.admin-sidebar-nav .nav-link.active {
    color: var(--white);
    background-color: var(--tatreez-red);
    border-left-color: var(--gold);
}

.admin-sidebar-nav .nav-link i {
    font-size: 1.15rem;
    width: 24px;
    text-align: center;
    color: var(--gold);
}

.admin-sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.admin-sidebar-footer .nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    color: rgba(255,255,255,0.6);
    font-weight: 500;
    font-size: 0.88rem;
    transition: var(--transition);
}

.admin-sidebar-footer .nav-link:hover {
    color: var(--danger);
}

.admin-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    background-color: var(--linen);
    min-height: 100vh;
}

.admin-topbar {
    background-color: var(--white);
    height: var(--topbar-height);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.admin-topbar .admin-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ink);
}

.admin-topbar .admin-user {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--gray);
    font-size: 0.88rem;
}

.admin-topbar .admin-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--tatreez-red);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
}

.admin-main {
    padding: 32px;
}

/* =============================================
   ADMIN CARDS & STATS
   ============================================= */

.stat-card {
    background-color: var(--white);
    border-radius: 12px;
    padding: 24px;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.stat-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.stat-card .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 16px;
}

.stat-card .stat-icon.bg-dark {
    background-color: var(--burgundy);
    color: var(--white);
}

.stat-card .stat-icon.bg-success {
    background-color: rgba(39, 174, 96, 0.1);
    color: var(--success);
}

.stat-card .stat-icon.bg-warning {
    background-color: rgba(243, 156, 18, 0.1);
    color: var(--warning);
}

.stat-card .stat-icon.bg-info {
    background-color: rgba(52, 152, 219, 0.1);
    color: var(--info);
}

.stat-card .stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--ink);
    line-height: 1;
    margin-bottom: 4px;
}

.stat-card .stat-label {
    font-size: 0.85rem;
    color: var(--gray);
    font-weight: 500;
}

/* =============================================
   ADMIN TABLE
   ============================================= */

.brand-card {
    background-color: var(--white);
    border-radius: 12px;
    border: 1px solid var(--border);
    overflow: hidden;
}

.brand-card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.brand-card-header h5 {
    font-weight: 700;
    margin: 0;
    font-size: 1.05rem;
}

.brand-card-body {
    padding: 24px;
}

.brand-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.brand-table thead th {
    background-color: var(--surface);
    padding: 14px 16px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gray);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.brand-table tbody td {
    padding: 16px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
    font-size: 0.92rem;
}

.brand-table tbody tr:last-child td {
    border-bottom: none;
}

.brand-table tbody tr:hover {
    background-color: var(--surface);
}

.brand-table .product-img {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid var(--border);
}

.brand-table .product-name {
    font-weight: 600;
    color: var(--ink);
}

.brand-table .product-desc {
    font-size: 0.82rem;
    color: var(--gray);
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.brand-table .price {
    font-weight: 700;
    color: var(--ink);
}

.brand-table .stock-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
}

.stock-badge.in-stock {
    background-color: rgba(39, 174, 96, 0.1);
    color: var(--success);
}

.stock-badge.low-stock {
    background-color: rgba(243, 156, 18, 0.1);
    color: var(--warning);
}

.stock-badge.out-of-stock {
    background-color: rgba(231, 76, 60, 0.1);
    color: var(--danger);
}

.brand-table .actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* =============================================
   ADMIN FORMS
   ============================================= */

.brand-form .form-group {
    margin-bottom: 20px;
}

.brand-form label {
    display: block;
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--ink);
    margin-bottom: 6px;
}

.brand-form .form-control {
    border: 2px solid var(--border);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.92rem;
    transition: var(--transition);
    color: var(--ink);
}

.brand-form .form-control:focus {
    border-color: var(--tatreez-red);
    box-shadow: 0 0 0 3px rgba(166, 28, 43, 0.12);
    outline: none;
}

.brand-form textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.brand-form .form-text {
    font-size: 0.8rem;
    color: var(--gray);
    margin-top: 4px;
}

.brand-form .validation-message,
.brand-form .field-validation-error {
    color: var(--danger);
    font-size: 0.82rem;
    margin-top: 4px;
    display: block;
}

.image-upload-area {
    border: 2px dashed var(--border);
    border-radius: 12px;
    padding: 32px;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    background-color: var(--surface);
}

.image-upload-area:hover {
    border-color: var(--gray-light);
    background-color: var(--linen);
}

.image-upload-area i {
    font-size: 2rem;
    color: var(--gray-light);
    margin-bottom: 8px;
}

.image-upload-area p {
    color: var(--gray);
    font-size: 0.88rem;
    margin: 0;
}

.existing-images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
}

.image-card {
    border: 2px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    transition: var(--transition);
    position: relative;
}

.image-card:hover {
    border-color: var(--gray-light);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.image-card.is-main {
    border-color: var(--tatreez-red);
}

.image-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

.image-card .image-actions {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.image-card .main-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background-color: var(--tatreez-red);
    color: var(--white);
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* =============================================
   CUSTOMER NAVBAR
   ============================================= */

.brand-navbar {
    background-color: var(--ivory);
    border-bottom: 1px solid var(--border);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Embroidered trim directly under the navbar */
.brand-navbar::after {
    content: "";
    display: block;
    flex-basis: 100%;
    height: 16px;
    background-image: var(--tatreez-hem);
    background-repeat: repeat-x;
    background-position: center;
    background-size: 260px auto;
}

.brand-navbar .navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 1.45rem;
    color: var(--burgundy) !important;
    letter-spacing: 1px;
    padding: 14px 0;
}

.brand-navbar .navbar-brand img {
    height: 34px;
    width: auto;
}

.brand-navbar .nav-link {
    color: var(--ink) !important;
    font-weight: 500;
    font-size: 0.92rem;
    padding: 8px 16px !important;
    border-radius: var(--radius);
    transition: var(--transition);
}

.brand-navbar .nav-link:hover,
.brand-navbar .nav-link.active {
    color: var(--tatreez-red) !important;
    text-decoration: underline dashed 1.5px;
    text-decoration-color: var(--tatreez-red);
    text-underline-offset: 6px;
}

.brand-navbar .navbar-toggler {
    border: 2px solid var(--border);
    padding: 6px 10px;
    color: var(--burgundy);
}

.brand-navbar .auth-links .nav-link {
    font-weight: 600;
}

.brand-navbar .btn-admin-link {
    background-color: var(--tatreez-red);
    color: var(--white) !important;
    border-radius: var(--radius);
    padding: 8px 16px !important;
    font-weight: 600;
    font-size: 0.85rem;
}

.brand-navbar .btn-admin-link:hover {
    background-color: var(--crimson);
    text-decoration: none;
}

/* =============================================
   CUSTOMER HERO — Tatreez-framed showcase
   ============================================= */

.brand-hero {
    background-color: var(--thobe-black);
    color: var(--ivory);
    padding: 0;
    position: relative;
    overflow: hidden;
}

/* Embroidered hems framing the hero, echoing a thobe's trim */
.brand-hero::before,
.brand-hero::after {
    content: "";
    display: block;
    height: 20px;
    background-image: var(--tatreez-hem);
    background-repeat: repeat-x;
    background-position: center;
    background-size: 300px auto;
}

/* ---- Hero Content ---- */
.hero-content-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 88px 0;
}

.brand-hero h1 {
    font-family: var(--font-display);
    font-size: 3.4rem;
    font-weight: 400;
    color: var(--ivory);
    line-height: 1.15;
    letter-spacing: 0.5px;
    margin-bottom: 24px;
    animation: heroFadeUp 0.8s ease forwards;
    opacity: 0;
    animation-delay: 0.2s;
}

.brand-hero h1 .hero-text-gradient {
    color: var(--gold);
    -webkit-text-fill-color: currentColor;
}

.brand-hero p {
    font-size: 1.12rem;
    color: rgba(248, 244, 236, 0.75);
    max-width: 500px;
    line-height: 1.8;
    margin-bottom: 36px;
    animation: heroFadeUp 0.8s ease forwards;
    opacity: 0;
    animation-delay: 0.4s;
}

.brand-hero .hero-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    animation: heroFadeUp 0.8s ease forwards;
    opacity: 0;
    animation-delay: 0.6s;
}

.hero-btn-primary {
    background: var(--tatreez-red);
    color: var(--white);
    border: 2px solid var(--tatreez-red);
    padding: 14px 32px;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.hero-btn-primary:hover {
    background: var(--crimson);
    border-color: var(--crimson);
    color: var(--white);
    transform: translateY(-2px);
    outline: 1.5px dashed var(--gold);
    outline-offset: 3px;
}

.hero-btn-secondary {
    background: transparent;
    color: var(--ivory);
    border: 2px solid rgba(248, 244, 236, 0.4);
    padding: 14px 32px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.hero-btn-secondary:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(201, 162, 39, 0.08);
    transform: translateY(-2px);
}

/* ---- Hero Stats Bar ---- */
.hero-stats {
    display: flex;
    gap: 48px;
    margin-top: 56px;
    padding-top: 32px;
    border-top: 1px solid rgba(201, 162, 39, 0.3);
    animation: heroFadeUp 0.8s ease forwards;
    opacity: 0;
    animation-delay: 0.8s;
}

.hero-stat-item .stat-num {
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 4px;
}

.hero-stat-item .stat-txt {
    font-size: 0.8rem;
    color: rgba(248, 244, 236, 0.55);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* ---- Hero Showcase: uploaded image inside an embroidered frame ---- */
.hero-product-showcase {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    border: 1px solid rgba(201, 162, 39, 0.55);
    outline: 1.5px dashed rgba(192, 57, 43, 0.7);
    outline-offset: 6px;
    background: rgba(248, 244, 236, 0.03);
    animation: heroFadeUp 1s ease forwards;
    opacity: 0;
    animation-delay: 0.5s;
}

.hero-product-img {
    width: 100%;
    max-width: 480px;
    height: auto;
    max-height: 520px;
    object-fit: contain;
    border-radius: var(--radius-sm);
    filter: drop-shadow(0 20px 60px rgba(0, 0, 0, 0.5));
}

/* Fallback star mark when no hero image uploaded */
.hero-logo-fallback {
    padding: 60px 0;
    opacity: 0.14;
}

.hero-logo-fallback img {
    width: 280px;
    height: 280px;
    object-fit: contain;
}

@keyframes heroFadeUp {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* =============================================
   CATEGORY CHIPS — embroidery label style
   ============================================= */

.category-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: var(--surface);
    color: var(--burgundy);
    border: 1.5px solid var(--tatreez-red);
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
    transition: var(--transition);
}

.category-chip:hover {
    background: var(--tatreez-red);
    color: var(--white);
    transform: translateY(-2px);
    outline: 1.5px dashed var(--gold);
    outline-offset: 2px;
}

/* =============================================
   CUSTOMER PRODUCT CARDS
   ============================================= */

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header h2 {
    font-size: 2rem;
    color: var(--burgundy);
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

/* Stitched motif under every section heading */
.section-header h2::after {
    content: "";
    display: block;
    width: 140px;
    height: 8px;
    margin: 14px auto 0;
    background-image: var(--tatreez-zigzag-red);
    background-repeat: repeat-x;
    background-position: center;
}

.section-header p {
    font-size: 1rem;
    color: var(--gray);
    max-width: 500px;
    margin: 0 auto;
}

.product-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    background-color: var(--surface);
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Embroidered top trim on every card, like a dress collar band */
.product-card::before {
    content: "";
    display: block;
    height: 10px;
    background-image: var(--tatreez-hem);
    background-repeat: repeat-x;
    background-position: center;
    background-size: 180px auto;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(110, 20, 32, 0.18);
    border-color: var(--tatreez-red);
}

.product-card .card-img-wrapper {
    position: relative;
    overflow: hidden;
    background-color: var(--linen);
}

.product-card .card-img-wrapper img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}

.product-card:hover .card-img-wrapper img {
    transform: scale(1.05);
}

.product-card .card-img-wrapper .stock-label {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
}

.product-card .card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card .card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 8px;
}

.product-card .card-desc {
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 16px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card .card-footer-area {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    margin-top: auto;
}

.product-card .card-price {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--burgundy);
}

.product-card .card-action {
    background-color: var(--tatreez-red);
    color: var(--white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
}

.product-card .card-action:hover {
    background-color: var(--crimson);
    color: var(--white);
    transform: scale(1.05);
    outline: 1.5px dashed var(--gold);
    outline-offset: 2px;
}

/* =============================================
   PRODUCT DETAIL PAGE
   ============================================= */

.product-gallery {
    position: relative;
}

.product-gallery .main-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    margin-bottom: 12px;
}

.product-gallery .thumb-list {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.product-gallery .thumb-item {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    object-fit: cover;
    border: 2px solid var(--border);
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}

.product-gallery .thumb-item:hover,
.product-gallery .thumb-item.active {
    border-color: var(--tatreez-red);
}

.product-info .product-title {
    font-size: 2rem;
    color: var(--burgundy);
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.product-info .product-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--burgundy);
    margin-bottom: 20px;
}

.product-info .product-description {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--gray);
    margin-bottom: 28px;
}

.product-info .product-description h1,
.product-info .product-description h2,
.product-info .product-description h3,
.product-info .product-description h4,
.product-info .product-description h5,
.product-info .product-description h6 {
    color: var(--ink);
    margin-top: 1.2em;
    margin-bottom: 0.5em;
    font-weight: 700;
}

.product-info .product-description ul,
.product-info .product-description ol {
    padding-left: 1.5em;
    margin-bottom: 1em;
}

.product-info .product-description li {
    margin-bottom: 0.35em;
}

.product-info .product-description p {
    margin-bottom: 0.8em;
}

.product-info .product-description table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1em;
}

.product-info .product-description table td,
.product-info .product-description table th {
    border: 1px solid #ddd;
    padding: 8px 12px;
    font-size: 0.92rem;
}

.product-info .product-description table th {
    background: var(--linen);
    font-weight: 700;
}

.product-info .product-description a {
    color: var(--ink);
    text-decoration: underline;
}

.product-info .product-meta {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    background-color: var(--linen);
    border-radius: 12px;
    margin-bottom: 28px;
}

.product-info .product-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.92rem;
}

.product-info .product-meta .meta-item i {
    color: var(--gray);
    width: 20px;
    text-align: center;
}

/* =============================================
   FEATURES SECTION
   ============================================= */

.feature-card {
    text-align: center;
    padding: 32px 24px;
}

.feature-card .feature-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-lg);
    background-color: var(--tatreez-red);
    outline: 1.5px dashed var(--gold);
    outline-offset: 3px;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 20px;
}

.feature-card h5 {
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--ink);
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--gray);
    margin: 0;
}

/* =============================================
   CONTACT PAGE
   ============================================= */

.contact-card {
    background-color: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 32px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 28px;
}

.contact-info-item:last-child {
    margin-bottom: 0;
}

.contact-info-item .icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background-color: var(--linen);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--ink);
    flex-shrink: 0;
}

.contact-info-item h6 {
    font-weight: 700;
    font-size: 0.92rem;
    margin-bottom: 4px;
    color: var(--ink);
}

.contact-info-item p {
    font-size: 0.88rem;
    color: var(--gray);
    margin: 0;
}

/* =============================================
   CUSTOMER FOOTER
   ============================================= */

.brand-footer {
    background-color: var(--thobe-black);
    color: var(--ivory);
    padding: 0;
    margin-top: 80px;
}

/* Embroidered hem topping the footer */
.brand-footer::before {
    content: "";
    display: block;
    height: 20px;
    background-image: var(--tatreez-hem);
    background-repeat: repeat-x;
    background-position: center;
    background-size: 320px auto;
    margin-bottom: 56px;
}

.brand-footer .footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 1.4rem;
    letter-spacing: 1px;
    margin-bottom: 12px;
    color: var(--ivory);
}

.brand-footer .footer-tagline {
    color: var(--gold);
    font-family: var(--font-display);
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.brand-footer .footer-desc {
    color: rgba(248, 244, 236, 0.65);
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 300px;
}

.brand-footer h6 {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gold);
    margin-bottom: 20px;
}

.brand-footer .footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.brand-footer .footer-links li {
    margin-bottom: 10px;
    color: rgba(248, 244, 236, 0.75);
}

.brand-footer .footer-links a {
    color: rgba(248, 244, 236, 0.75);
    font-size: 0.9rem;
    transition: var(--transition);
}

.brand-footer .footer-links a:hover {
    color: var(--gold);
}

.brand-footer .footer-bottom {
    border-top: 1px solid rgba(201, 162, 39, 0.25);
    padding: 24px 0;
    margin-top: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.brand-footer .footer-bottom p {
    margin: 0;
    color: rgba(248, 244, 236, 0.55);
    font-size: 0.85rem;
}

/* =============================================
   SEARCH BAR
   ============================================= */

.search-box {
    position: relative;
}

.search-box input {
    border: 2px solid var(--border);
    border-radius: 8px;
    padding: 8px 14px 8px 38px;
    font-size: 0.88rem;
    width: 250px;
    transition: var(--transition);
}

.search-box input:focus {
    border-color: var(--tatreez-red);
    box-shadow: none;
    outline: none;
    width: 300px;
}

.search-box i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-light);
}

/* =============================================
   EMPTY STATE
   ============================================= */

.empty-state {
    text-align: center;
    padding: 64px 24px;
}

.empty-state i {
    font-size: 3rem;
    color: var(--gray-light);
    margin-bottom: 16px;
}

.empty-state h5 {
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--gray);
    font-size: 0.92rem;
    margin-bottom: 20px;
}

/* =============================================
   BREADCRUMB
   ============================================= */

.brand-breadcrumb {
    padding: 20px 0;
}

.brand-breadcrumb .breadcrumb {
    background: none;
    padding: 0;
    margin: 0;
    font-size: 0.88rem;
}

.brand-breadcrumb .breadcrumb-item a {
    color: var(--gray);
}

.brand-breadcrumb .breadcrumb-item a:hover {
    color: var(--ink);
}

.brand-breadcrumb .breadcrumb-item.active {
    color: var(--ink);
    font-weight: 600;
}

/* =============================================
   PAGE HEADER (Customer)
   ============================================= */

.page-header {
    background-color: var(--linen);
    border-bottom: 1px solid var(--border);
    padding: 48px 0 40px;
    margin-bottom: 48px;
}

.page-header::after {
    content: "";
    display: block;
    height: 12px;
    max-width: 200px;
    margin: 20px auto 0;
    background-image: var(--tatreez-hem);
    background-repeat: repeat-x;
    background-position: center;
    background-size: 220px auto;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 15%, #000 85%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 15%, #000 85%, transparent);
}

.page-header h1 {
    font-size: 2.2rem;
    color: var(--burgundy);
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.page-header p {
    color: var(--gray);
    font-size: 1rem;
    margin: 0;
}

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 991px) {
    .admin-sidebar {
        transform: translateX(-100%);
    }

    .admin-sidebar.show {
        transform: translateX(0);
    }

    .admin-content {
        margin-left: 0;
    }

    .brand-hero h1 {
        font-size: 2.8rem;
    }

    .brand-hero {
        min-height: auto;
    }

    .hero-content-wrapper {
        padding: 80px 0;
    }

    .hero-product-showcase {
        margin-top: 40px;
    }

    .hero-product-img {
        max-width: 350px;
        max-height: 400px;
    }

    .hero-stats {
        gap: 32px;
    }

    .product-gallery .main-image {
        height: 350px;
    }
}

@media (max-width: 767px) {
    .brand-hero {
        min-height: auto;
    }

    .hero-content-wrapper {
        padding: 60px 0;
    }

    .brand-hero h1 {
        font-size: 2.2rem;
        letter-spacing: -1px;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 24px;
    }

    .hero-stat-item .stat-num {
        font-size: 1.3rem;
    }

    .admin-main {
        padding: 16px;
    }

    .section-header h2 {
        font-size: 1.6rem;
    }

    .product-gallery .main-image {
        height: 280px;
    }

    .product-info .product-title {
        font-size: 1.5rem;
    }
}

/* =============================================
   UTILITIES
   ============================================= */

.text-brand {
    color: var(--thobe-black);
}

.bg-brand {
    background-color: var(--thobe-black);
}

.section-spacing {
    padding: 80px 0;
}

.mb-section {
    margin-bottom: 80px;
}

/* =============================================
   TOAST NOTIFICATIONS
   ============================================= */
.toast-container{position:fixed;top:80px;right:24px;z-index:9999;display:flex;flex-direction:column;gap:8px}
.brand-toast{background:var(--ink);color:#fff;padding:14px 20px;border-radius:10px;font-size:.9rem;font-weight:500;display:flex;align-items:center;gap:10px;box-shadow:0 8px 24px rgba(0,0,0,.15);animation:toastIn .3s ease,toastOut .3s ease 2.7s forwards;min-width:280px;max-width:400px}
.brand-toast.toast-success{border-left:4px solid var(--success)}
.brand-toast.toast-error{border-left:4px solid var(--danger)}
.brand-toast.toast-info{border-left:4px solid var(--info)}
@keyframes toastIn{from{transform:translateX(100%);opacity:0}to{transform:translateX(0);opacity:1}}
@keyframes toastOut{from{opacity:1}to{opacity:0;transform:translateX(100%)}}

/* =============================================
   CART PAGE
   ============================================= */
.cart-item-row{display:flex;align-items:center;gap:16px;padding:20px 0;border-bottom:1px solid var(--border)}
.cart-item-row:last-child{border-bottom:none}
.cart-item-img{width:80px;height:80px;border-radius:10px;object-fit:cover;border:1px solid var(--border);flex-shrink:0}
.cart-item-info{flex:1}
.cart-item-info .item-name{font-weight:700;color:var(--ink);font-size:1rem;margin-bottom:4px}
.cart-item-info .item-price{color:var(--gray);font-size:.88rem}
.qty-control{display:flex;align-items:center;border:2px solid var(--border);border-radius:8px;overflow:hidden}
.qty-control button{width:36px;height:36px;border:none;background:var(--surface);color:var(--ink);font-size:1rem;cursor:pointer;transition:var(--transition);display:flex;align-items:center;justify-content:center}
.qty-control button:hover{background:var(--linen)}
.qty-control .qty-value{width:48px;text-align:center;font-weight:700;font-size:.92rem;border:none;border-left:2px solid var(--border);border-right:2px solid var(--border);height:36px;color:var(--ink)}
.cart-item-total{font-weight:700;font-size:1rem;color:var(--ink);min-width:80px;text-align:right}
.cart-item-remove{background:none;border:none;color:var(--gray-light);font-size:1.2rem;cursor:pointer;padding:8px;border-radius:8px;transition:var(--transition)}
.cart-item-remove:hover{color:var(--danger);background:rgba(231,76,60,.08)}
.cart-summary{background:var(--surface);border:1px solid var(--border);border-top:3px solid var(--gold);border-radius:var(--radius-lg);padding:28px;position:sticky;top:100px}
.cart-summary h5{font-weight:700;margin-bottom:20px;padding-bottom:16px;border-bottom:1px solid var(--border)}
.cart-summary .summary-row{display:flex;justify-content:space-between;margin-bottom:12px;font-size:.92rem}
.cart-summary .summary-row.total{font-size:1.15rem;font-weight:800;padding-top:16px;border-top:2px solid var(--border);margin-top:16px;margin-bottom:24px}

/* =============================================
   CHECKOUT PAGE
   ============================================= */
.checkout-item{display:flex;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid var(--border)}
.checkout-item:last-child{border-bottom:none}
.checkout-item img{width:56px;height:56px;border-radius:8px;object-fit:cover;border:1px solid var(--border)}
.checkout-item .item-details{flex:1}
.checkout-item .item-details .name{font-weight:600;font-size:.9rem;color:var(--ink)}
.checkout-item .item-details .meta{font-size:.8rem;color:var(--gray)}
.checkout-item .item-total{font-weight:700;font-size:.92rem}
.payment-option{border:2px solid var(--border);border-radius:var(--radius);padding:16px;cursor:pointer;transition:var(--transition);display:flex;align-items:center;gap:12px}
.payment-option:hover{border-color:var(--gray-light)}
.payment-option.selected{border-color:var(--tatreez-red);background:var(--surface)}
.payment-option i{font-size:1.3rem}
.payment-option .payment-label{font-weight:600;font-size:.92rem}
.payment-option .payment-desc{font-size:.8rem;color:var(--gray)}

/* =============================================
   ORDER STATUS BADGES
   ============================================= */
.order-status{display:inline-block;padding:4px 12px;border-radius:20px;font-size:.78rem;font-weight:700;text-transform:capitalize}
.order-status.status-pending{background:rgba(243,156,18,.1);color:var(--warning)}
.order-status.status-awaitingpayment{background:rgba(231,76,60,.15);color:#c0392b;border:1px dashed #e74c3c}
.order-status.status-processing{background:rgba(52,152,219,.1);color:var(--info)}
.order-status.status-shipped{background:rgba(142,68,173,.1);color:#8e44ad}
.order-status.status-delivered{background:rgba(39,174,96,.1);color:var(--success)}
.order-status.status-cancelled{background:rgba(231,76,60,.1);color:var(--danger)}

/* =============================================
   ORDER CONFIRMATION
   ============================================= */
.confirmation-icon{width:80px;height:80px;border-radius:50%;background:rgba(39,174,96,.1);color:var(--success);display:flex;align-items:center;justify-content:center;font-size:2.5rem;margin:0 auto 20px}

/* =============================================
   ACCOUNT PAGES
   ============================================= */
.profile-card{background:var(--surface);border:1px solid var(--border);border-top:3px solid var(--gold);border-radius:var(--radius-lg);overflow:hidden;padding:1.5rem}
.profile-header{background:var(--thobe-black);color:var(--ivory);padding:24px;margin:-1.5rem -1.5rem 1.5rem;display:flex;align-items:center;gap:1rem;background-image:var(--tatreez-band-dark);background-repeat:repeat-x;background-position:bottom 6px center}
.profile-avatar{width:72px;height:72px;border-radius:50%;background:rgba(255,255,255,.2);color:#fff;display:flex;align-items:center;justify-content:center;font-size:1.8rem;font-weight:700;margin:0 auto 12px}
.profile-header h4{font-weight:700;margin-bottom:4px}
.profile-header p{color:rgba(255,255,255,.6);font-size:.88rem;margin:0}
.profile-body{padding:32px}

/* =============================================
   FILTER TABS & BADGES
   ============================================= */
.filter-tabs{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:20px}
.filter-tab{padding:6px 16px;border-radius:20px;font-size:.82rem;font-weight:600;color:var(--gray);background:var(--linen);border:none;cursor:pointer;transition:var(--transition);text-decoration:none}
.filter-tab:hover{background:var(--border);color:var(--burgundy)}
.filter-tab.active{background:var(--tatreez-red);color:#fff}
.sidebar-badge{background:rgba(255,255,255,.2);color:#fff;font-size:.7rem;font-weight:700;min-width:20px;height:20px;border-radius:10px;display:flex;align-items:center;justify-content:center;padding:0 6px;margin-left:auto}
.cart-badge-wrapper{position:relative;display:inline-flex;align-items:center}
.cart-badge{position:absolute;top:-6px;right:-8px;background:var(--danger);color:#fff;font-size:.65rem;font-weight:700;min-width:18px;height:18px;border-radius:9px;display:flex;align-items:center;justify-content:center;padding:0 4px}

/* =============================================
   ALERTS & MESSAGES
   ============================================= */
.brand-alert{padding:14px 20px;border-radius:10px;font-size:.9rem;margin-bottom:20px;display:flex;align-items:center;gap:10px}
.brand-alert-success{background:rgba(39,174,96,.1);color:var(--success);border:1px solid rgba(39,174,96,.2)}
.brand-alert-error{background:rgba(231,76,60,.1);color:var(--danger);border:1px solid rgba(231,76,60,.2)}
.message-row{transition:var(--transition)}
.message-row.unread{background:rgba(52,152,219,.03);border-left:3px solid var(--info)}
.message-content{max-height:0;overflow:hidden;transition:max-height .3s ease;padding:0 16px}
.message-content.show{max-height:300px;padding:16px;border-top:1px solid var(--border)}

/* =============================================
   ABOUT & ERROR PAGES
   ============================================= */
.about-hero{background:var(--thobe-black);color:var(--ivory);padding:80px 0;text-align:center}
.about-hero h1{font-size:2.5rem;color:var(--ivory);margin-bottom:16px}
.about-hero p{color:rgba(248,244,236,.7);font-size:1.1rem;max-width:600px;margin:0 auto}
.error-page{text-align:center;padding:100px 20px}
.error-page .error-code{font-size:8rem;font-weight:900;color:var(--border);line-height:1;margin-bottom:16px}
.error-page h2{font-weight:700;margin-bottom:12px}
.error-page p{color:var(--gray);margin-bottom:28px}

/* =============================================
   SPINNER
   ============================================= */
.spinner{display:inline-block;width:18px;height:18px;border:2px solid rgba(255,255,255,.3);border-top-color:#fff;border-radius:50%;animation:spin .6s linear infinite}
.spinner-dark{border-color:rgba(0,0,0,.15);border-top-color:var(--ink)}
@keyframes spin{to{transform:rotate(360deg)}}

@media(max-width:767px){.cart-item-row{flex-wrap:wrap}.cart-item-total{text-align:left}}

/* Noor Fashion signature redesign — based on the supplied woven strip */
:root {
    --ivory: #fffaf3;
    --linen: #f7e9e2;
    --surface: #fffdf9;
    --tatreez-red: #c75f68;
    --crimson: #a94350;
    --burgundy: #71313a;
    --thobe-black: #171313;
    --gold: #bd8f4c;
    --ink: #2d2220;
    --border: #ead5cc;
}

body.storefront {
    background-image: linear-gradient(90deg, rgba(199,95,104,.035), transparent 34%);
}

/* One authentic, vertically dropped belt on the left only. */
body.storefront::before {
    display: block;
    width: 74px;
    background-color: #fffaf3;
    background-image: url('/images/brand/tatreez-strip.jpg');
    background-repeat: repeat-y;
    background-size: 535px auto;
    background-position: left top;
    border-right: 3px solid rgba(113,49,58,.22);
    box-shadow: 8px 0 26px rgba(80,35,39,.18);
    z-index: 1100;
}

body.storefront::after { display: none; }

body.storefront > nav,
body.storefront > main,
body.storefront > footer { margin-left: 74px; }

.brand-navbar {
    background: rgba(255,250,243,.96);
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 30px rgba(77,39,41,.06);
}

.brand-navbar::after {
    height: 10px;
    background-color: #fffaf3;
    background-image: var(--tatreez-hem);
    background-repeat: repeat-x;
    background-position: center 8%;
    background-size: 240px auto;
    border-top: 1px solid rgba(189,143,76,.4);
    border-bottom: 1px solid rgba(113,49,58,.2);
}

.brand-navbar .navbar-brand { gap: 13px; line-height: 1; }

.brand-navbar .navbar-brand img {
    width: 62px;
    height: 62px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--gold);
    box-shadow: 0 4px 14px rgba(113,49,58,.18);
}

.brand-navbar .navbar-brand small {
    display: block;
    margin-top: 7px;
    font-family: var(--font-body);
    font-size: .58rem;
    color: var(--tatreez-red);
    letter-spacing: 2.2px;
    text-transform: uppercase;
}

.brand-hero {
    background:
        radial-gradient(circle at 78% 45%, rgba(199,95,104,.16), transparent 32%),
        linear-gradient(135deg, #1b1515, #392125 68%, #201718);
}

.brand-hero::before,
.brand-hero::after {
    height: 14px;
    background-color: #fffaf3;
    background-image: var(--tatreez-hem);
    background-repeat: repeat-x;
    background-position: center 8%;
    background-size: 280px auto;
}

.brand-hero h1 .hero-text-gradient,
.hero-stat-item .stat-num { color: #e9a1a4; }

.hero-product-showcase {
    border: 1px solid rgba(233,161,164,.48);
    outline-color: rgba(189,143,76,.72);
    border-radius: 50% 50% 46% 46%;
    background: rgba(255,250,243,.06);
}

.hero-logo-fallback { padding: 24px 0; opacity: 1; }

.hero-logo-fallback img {
    width: min(390px, 90%);
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid #d7a558;
    box-shadow: 0 24px 70px rgba(0,0,0,.42), 0 0 0 10px rgba(199,95,104,.12);
}

.brand-footer .footer-brand img {
    width: 54px;
    height: 54px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--gold);
}

@media (max-width: 1199.98px) {
    body.storefront::before {
        display: block;
        width: 28px;
        background-size: 204px auto;
    }

    body.storefront > nav,
    body.storefront > main,
    body.storefront > footer { margin-left: 28px; }
}

@media (max-width: 991.98px) {
    .brand-navbar .container {
        padding-inline: 20px;
    }

    .brand-navbar .navbar-toggler {
        width: 44px;
        height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        border: 1px solid var(--border);
        border-radius: 10px;
        background: rgba(255,255,255,.7);
        font-size: 1.35rem;
        box-shadow: 0 3px 12px rgba(77,39,41,.08);
    }

    .brand-navbar .navbar-toggler:focus {
        box-shadow: 0 0 0 3px rgba(199,95,104,.18);
    }

    .brand-navbar .navbar-collapse {
        margin: 0 -4px 14px;
        padding: 12px;
        background: rgba(255,255,255,.72);
        border: 1px solid var(--border);
        border-radius: 14px;
        box-shadow: 0 14px 30px rgba(77,39,41,.1);
    }

    .brand-navbar .navbar-nav {
        gap: 4px;
        margin: 0 !important;
    }

    .brand-navbar .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
        padding: 10px 12px !important;
    }

    .brand-navbar .auth-links {
        margin-top: 8px !important;
        padding-top: 8px;
        border-top: 1px solid var(--border);
    }
}

@media (max-width: 575.98px) {
    .brand-navbar .container {
        padding-inline: 16px;
    }

    .brand-navbar .navbar-brand {
        max-width: calc(100% - 58px);
        gap: 10px;
        padding-block: 10px;
        font-size: 1.12rem;
        letter-spacing: .45px;
    }

    .brand-navbar .navbar-brand img {
        width: 46px;
        height: 46px;
        flex: 0 0 46px;
    }

    .brand-navbar .navbar-brand small {
        margin-top: 5px;
        font-size: .46rem;
        letter-spacing: 1.15px;
        white-space: nowrap;
    }

    body.storefront::before {
        width: 15px;
        background-size: 110px auto;
        border-right-width: 1px;
    }

    body.storefront > nav,
    body.storefront > main,
    body.storefront > footer { margin-left: 15px; }

    .brand-hero::before,
    .brand-hero::after {
        height: 8px;
    }

    .hero-content-wrapper {
        padding: 48px 0 42px;
    }

    .hero-content-wrapper .container {
        padding-inline: 22px;
    }

    .brand-hero h1 {
        max-width: 360px;
        margin-bottom: 20px;
        font-size: clamp(2.05rem, 9.2vw, 2.65rem);
        line-height: 1.08;
        letter-spacing: -.7px;
    }

    .brand-hero h1 br {
        display: none;
    }

    .brand-hero p {
        max-width: 36rem;
        margin-bottom: 28px;
        font-size: 1rem;
        line-height: 1.7;
        color: rgba(255,250,243,.78);
    }

    .brand-hero .hero-buttons {
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .hero-btn-primary,
    .hero-btn-secondary {
        width: 100%;
        min-height: 50px;
        justify-content: center;
        padding: 12px 18px;
        border-radius: 10px;
        font-size: .94rem;
    }

    .hero-stats {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0;
        margin-top: 38px;
        padding-top: 24px;
    }

    .hero-stat-item {
        min-width: 0;
        padding-inline: 8px;
        text-align: center;
    }

    .hero-stat-item + .hero-stat-item {
        border-left: 1px solid rgba(233,161,164,.2);
    }

    .hero-stat-item .stat-num {
        font-size: 1.4rem;
    }

    .hero-stat-item .stat-txt {
        font-size: .64rem;
        letter-spacing: .65px;
    }

    .section-spacing {
        padding: 56px 0;
    }

    .section-header {
        margin-bottom: 32px;
        padding-inline: 12px;
    }

    .section-header h2 {
        font-size: 1.75rem;
        line-height: 1.2;
    }

    .section-header h2::after {
        width: 112px;
        margin-top: 12px;
    }

    .category-chip {
        min-height: 44px;
        padding: 10px 18px;
    }
}

/* =============================================
   SIZE SELECTOR BUTTONS
   ============================================= */
.size-btn{display:inline-flex;align-items:center;justify-content:center;min-width:44px;height:44px;padding:0 14px;border:2px solid var(--border);border-radius:var(--radius);background:var(--surface);color:var(--ink);font-weight:700;font-size:.88rem;cursor:pointer;transition:var(--transition)}
.size-btn:hover{border-color:var(--tatreez-red);background:var(--surface)}
.size-btn.active{border-color:var(--tatreez-red);background:var(--tatreez-red);color:#fff}

.color-btn{display:inline-flex;align-items:center;justify-content:center;min-width:44px;height:44px;padding:0 14px;border:2px solid var(--border);border-radius:var(--radius);background:var(--surface);color:var(--ink);font-weight:700;font-size:.88rem;cursor:pointer;transition:var(--transition)}
.color-btn:hover{border-color:var(--tatreez-red);background:var(--surface)}
.color-btn.active{border-color:var(--tatreez-red);background:var(--tatreez-red);color:#fff}

/* =============================================
   SIZE GUIDE MODAL TWEAKS
   ============================================= */
.size-guide-table{width:100%;border-collapse:collapse;font-size:.88rem}
.size-guide-table th{background:var(--burgundy);color:#fff;padding:10px 14px;font-weight:700;text-align:center}
.size-guide-table td{padding:10px 14px;text-align:center;border-bottom:1px solid var(--border)}
.size-guide-table tbody tr:hover{background:var(--surface)}
