/* =========================================================================
   T-FORM GARMENTS — DESIGN SYSTEM
   Premium B2B wholesale garment site. Red / black / white brand identity.
   ========================================================================= */

/* ---------- DESIGN TOKENS ---------- */
:root {
    --brand-red: #E31B23;
    --brand-red-dark: #C9141B;
    --brand-red-tint: #FDEAEA;
    --black: #111111;
    --charcoal: #1A1A1A;
    --white: #FFFFFF;
    --background: #F7F7F7;
    --border: #E5E5E5;
    --border-strong: #D8D8D8;
    --muted: #666666;
    --muted-light: #8A8A8A;
    --success: #16834B;
    --success-tint: #E7F5EC;
    --warning: #92400E;
    --warning-tint: #FDF3D9;
    --info: #1E3A5F;
    --info-tint: #E9F0F7;

    --radius-sm: 8px;
    --radius-md: 10px;
    --radius-lg: 14px;

    --shadow-sm: 0 1px 2px rgba(17,17,17,0.04);
    --shadow-md: 0 4px 16px rgba(17,17,17,0.06);
    --shadow-lg: 0 12px 32px rgba(17,17,17,0.10);

    --header-h: 108px;
    --header-h-mobile: 104px;

    --container-max: 1360px;
}

/* ---------- RESET ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    background: var(--background);
    color: var(--black);
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }
ul { list-style: none; }

/* ---------- GLOBAL ---------- */
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 1.5rem; }
.page-wrap { padding: 2.25rem 0 4rem; }
h1, h2, h3, h4 { font-weight: 800; letter-spacing: -0.01em; color: var(--black); }
.section-title { font-size: 1.6rem; margin-bottom: 0.35rem; }
.section-sub { color: var(--muted); margin-bottom: 1.5rem; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1.25rem; }
@media (max-width: 760px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--black); color: var(--white); padding: 0.6rem 1rem; z-index: 2000; border-radius: 0 0 var(--radius-sm) 0; }
.skip-link:focus { left: 0; }

:focus-visible { outline: 2px solid var(--brand-red); outline-offset: 2px; }

/* ---------- NOT FOUND ---------- */
.not-found { text-align: center; padding: 5rem 1rem; max-width: 480px; margin: 0 auto; }
.not-found-code { font-size: 5rem; font-weight: 800; color: var(--brand-red); line-height: 1; }
.not-found h1 { font-size: 1.6rem; margin: 0.75rem 0 0.6rem; }
.not-found p { color: var(--muted); margin-bottom: 1.75rem; }

/* =========================================================================
   HEADER
   ========================================================================= */
.site-header { position: sticky; top: 0; z-index: 200; background: var(--white); border-bottom: 1px solid var(--border); }
.header-top { padding: 0.85rem 0; border-bottom: 1px solid var(--border); }
.header-top .container { display: flex; align-items: center; gap: 1.5rem; }

.brand { display: flex; align-items: center; gap: 0.6rem; flex-shrink: 0; }
.brand img { height: 46px; width: auto; display: block; }
.brand-mark { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; background: var(--brand-red); color: var(--white); font-weight: 800; font-size: 1.05rem; border-radius: var(--radius-sm); flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text .brand-name { font-size: 1.15rem; font-weight: 800; color: var(--black); letter-spacing: -0.01em; }
.brand-text .brand-tagline { font-size: 0.66rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }

.nav-search { flex: 1 1 auto; display: flex; align-items: center; gap: 0.6rem; background: var(--background); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 0.65rem 1rem; max-width: 460px; transition: border-color 0.15s, box-shadow 0.15s; }
.nav-search:focus-within { border-color: var(--brand-red); box-shadow: 0 0 0 3px var(--brand-red-tint); background: var(--white); }
.nav-search i { color: var(--muted-light); font-size: 0.9rem; }
.nav-search input { background: transparent; border: none; outline: none; width: 100%; font-size: 0.92rem; color: var(--black); }
.nav-search input::placeholder { color: var(--muted-light); }

.header-actions { display: flex; align-items: center; gap: 0.4rem; flex-shrink: 0; }
.header-icon-link { display: flex; align-items: center; gap: 0.5rem; padding: 0.55rem 0.9rem; border-radius: var(--radius-md); font-weight: 600; font-size: 0.85rem; color: var(--black); position: relative; white-space: nowrap; transition: background 0.15s; }
.header-icon-link:hover { background: var(--background); }
.header-icon-link i { font-size: 1.05rem; }
.cart-count { position: absolute; top: 2px; right: 2px; background: var(--brand-red); color: var(--white); font-size: 0.62rem; font-weight: 700; min-width: 17px; height: 17px; border-radius: 999px; display: flex; align-items: center; justify-content: center; padding: 0 3px; }
.header-actions .navlabel { font-size: 0.82rem; color: var(--muted); padding: 0 0.4rem; white-space: nowrap; }

.header-nav { background: var(--white); }
.header-nav .container { display: flex; align-items: center; gap: 0.3rem; }
.header-nav a { display: inline-block; padding: 0.85rem 1rem; font-weight: 600; font-size: 0.88rem; color: var(--charcoal); border-bottom: 2px solid transparent; transition: color 0.15s, border-color 0.15s; }
.header-nav a:hover { color: var(--brand-red); }
.header-nav a.active { color: var(--brand-red); border-bottom-color: var(--brand-red); }

.hamburger-btn { display: none; }

/* ---------- MOBILE HEADER / DRAWER ---------- */
.mobile-header { display: none; }

@media (max-width: 1023px) {
    .header-top .container { flex-wrap: nowrap; }
    .header-nav { display: none; }
    .desktop-search { display: none; }
    .header-actions .navlabel { display: none; }

    .header-top { padding: 0.65rem 0; }
    .header-top .container { gap: 0.75rem; }
    .brand img { height: 34px; }
    .brand-mark { width: 34px; height: 34px; font-size: 0.85rem; }
    .brand-text .brand-name { font-size: 0.95rem; }
    .brand-text .brand-tagline { display: none; }

    .hamburger-btn {
        display: flex; align-items: center; justify-content: center;
        width: 44px; height: 44px; border: 1px solid var(--border); border-radius: var(--radius-sm);
        background: var(--white); font-size: 1.1rem; color: var(--black); flex-shrink: 0; cursor: pointer;
    }
    .header-actions { gap: 0.15rem; }
    .header-icon-link { padding: 0.5rem 0.55rem; }
    .header-icon-link span.label-text { display: none; }

    .mobile-header { display: block; padding: 0 0 0.65rem; }
    .mobile-header .nav-search { max-width: none; margin: 0 1.5rem; }
}

.mobile-drawer-overlay {
    position: fixed; inset: 0; background: rgba(17,17,17,0.45); z-index: 300;
    opacity: 0; pointer-events: none; transition: opacity 0.2s;
}
.mobile-drawer-overlay.open { opacity: 1; pointer-events: auto; }

.mobile-drawer {
    position: fixed; top: 0; left: 0; bottom: 0; width: 82%; max-width: 320px;
    background: var(--white); z-index: 301; transform: translateX(-100%);
    transition: transform 0.25s ease; display: flex; flex-direction: column;
    box-shadow: var(--shadow-lg);
}
.mobile-drawer.open { transform: translateX(0); }
.mobile-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 1.1rem 1.25rem; border-bottom: 1px solid var(--border); }
.mobile-drawer-head .brand img { height: 32px; }
.mobile-drawer-close { width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-sm); border: none; background: var(--background); font-size: 1.1rem; cursor: pointer; }
.mobile-drawer-nav { padding: 0.6rem 0; overflow-y: auto; flex: 1; }
.mobile-drawer-nav a { display: flex; align-items: center; gap: 0.7rem; padding: 0.95rem 1.25rem; font-weight: 600; font-size: 0.98rem; color: var(--charcoal); border-bottom: 1px solid var(--background); min-height: 44px; }
.mobile-drawer-nav a i { width: 20px; text-align: center; color: var(--muted); }
.mobile-drawer-nav a.active { color: var(--brand-red); background: var(--brand-red-tint); }
.mobile-drawer-nav a.active i { color: var(--brand-red); }
.mobile-drawer-section-label { padding: 0.9rem 1.25rem 0.3rem; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted-light); }
body.drawer-open { overflow: hidden; }

/* =========================================================================
   BUTTONS
   ========================================================================= */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.75rem 1.4rem; border-radius: var(--radius-sm); font-weight: 700; font-size: 0.9rem; border: 1.5px solid transparent; cursor: pointer; transition: background 0.15s, border-color 0.15s, transform 0.1s; min-height: 44px; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand-red); color: var(--white); border-color: var(--brand-red); }
.btn-primary:hover { background: var(--brand-red-dark); border-color: var(--brand-red-dark); }
.btn-outline { background: var(--white); border-color: var(--black); color: var(--black); }
.btn-outline:hover { background: var(--black); color: var(--white); }
.btn-success { background: var(--success); color: var(--white); border-color: var(--success); }
.btn-success:hover { filter: brightness(0.92); }
.btn-danger { background: var(--white); color: #B91C1C; border-color: #B91C1C; }
.btn-danger:hover { background: #B91C1C; color: var(--white); }
.btn-sm { padding: 0.45rem 0.95rem; font-size: 0.8rem; min-height: 36px; }
.btn-block { width: 100%; }

/* ---------- CARDS ---------- */
.card { background: var(--white); border-radius: var(--radius-lg); padding: 1.5rem 1.7rem; box-shadow: var(--shadow-sm); border: 1px solid var(--border); margin-bottom: 1.75rem; }
.card-title { font-weight: 700; font-size: 1.1rem; margin-bottom: 1rem; display: flex; align-items: center; gap: 0.6rem; color: var(--black); }
.card-title i { color: var(--brand-red); }

/* ---------- FORMS ---------- */
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; font-size: 0.85rem; margin-bottom: 0.4rem; color: var(--charcoal); }
.field input, .field select, .field textarea {
    width: 100%; padding: 0.75rem 0.95rem; border-radius: var(--radius-sm); border: 1.5px solid var(--border-strong);
    font-size: 0.95rem; background: var(--white); color: var(--black); min-height: 46px; transition: border-color 0.15s, box-shadow 0.15s;
}
.field textarea { min-height: 100px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand-red); box-shadow: 0 0 0 3px var(--brand-red-tint); }
.hint { font-size: 0.8rem; color: var(--muted); margin-top: 0.3rem; }

.alert { padding: 0.85rem 1.1rem; border-radius: var(--radius-sm); margin-bottom: 1.25rem; font-size: 0.9rem; font-weight: 500; }
.alert-error { background: var(--brand-red-tint); color: #B91C1C; border-left: 4px solid var(--brand-red); }
.alert-success { background: var(--success-tint); color: var(--success); border-left: 4px solid var(--success); }
.alert-info { background: var(--info-tint); color: var(--info); border-left: 4px solid var(--info); }

/* =========================================================================
   HERO
   ========================================================================= */
.hero { background: var(--black); color: var(--white); padding: 3.75rem 0; border-radius: var(--radius-lg); overflow: hidden; position: relative; }
.hero-inner { display: flex; align-items: center; gap: 2.5rem; }
.hero-copy { flex: 1 1 55%; min-width: 0; }
.hero-label { display: inline-block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand-red); background: rgba(227,27,35,0.15); padding: 0.35rem 0.8rem; border-radius: 999px; margin-bottom: 1rem; }
.hero h1 { font-size: 2.75rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.08; margin-bottom: 1rem; }
.hero p { font-size: 1.05rem; color: #D8D8D8; max-width: 520px; margin-bottom: 1.75rem; }
.hero-actions { display: flex; gap: 0.85rem; flex-wrap: wrap; }
.hero .btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.35); }
.hero .btn-outline:hover { background: rgba(255,255,255,0.1); color: var(--white); }
.hero-media { flex: 1 1 40%; min-width: 0; }
.hero-media img { border-radius: var(--radius-md); width: 100%; height: 320px; object-fit: cover; }
.hero-badges { display: flex; gap: 1.75rem; flex-wrap: wrap; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.14); }
.hero-badges span { font-size: 0.85rem; color: #C9C9C9; display: flex; align-items: center; gap: 0.5rem; }
.hero-badges i { color: var(--brand-red); }

@media (max-width: 900px) {
    .hero { padding: 2.25rem 0; border-radius: var(--radius-md); }
    .hero-inner { flex-direction: column; align-items: flex-start; }
    .hero h1 { font-size: 2rem; }
    .hero-media { width: 100%; }
    .hero-media img { height: 200px; }
    .hero-badges { gap: 1rem 1.5rem; }
}

/* ---------- BENEFIT STRIP ---------- */
.benefit-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; margin: 2.5rem 0; }
.benefit-item { display: flex; align-items: flex-start; gap: 0.85rem; padding: 1.1rem; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); }
.benefit-item .b-icon { width: 42px; height: 42px; flex-shrink: 0; border-radius: var(--radius-sm); background: var(--brand-red-tint); color: var(--brand-red); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; }
.benefit-item h4 { font-size: 0.92rem; margin-bottom: 0.15rem; }
.benefit-item p { font-size: 0.8rem; color: var(--muted); }
@media (max-width: 900px) { .benefit-strip { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .benefit-strip { grid-template-columns: 1fr; } }

/* =========================================================================
   CATEGORY TILES
   ========================================================================= */
.group-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.4rem; margin-top: 1.5rem; }
.group-tile { position: relative; border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--border); background: var(--white); aspect-ratio: 4 / 5; display: block; }
.group-tile .gimg { position: absolute; inset: 0; background: var(--background); display: flex; align-items: center; justify-content: center; font-size: 2.4rem; color: var(--muted-light); overflow: hidden; }
.group-tile .gimg img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.group-tile:hover .gimg img { transform: scale(1.05); }
.group-tile .gbody { position: absolute; left: 0; right: 0; bottom: 0; padding: 1rem 1.1rem; background: linear-gradient(to top, rgba(17,17,17,0.85), rgba(17,17,17,0)); color: var(--white); }
.group-tile h3 { font-size: 1.05rem; margin-bottom: 0.1rem; }
.group-tile p { font-size: 0.78rem; color: #E3E3E3; }
.group-tile .g-arrow { position: absolute; top: 0.9rem; right: 0.9rem; width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,0.9); color: var(--black); display: flex; align-items: center; justify-content: center; font-size: 0.85rem; opacity: 0; transform: translateX(-6px); transition: 0.2s; }
.group-tile:hover .g-arrow { opacity: 1; transform: translateX(0); background: var(--brand-red); color: var(--white); }
@media (max-width: 600px) { .group-tiles { grid-template-columns: 1fr 1fr; gap: 0.85rem; } }

/* =========================================================================
   PRODUCT GRID / CARD
   ========================================================================= */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.5rem; }
.product-card { background: var(--white); border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--border); display: flex; flex-direction: column; transition: box-shadow 0.15s, border-color 0.15s; }
.product-card:hover { box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.product-card .pimg { background: var(--background); aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; overflow: hidden; color: var(--muted-light); font-size: 2.4rem; }
.product-card .pimg img { width: 100%; height: 100%; object-fit: contain; }
.product-card .pbody { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: 0.55rem; flex: 1; }
.product-card h3 { font-size: 1rem; }
.style-tag { font-size: 0.68rem; background: var(--background); padding: 0.15rem 0.6rem; border-radius: var(--radius-sm); color: var(--muted); font-weight: 700; letter-spacing: 0.02em; border: 1px solid var(--border); }
.price-line { display: flex; align-items: baseline; gap: 0.65rem; flex-wrap: wrap; }
.price-line .wholesale { font-weight: 800; font-size: 1.15rem; color: var(--brand-red); }
.price-line .mrp { font-size: 0.82rem; color: var(--muted-light); text-decoration: line-through; }

@media (max-width: 1023px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .product-grid { grid-template-columns: repeat(2, 1fr); gap: 0.85rem; } }
@media (max-width: 380px) { .product-grid { grid-template-columns: 1fr; } }

/* ---------- SWATCHES / CHIPS ---------- */
.swatch { width: 22px; height: 22px; border-radius: 5px; display: inline-block; border: 1px solid rgba(0,0,0,0.15); }
.swatch-sm { width: 20px; height: 20px; border-radius: 5px; border: 1px solid rgba(0,0,0,0.15); display: inline-block; flex-shrink: 0; }
.chip { background: var(--background); padding: 0.25rem 0.8rem; border-radius: var(--radius-sm); font-size: 0.78rem; font-weight: 600; border: 1px solid var(--border); display: inline-flex; align-items: center; gap: 0.35rem; }
.chip-group { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.extra-badge { background: var(--warning-tint); color: var(--warning); padding: 0.05rem 0.55rem; border-radius: var(--radius-sm); font-size: 0.65rem; font-weight: 700; }

/* ---------- COLOUR SWATCH SELECTOR (product page) ---------- */
.colour-option { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.9rem 0.5rem 0.55rem; border: 1.5px solid var(--border-strong); border-radius: var(--radius-sm); cursor: pointer; font-size: 0.85rem; font-weight: 600; background: var(--white); transition: border-color 0.15s, background 0.15s; }
.colour-option:hover { border-color: var(--black); }
.colour-option.is-selected, .colour-option[aria-checked="true"] { border-color: var(--brand-red); background: var(--brand-red-tint); }
.colour-option .swatch { border-width: 1.5px; }
.colour-option .fa-check { color: var(--brand-red); }

/* =========================================================================
   TABLES
   ========================================================================= */
table.simple-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
table.simple-table th { text-align: left; padding: 0.7rem 0.6rem; border-bottom: 2px solid var(--border-strong); color: var(--muted); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.03em; }
table.simple-table td { padding: 0.7rem 0.6rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
table.simple-table tbody tr:hover { background: var(--background); }
table.simple-table tr.total-row { background: var(--background); font-weight: 700; border-top: 2px solid var(--border-strong); }
table.simple-table tr.total-row:hover { background: var(--background); }

@media (max-width: 640px) {
    .table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .table-scroll table.simple-table { min-width: 560px; }
}

/* ---------- QUANTITY CONTROL ---------- */
.qty-control { display: flex; align-items: center; gap: 0.5rem; }
.qty-control button { width: 36px; height: 36px; border-radius: var(--radius-sm); border: 1.5px solid var(--border-strong); background: var(--white); font-size: 1.1rem; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.qty-control button:hover { border-color: var(--black); background: var(--background); }
.qty-control input { width: 64px; height: 36px; text-align: center; padding: 0.4rem; border-radius: var(--radius-sm); border: 1.5px solid var(--border-strong); font-weight: 700; }

.size-row { display: flex; align-items: center; justify-content: space-between; padding: 0.6rem 0; border-bottom: 1px solid var(--border); flex-wrap: wrap; gap: 0.5rem; }
.size-row:last-child { border-bottom: none; }

/* ---------- STATUS BADGES ---------- */
.status-badge { display: inline-block; padding: 0.2rem 0.85rem; border-radius: 999px; font-size: 0.7rem; font-weight: 700; text-transform: capitalize; }
.status-pending { background: var(--warning-tint); color: var(--warning); }
.status-prepared { background: var(--info-tint); color: var(--info); }
.status-complete { background: var(--success-tint); color: var(--success); }

/* =========================================================================
   FOOTER
   ========================================================================= */
.site-footer { background: var(--black); color: #C9C9C9; margin-top: 3rem; padding: 3rem 0 1.5rem; }
.footer-top { display: flex; justify-content: space-between; gap: 2.5rem; flex-wrap: wrap; padding-bottom: 2.25rem; border-bottom: 1px solid rgba(255,255,255,0.12); }
.footer-brand { max-width: 320px; }
.footer-brand img { height: 38px; margin-bottom: 0.9rem; }
.footer-brand p { font-size: 0.85rem; color: #A5A5A5; }
.footer-columns { display: flex; gap: 3rem; flex-wrap: wrap; }
.footer-col h4 { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--white); margin-bottom: 0.9rem; }
.footer-col a { display: block; font-size: 0.85rem; color: #A5A5A5; margin-bottom: 0.6rem; }
.footer-col a:hover { color: var(--white); }
.footer-social { display: flex; gap: 0.7rem; margin-top: 1.1rem; }
.footer-social a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.08); color: var(--white); display: flex; align-items: center; justify-content: center; font-size: 0.95rem; transition: background 0.15s; }
.footer-social a:hover { background: var(--brand-red); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding-top: 1.5rem; font-size: 0.8rem; color: #808080; }
.footer-links-legacy { display: flex; gap: 1rem; flex-wrap: wrap; }

/* legacy .footer class kept so any page that still uses it renders sanely */
.footer { padding: 2rem 0; color: var(--muted); font-size: 0.85rem; text-align: center; border-top: 1px solid var(--border); margin-top: 2rem; }
.footer-links { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 0.6rem; font-size: 0.82rem; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--black); text-decoration: underline; }

@media (max-width: 700px) {
    .footer-top { flex-direction: column; gap: 1.75rem; }
    .footer-columns { gap: 1.75rem 2.5rem; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ---------- WHATSAPP BUTTON ---------- */
.whatsapp-btn { display: inline-flex; align-items: center; gap: 0.45rem; background: #25D366; color: var(--white); font-weight: 700; font-size: 0.82rem; padding: 0.55rem 1rem; border-radius: var(--radius-sm); margin-top: 0.6rem; cursor: pointer; width: fit-content; transition: filter 0.15s; }
.whatsapp-btn:hover { filter: brightness(0.94); }

/* =========================================================================
   ADMIN — SIDEBAR LAYOUT
   ========================================================================= */
.admin-shell { display: flex; min-height: 100vh; }
.admin-sidebar {
    width: 250px; flex-shrink: 0; background: var(--black); color: #D8D8D8;
    display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
}
.admin-sidebar .brand { padding: 1.35rem 1.25rem; border-bottom: 1px solid rgba(255,255,255,0.1); }
.admin-sidebar .brand img { height: 32px; }
.admin-sidebar .brand-mark { background: var(--brand-red); }
.admin-sidebar .admin-tag { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--brand-red); }
.admin-nav { padding: 0.75rem 0.75rem; overflow-y: auto; flex: 1; }
.admin-nav a { display: flex; align-items: center; gap: 0.75rem; padding: 0.7rem 0.9rem; border-radius: var(--radius-sm); font-weight: 600; font-size: 0.87rem; color: #C9C9C9; margin-bottom: 0.15rem; }
.admin-nav a i { width: 18px; text-align: center; }
.admin-nav a:hover { background: rgba(255,255,255,0.08); color: var(--white); }
.admin-nav a.active { background: var(--brand-red); color: var(--white); }
.admin-nav .badge-count { margin-left: auto; background: var(--brand-red); color: var(--white); font-size: 0.68rem; font-weight: 700; padding: 0.05rem 0.5rem; border-radius: 999px; }
.admin-nav a.active .badge-count { background: var(--white); color: var(--brand-red); }
.admin-sidebar-foot { padding: 1rem 1.25rem; border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.82rem; }
.admin-sidebar-foot .navlabel { display: block; color: #A5A5A5; margin-bottom: 0.5rem; }
.admin-sidebar-foot a { color: var(--white); font-weight: 600; }

.admin-main { flex: 1; min-width: 0; }
.admin-topbar { background: var(--white); border-bottom: 1px solid var(--border); padding: 1rem 1.75rem; display: flex; align-items: center; gap: 1rem; position: sticky; top: 0; z-index: 50; }
.admin-topbar h1 { font-size: 1.15rem; }
.admin-hamburger { display: none; }
.admin-content { padding: 1.75rem; }

.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td { padding: 0.75rem 0.7rem; border-bottom: 1px solid var(--border); text-align: left; font-size: 0.88rem; }
.admin-table th { color: var(--muted); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.03em; }
.admin-table tbody tr:hover { background: var(--background); }

@media (max-width: 1023px) {
    .admin-sidebar { position: fixed; left: 0; top: 0; z-index: 301; transform: translateX(-100%); transition: transform 0.25s ease; box-shadow: var(--shadow-lg); }
    .admin-sidebar.open { transform: translateX(0); }
    .admin-hamburger { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--white); font-size: 1.05rem; cursor: pointer; }
    .admin-content { padding: 1.1rem; }
    .admin-topbar { padding: 0.85rem 1.1rem; }
}

/* legacy admin-navbar (kept minimal in case referenced elsewhere) */
.admin-navbar { background: var(--black); color: var(--white); padding: 0.9rem 0; }

/* =========================================================================
   MISC SHARED COMPONENTS
   ========================================================================= */
.tab-links { display: flex; gap: 0.5rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.tab-links a { padding: 0.55rem 1.1rem; border-radius: var(--radius-sm); background: var(--background); border: 1px solid var(--border); font-weight: 600; font-size: 0.85rem; color: var(--charcoal); }
.tab-links a.active { background: var(--black); color: var(--white); border-color: var(--black); }

.form-inline { display: flex; gap: 0.7rem; flex-wrap: wrap; align-items: flex-end; }
.form-inline .field { margin-bottom: 0; flex: 1; min-width: 140px; }

.thumb-list { display: flex; gap: 0.7rem; flex-wrap: wrap; margin-top: 0.65rem; }
.thumb-list .thumb-item { position: relative; width: 80px; height: 80px; border-radius: var(--radius-sm); overflow: hidden; border: 2px solid var(--border); }
.thumb-list .thumb-item img { width: 100%; height: 100%; object-fit: cover; }
.thumb-list .thumb-item .del { position: absolute; top: 3px; right: 3px; background: rgba(17,17,17,0.7); color: var(--white); border-radius: 50%; width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; font-size: 0.7rem; }

.empty-state { text-align: center; padding: 3rem 1rem; color: var(--muted); }

/* ---------- MODAL ---------- */
.modal-overlay { position: fixed; inset: 0; background: rgba(17,17,17,0.45); backdrop-filter: blur(2px); display: none; align-items: center; justify-content: center; z-index: 1000; padding: 1rem; }
.modal-overlay.open { display: flex; }
.modal { background: var(--white); border-radius: var(--radius-lg); padding: 1.6rem; max-width: 560px; width: 100%; max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow-lg); }

/* ---------- BULK ORDER COLOUR SEARCH DROPDOWN ---------- */
.bulk-colour-dropdown { position: relative; }
.bulk-colour-dropdown input { width: 100%; padding: 0.7rem 0.95rem; border-radius: var(--radius-sm); border: 1.5px solid var(--border-strong); font-size: 0.9rem; }
.bulk-colour-dropdown .dropdown-list { position: absolute; top: 100%; left: 0; right: 0; background: var(--white); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); max-height: 220px; overflow-y: auto; z-index: 10; display: none; box-shadow: var(--shadow-lg); margin-top: 4px; }
.bulk-colour-dropdown .dropdown-list.show { display: block; }
.bulk-colour-dropdown .dropdown-item { padding: 0.65rem 0.9rem; cursor: pointer; display: flex; align-items: center; gap: 0.6rem; border-bottom: 1px solid var(--background); font-size: 0.88rem; min-height: 44px; }
.bulk-colour-dropdown .dropdown-item:hover { background: var(--background); }
.bulk-colour-dropdown .dropdown-item.colour-in-order { opacity: 0.5; pointer-events: none; }

.selected-colours { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem; }
.selected-colour-chip { display: inline-flex; align-items: center; gap: 0.4rem; background: var(--background); padding: 0.3rem 0.7rem 0.3rem 0.55rem; border-radius: var(--radius-sm); border: 1px solid var(--border); font-size: 0.82rem; }
.selected-colour-chip .remove-chip { cursor: pointer; color: var(--muted-light); }
.selected-colour-chip .remove-chip:hover { color: var(--brand-red); }

/* =========================================================================
   RESPONSIVE — GLOBAL SAFETY NET
   ========================================================================= */
@media (max-width: 767px) {
    .container { padding: 0 1rem; }
    .page-wrap { padding: 1.25rem 0 3rem; }
    h1 { font-size: 1.6rem; }
    .section-title { font-size: 1.25rem; }
    .card { padding: 1.15rem 1.2rem; border-radius: var(--radius-md); }
    table.simple-table { font-size: 0.82rem; }
    .btn { font-size: 0.85rem; }
}

/* prevent any accidental horizontal scroll from wide inline content */
body, .container { max-width: 100%; }
