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

:root {
    --ink: #101828;
    --ink-soft: #344054;
    --muted: #667085;
    --line: #E4E7EC;
    --border: var(--line);
    --bg: #F2F4F7;
    --card: #FFFFFF;
    --primary: #0F766E;
    --primary-dark: #0B5F59;
    --accent: #F97316;
    --accent-soft: #FFF7ED;
    --success: #12B76A;
    --danger: #F04438;
    --warning: #FDB022;
    --star: #FDB022;
    --radius: 18px;
    --radius-sm: 12px;
    --shadow: 0 1px 2px rgba(16,24,40,.04), 0 8px 24px rgba(16,24,40,.06);
    --shadow-lg: 0 16px 48px rgba(16,24,40,.12);
    --gradient: linear-gradient(135deg, #0F766E 0%, #0EA5A4 55%, #F97316 140%);
    --transition: .22s cubic-bezier(.4,0,.2,1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Manrope', system-ui, sans-serif;
    background: var(--bg);
    color: var(--ink);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}
.container { width: min(1240px, calc(100% - 2rem)); margin: 0 auto; }
.hidden { display: none !important; }
a { color: inherit; }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ===== HEADER ===== */
.header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(228,231,236,.9);
}
.header-top {
    display: flex; align-items: center; gap: 1rem;
    padding: .85rem 0 .55rem;
}
.logo {
    display: flex; align-items: center; gap: .55rem;
    text-decoration: none; flex-shrink: 0;
    font-family: 'Sora', sans-serif;
    font-weight: 800; font-size: 1.2rem; letter-spacing: -.03em;
}
.logo-mark {
    width: 38px; height: 38px; border-radius: 12px;
    background: var(--gradient); color: #fff;
    display: grid; place-items: center; font-size: .95rem;
}
.search-wrap {
    flex: 1; position: relative; max-width: 680px;
}
.search-wrap input {
    width: 100%; height: 46px; border-radius: 999px;
    border: 1.5px solid var(--line); background: #F9FAFB;
    padding: 0 3.2rem 0 1.15rem; font: inherit; font-size: .95rem;
    outline: none; transition: var(--transition);
}
.search-wrap input:focus {
    border-color: var(--primary); background: #fff;
    box-shadow: 0 0 0 4px rgba(15,118,110,.12);
}
.search-wrap button {
    position: absolute; right: 6px; top: 6px;
    width: 34px; height: 34px; border: 0; border-radius: 999px;
    background: var(--primary); color: #fff; cursor: pointer;
}
.header-actions { display: flex; align-items: center; gap: .55rem; margin-left: auto; }
.icon-btn {
    width: 42px; height: 42px; border-radius: 12px;
    border: 1px solid var(--line); background: #fff;
    display: grid; place-items: center; cursor: pointer; position: relative;
    text-decoration: none; color: var(--ink-soft); transition: var(--transition);
}
.icon-btn:hover { border-color: var(--primary); color: var(--primary); }
.icon-btn .badge-dot {
    position: absolute; top: -4px; right: -4px;
    min-width: 18px; height: 18px; padding: 0 5px;
    border-radius: 999px; background: var(--accent); color: #fff;
    font-size: .65rem; font-weight: 800; display: grid; place-items: center;
}
.header-nav {
    display: flex; gap: .35rem; overflow-x: auto; padding: 0 0 .75rem;
    scrollbar-width: none;
}
.header-nav::-webkit-scrollbar { display: none; }
.header-nav a, .cat-chip {
    flex: 0 0 auto; text-decoration: none;
    padding: .45rem .9rem; border-radius: 999px;
    font-size: .82rem; font-weight: 600; color: var(--ink-soft);
    background: transparent; border: 1px solid transparent; cursor: pointer;
}
.header-nav a:hover, .header-nav a.active, .cat-chip:hover, .cat-chip.active {
    background: rgba(15,118,110,.08); color: var(--primary); border-color: rgba(15,118,110,.15);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
    border: 0; border-radius: 12px; padding: .7rem 1.1rem;
    font: inherit; font-weight: 700; font-size: .9rem; cursor: pointer;
    transition: var(--transition); text-decoration: none; white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-outline { background: #fff; color: var(--ink); border: 1.5px solid var(--line); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-ghost { background: transparent; color: var(--ink-soft); }
.btn-sm { padding: .45rem .75rem; font-size: .8rem; border-radius: 10px; }
.btn-lg { padding: .9rem 1.4rem; font-size: 1rem; }
.limit-badge {
    background: var(--accent-soft); color: #C2410C;
    padding: .35rem .7rem; border-radius: 999px; font-size: .75rem; font-weight: 700;
}

/* ===== HOME ===== */
main.container { padding: 1.25rem 0 3rem; flex: 1; animation: fadeUp .35s ease; }
.page-title {
    font-family: 'Sora', sans-serif;
    font-size: 1.55rem; font-weight: 800; letter-spacing: -.03em; margin-bottom: 1rem;
}
.hero-market {
    display: grid; grid-template-columns: 1.6fr .9fr; gap: 1rem; margin-bottom: 1.5rem;
}
.hero-banner {
    position: relative; overflow: hidden; border-radius: 24px; min-height: 260px;
    background:
        radial-gradient(circle at 85% 20%, rgba(249,115,22,.35), transparent 35%),
        linear-gradient(135deg, #0B3B38 0%, #0F766E 48%, #14B8A6 100%);
    color: #fff; padding: 2.2rem; display: flex; flex-direction: column; justify-content: flex-end;
    box-shadow: var(--shadow);
}
.hero-banner .eyebrow {
    display: inline-flex; width: fit-content; gap: .35rem; align-items: center;
    background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.18);
    padding: .35rem .7rem; border-radius: 999px; font-size: .75rem; font-weight: 700;
    margin-bottom: .9rem;
}
.hero-banner h1 {
    font-family: 'Sora', sans-serif;
    font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1.1; letter-spacing: -.04em;
    max-width: 14ch; margin-bottom: .6rem;
}
.hero-banner p { opacity: .88; max-width: 36ch; margin-bottom: 1.2rem; }
.hero-side { display: grid; gap: 1rem; }
.promo-tile {
    border-radius: 20px; padding: 1.2rem; background: var(--card);
    border: 1px solid var(--line); box-shadow: var(--shadow);
    display: flex; flex-direction: column; justify-content: space-between; min-height: 120px;
}
.promo-tile.orange { background: linear-gradient(145deg, #FFF7ED, #FFEDD5); border-color: #FED7AA; }
.promo-tile.teal { background: linear-gradient(145deg, #F0FDFA, #CCFBF1); border-color: #99F6E4; }
.promo-tile strong { font-family: 'Sora', sans-serif; font-size: 1.05rem; letter-spacing: -.02em; }
.promo-tile span { color: var(--muted); font-size: .85rem; margin-top: .35rem; }

.section-head {
    display: flex; align-items: end; justify-content: space-between; gap: 1rem;
    margin: 1.6rem 0 .9rem;
}
.section-head h2 {
    font-family: 'Sora', sans-serif; font-size: 1.25rem; letter-spacing: -.02em;
}
.section-head a { color: var(--primary); font-weight: 700; font-size: .9rem; text-decoration: none; }

.cat-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: .75rem;
}
.cat-card {
    background: var(--card); border: 1px solid var(--line); border-radius: 16px;
    padding: 1rem .7rem; text-align: center; cursor: pointer; transition: var(--transition);
}
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: rgba(15,118,110,.3); }
.cat-card .ico {
    width: 48px; height: 48px; margin: 0 auto .55rem; border-radius: 14px;
    display: grid; place-items: center; font-size: 1.35rem;
    background: linear-gradient(180deg, #F0FDFA, #E0F2FE);
}
.cat-card .name { font-size: .8rem; font-weight: 700; color: var(--ink-soft); }

/* ===== PRODUCT GRID ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 1rem;
}
.product-card {
    background: var(--card); border: 1px solid var(--line); border-radius: 18px;
    overflow: hidden; cursor: pointer; transition: var(--transition);
    display: flex; flex-direction: column; position: relative;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.product-image-wrap {
    aspect-ratio: 1; background: linear-gradient(180deg, #F8FAFC, #EEF2F6);
    display: grid; place-items: center; position: relative; overflow: hidden;
}
.product-image { width: 100%; height: 100%; object-fit: cover; }
.product-placeholder { font-size: 3rem; opacity: .55; }
.product-badge {
    position: absolute; left: 10px; top: 10px;
    background: var(--accent); color: #fff; font-size: .68rem; font-weight: 800;
    padding: .28rem .55rem; border-radius: 999px;
}
.fav-btn {
    position: absolute; right: 10px; top: 10px;
    width: 34px; height: 34px; border-radius: 999px; border: 0;
    background: rgba(255,255,255,.92); cursor: pointer; font-size: 1rem;
    box-shadow: 0 4px 12px rgba(16,24,40,.1);
}
.fav-btn.active { color: var(--danger); }
.product-info { padding: .85rem .95rem 1rem; display: flex; flex-direction: column; gap: .28rem; flex: 1; }
.product-name { font-weight: 700; font-size: .92rem; line-height: 1.3; min-height: 2.4em; }
.product-brand { color: var(--muted); font-size: .75rem; }
.product-rating { display: flex; align-items: center; gap: .35rem; font-size: .78rem; color: var(--muted); }
.stars { color: var(--star); letter-spacing: .5px; }
.product-price-row { display: flex; align-items: baseline; gap: .45rem; flex-wrap: wrap; margin-top: .25rem; }
.product-price { font-family: 'Sora', sans-serif; font-weight: 800; font-size: 1.05rem; color: var(--ink); }
.product-old { color: var(--muted); text-decoration: line-through; font-size: .8rem; }
.product-installment {
    margin-top: .2rem; font-size: .75rem; font-weight: 700; color: var(--primary);
    background: rgba(15,118,110,.08); width: fit-content; padding: .2rem .5rem; border-radius: 8px;
}
.product-stock { margin-left: auto; font-size: .72rem; color: var(--success); font-weight: 700; }
.product-actions { display: flex; gap: .4rem; margin-top: .65rem; }

/* ===== CATALOG TOOLBAR ===== */
.catalog-toolbar {
    display: flex; flex-wrap: wrap; gap: .75rem; align-items: center;
    margin-bottom: 1rem; background: var(--card); border: 1px solid var(--line);
    border-radius: 16px; padding: .85rem 1rem;
}
.catalog-toolbar select, .catalog-toolbar input[type="number"] {
    height: 40px; border-radius: 10px; border: 1px solid var(--line);
    padding: 0 .7rem; font: inherit; background: #F9FAFB;
}
.filter-chips { display: flex; gap: .4rem; flex-wrap: wrap; flex: 1; }

/* ===== DETAIL ===== */
.product-detail {
    display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.05fr); gap: 1.5rem;
    margin-bottom: 1.5rem;
}
.product-detail-media {
    background: var(--card); border: 1px solid var(--line); border-radius: 22px;
    min-height: 360px; display: grid; place-items: center; overflow: hidden;
}
.product-detail-media img { width: 100%; height: 100%; object-fit: cover; max-height: 480px; }
.product-placeholder.large { font-size: 5rem; }
.product-detail-title {
    font-family: 'Sora', sans-serif; font-size: clamp(1.4rem, 2.5vw, 2rem);
    letter-spacing: -.03em; margin: .2rem 0 .5rem;
}
.product-detail-rating { display: flex; gap: .6rem; align-items: center; color: var(--muted); }
.product-detail-desc { color: var(--muted); line-height: 1.65; margin: .7rem 0 1rem; }
.product-specs { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; }
.product-specs > div {
    background: #F8FAFC; border: 1px solid var(--line); border-radius: 12px; padding: .75rem .85rem;
}
.product-specs span { display: block; font-size: .72rem; color: var(--muted); margin-bottom: .15rem; }
.buy-box {
    margin-top: 1.1rem; background: var(--card); border: 1px solid var(--line);
    border-radius: 18px; padding: 1rem; box-shadow: var(--shadow);
}
.buy-box .big-price { font-family: 'Sora', sans-serif; font-size: 1.7rem; font-weight: 800; }
.buy-box .bnpl { margin: .55rem 0 1rem; color: var(--primary); font-weight: 700; font-size: .9rem; }

.reviews-section { margin: 2rem 0; }
.reviews-section h2, .similar-section h2 {
    font-family: 'Sora', sans-serif; font-size: 1.2rem; margin-bottom: 1rem;
}
.review-item, .card-block {
    background: var(--card); border: 1px solid var(--line); border-radius: 14px;
    padding: 1rem 1.1rem; margin-bottom: .75rem;
}
.review-head { display: flex; flex-wrap: wrap; gap: .5rem .75rem; align-items: center; margin-bottom: .35rem; }
.muted { color: var(--muted); }
.rating-pick { display: flex; gap: .2rem; margin-bottom: .7rem; }
.rating-pick button { border: 0; background: transparent; font-size: 1.45rem; color: #D0D5DD; cursor: pointer; }
.rating-pick button.active { color: var(--star); }
#review-comment, textarea, input[type="text"], input[type="password"], input[type="tel"] {
    width: 100%; border: 1px solid var(--line); border-radius: 12px;
    padding: .75rem .9rem; font: inherit; background: #F9FAFB;
}
#review-comment { resize: vertical; margin-bottom: .75rem; }
.loading-spinner { text-align: center; padding: 3rem; color: var(--muted); }
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--muted); }
.empty-icon { font-size: 2.5rem; margin-bottom: .5rem; }

/* ===== CART / PROFILE ===== */
.cart-layout { display: grid; grid-template-columns: 1.4fr .8fr; gap: 1rem; }
.cart-item, .profile-card, .list-card {
    background: var(--card); border: 1px solid var(--line); border-radius: 16px;
    padding: 1rem; margin-bottom: .75rem;
}
.summary-card {
    background: var(--card); border: 1px solid var(--line); border-radius: 18px;
    padding: 1.2rem; position: sticky; top: 100px; box-shadow: var(--shadow);
}

/* ===== MODAL ===== */
.modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(16,24,40,.45); backdrop-filter: blur(6px); }
.modal-box {
    position: relative; background: var(--card); border-radius: 22px; padding: 2rem;
    width: min(440px, 92%); box-shadow: var(--shadow-lg); border: 1px solid var(--line);
}
.modal-close {
    position: absolute; right: 12px; top: 12px; width: 34px; height: 34px; border-radius: 999px;
    border: 0; background: #F2F4F7; cursor: pointer; font-size: 1.2rem;
}
.modal-box h2 { font-family: 'Sora', sans-serif; font-size: 1.35rem; margin-bottom: .25rem; }
.modal-subtitle { color: var(--muted); margin-bottom: 1.2rem; }
.form-group { margin-bottom: .9rem; }
.form-group label { display: block; font-size: .8rem; font-weight: 700; margin-bottom: .35rem; color: var(--ink-soft); }

/* ===== FOOTER / MOBILE NAV ===== */
.footer {
    margin-top: auto; background: #0B1F1E; color: rgba(255,255,255,.78);
    padding: 2rem 0; border-top: 1px solid rgba(255,255,255,.06);
}
.footer-inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: center; }
.footer .logo { color: #fff; }
.footer-links { display: flex; gap: 1rem; }
.footer-links a { color: rgba(255,255,255,.75); text-decoration: none; font-size: .9rem; }

.mobile-nav {
    display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    background: rgba(255,255,255,.96); backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
    padding: .35rem .4rem calc(.35rem + env(safe-area-inset-bottom));
    justify-content: space-around;
}
.mobile-nav a {
    display: flex; flex-direction: column; align-items: center; gap: .1rem;
    text-decoration: none; color: var(--muted); font-size: .65rem; font-weight: 600;
    padding: .35rem .5rem; min-width: 56px;
}
.mobile-nav a.active { color: var(--primary); }
.mobile-nav a span { font-size: 1.15rem; }

.features-row {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; margin: 1rem 0 1.5rem;
}
.feature-pill {
    background: var(--card); border: 1px solid var(--line); border-radius: 14px;
    padding: .85rem; display: flex; gap: .65rem; align-items: center;
}
.feature-pill .ico {
    width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
    background: rgba(15,118,110,.08); font-size: 1.1rem;
}
.feature-pill strong { display: block; font-size: .85rem; }
.feature-pill span { font-size: .72rem; color: var(--muted); }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 1rem; margin-bottom: .75rem; }
.btn-block { width: 100%; }
.btn-danger { background: #FEF3F2; color: var(--danger); border: 1px solid #FECDCA; }
.form-row { display: flex; gap: .75rem; }
.form-row .form-group { flex: 1; }
.alert { padding: .85rem 1rem; border-radius: 12px; margin-bottom: 1rem; font-size: .9rem; }
.alert-warning { background: #FFF7ED; color: #9A3412; border: 1px solid #FED7AA; }
.alert-info { background: #F0FDFA; color: #0F766E; border: 1px solid #99F6E4; }
.profile-header { text-align: center; padding: 1.5rem 0; }
.profile-avatar {
    width: 72px; height: 72px; border-radius: 22px; margin: 0 auto .75rem;
    background: var(--gradient); color: #fff; display: grid; place-items: center;
    font-family: 'Sora', sans-serif; font-size: 1.6rem; font-weight: 800;
}
.profile-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: .75rem; margin-bottom: 1rem; }
.stat-box {
    background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 1rem; text-align: center;
}
.stat-box .value { font-family: 'Sora', sans-serif; font-weight: 800; font-size: 1.05rem; }
.stat-box .label { color: var(--muted); font-size: .75rem; margin-top: .25rem; }
.order-card { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.order-id { font-weight: 800; margin-right: .5rem; }
.order-date { color: var(--muted); font-size: .8rem; margin-top: .25rem; }
.order-amount { font-family: 'Sora', sans-serif; font-weight: 800; }
.order-type { font-size: .72rem; font-weight: 700; padding: .2rem .5rem; border-radius: 999px; background: #F2F4F7; }
.notif-card.unread { border-color: rgba(15,118,110,.35); box-shadow: inset 3px 0 0 var(--primary); }

/* ===== APP DOWNLOAD / VERIFY GATE ===== */
.app-download-page { padding: 1rem 0 2.5rem; animation: fadeUp .35s ease; }
.app-download-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: clamp(1.25rem, 3vw, 2.25rem);
    box-shadow: var(--shadow);
    max-width: 920px;
    margin: 0 auto;
}
.app-download-badge {
    display: inline-flex;
    background: rgba(15,118,110,.1);
    color: var(--primary);
    font-weight: 800;
    font-size: .78rem;
    padding: .35rem .75rem;
    border-radius: 999px;
    margin-bottom: 1rem;
}
.app-download-card h1 {
    font-family: 'Sora', sans-serif;
    font-size: clamp(1.4rem, 3vw, 2rem);
    letter-spacing: -.03em;
    margin-bottom: .6rem;
}
.app-download-lead { color: var(--muted); line-height: 1.6; max-width: 54ch; margin-bottom: 1.5rem; }
.app-download-grid {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 1.5rem;
    align-items: center;
}
.app-qr-wrap {
    text-align: center;
    background: #F8FAFC;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 1rem;
}
.app-qr-wrap img {
    width: 220px; height: 220px;
    border-radius: 12px;
    background: #fff;
}
.app-qr-wrap span { display: block; margin-top: .65rem; font-size: .8rem; color: var(--muted); font-weight: 600; }
.app-download-actions h3 { font-family: 'Sora', sans-serif; margin-bottom: .4rem; }
.app-download-actions > p { color: var(--muted); margin-bottom: 1rem; line-height: 1.5; }
.app-download-actions .btn { width: 100%; margin-bottom: .55rem; }
.app-download-steps { margin-top: 1rem; display: grid; gap: .55rem; }
.app-download-steps div {
    display: flex; align-items: center; gap: .65rem;
    font-size: .9rem; font-weight: 600; color: var(--ink-soft);
}
.app-download-steps span {
    width: 26px; height: 26px; border-radius: 8px;
    background: var(--gradient); color: #fff;
    display: grid; place-items: center; font-size: .75rem; font-weight: 800;
}
@media (max-width: 720px) {
    .app-download-grid { grid-template-columns: 1fr; }
    .app-qr-wrap { max-width: 280px; margin: 0 auto; }
}

@media (max-width: 900px) {
    .hero-market, .product-detail, .cart-layout { grid-template-columns: 1fr; }
    .features-row { grid-template-columns: 1fr 1fr; }
    .header-nav { display: none; }
}
@media (max-width: 768px) {
    .mobile-nav { display: flex; }
    main.container { padding-bottom: 5.5rem; }
    .header-actions .btn { display: none; }
    .header-actions .btn-primary, .header-actions .icon-btn { display: inline-flex; }
    .search-wrap { max-width: none; }
    .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
    .product-actions { flex-direction: column; }
    .product-specs { grid-template-columns: 1fr; }
}
