/* Mac Handles - Site Styles */

:root {
    --color-orange: #D85A30;
    --color-black: #1A1512;
    --color-cream: #FBF8F5;
    --color-tan: #C9A876;
    --color-text: #2B2420;
    --color-text-muted: #6B6058;
    --color-border: #E5DDD3;
    --radius: 8px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: var(--color-text);
    background: #fff;
    line-height: 1.5;
}

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

.container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Header ---------- */
.site-header {
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 100;
}
.header-transparent {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: transparent;
    border-bottom: none;
    z-index: 150;
}
.header-transparent .logo,
.header-transparent .header-left a,
.header-transparent .header-right a:not(.cart-icon) {
    color: #fff;
}
.header-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 16px 24px;
}
.header-left { display: flex; gap: 16px; align-items: center; }
.header-right { display: flex; gap: 16px; align-items: center; justify-content: flex-end; }
.logo {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.3px;
}
.main-nav { display: flex; gap: 28px; }
.main-nav a { font-size: 14px; font-weight: 500; }
.main-nav a:hover { color: var(--color-orange); }
.cart-icon {
    font-size: 14px;
    font-weight: 600;
    background: var(--color-orange);
    color: #fff;
    padding: 8px 16px;
    border-radius: var(--radius);
}

.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #25D366;
    color: #fff;
    padding: 12px 20px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.2);
    z-index: 200;
}

/* ---------- Hero ---------- */
.hero {
    background: linear-gradient(rgba(26,21,18,0.85), rgba(26,21,18,0.85)), url('../images/Handles_Bag_Red.webp');
    background-size: cover;
    background-position: center;
    text-align: center;
    padding: 240px 24px;
}
.hero-eyebrow {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--color-orange);
    margin-bottom: 14px;
}
.hero h1 {
    font-size: 72px;
    max-width: 620px;
    margin: 0 auto 16px;
    line-height: 1.25;
    font-weight: 700;
    color: #fff;
}
.hero p {
    font-size: 16px;
    color: #F0E8DE;
    max-width: 480px;
    margin: 0 auto 28px;
}
.hero-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.btn {
    display: inline-block;
    padding: 13px 28px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    border: none;
}
.btn-primary { background: var(--color-orange); color: #fff; }
.btn-primary:hover { background: #C24A22; }
.btn-outline { background: #fff; color: var(--color-black); border: 1.5px solid var(--color-black); }
.btn-whatsapp { background: #fff; color: var(--color-black); border: 1.5px solid var(--color-black); }
.btn-whatsapp:hover { background: var(--color-black); color: #fff; }

/* ---------- Category strip ---------- */
.category-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--color-border);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}
.category-strip a {
    background: #fff;
    padding: 20px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
}
.category-strip a:hover { background: var(--color-cream); color: var(--color-orange); }

/* ---------- Section titles ---------- */
.section {
    padding: 56px 24px;
}
.section-title { font-size: 36px; font-weight: 700; margin-bottom: 4px; text-align: center; }
.section-subtitle { font-size: 20px; color: var(--color-text-muted); margin-bottom: 28px; text-align: center; }

/* ---------- Product grid ---------- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
    justify-content: center;
}
.product-card {
    display: block;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow 0.15s;
}
.product-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.08); }
.product-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    background: var(--color-cream);
}
.product-card-body { padding: 14px; }
.product-card-name { font-weight: 600; font-size: 14px; margin-bottom: 2px; }
.product-card-desc { font-size: 12px; color: var(--color-text-muted); margin-bottom: 8px; }
.product-card-price { font-weight: 700; font-size: 14px; color: var(--color-orange); }

/* ---------- Trust quotes ---------- */
.trust-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    background: var(--color-cream);
    border-radius: var(--radius);
    padding: 28px;
    margin: 0 24px;
}
.trust-strip blockquote {
    margin: 0;
    font-style: italic;
    font-size: 14px;
    text-align: center;
    color: var(--color-text-muted);
}

/* ---------- Craft section ---------- */
.craft-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid var(--color-border);
}
.craft-media {
    background: var(--color-black);
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
}
.craft-copy { padding: 56px; display: flex; flex-direction: column; justify-content: center; }
.craft-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 1px; color: var(--color-orange); margin-bottom: 10px; }
.craft-copy h2 { font-size: 36px; margin: 0 0 12px; }
.craft-copy p { color: var(--color-text-muted); font-size: 15px; }

/* ---------- Forms ---------- */
input, select, textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-size: 14px;
    font-family: inherit;
}
label { font-size: 13px; font-weight: 600; margin-bottom: 6px; display: block; }
.form-group { margin-bottom: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ---------- Product detail page ---------- */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    padding: 48px 24px;
}
.product-images img { border-radius: var(--radius); margin-bottom: 12px; }
.product-info h1 { font-size: 26px; margin-bottom: 8px; }
.product-info .price { font-size: 22px; font-weight: 700; color: var(--color-orange); margin-bottom: 16px; }
.product-info .desc { color: var(--color-text-muted); line-height: 1.7; margin-bottom: 24px; }

/* ---------- Cart ---------- */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th, .cart-table td { text-align: left; padding: 14px 8px; border-bottom: 1px solid var(--color-border); font-size: 14px; }
.cart-summary { max-width: 340px; margin-left: auto; padding-top: 24px; }
.cart-summary-row { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 10px; }
.cart-summary-total { font-weight: 700; font-size: 17px; border-top: 1px solid var(--color-border); padding-top: 12px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--color-border); padding: 28px 0; margin-top: 40px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--color-text-muted); flex-wrap: wrap; gap: 12px; }
.footer-links { display: flex; gap: 18px; }

/* ---------- Alerts ---------- */
.alert { padding: 14px 18px; border-radius: var(--radius); font-size: 14px; margin-bottom: 20px; }
.alert-success { background: #E6F4EA; color: #1E7E34; }
.alert-error { background: #FDEAEA; color: #C0392B; }

/* ---------- Admin ---------- */
.admin-wrap { display: flex; min-height: 100vh; }
.admin-sidebar { width: 220px; background: var(--color-black); color: #fff; padding: 24px 0; }
.admin-sidebar a { display: block; padding: 12px 24px; color: #ccc; font-size: 14px; }
.admin-sidebar a:hover, .admin-sidebar a.active { color: #fff; background: #2A231E; }
.admin-content { flex: 1; padding: 32px; background: var(--color-cream); }
.admin-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; }
.admin-table th, .admin-table td { padding: 12px 16px; text-align: left; font-size: 13px; border-bottom: 1px solid var(--color-border); }
.admin-table th { background: #F5F0EA; font-weight: 600; }
.login-box { max-width: 360px; margin: 100px auto; padding: 32px; border: 1px solid var(--color-border); border-radius: var(--radius); }

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .main-nav { display: none; }
    .category-strip { grid-template-columns: repeat(2, 1fr); }
    .craft-section, .product-detail { grid-template-columns: 1fr; }
    .trust-strip { grid-template-columns: 1fr; margin: 0 12px; }
    .form-row { grid-template-columns: 1fr; }
    .admin-sidebar { display: none; }
}
.newsletter-block {
    background: var(--color-cream);
    padding: 40px 24px;
}
/* ---------- Quick View Modal ---------- */
.qv-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(26,21,18,0.6);
    z-index: 500;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.qv-overlay.active { display: flex; }

.qv-modal {
    background: #fff;
    border-radius: var(--radius);
    max-width: 720px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: relative;
}
.qv-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    z-index: 2;
}
.qv-image { background: var(--color-cream); }
.qv-image img { width: 100%; height: 100%; object-fit: cover; min-height: 280px; }
.qv-info { padding: 32px; display: flex; flex-direction: column; }
.qv-info h2 { font-size: 20px; margin: 0 0 6px; }
.qv-price { font-size: 18px; font-weight: 700; color: var(--color-orange); margin-bottom: 10px; }
.qv-stock { font-size: 13px; color: #1E7E34; font-weight: 600; margin-bottom: 20px; display: flex; align-items: center; gap: 6px; }
.qv-stock::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #1E7E34; display: inline-block; }

.qv-label { font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.qv-swatches { display: flex; gap: 10px; margin-bottom: 20px; }
.qv-swatch {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid var(--color-border);
    cursor: pointer;
    padding: 0;
}
.qv-swatch.active { border-color: var(--color-orange); box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--color-orange); }

.qv-sizes { display: flex; gap: 8px; margin-bottom: 20px; }
.qv-size-btn {
    padding: 8px 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: #fff;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
}
.qv-size-btn.active { background: var(--color-black); color: #fff; border-color: var(--color-black); }

.qv-qty { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.qv-qty-btn {
    width: 32px;
    height: 32px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: #fff;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
}
.qv-qty-value { font-size: 15px; font-weight: 600; min-width: 20px; text-align: center; }

.qv-add-btn {
    width: 100%;
    padding: 14px;
    background: var(--color-orange);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    margin-top: auto;
}
.qv-add-btn:hover { background: #C24A22; }

/* ---------- Toast ---------- */
.toast-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(26,21,18,0.3);
    z-index: 600;
    align-items: center;
    justify-content: center;
}
.toast-overlay.active { display: flex; }
.toast-box {
    background: #fff;
    border-radius: var(--radius);
    padding: 28px;
    max-width: 360px;
    width: 90%;
    text-align: center;
}
.toast-box h3 { margin: 0 0 4px; font-size: 17px; }
.toast-box p { color: var(--color-text-muted); font-size: 13px; margin: 0 0 20px; }
.toast-buttons { display: flex; gap: 10px; }
.toast-buttons a { flex: 1; }

@media (max-width: 768px) {
    .qv-modal { grid-template-columns: 1fr; }
    .qv-image img { min-height: 200px; }
}

/* ---------- Hamburger + Search ---------- */
.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    color: var(--color-text);
}
.icon-btn svg { width: 22px; height: 22px; }

.nav-drawer {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 400;
}
.nav-drawer.active { display: block; }
.nav-drawer-overlay {
    position: absolute;
    inset: 0;
    background: rgba(26,21,18,0.25);
}
.nav-drawer-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 280px;
    max-width: 80%;
    height: 100%;
    background: rgba(255,255,255,0.25);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.nav-drawer-panel a {
    padding: 14px 4px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    border-bottom: 1px solid var(--color-border);
}
.nav-drawer-close {
    align-self: flex-end;
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    margin-bottom: 10px;
}

.search-bar {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    padding: 16px 24px;
    z-index: 90;
}
.search-bar.active { display: block; }
.search-bar form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    gap: 8px;
}
.search-bar input { flex: 1; }

.header-transparent .icon-btn { color: #fff; }