:root {
    --maroon: #7f0015;
    --maroon-dark: #640010;
    --beige: #e8e3cd;
    --card: #f4f4f1;
    --text: #2b1f1f;
    --muted: #7a7a7a;
    --danger: #e60000;
    --shadow: 0 8px 26px rgba(54, 18, 0, 0.12);
    --radius: 12px;
}
* { box-sizing: border-box; }
body {
    margin: 0;
    font-size: 16px;
    font-family: "Segoe UI", Tahoma, sans-serif;
    background: var(--beige);
    color: var(--text);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1200px, 92%); margin: 0 auto; }
.section { padding: 28px 0; }
.btn {
    background: #fff7e5;
    border: 1px solid #e9c892;
    color: var(--maroon);
    border-radius: 8px;
    padding: 10px 18px;
    font-weight: 700;
    cursor: pointer;
    display: inline-block;
}
.btn:hover { background: #ffeec8; }
.btn-cart { width: 100%; }
.btn-danger { background: #ffe5e5; border: 1px solid #ff9a9a; padding: 8px 12px; cursor: pointer; border-radius: 8px; }
.btn-secondary { background: #f1f1f1; border: 1px solid #ddd; border-radius: 8px; padding: 8px 12px; cursor: pointer; }

.site-header { background: linear-gradient(180deg, var(--maroon), var(--maroon-dark)); color: #fff; position: sticky; top: 0; z-index: 100; }
.topbar { display: flex; align-items: center; gap: 14px; padding: 14px 0; }
.logo-wrap { display: flex; align-items: center; gap: 10px; min-width: 240px; }
.logo-img { width: 52px; height: 52px; object-fit: contain; }
.logo-text-wrap h1 { margin: 0; font-size: 48px; line-height: 1; font-family: Georgia, serif; }
.logo-text-wrap span { display: block; font-size: 15px; letter-spacing: 4px; }
.search-wrap { position: relative; display: flex; flex: 1; max-width: 430px; }
.search-wrap input { width: 100%; height: 52px; border-radius: 8px; border: none; padding: 0 14px; font-size: 16px; }
.search-wrap button { width: 54px; border: none; border-radius: 8px; margin-left: 6px; font-size: 26px; cursor: pointer; }
.search-suggestions {
    display: none;
    position: absolute;
    top: 58px;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 10px;
    box-shadow: var(--shadow);
    overflow: hidden;
}
.suggestion-item { display: flex; gap: 10px; align-items: center; padding: 10px; border-bottom: 1px solid #eee; }
.suggestion-item img { width: 50px; height: 50px; object-fit: cover; border-radius: 8px; }
.top-icons { display: flex; gap: 12px; font-size: 20px; }
.main-nav { display: flex; justify-content: center; gap: 28px; padding: 0 0 14px; font-size: 16px; }
.main-nav a:hover { text-decoration: underline; }
.mobile-menu-btn { display: none; background: transparent; border: 0; color: #fff; font-size: 34px; }

.hero {
    min-height: 600px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}
.hero-content h2 {
    font-family: Georgia, serif;
    color: #f8e5c6;
    font-size: 62px;
    line-height: 1.05;
    margin: 0 0 20px;
}

.category-circles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.category-circle-item { text-align: center; }
.circle { width: 250px; height: 250px; border: 2px dashed #ab4752; border-radius: 50%; margin: 0 auto 12px; padding: 8px; }
.circle img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.category-circle-item h3 { margin: 0; color: var(--maroon); font-size: 17px; }
.section-title { margin: 0 0 18px; color: var(--maroon); font-size: 44px; }

.insta-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.insta-item img { width: 100%; height: 300px; object-fit: cover; }

.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.product-card {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    position: relative;
}
.product-card img { width: 100%; height: 270px; object-fit: cover; }
.badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--danger);
    color: #fff;
    font-weight: 700;
    padding: 6px 9px;
    border-radius: 5px;
}
.product-info { padding: 12px; }
.product-info h3 { margin: 0 0 8px; font-size: 18px; }
.price-row { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; }
.old-price { text-decoration: line-through; color: var(--muted); font-size: 20px; }
.sale-price { color: var(--maroon); font-size: 34px; font-weight: 800; }
.large .sale-price, .large .old-price { font-size: 34px; }

.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.product-gallery #mainProductImage { width: 100%; border-radius: 12px; background: #fff; box-shadow: var(--shadow); }
.thumb-row { display: flex; gap: 10px; margin-top: 12px; }
.thumb { width: 80px; height: 80px; border-radius: 10px; object-fit: cover; cursor: pointer; }
.variant-group select, .qty-row input, .auth-form input, .auth-form textarea,
.checkout-form input, .checkout-form textarea, .checkout-form select,
.admin-form input, .admin-form textarea, .admin-form select {
    width: 100%;
    padding: 11px;
    border-radius: 8px;
    border: 1px solid #cfc9b0;
    margin: 6px 0 12px;
}
.qty-row { max-width: 140px; }

.cart-table-wrap { overflow-x: auto; background: #fff; border-radius: 12px; box-shadow: var(--shadow); }
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th, .cart-table td { padding: 10px; border-bottom: 1px solid #eee; }
.cart-thumb { width: 60px; height: 60px; object-fit: cover; border-radius: 8px; }
.cart-qty { width: 70px; }
.coupon-row { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.coupon-row input { padding: 10px; border: 1px solid #ccc; border-radius: 8px; }
.totals-box { margin-top: 18px; background: #fff; padding: 14px; border-radius: 12px; box-shadow: var(--shadow); max-width: 420px; }
.totals-box .grand { font-size: 18px; }

.checkout-layout { display: grid; grid-template-columns: 1fr 380px; gap: 22px; }
.checkout-form, .order-summary, .auth-box, .pay-box, .success-box {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow);
}
.auth-form { max-width: 420px; }
.flash { color: var(--maroon); font-weight: 700; }
.small { color: #666; font-size: 13px; }
.remember-check { display: flex; gap: 8px; align-items: center; }

.site-footer { background: #2f1f1a; color: #fff; padding: 30px 0; margin-top: 30px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 20px; }
.footer-grid h3, .footer-grid h4 { margin-top: 0; }
.footer-grid a { display: block; margin: 6px 0; color: #f5ddc9; }
.wa-float {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: #22b14c;
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 0;
    box-shadow: var(--shadow);
}
.wa-float::before { content: "W"; font-size: 35px; font-weight: 800; }

.admin-body { background: #f4f0e4; }
.admin-layout { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.admin-sidebar { background: #2f1f1a; color: #fff; padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.admin-sidebar a { color: #f8e5c6; padding: 8px; border-radius: 8px; }
.admin-sidebar a.active, .admin-sidebar a:hover { background: #5f3f34; }
.admin-content { padding: 20px; }
.admin-top-row { display: flex; justify-content: space-between; align-items: center; }
.widget-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.widget { background: #fff; border-radius: 12px; padding: 14px; box-shadow: var(--shadow); }
.widget p { font-size: 28px; margin: 8px 0 0; color: var(--maroon); font-weight: 700; }
.admin-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.admin-table th, .admin-table td { border-bottom: 1px solid #eee; padding: 10px; text-align: left; font-size: 14px; }
.admin-form { background: #fff; padding: 16px; border-radius: 12px; box-shadow: var(--shadow); margin-bottom: 18px; }
.admin-form.slim { max-width: 680px; }
.variant-row { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 8px; margin-bottom: 8px; }
.inline-form { display: flex; align-items: center; gap: 10px; margin: 14px 0; }
.admin-login-body { min-height: 100vh; display: grid; place-items: center; background: linear-gradient(160deg, #5b0013, #8f0018); }
.admin-login-card { background: #fff; width: min(420px, 94%); padding: 22px; border-radius: 12px; box-shadow: var(--shadow); }

@media (max-width: 1024px) {
    .main-nav { gap: 16px; font-size: 22px; overflow-x: auto; padding: 0 10px 12px; justify-content: flex-start; }
    .logo-text-wrap h1 { font-size: 32px; }
    .hero-content h2 { font-size: 48px; }
    .category-circles { grid-template-columns: repeat(2, 1fr); }
    .circle { width: 190px; height: 190px; }
    .insta-grid { grid-template-columns: repeat(3, 1fr); }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .checkout-layout { grid-template-columns: 1fr; }
    .widget-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
    .mobile-menu-btn { display: inline-block; }
    .topbar { flex-wrap: wrap; }
    .logo-wrap { min-width: unset; }
    .logo-text-wrap h1 { font-size: 28px; }
    .logo-text-wrap span { font-size: 12px; letter-spacing: 3px; }
    .search-wrap { order: 3; width: 100%; max-width: 100%; }
    .main-nav { display: none; flex-direction: column; gap: 8px; background: var(--maroon-dark); padding: 12px 16px; }
    .main-nav.open { display: flex; }
    .hero { min-height: 330px; }
    .hero-content h2 { font-size: 32px; }
    .section-title { font-size: 34px; }
    .circle { width: 150px; height: 150px; }
    .insta-grid { grid-template-columns: repeat(2, 1fr); }
    .insta-item img { height: 220px; }
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .product-card img { height: 190px; }
    .product-info h3 { font-size: 21px; }
    .old-price { font-size: 19px; }
    .sale-price { font-size: 26px; }
    .product-detail { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .admin-layout { grid-template-columns: 1fr; }
    .admin-sidebar { position: sticky; top: 0; z-index: 40; }
    .variant-row { grid-template-columns: 1fr 1fr; }
}