/* ============================================
   Kasaza Fashion — Main Stylesheet
   Theme: Light & Minimal, Gold Accents
   ============================================ */

:root {
    --gold: #b8912f;
    --gold-light: #d8b26a;
    --gold-dark: #8f6f22;
    --gold-pale: #f5ecd8;
    --black: #201d16;
    --charcoal: #3a352b;
    --cream: #faf7f1;
    --paper: #ffffff;
    --line: #eae3d3;
    --muted: #8c8474;
    --success: #2f8f4e;
    --warn: #b07d1c;
    --danger: #b7414f;
    --radius: 12px;
    --shadow: 0 10px 28px rgba(32,29,22,0.08);
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Poppins', 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--font-body);
    background: var(--cream);
    color: var(--charcoal);
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    color: var(--black);
    font-weight: 700;
}

/* ---------- Header ---------- */
.site-header {
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    max-width: 1200px;
    margin: 0 auto;
    gap: 16px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand img {
    height: 56px;
    width: auto;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-text .name {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--black);
    letter-spacing: 0.5px;
}

.brand-text .tagline {
    font-size: 0.7rem;
    color: var(--muted);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Logo badge — the logo PNG has a solid black background baked in,
   so we frame it in a rounded dark card rather than letting it float
   as a stray black square on the light layout. */
.logo-badge {
    display: inline-flex;
    background: var(--black);
    border-radius: 14px;
    padding: 6px;
    line-height: 0;
    box-shadow: 0 4px 12px rgba(32,29,22,0.15);
}

.logo-badge img { border-radius: 9px; }

.logo-badge.logo-badge-lg {
    border-radius: 22px;
    padding: 10px;
}

.logo-badge.logo-badge-lg img { border-radius: 16px; }

.main-nav {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.main-nav a {
    font-size: 0.92rem;
    color: var(--charcoal);
    padding: 6px 2px;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--gold-dark);
    border-bottom-color: var(--gold);
}

.header-cta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-whatsapp {
    background: #25D366;
    color: #ffffff;
    padding: 10px 18px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.88rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.15s, box-shadow 0.15s;
    border: none;
    cursor: pointer;
}

.btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37,211,102,0.3);
}

.mobile-toggle {
    display: none;
    background: none;
    border: 1px solid var(--gold);
    color: var(--gold-dark);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 1.1rem;
    cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
    background: linear-gradient(180deg, var(--gold-pale) 0%, var(--cream) 100%);
    padding: 64px 20px 56px;
    text-align: center;
    border-bottom: 1px solid var(--line);
}

.hero img.hero-logo {
    max-width: 220px;
    margin: 0 auto 22px;
}

.hero h1 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    margin-bottom: 12px;
}

.hero p {
    color: var(--muted);
    max-width: 560px;
    margin: 0 auto 28px;
    font-size: 1.05rem;
}

.hero-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    color: #2a2109;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    display: inline-block;
    transition: transform 0.15s, box-shadow 0.15s;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    box-shadow: 0 4px 14px rgba(184,145,47,0.25);
}

.btn-gold:hover { transform: translateY(-2px); }

.btn-outline {
    border: 1.5px solid var(--gold);
    color: var(--gold-dark);
    background: var(--paper);
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    display: inline-block;
    font-size: 0.95rem;
}

.btn-outline:hover { background: var(--gold-pale); }

/* ---------- Section Titles ---------- */
.section {
    padding: 50px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 8px;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.section-subtitle {
    text-align: center;
    color: var(--muted);
    margin-bottom: 36px;
    font-size: 0.95rem;
}

.divider-gold {
    width: 70px;
    height: 3px;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold-light));
    margin: 10px auto 30px;
    border-radius: 3px;
}

/* ---------- Category Grid ---------- */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 22px;
}

.category-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px 18px;
    text-align: center;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.category-card:hover {
    transform: translateY(-4px);
    border-color: var(--gold-light);
    box-shadow: var(--shadow);
}

.category-card .icon {
    font-size: 2.2rem;
    margin-bottom: 12px;
}

.category-card h3 {
    font-size: 1.05rem;
    margin-bottom: 6px;
    color: var(--black);
}

.category-card p {
    font-size: 0.82rem;
    color: var(--muted);
}

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

.product-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: var(--gold-light);
}

.product-image {
    aspect-ratio: 1 / 1;
    background: linear-gradient(135deg, #f3ede0, #faf7f1);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-image .placeholder {
    font-size: 2.5rem;
    color: rgba(184,145,47,0.35);
}

.badge {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 0.68rem;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--paper);
}

.badge-in { background: rgba(47,143,78,0.1); color: #24783f; border: 1px solid rgba(47,143,78,0.4); }
.badge-low { background: rgba(176,125,28,0.12); color: #8f6516; border: 1px solid rgba(176,125,28,0.4); }
.badge-out { background: rgba(183,65,79,0.1); color: #9c3341; border: 1px solid rgba(183,65,79,0.4); }
.badge-featured { background: var(--gold-pale); color: var(--gold-dark); border: 1px solid var(--gold-light); left: auto; right: 10px; }

.product-body {
    padding: 16px 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
}

.product-cat {
    font-size: 0.72rem;
    color: var(--gold-dark);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    font-weight: 600;
}

.product-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--black);
    font-family: var(--font-body);
}

.product-price {
    color: var(--gold-dark);
    font-weight: 700;
    font-size: 1rem;
    margin-top: auto;
}

.product-actions {
    margin-top: 8px;
}

.btn-enquire {
    width: 100%;
    background: #25D366;
    color: #ffffff;
    padding: 9px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    font-size: 0.85rem;
    display: block;
    border: none;
    cursor: pointer;
}

.btn-enquire:hover { filter: brightness(1.05); }

.btn-enquire.disabled {
    background: #ece7dc;
    color: #a39d8d;
    pointer-events: none;
}

/* ---------- Filters ---------- */
.filter-bar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 30px;
    justify-content: center;
}

.filter-chip {
    padding: 8px 18px;
    border-radius: 20px;
    border: 1px solid var(--gold-light);
    background: var(--paper);
    color: var(--charcoal);
    font-size: 0.85rem;
    transition: all 0.2s;
}

.filter-chip:hover, .filter-chip.active {
    background: var(--gold);
    color: #ffffff;
    border-color: var(--gold);
}

/* ---------- Product Detail ---------- */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 44px;
    padding: 50px 0;
}

.product-detail-image {
    aspect-ratio: 1/1;
    background: var(--paper);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
}

.product-detail-image img { width: 100%; height: 100%; object-fit: cover; }

.product-detail-info h1 {
    font-size: 1.8rem;
    margin-bottom: 6px;
}

.product-detail-info .sku {
    color: var(--muted);
    font-size: 0.85rem;
    margin-bottom: 16px;
}

.product-detail-info .price {
    font-size: 1.6rem;
    color: var(--gold-dark);
    font-weight: 700;
    margin-bottom: 16px;
}

.product-detail-info .desc {
    color: var(--charcoal);
    margin-bottom: 24px;
    line-height: 1.8;
}

.breadcrumb {
    padding: 16px 0;
    font-size: 0.85rem;
    color: var(--muted);
}

.breadcrumb a { color: var(--gold-dark); }

/* ---------- About / Info Sections ---------- */
.info-band {
    background: var(--paper);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 40px 0;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    text-align: center;
}

.info-grid .item h4 { margin-bottom: 6px; font-size: 1rem; }
.info-grid .item p { color: var(--muted); font-size: 0.85rem; }

/* ---------- Footer ---------- */
.site-footer {
    background: var(--black);
    padding: 50px 0 20px;
    border-top: 1px solid var(--line);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 30px;
}

.footer-grid h4 {
    color: var(--gold-light);
    font-size: 1rem;
    margin-bottom: 14px;
}

.footer-grid p, .footer-grid a {
    color: #c9c4b7;
    font-size: 0.88rem;
    display: block;
    margin-bottom: 8px;
}

.footer-grid a:hover { color: var(--gold-light); }

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #a39d8d;
    font-size: 0.8rem;
}

/* ---------- Floating WhatsApp Button ---------- */
.float-whatsapp {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #25D366;
    color: #ffffff;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 6px 18px rgba(37,29,10,0.25);
    z-index: 200;
    transition: transform 0.2s;
}

.float-whatsapp:hover { transform: scale(1.08); }

/* ---------- Empty State ---------- */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--muted);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .main-nav { display: none; }
    .mobile-toggle { display: inline-block; }
    .main-nav.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--paper);
        padding: 16px 20px;
        border-bottom: 1px solid var(--line);
        gap: 12px;
    }
    .product-detail { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
}

/* ============================================
   Admin Panel Styles — Light Theme
   ============================================ */
.admin-body {
    background: var(--cream);
    color: var(--charcoal);
    font-family: var(--font-body);
    min-height: 100vh;
}

.admin-wrap {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 230px;
    background: var(--paper);
    border-right: 1px solid var(--line);
    padding: 24px 0;
    flex-shrink: 0;
}

.admin-sidebar .brand {
    padding: 0 20px 20px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 16px;
}

.admin-sidebar .brand img { height: 40px; }
.admin-sidebar .brand span {
    font-family: var(--font-display);
    color: var(--gold-dark);
    font-size: 1.1rem;
    display: block;
    margin-top: 8px;
}

.admin-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    color: var(--charcoal);
    font-size: 0.9rem;
    border-left: 3px solid transparent;
}

.admin-nav a:hover, .admin-nav a.active {
    background: var(--gold-pale);
    color: var(--gold-dark);
    border-left-color: var(--gold);
}

.admin-main {
    flex-grow: 1;
    padding: 28px 34px;
    max-width: calc(100% - 230px);
}

.admin-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 12px;
}

.admin-topbar h1 {
    font-size: 1.5rem;
    color: var(--black);
    font-family: var(--font-display);
}

.stat-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 18px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px;
}

.stat-card .label {
    font-size: 0.8rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-card .value {
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--gold-dark);
    margin-top: 6px;
}

.stat-card.alert .value { color: #9c3341; }

.admin-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 24px;
}

.admin-card h2, .admin-card h3 {
    color: var(--black);
    font-size: 1.15rem;
    margin-bottom: 18px;
    font-family: var(--font-body);
    font-weight: 600;
}

table.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    text-align: left;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--muted);
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
}

.data-table td {
    padding: 12px;
    border-bottom: 1px solid var(--line);
    font-size: 0.9rem;
    vertical-align: middle;
    color: var(--charcoal);
}

.data-table tr:hover td { background: var(--gold-pale); }

.data-table img.thumb {
    width: 42px;
    height: 42px;
    object-fit: cover;
    border-radius: 6px;
    background: #f0ead9;
}

.form-group { margin-bottom: 18px; }

.form-group label {
    display: block;
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    background: var(--paper);
    border: 1px solid #ddd5c2;
    color: var(--charcoal);
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: var(--font-body);
}

.form-control:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(184,145,47,0.12);
}

.form-control:disabled {
    background: #f3efe4;
    color: var(--muted);
}

textarea.form-control { resize: vertical; min-height: 90px; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.form-row-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 18px;
}

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: filter 0.15s, transform 0.1s;
}

.btn:hover { filter: brightness(1.05); }
.btn:active { transform: scale(0.98); }

.btn-primary { background: linear-gradient(135deg, var(--gold-light), var(--gold)); color: #2a2109; }
.btn-secondary { background: #f0ead9; color: var(--charcoal); }
.btn-danger { background: #fbeaec; color: #9c3341; border: 1px solid #f0c7cc; }
.btn-sm { padding: 6px 12px; font-size: 0.78rem; }

.action-icons { display: flex; gap: 8px; }
.action-icons a, .action-icons button {
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.78rem;
    background: #f3efe4;
    color: var(--charcoal);
    border: none;
    cursor: pointer;
}
.action-icons a:hover { background: var(--gold-pale); color: var(--gold-dark); }
.action-icons .danger:hover { background: #fbeaec; color: #9c3341; }

.login-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, var(--gold-pale) 0%, var(--cream) 70%);
    padding: 20px;
}

.login-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 40px 34px;
    width: 100%;
    max-width: 380px;
    text-align: center;
    box-shadow: var(--shadow);
}

.login-card img { height: 70px; margin: 0 auto 16px; }
.login-card h2 { margin-bottom: 4px; }
.login-card p.sub { color: var(--muted); font-size: 0.85rem; margin-bottom: 24px; }

.alert {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.88rem;
    margin-bottom: 18px;
}

.alert-success { background: rgba(47,143,78,0.08); color: #24783f; border: 1px solid rgba(47,143,78,0.35); }
.alert-error { background: rgba(183,65,79,0.08); color: #9c3341; border: 1px solid rgba(183,65,79,0.35); }
.alert-info { background: var(--gold-pale); color: var(--gold-dark); border: 1px solid var(--gold-light); }

.pill {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
}
.pill-active { background: rgba(47,143,78,0.1); color: #24783f; }
.pill-inactive { background: #f0ead9; color: var(--muted); }

@media (max-width: 800px) {
    .admin-sidebar { position: fixed; left: -230px; top: 0; bottom: 0; z-index: 300; transition: left 0.2s; }
    .admin-sidebar.open { left: 0; }
    .admin-main { max-width: 100%; padding: 20px; }
    .form-row, .form-row-3 { grid-template-columns: 1fr; }
}
