@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500;600;700;800&family=Nunito:wght@400;600;700&display=swap');

:root {
    --bg: #fdf6f2;
    --surface: #ffffff;
    --accent: #f4acb7;
    --accent-dark: #e88fa1;
    --accent-light: #ffd9e2;
    --secondary: #cdb4db;
    --mint: #b8e0d2;
    --border: rgba(74, 68, 83, 0.10);
    --text: #4a4453;
    --text2: #9d90a8;
    --font-head: 'Poppins', sans-serif;
    --font-body: 'Nunito', sans-serif;
    --radius: 18px;
    --radius-sm: 10px;
    --shadow: 0 8px 24px rgba(228, 168, 184, 0.18);
}

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

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

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

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

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

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 13px 28px; border-radius: 999px; font-weight: 700; font-size: 15px;
    border: none; cursor: pointer; transition: all .25s ease; font-family: var(--font-body);
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); }
.btn-outline { background: transparent; border: 2px solid var(--accent); color: var(--accent-dark); }
.btn-outline:hover { background: var(--accent-light); }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 18px; font-size: 13px; }

/* ── Header ──────────────────────────────────────────────── */
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; gap: 24px; }
.logo { font-family: var(--font-head); font-weight: 800; font-size: 24px; color: var(--accent-dark); }
.logo span { color: var(--secondary); }
.nav-links { display: flex; gap: 28px; font-weight: 600; }
.nav-links a:hover { color: var(--accent-dark); }
.search-form { flex: 1; max-width: 340px; display: flex; }
.search-form input { flex: 1; padding: 10px 16px; border: 1px solid var(--border); border-radius: 999px 0 0 999px; font-family: var(--font-body); }
.search-form button { border: none; background: var(--accent); color: #fff; padding: 0 18px; border-radius: 0 999px 999px 0; cursor: pointer; }
.header-icons { display: flex; align-items: center; gap: 18px; }
.icon-link { position: relative; font-size: 20px; }
.cart-badge {
    position: absolute; top: -8px; right: -10px; background: var(--accent-dark); color: #fff;
    font-size: 11px; font-weight: 700; border-radius: 999px; padding: 1px 6px; min-width: 18px; text-align: center;
}
.mobile-toggle { display: none; font-size: 22px; background: none; border: none; cursor: pointer; color: var(--text); }

@media (max-width: 900px) {
    .nav-links, .search-form { display: none; }
    .mobile-toggle { display: block; }
}

/* ── Hero ────────────────────────────────────────────────── */
.hero { padding: 60px 0; }
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.hero h1 { font-size: 44px; line-height: 1.2; margin-bottom: 18px; color: var(--text); }
.hero h1 .highlight { color: var(--accent-dark); }
.hero p { color: var(--text2); font-size: 17px; margin-bottom: 28px; max-width: 460px; }
.hero-ctas { display: flex; gap: 16px; margin-bottom: 40px; }
.hero-stats { display: flex; gap: 36px; }
.hero-stats div strong { display: block; font-family: var(--font-head); font-size: 24px; color: var(--accent-dark); }
.hero-stats div span { font-size: 13px; color: var(--text2); }
.hero-image-wrap { position: relative; }
.hero-image-wrap img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.hero-badge {
    position: absolute; bottom: -18px; left: -18px; background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-sm); padding: 14px 18px; box-shadow: var(--shadow); font-weight: 700; font-size: 14px;
}
.hero-badge span { display: block; color: var(--accent-dark); font-size: 12px; font-weight: 800; }

@media (max-width: 900px) { .hero-inner { grid-template-columns: 1fr; } }

/* ── Feature strip ───────────────────────────────────────── */
.feature-strip { background: var(--surface); padding: 32px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.feature-strip .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.feature-item { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 180px; }
.feature-item .icon { font-size: 26px; }
.feature-item strong { display: block; font-size: 14px; }
.feature-item span { font-size: 12px; color: var(--text2); }

/* ── Section heading ─────────────────────────────────────── */
.section { padding: 56px 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 28px; }
.section-head h2 { font-size: 28px; }
.section-head p { color: var(--text2); }

/* ── Category grid ───────────────────────────────────────── */
.category-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.category-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 24px 12px; text-align: center; transition: all .25s ease;
}
.category-card:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: var(--shadow); }
.category-card .emoji { font-size: 34px; display: block; margin-bottom: 10px; }
.category-card strong { display: block; font-size: 14px; }
.category-card span { font-size: 12px; color: var(--text2); }

@media (max-width: 900px) { .category-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .category-grid { grid-template-columns: repeat(2, 1fr); } }

/* ── Product grid & card ─────────────────────────────────── */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.product-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    overflow: hidden; transition: all .25s ease; position: relative;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--accent-light); }
.product-card .thumb { position: relative; aspect-ratio: 1/1; overflow: hidden; background: var(--accent-light); }
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-badge {
    position: absolute; top: 12px; left: 12px; padding: 4px 10px; border-radius: 999px;
    font-size: 11px; font-weight: 800; color: #fff; letter-spacing: .5px;
}
.badge-NEW { background: var(--secondary); }
.badge-HOT { background: #f28b82; }
.badge-SALE { background: var(--accent-dark); }
.product-info { padding: 16px; }
.product-cat { font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: var(--text2); font-weight: 700; }
.product-name { font-weight: 700; margin: 6px 0; font-size: 15px; }
.product-rating { color: #f5b800; font-size: 13px; margin-bottom: 8px; }
.product-price { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.price-now { font-weight: 800; color: var(--accent-dark); font-size: 17px; }
.price-old { text-decoration: line-through; color: var(--text2); font-size: 13px; }
.add-cart-form button {
    width: 100%; padding: 10px; border-radius: 999px; border: none; background: var(--accent);
    color: #fff; font-weight: 700; cursor: pointer; transition: background .2s;
}
.add-cart-form button:hover { background: var(--accent-dark); }

@media (max-width: 900px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .product-grid { grid-template-columns: 1fr; } }

/* ── Deal of the day ─────────────────────────────────────── */
.deal-banner {
    background: linear-gradient(120deg, var(--accent-light), var(--mint));
    border-radius: var(--radius); padding: 40px; display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 30px; align-items: center;
}
.deal-info h3 { font-size: 24px; margin-bottom: 10px; }
.deal-price { font-size: 30px; font-weight: 800; color: var(--accent-dark); margin: 12px 0; }
.deal-timer { display: flex; gap: 10px; margin: 16px 0; }
.deal-timer div { background: #fff; border-radius: var(--radius-sm); padding: 10px 14px; text-align: center; font-weight: 800; font-family: var(--font-head); }
.deal-timer span { display: block; font-size: 10px; font-weight: 600; color: var(--text2); }
.deal-image img { border-radius: var(--radius); }
.deal-side p { margin-bottom: 10px; font-weight: 600; }

@media (max-width: 900px) { .deal-banner { grid-template-columns: 1fr; text-align: center; } .deal-timer { justify-content: center; } }

/* ── Testimonials ─────────────────────────────────────────── */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.testimonial-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.testimonial-card .stars { color: #f5b800; margin-bottom: 10px; }
.testimonial-footer { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.avatar-circle {
    width: 42px; height: 42px; border-radius: 50%; background: var(--accent);
    color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.testimonial-footer strong { display: block; font-size: 14px; }
.testimonial-footer span { font-size: 12px; color: var(--text2); }

@media (max-width: 900px) { .testimonial-grid { grid-template-columns: 1fr; } }

/* ── Newsletter ───────────────────────────────────────────── */
.newsletter { background: var(--accent); color: #fff; padding: 56px 0; text-align: center; border-radius: var(--radius); margin: 0 24px; }
.newsletter h2 { font-size: 26px; margin-bottom: 10px; }
.newsletter p { opacity: .9; margin-bottom: 24px; }
.newsletter-form { display: flex; max-width: 420px; margin: 0 auto; background: #fff; border-radius: 999px; padding: 6px; }
.newsletter-form input { flex: 1; border: none; padding: 10px 16px; border-radius: 999px; font-family: var(--font-body); }
.newsletter-form button { border: none; background: var(--accent-dark); color: #fff; padding: 10px 22px; border-radius: 999px; font-weight: 700; cursor: pointer; }

/* ── Footer ───────────────────────────────────────────────── */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding: 48px 0 20px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.footer-grid h4 { margin-bottom: 14px; font-size: 15px; }
.footer-grid li { margin-bottom: 8px; color: var(--text2); font-size: 14px; }
.footer-grid li a:hover { color: var(--accent-dark); }
.footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid var(--border); color: var(--text2); font-size: 13px; }

@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ── Breadcrumb ───────────────────────────────────────────── */
.breadcrumb { padding: 18px 0; color: var(--text2); font-size: 13px; }
.breadcrumb a:hover { color: var(--accent-dark); }

/* ── Shop page ────────────────────────────────────────────── */
.shop-layout { display: grid; grid-template-columns: 260px 1fr; gap: 30px; align-items: start; }
.shop-sidebar { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; position: sticky; top: 90px; }
.shop-sidebar h3 { font-size: 15px; margin-bottom: 14px; }
.filter-group { margin-bottom: 22px; }
.filter-option { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 14px; cursor: pointer; }
.filter-option span.count { margin-left: auto; color: var(--text2); font-size: 12px; }
.price-range input[type="range"] { width: 100%; accent-color: var(--accent); }
.price-labels { display: flex; justify-content: space-between; font-size: 12px; color: var(--text2); margin-top: 6px; }
.shop-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; flex-wrap: wrap; gap: 12px; }
.shop-header select, .shop-sidebar select { padding: 8px 12px; border-radius: var(--radius-sm); border: 1px solid var(--border); font-family: var(--font-body); }
.empty-state { text-align: center; padding: 60px 20px; }
.empty-state .icon { font-size: 50px; margin-bottom: 16px; }
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 36px; }
.pagination a, .pagination span { width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid var(--border); font-weight: 600; }
.pagination .active { background: var(--accent); color: #fff; border-color: var(--accent); }

@media (max-width: 900px) { .shop-layout { grid-template-columns: 1fr; } .shop-sidebar { position: static; } }

/* ── Product detail ──────────────────────────────────────── */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.product-detail img { border-radius: var(--radius); box-shadow: var(--shadow); }
.product-detail h1 { font-size: 28px; margin: 10px 0; }
.product-detail .price-now { font-size: 26px; }
.qty-selector { display: flex; align-items: center; gap: 10px; margin: 20px 0; }
.qty-selector button { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border); background: #fff; cursor: pointer; font-size: 18px; }
.qty-selector input { width: 50px; text-align: center; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px; }

@media (max-width: 900px) { .product-detail { grid-template-columns: 1fr; } }

/* ── Cart page ────────────────────────────────────────────── */
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 30px; align-items: start; }
.cart-table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); overflow: hidden; }
.cart-table th { text-align: left; padding: 14px 16px; background: var(--accent-light); font-size: 13px; }
.cart-table td { padding: 14px 16px; border-top: 1px solid var(--border); vertical-align: middle; }
.cart-product { display: flex; gap: 12px; align-items: center; }
.cart-product img { width: 72px; height: 72px; border-radius: var(--radius-sm); object-fit: cover; }
.qty-controls { display: flex; align-items: center; gap: 6px; }
.qty-controls button { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--border); background: #fff; cursor: pointer; }
.qty-controls input { width: 42px; text-align: center; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 5px; }
.remove-btn { background: none; border: none; color: var(--accent-dark); font-size: 18px; cursor: pointer; }
.order-summary { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; position: sticky; top: 90px; }
.summary-row { display: flex; justify-content: space-between; margin-bottom: 12px; font-size: 14px; }
.summary-row.total { font-size: 18px; font-weight: 800; color: var(--accent-dark); border-top: 1px solid var(--border); padding-top: 14px; margin-top: 14px; }
.free-shipping-msg { background: var(--mint); padding: 10px 12px; border-radius: var(--radius-sm); font-size: 12px; margin-bottom: 16px; }
.coupon-form { display: flex; gap: 8px; margin: 16px 0; }
.coupon-form input { flex: 1; padding: 10px; border-radius: var(--radius-sm); border: 1px solid var(--border); }
.payment-icons { display: flex; gap: 10px; justify-content: center; margin-top: 14px; font-size: 22px; }
.security-badge { text-align: center; font-size: 12px; color: var(--text2); margin-top: 10px; }
.empty-cart { text-align: center; padding: 70px 20px; }
.empty-cart .icon { font-size: 60px; margin-bottom: 20px; }

@media (max-width: 900px) { .cart-layout { grid-template-columns: 1fr; } .cart-table { display: block; overflow-x: auto; } }

/* ── Checkout ─────────────────────────────────────────────── */
.checkout-layout { display: grid; grid-template-columns: 1fr 380px; gap: 30px; align-items: start; }
.checkout-section { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; margin-bottom: 22px; }
.step-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.step-badge { width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; flex-shrink: 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.form-group input, .form-group textarea, .form-group select {
    width: 100%; padding: 11px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm);
    font-family: var(--font-body); background: #fff;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--accent); }
.payment-options { display: grid; gap: 12px; }
.payment-card { border: 2px solid var(--border); border-radius: var(--radius-sm); padding: 14px 16px; display: flex; align-items: center; gap: 12px; cursor: pointer; transition: border-color .2s; }
.payment-card:hover, .payment-card.selected { border-color: var(--accent); }
.checkout-review-item { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; font-size: 13px; }
.checkout-review-item img { width: 56px; height: 56px; border-radius: var(--radius-sm); object-fit: cover; }
.alert { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 20px; font-size: 14px; }
.alert-error { background: #fde2e2; color: #a02525; border: 1px solid #f3b7b7; }
.alert-success { background: #dff5e6; color: #1f7a3f; border: 1px solid #b3e6c4; }

@media (max-width: 900px) { .checkout-layout, .form-grid { grid-template-columns: 1fr; } }

/* ── Auth pages ───────────────────────────────────────────── */
.auth-wrap { display: flex; justify-content: center; padding: 60px 20px; }
.auth-card { background: var(--surface); border-radius: var(--radius); padding: 40px; max-width: 460px; width: 100%; box-shadow: var(--shadow); }
.auth-card h1 { font-size: 26px; margin-bottom: 6px; text-align: center; }
.auth-card .subtitle { text-align: center; color: var(--text2); margin-bottom: 26px; }
.auth-footer { text-align: center; margin-top: 20px; font-size: 14px; }
.auth-footer a { color: var(--accent-dark); font-weight: 700; }

/* ── My Account ───────────────────────────────────────────── */
.account-layout { display: grid; grid-template-columns: 260px 1fr; gap: 30px; align-items: start; }
.account-sidebar { position: sticky; top: 90px; }
.account-profile-card {
    background: linear-gradient(135deg, var(--accent-light), var(--mint)); border-radius: var(--radius);
    padding: 24px; text-align: center; margin-bottom: 16px;
}
.account-profile-card .avatar-circle { width: 60px; height: 60px; font-size: 22px; margin: 0 auto 12px; }
.account-nav { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.account-nav a { display: block; padding: 14px 18px; font-weight: 600; border-bottom: 1px solid var(--border); }
.account-nav a:last-child { border-bottom: none; }
.account-nav a:hover, .account-nav a.active { background: var(--accent-light); color: var(--accent-dark); }
.account-nav a.logout { color: #d64545; }
.stat-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 28px; }
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; text-align: center; }
.stat-card strong { display: block; font-size: 26px; font-family: var(--font-head); color: var(--accent-dark); }
.stat-card span { font-size: 13px; color: var(--text2); }
.data-table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); overflow: hidden; }
.data-table th { text-align: left; background: var(--accent-light); padding: 12px 16px; font-size: 13px; }
.data-table td { padding: 12px 16px; border-top: 1px solid var(--border); font-size: 14px; }
.status-badge { padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.status-pending { background: #fff2cc; color: #8a6d00; }
.status-processing { background: #d6e8ff; color: #1959a8; }
.status-shipped { background: #ead6ff; color: #6a1fb5; }
.status-delivered { background: #d6f5df; color: #1f7a3f; }
.status-cancelled { background: #fde2e2; color: #a02525; }

@media (max-width: 900px) { .account-layout, .stat-cards { grid-template-columns: 1fr; } }
