:root {
    --purple: #7c3aed;
    --purple-dark: #5b21b6;
    --purple-deep: #2e1065;
    --purple-light: #ede9fe;
    --pink: #f472b6;
    --bg: #ffffff;
    --text: #1f2937;
    --muted: #6b7280;
    --star: #fbbf24;
    --red: #ef4444;
    --radius: 18px;
}

* {
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: #e5e7eb;
    color: var(--text);
    margin: 0;
}

.phone-wrap {
    max-width: 480px;
    margin: 0 auto;
    background: var(--bg);
    min-height: 100vh;
    padding: 14px 16px 92px;
    position: relative;
    box-shadow: 0 0 40px rgba(0, 0, 0, .15);
}

h1, h2, h3, p {
    margin: 0;
}

a {
    text-decoration: none;
}

/* ---------- Header ---------- */
.site-top {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.site-top-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 6px 2px 4px;
}

.header-cart {
    align-items: center;
    justify-content: center;
}

.logo-q {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--purple);
    line-height: 1;
    font-style: italic;
}

.logo-text {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: #111;
}

.logo-tag {
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--purple);
    margin-top: 2px;
}

.header-actions {
    display: flex;
    gap: 10px;
    padding-top: 4px;
}

.icon-btn {
    border: none;
    background: transparent;
    font-size: 1.35rem;
    color: #111;
    position: relative;
    padding: 2px 4px;
    line-height: 1;
}

.badge-dot {
    position: absolute;
    top: -4px;
    right: -6px;
    background: var(--pink);
    color: #fff;
    font-size: .62rem;
    font-weight: 700;
    min-width: 17px;
    height: 17px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* ---------- Search ---------- */
.search-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f3f4f6;
    border-radius: 14px;
    padding: 12px 14px;
    color: #9ca3af;
    margin-bottom: 10px;
}

.search-bar input {
    border: none;
    outline: none;
    background: transparent;
    flex: 1;
    font-size: .92rem;
    color: var(--text);
}

.search-bar input::placeholder {
    color: #9ca3af;
}

.search-bar .icon-btn {
    font-size: 1.15rem;
    color: var(--purple);
}

/* ---------- Location ---------- */
.location-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--purple-light);
    color: var(--purple-dark);
    border-radius: 14px;
    padding: 12px 14px;
    font-size: .9rem;
    margin-bottom: 16px;
}

/* ---------- Hero ---------- */
.hero-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: linear-gradient(120deg, #1e1040 0%, #4c1d95 55%, #7c3aed 100%);
    margin-bottom: 20px;
}

.hero-text {
    position: absolute;
    z-index: 2;
    left: 20px;
    top: 24px;
    max-width: 52%;
}

.hero-text h1 {
    color: #fff;
    font-weight: 800;
    font-size: 1.35rem;
    line-height: 1.25;
    letter-spacing: .5px;
}

.hero-text p {
    color: #ddd6fe;
    font-size: .8rem;
    margin: 10px 0 16px;
}

.hero-btn {
    background: #fff;
    color: var(--purple);
    font-weight: 700;
    font-size: .85rem;
    border-radius: 20px;
    padding: 8px 18px;
}

.hero-img {
    display: block;
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: 65% center;
    mask-image: linear-gradient(to right, transparent 0, #000 42%);
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 42%);
}

.hero-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
}

.dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .45);
}

.dot.active {
    width: 20px;
    border-radius: 5px;
    background: var(--purple);
}

/* ---------- Categories ---------- */
.category-row {
    display: flex;
    justify-content: space-between;
    gap: 4px;
    margin-bottom: 20px;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1 1 0;
    min-width: 0;
}

.cat-circle {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--purple-light);
    color: var(--purple);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    transition: background .2s;
}

.category-item:active .cat-circle {
    background: #ddd6fe;
}

.cat-label {
    font-size: .72rem;
    color: var(--text);
    font-weight: 500;
    white-space: nowrap;
}

/* ---------- Deals ---------- */
.deals-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fdf2f8;
    border: 1px solid #fbcfe8;
    border-radius: var(--radius);
    padding: 14px 16px;
    margin-bottom: 20px;
}

.deals-icon {
    font-size: 1.6rem;
    color: var(--red);
    line-height: 1;
}

.deals-text h2 {
    font-size: 1.05rem;
    font-weight: 800;
}

.deals-text p {
    font-size: .78rem;
    color: var(--muted);
}

.deals-timer {
    margin-left: auto;
    background: #fff;
    border: 1px solid #fbcfe8;
    color: var(--red);
    font-size: .72rem;
    font-weight: 600;
    border-radius: 20px;
    padding: 6px 10px;
    white-space: nowrap;
}

.deals-arrow {
    color: #111;
    font-size: .95rem;
}

/* ---------- Products ---------- */
.products-section {
    margin-bottom: 20px;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 14px;
}

.section-head h2 {
    font-size: 1.15rem;
    font-weight: 800;
}

.section-head--compact {
    margin-bottom: 10px;
}

.section-head h2 .bi {
    margin-right: 4px;
}

.see-all {
    color: var(--purple);
    font-weight: 600;
    font-size: .85rem;
}

.product-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: none;
}

.product-scroll::-webkit-scrollbar {
    display: none;
}

.product-card {
    flex: 0 0 168px;
    background: #fff;
    border: 1px solid #f3f4f6;
    border-radius: 16px;
    padding: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .05);
    position: relative;
}

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    background: var(--purple);
    color: #fff;
    font-size: .62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    padding: 4px 8px;
    border-radius: 8px;
}

.wish-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    border: none;
    background: transparent;
    color: #6b7280;
    font-size: 1.05rem;
    padding: 2px;
}

.product-card img {
    width: 100%;
    height: 110px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 10px;
}

.product-card h3 {
    font-size: .85rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.price-row {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px;
    margin: 4px 0;
}

.price {
    font-weight: 800;
    font-size: .95rem;
}

.price-old {
    font-size: .72rem;
    color: var(--muted);
    text-decoration: line-through;
}

.rating {
    font-size: .72rem;
}

.rating .bi {
    color: var(--star);
    font-size: .68rem;
}

.rating span {
    color: var(--muted);
}

.add-cart {
    width: 100%;
    background: var(--purple);
    color: #fff;
    font-size: .78rem;
    font-weight: 600;
    border-radius: 10px;
    padding: 8px 0;
    margin-top: 10px;
}

.add-cart:active {
    background: var(--purple-dark);
}

.product-link {
    color: inherit;
    display: block;
}

.product-link h3 {
    font-size: .85rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-btns {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 8px;
}

.product-form {
    margin: 0;
    width: 100%;
}

.product-btns .add-cart,
.product-btns .buy-now {
    width: 100%;
    margin-top: 0;
    font-size: .72rem;
    padding: 7px 0;
}

.buy-now {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #fff;
    color: var(--purple);
    border: 2px solid var(--purple);
    font-weight: 700;
    border-radius: 10px;
    text-align: center;
}

.buy-now:hover {
    background: var(--purple-light);
    color: var(--purple-dark);
}

.buy-now-lg {
    font-size: .9rem;
    padding: 12px 16px;
}

.logo-link {
    text-decoration: none;
    color: inherit;
    display: inline-block;
    line-height: 0;
}

.site-logo {
    height: 56px;
    width: auto;
    max-width: min(200px, 58vw);
    display: block;
    object-fit: contain;
    object-position: left center;
}

.site-logo--footer {
    height: 48px;
    max-width: 170px;
    filter: brightness(1.05);
}

/* ---------- Inner pages ---------- */
.inner-page {
    padding-bottom: 92px;
}

.page-head {
    margin-bottom: 18px;
}

.page-head h1 {
    font-size: 1.35rem;
    font-weight: 800;
}

.page-sub {
    font-size: .85rem;
    color: var(--muted);
    margin-top: 6px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .85rem;
    font-weight: 600;
    color: var(--purple);
    margin-bottom: 10px;
}

.result-count {
    font-size: .82rem;
    color: var(--muted);
    font-weight: 600;
}

.empty-msg,
.empty-state {
    text-align: center;
    color: var(--muted);
    padding: 24px 12px;
}

.empty-state i {
    font-size: 2.5rem;
    color: #d1d5db;
    display: block;
    margin-bottom: 12px;
}

.product-detail {
    margin-bottom: 24px;
}

.product-detail-img {
    border-radius: var(--radius);
    overflow: hidden;
    background: #f9fafb;
    margin-bottom: 16px;
}

.product-detail-img img {
    width: 100%;
    max-height: 320px;
    object-fit: cover;
    display: block;
}

.detail-category {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--purple);
}

.product-detail-body h2 {
    font-size: 1.25rem;
    font-weight: 800;
    margin-top: 8px;
}

.detail-rating {
    margin: 8px 0;
}

.detail-price {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--purple-dark);
}

.detail-desc {
    font-size: .9rem;
    line-height: 1.55;
    color: #4b5563;
    margin: 12px 0 16px;
}

.detail-buy-form label {
    display: block;
    font-size: .78rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.detail-buy-form input[type="number"] {
    width: 80px;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    margin-bottom: 16px;
}

.detail-qty-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.detail-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.detail-form {
    width: 100%;
}

.cart-list {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
}

.cart-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px 0;
    border-bottom: 1px solid #f3f4f6;
}

.cart-item-img img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 12px;
}

.cart-item-info {
    flex: 1;
    min-width: 0;
}

.cart-item-info a {
    color: inherit;
}

.cart-item-price {
    display: block;
    font-weight: 700;
    margin: 4px 0 8px;
}

.cart-item-qty input {
    width: 64px;
    padding: 6px 8px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.cart-remove-form {
    margin: 0;
}

.cart-remove {
    border: none;
    background: transparent;
    color: #ef4444;
    font-size: 1.1rem;
    padding: 4px;
}

.cart-summary {
    background: #f9fafb;
    border-radius: var(--radius);
    padding: 16px;
    border: 1px solid #f3f4f6;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    font-size: .88rem;
    margin-bottom: 8px;
}

.cart-summary-row.total {
    font-size: 1rem;
    padding-top: 10px;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.cart-summary-row.muted {
    color: var(--muted);
}

.checkout-layout {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.checkout-order,
.checkout-form {
    background: #f9fafb;
    border-radius: var(--radius);
    padding: 16px;
    border: 1px solid #f3f4f6;
}

.checkout-order h2,
.checkout-form h2 {
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.checkout-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

.checkout-items li {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #e5e7eb;
    font-size: .85rem;
}

.checkout-items img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 8px;
}

.checkout-items span {
    display: block;
    color: var(--muted);
    font-size: .78rem;
}

.checkout-total {
    margin-top: 12px;
    font-size: .95rem;
}

.checkout-form label {
    display: block;
    font-size: .78rem;
    font-weight: 700;
    margin-bottom: 14px;
}

.checkout-form input,
.checkout-form textarea,
.checkout-form select {
    display: block;
    width: 100%;
    margin-top: 6px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    font-size: .9rem;
}

.order-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.order-card {
    border: 1px solid #f3f4f6;
    border-radius: 16px;
    padding: 14px 16px;
    background: #fff;
}

.order-card header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-status {
    font-size: .72rem;
    font-weight: 700;
    color: var(--purple);
    background: var(--purple-light);
    padding: 4px 10px;
    border-radius: 999px;
}

.order-meta {
    font-size: .78rem;
    color: var(--muted);
    margin: 8px 0;
}

.order-card ul {
    margin: 0;
    padding-left: 18px;
    font-size: .85rem;
}

.alert-banner {
    padding: 12px 14px;
    border-radius: 12px;
    font-size: .85rem;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.db-alert {
    padding: 12px 14px;
    border-radius: 12px;
    font-size: .85rem;
    margin-bottom: 16px;
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fcd34d;
}

.db-alert a {
    color: #7c3aed;
    font-weight: 700;
}

.db-alert--error {
    background: #fef2f2;
    color: #b91c1c;
    border-color: #fecaca;
}

.alert-banner.success {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.account-card {
    text-align: center;
    padding: 24px;
    background: linear-gradient(135deg, #f5f3ff, #ede9fe);
    border-radius: var(--radius);
    margin-bottom: 20px;
}

.account-avatar {
    width: 64px;
    height: 64px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: var(--purple);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
}

.account-menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 20px;
}

.account-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 12px;
    border-radius: 12px;
    color: var(--text);
    font-weight: 600;
    font-size: .9rem;
}

.account-menu a:hover {
    background: #f9fafb;
}

.menu-badge {
    margin-left: auto;
    background: var(--purple-light);
    color: var(--purple);
    font-size: .72rem;
    padding: 2px 8px;
    border-radius: 999px;
}

.product-scroll--grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    overflow: visible;
}

.category-row--page {
    margin-bottom: 20px;
}

@media (min-width: 992px) {
    .product-detail {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 32px;
        align-items: start;
    }

    .checkout-layout {
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }

    .product-scroll--grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }

    .detail-actions {
        flex-direction: row;
    }

    .detail-actions .add-cart,
    .detail-actions .buy-now-lg {
        flex: 1;
    }
}

/* ---------- Share card ---------- */
.share-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(120deg, #f5f3ff, #ede9fe);
    border-radius: var(--radius);
    padding: 12px 14px;
    margin-bottom: 22px;
}

.share-icon {
    font-size: 1.5rem;
    color: var(--purple);
    line-height: 1;
}

.share-text {
    flex: 1;
}

.share-text h2 {
    font-size: .98rem;
    font-weight: 800;
    color: #111;
}

.share-text p {
    font-size: .74rem;
    color: var(--muted);
}

.share-img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 14px;
    flex-shrink: 0;
}

.share-arrow {
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--purple);
    color: #fff;
    font-size: .95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ---------- Trust ---------- */
.trust-row {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #f3f4f6;
    padding-top: 20px;
    margin-bottom: 16px;
}

.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    text-align: center;
    flex: 1;
}

.trust-item .bi {
    font-size: 1.5rem;
    color: var(--purple);
    margin-bottom: 4px;
}

.trust-title {
    font-size: .7rem;
    font-weight: 700;
    white-space: nowrap;
}

.trust-sub {
    font-size: .66rem;
    color: var(--muted);
    white-space: nowrap;
}

/* ---------- Trending tags ---------- */
.trending-section {
    margin-bottom: 18px;
}

.tag-row {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
}

.tag-row::-webkit-scrollbar {
    display: none;
}

.tag-chip {
    flex: 0 0 auto;
    padding: 8px 14px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #374151;
    font-size: .78rem;
    font-weight: 600;
    transition: background .2s, color .2s;
}

.tag-chip:hover {
    background: var(--purple-light);
    color: var(--purple-dark);
}

.flash-section .product-badge {
    background: var(--red);
}

/* ---------- Category banners ---------- */
.cat-banners-section {
    margin-bottom: 22px;
}

.cat-banner-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.cat-banner {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    min-height: 120px;
    display: flex;
    align-items: stretch;
    color: inherit;
    transition: transform .2s;
}

.cat-banner-text {
    position: relative;
    z-index: 2;
    padding: 14px;
    flex: 1;
}

.cat-banner-text .bi {
    font-size: 1.2rem;
    margin-bottom: 6px;
    display: block;
}

.cat-banner-text h3 {
    font-size: .95rem;
    font-weight: 800;
}

.cat-banner-text p {
    font-size: .7rem;
    opacity: .85;
    margin-top: 4px;
}

.cat-banner img {
    position: absolute;
    right: -8px;
    bottom: -8px;
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 12px;
    transform: rotate(-8deg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
}

.cat-banner--violet {
    background: linear-gradient(135deg, #ede9fe, #ddd6fe);
}

.cat-banner--blue {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
}

.cat-banner--rose {
    background: linear-gradient(135deg, #fce7f3, #fbcfe8);
}

.cat-banner--green {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
}

/* ---------- How it works ---------- */
.steps-section {
    margin-bottom: 22px;
}

.steps-row {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scrollbar-width: none;
}

.steps-row::-webkit-scrollbar {
    display: none;
}

.step-card {
    flex: 0 0 160px;
    background: #fff;
    border: 1px solid #f3f4f6;
    border-radius: 16px;
    padding: 16px 14px;
    text-align: center;
    position: relative;
}

.step-num {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--purple);
    color: #fff;
    font-size: .68rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-icon {
    font-size: 1.75rem;
    color: var(--purple);
    margin: 8px 0 10px;
    display: block;
}

.step-card h3 {
    font-size: .82rem;
    font-weight: 800;
}

.step-card p {
    font-size: .72rem;
    color: var(--muted);
    margin-top: 6px;
}

/* ---------- Payment ---------- */
.pay-section {
    text-align: center;
    margin-bottom: 22px;
    padding: 16px;
    background: #f9fafb;
    border-radius: var(--radius);
    border: 1px solid #f3f4f6;
}

.pay-label {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--muted);
    margin-bottom: 12px;
}

.pay-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.pay-badge {
    font-size: .72rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #e5e7eb;
    color: #374151;
}

/* ---------- Blog cards ---------- */
.blog-section {
    margin-bottom: 22px;
}

.blog-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scrollbar-width: none;
}

.blog-scroll::-webkit-scrollbar {
    display: none;
}

.blog-card {
    flex: 0 0 220px;
    padding: 16px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid #f3f4f6;
    color: inherit;
    transition: box-shadow .2s;
}

.blog-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--purple-light);
    color: var(--purple);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    margin-bottom: 12px;
}

.blog-card h3 {
    font-size: .88rem;
    font-weight: 800;
    line-height: 1.35;
}

.blog-card p {
    font-size: .72rem;
    color: var(--muted);
    margin-top: 8px;
}

/* ---------- App CTA ---------- */
.app-cta {
    display: flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(120deg, #1e1040, #5b21b6);
    border-radius: var(--radius);
    padding: 20px 18px;
    margin-bottom: 22px;
    color: #fff;
}

.app-cta-text h2 {
    font-size: 1.1rem;
    font-weight: 800;
}

.app-cta-text p {
    font-size: .8rem;
    color: #ddd6fe;
    margin-top: 8px;
    line-height: 1.45;
}

.app-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.store-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .25);
    color: #fff;
    font-size: .75rem;
    font-weight: 700;
}

.store-badge:hover {
    background: rgba(255, 255, 255, .2);
    color: #fff;
}

.app-cta-visual {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #c4b5fd;
}

/* ---------- Promo tiles ---------- */
.promo-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 22px;
}

.promo-tile {
    display: flex;
    align-items: center;
    gap: 14px;
    border-radius: var(--radius);
    padding: 16px 18px;
    color: inherit;
    transition: transform .2s, box-shadow .2s;
}

.promo-tile h2 {
    font-size: 1rem;
    font-weight: 800;
}

.promo-tile p {
    font-size: .78rem;
    color: var(--muted);
    margin-top: 4px;
}

.promo-tile-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.promo-tile-arrow {
    margin-left: auto;
    font-size: 1.1rem;
    opacity: .7;
}

.promo-tile--pink {
    background: linear-gradient(135deg, #fdf2f8, #fce7f3);
    border: 1px solid #fbcfe8;
}

.promo-tile--pink .promo-tile-icon {
    background: #fff;
    color: var(--red);
}

.promo-tile--purple {
    background: linear-gradient(135deg, #f5f3ff, #ede9fe);
    border: 1px solid #ddd6fe;
}

.promo-tile--purple .promo-tile-icon {
    background: #fff;
    color: var(--purple);
}

/* ---------- Brands ---------- */
.brands-section {
    margin-bottom: 22px;
}

.brand-row {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
}

.brand-row::-webkit-scrollbar {
    display: none;
}

.brand-pill {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px 10px 10px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #fff;
    font-size: .82rem;
    font-weight: 600;
    color: var(--text);
    transition: border-color .2s, background .2s;
}

.brand-pill span {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--purple-light);
    color: var(--purple);
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .9rem;
}

/* ---------- Reviews ---------- */
.reviews-section {
    margin-bottom: 22px;
}

.reviews-summary {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .78rem;
    color: var(--muted);
}

.reviews-summary .bi {
    color: var(--star);
    font-size: .7rem;
}

.review-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: none;
    margin-top: 14px;
}

.review-scroll::-webkit-scrollbar {
    display: none;
}

.review-card {
    flex: 0 0 260px;
    margin: 0;
    padding: 16px;
    border-radius: 16px;
    background: #f9fafb;
    border: 1px solid #f3f4f6;
}

.review-stars {
    margin-bottom: 8px;
}

.review-card p {
    font-size: .85rem;
    line-height: 1.45;
    color: #374151;
}

.review-card footer {
    margin-top: 12px;
    font-size: .78rem;
    font-weight: 700;
    color: var(--purple-dark);
}

/* ---------- Newsletter ---------- */
.newsletter-card {
    background: linear-gradient(120deg, var(--purple-deep) 0%, var(--purple) 100%);
    border-radius: var(--radius);
    padding: 20px 18px;
    margin-bottom: 22px;
    color: #fff;
}

.newsletter-text h2 {
    font-size: 1.1rem;
    font-weight: 800;
}

.newsletter-text p {
    font-size: .82rem;
    color: #ddd6fe;
    margin-top: 8px;
    line-height: 1.45;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
}

.newsletter-form input {
    border: none;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: .9rem;
    outline: none;
}

.newsletter-btn {
    background: #fff;
    color: var(--purple);
    font-weight: 700;
    border-radius: 12px;
    padding: 12px 20px;
}

.newsletter-btn:hover {
    background: var(--purple-light);
}

/* ---------- Footer ---------- */
.site-footer {
    background: #111827;
    color: #e5e7eb;
    border-radius: var(--radius);
    padding: 24px 18px 20px;
    margin-bottom: 12px;
}

.footer-brand .logo-q {
    font-size: 1.75rem;
}

.footer-brand .logo-text {
    font-size: 1.35rem;
    color: #fff;
}

.footer-brand p {
    font-size: .78rem;
    color: #9ca3af;
    margin-top: 10px;
    max-width: 280px;
    line-height: 1.45;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 22px;
}

.footer-links h3 {
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
    margin-bottom: 10px;
}

.footer-links a {
    display: block;
    font-size: .78rem;
    color: #9ca3af;
    margin-bottom: 8px;
}

.footer-links a:hover {
    color: #c4b5fd;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #1f2937;
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 0;
}

.footer-copy {
    margin: 22px 0 0;
    padding-top: 16px;
    border-top: 1px solid #374151;
    font-size: .72rem;
    color: #6b7280;
    text-align: center;
}

/* ---------- Bottom nav ---------- */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    background: #fff;
    border-top: 1px solid #f3f4f6;
    display: flex;
    justify-content: space-around;
    padding: 10px 6px 14px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, .06);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    color: #6b7280;
    font-size: .68rem;
    position: relative;
    padding: 0 8px;
}

.nav-item .bi {
    font-size: 1.3rem;
}

.nav-item.active {
    color: var(--purple);
    font-weight: 700;
}

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -12px;
    width: 24px;
    height: 3px;
    border-radius: 3px;
    background: var(--purple);
}

.nav-badge {
    top: -6px;
    right: 2px;
}

/* ---------- Responsive: tablet & desktop ---------- */
@media (min-width: 576px) {
    .phone-wrap {
        max-width: 540px;
        padding: 16px 20px 96px;
    }

    .bottom-nav {
        max-width: 540px;
    }

    .hero-img {
        height: 220px;
    }

    .hero-text h1 {
        font-size: 1.5rem;
    }

    .promo-grid {
        grid-template-columns: 1fr 1fr;
    }

    .newsletter-form {
        flex-direction: row;
        align-items: stretch;
    }

    .newsletter-form input {
        flex: 1;
    }

    .newsletter-btn {
        flex-shrink: 0;
    }
}

@media (min-width: 768px) {
    .phone-wrap {
        max-width: 720px;
        padding: 20px 28px 100px;
        border-radius: 0 0 12px 12px;
    }

    .bottom-nav {
        max-width: 720px;
        padding: 12px 12px 16px;
    }

    .site-top-row {
        padding-bottom: 6px;
    }

    .search-bar {
        padding: 14px 18px;
    }

    .hero-card {
        min-height: 260px;
    }

    .hero-text {
        max-width: 48%;
        top: 32px;
        left: 28px;
    }

    .hero-text h1 {
        font-size: 1.75rem;
    }

    .hero-text p {
        font-size: .9rem;
    }

    .hero-img {
        height: 260px;
    }

    .cat-circle {
        width: 62px;
        height: 62px;
        font-size: 1.55rem;
    }

    .cat-label {
        font-size: .8rem;
    }

    .deals-card {
        padding: 16px 20px;
    }

    .deals-text h2 {
        font-size: 1.15rem;
    }

    .section-head h2 {
        font-size: 1.25rem;
    }

    .product-card {
        flex: 0 0 190px;
    }

    .product-card img {
        height: 125px;
    }

    .share-text h2 {
        font-size: 1.1rem;
    }

    .share-img {
        width: 80px;
        height: 80px;
    }

    .trust-title {
        font-size: .78rem;
    }

    .trust-sub {
        font-size: .72rem;
    }
}

@media (min-width: 992px) {
    body {
        background: linear-gradient(180deg, #ddd6fe 0%, #e5e7eb 120px, #e5e7eb 100%);
    }

    .phone-wrap {
        max-width: 1140px;
        padding: 24px 40px 108px;
        box-shadow: 0 8px 48px rgba(46, 16, 101, .12);
    }

    .bottom-nav {
        max-width: 1140px;
        border-radius: 12px 12px 0 0;
    }

    .site-top {
        display: grid;
        grid-template-columns: auto minmax(280px, 1fr) auto;
        grid-template-rows: auto auto;
        gap: 14px 28px;
        align-items: center;
        margin-bottom: 24px;
        padding: 8px 0 22px;
        border-bottom: 1px solid #eef2ff;
        position: sticky;
        top: 0;
        z-index: 100;
        background: var(--bg);
    }

    .site-top-row {
        display: contents;
    }

    .logo {
        grid-column: 1;
        grid-row: 1;
    }

    .search-bar {
        grid-column: 2;
        grid-row: 1;
        margin-bottom: 0;
        padding: 14px 20px;
        background: #f9fafb;
        border: 1px solid #e5e7eb;
        border-radius: 999px;
        transition: border-color .2s, box-shadow .2s;
    }

    .search-bar:focus-within {
        border-color: #c4b5fd;
        box-shadow: 0 0 0 3px rgba(124, 58, 237, .12);
        background: #fff;
    }

    .header-actions {
        grid-column: 3;
        grid-row: 1;
        gap: 6px;
        padding-top: 0;
    }

    .header-actions .icon-btn {
        width: 44px;
        height: 44px;
        border-radius: 50%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 1.25rem;
        transition: background .2s, color .2s;
    }

    .header-actions .icon-btn:hover {
        background: var(--purple-light);
        color: var(--purple);
    }

    .location-bar {
        grid-column: 1 / -1;
        grid-row: 2;
        margin-bottom: 0;
        max-width: 420px;
        cursor: pointer;
        transition: background .2s;
    }

    .location-bar:hover {
        background: #ddd6fe;
    }

    .logo-q {
        font-size: 2.75rem;
    }

    .site-logo {
        height: 64px;
        max-width: 220px;
    }

    .logo-text {
        font-size: 2.15rem;
    }

    .category-row {
        justify-content: center;
        gap: 24px;
    }

    .category-item {
        flex: 0 0 auto;
    }

    .category-item:hover .cat-circle {
        background: #ddd6fe;
    }

    .hero-card {
        min-height: 320px;
    }

    .hero-text {
        max-width: 42%;
        top: 48px;
        left: 48px;
    }

    .hero-text h1 {
        font-size: 2.25rem;
    }

    .hero-text p {
        font-size: 1rem;
        margin: 14px 0 22px;
    }

    .hero-btn {
        padding: 10px 22px;
        font-size: .9rem;
    }

    .hero-btn:hover {
        background: var(--purple-light);
        color: var(--purple-dark);
    }

    .hero-img {
        height: 320px;
        object-position: 70% center;
        mask-image: linear-gradient(to right, transparent 0, #000 35%);
        -webkit-mask-image: linear-gradient(to right, transparent 0, #000 35%);
    }

    .deals-card {
        padding: 18px 24px;
    }

    .product-scroll {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
        overflow-x: visible;
        padding-bottom: 0;
    }

    .product-card {
        flex: none;
        width: auto;
        padding: 16px;
        transition: box-shadow .2s, transform .2s;
    }

    .product-card:hover {
        box-shadow: 0 8px 24px rgba(124, 58, 237, .12);
        transform: translateY(-2px);
    }

    .product-card img {
        height: 160px;
    }

    .product-card h3 {
        font-size: .92rem;
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .add-cart:hover {
        background: var(--purple-dark);
    }

    .share-card {
        padding: 20px 28px;
    }

    .share-img {
        width: 96px;
        height: 96px;
    }

    .share-arrow:hover {
        background: var(--purple-dark);
    }

    .trust-row {
        gap: 16px;
        padding-top: 28px;
        margin-bottom: 24px;
    }

    .trust-item .bi {
        font-size: 1.75rem;
    }

    .nav-item:hover {
        color: var(--purple);
    }

    .icon-btn:hover {
        color: var(--purple);
    }

    .promo-tile:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 24px rgba(124, 58, 237, .1);
    }

    .brand-row {
        flex-wrap: wrap;
        overflow: visible;
        justify-content: center;
    }

    .brand-pill:hover {
        border-color: #c4b5fd;
        background: var(--purple-light);
    }

    .review-scroll {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        overflow: visible;
    }

    .review-card {
        flex: none;
        width: auto;
    }

    .newsletter-card {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 32px;
        padding: 28px 32px;
    }

    .newsletter-text {
        flex: 1;
    }

    .newsletter-form {
        flex: 1;
        max-width: 420px;
        margin-top: 0;
    }

    .site-footer {
        display: grid;
        grid-template-columns: 1fr 2fr;
        gap: 32px;
        padding: 32px 28px 24px;
    }

    .footer-links {
        margin-top: 0;
    }

    .footer-copy {
        grid-column: 1 / -1;
    }

    .cat-banner-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .cat-banner {
        min-height: 140px;
    }

    .cat-banner img {
        width: 88px;
        height: 88px;
    }

    .cat-banner:hover {
        transform: translateY(-3px);
    }

    .steps-row {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        overflow: visible;
    }

    .step-card {
        flex: none;
        width: auto;
    }

    .blog-scroll {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        overflow: visible;
    }

    .blog-card {
        flex: none;
        width: auto;
    }

    .blog-card:hover {
        box-shadow: 0 8px 24px rgba(124, 58, 237, .1);
    }

    .tag-row {
        flex-wrap: wrap;
        overflow: visible;
        justify-content: center;
    }

    .app-cta {
        padding: 28px 32px;
    }

    .app-cta-visual {
        width: 96px;
        height: 96px;
        font-size: 2.5rem;
    }
}

@media (min-width: 1200px) {
    .phone-wrap,
    .bottom-nav {
        max-width: 1280px;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 400px) {
    .deals-timer {
        font-size: .68rem;
        padding: 5px 8px;
    }

    .trust-title,
    .trust-sub {
        font-size: .62rem;
    }
}
