:root {
    /* Primary colors */
    --green-primary: #16a34a;      /* Headline green */
    --purple-primary: #6d4cc2;     /* Gift card purple */
    --black-primary: #111111;
    --text-primary: #1f2937;
    --text-muted: #6b7280;

    /* Backgrounds */
    --bg-body: #ffffff;
    --bg-light: #f9fafb;
    --bg-pill: #f3f4f6;

    /* Borders */
    --border-light: #e5e7eb;

    /* Buttons */
    --btn-dark: #0f0f0f;
    --btn-dark-hover: #000000;
}

html, body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--black-primary);
}

p {
    color: var(--text-muted);
    font-size: 15px;
}

.btn {
    border-radius: 999px;
    padding: 10px 22px;
    font-weight: 500;
    font-size: 14px;
}

.btn-dark {
    background-color: var(--btn-dark);
    border-color: var(--btn-dark);
}

.btn-dark:hover {
    background-color: var(--btn-dark-hover);
}

.btn-outline-dark {
    border-color: var(--border-light);
    color: var(--black-primary);
}

.btn-outline-dark:hover {
    background-color: var(--bg-pill);
}

.text-green {
    color: var(--green-primary);
}

.text-purple {
    color: var(--purple-primary);
}

.badge-soft {
    background-color: var(--bg-pill);
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 500;
}

/* Navbar */
.navbar {
    font-size: 14px;
}

.navbar-brand img {
    display: block;
}

/* Search box */
.search-box {
    position: relative;
    max-width: 420px;
}

.search-box input {
    border-radius: 999px;
    padding: 12px 18px;
    border: 1px solid var(--border-light);
    font-size: 14px;
    background-color: #fff;
}

.search-box input::placeholder {
    color: #9ca3af;
}

.search-box input:focus {
    border-color: #d1d5db;
    box-shadow: none;
}

/* Nav links */
.nav-link {
    color: var(--black-primary) !important;
}

.nav-link:hover {
    opacity: 0.75;
}

/* Login button exact feel */
.navbar .btn-dark {
    padding: 10px 20px;
    font-size: 14px;
}


.hero-section {
    position: relative;
}

.hero-carousel {
    border-radius: 28px;
    overflow: hidden;
}

.hero-slide {
    min-height: 420px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    padding: 60px;
}

/* Dark overlay for readability */
.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    /*background: rgba(255, 255, 255, 0.0);*/
}

/* Content */
.hero-content {
    position: relative;
    max-width: 560px;
}

.hero-content h1 {
    font-size: 44px;
    line-height: 1.15;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-slide {
        min-height: 150px;
        padding: 30px;
    }

    .hero-content h1 {
        font-size: 28px;
    }
}


/* Trust badges */
.trust-wrapper {
    display: flex;
    align-items: center;
    gap: 24px;
    background: var(--bg-light);
    padding: 14px 20px;
    border-radius: 999px;
    overflow-x: auto;
    scrollbar-width: none;
}

.trust-wrapper::-webkit-scrollbar {
    display: none;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.trust-icon {
    font-size: 16px;
}

/* Sticky wrapper */
/* .category-sticky {
    position: sticky;
    top: 56px;
    z-index: 10;
    background: #ffffff;
    padding: 12px 0;
} */

/* Outer rounded box */
.category-wrapper {
    background: #f7f7f8;
    border-radius: 16px;
    padding: 6px;
}

/* Inner scroll container */
.category-scroll {
    display: flex;
    align-items: center;
    gap: 4px;
    overflow-x: auto;
    padding: 8px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    scrollbar-width: none;
}

.category-scroll-dialog {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
        overflow: visible;
        border: none;
        padding: 0;
    }

.category-scroll::-webkit-scrollbar {
    display: none;
}

/* Item */
.category-item {
    width: 78px;
    flex-shrink: 0;
    text-align: center;
    text-decoration: none;
    padding: 4px 0;
    transition: transform .2s ease;
}

.category-item:hover {
    transform: scale(1.05);
}

/* Icon */
.category-icon {
    width: 24px;
    height: 24px;
    margin: 0 auto 6px;
    color: #6b7280;
}

.category-icon svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
}

/* Text */
.category-item p {
    font-size: 12px;
    line-height: 1.2;
    margin: 0;
    color: #6b7280;

    display: -webkit-box;
    -webkit-line-clamp: 2;      /* allow 2 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: center;
}


/* Divider after Browse */
.category-divider {
    width: 1px;
    height: 32px;
    background: #e5e7eb;
    margin: 0 4px;
}


@media (max-width: 576px) {

    .category-sticky {
        position: static;
        padding: 12px 0;
    }

    .category-wrapper {
        background: transparent;
        padding: 0;
    }

    .category-scroll {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
        overflow: visible;
        border: none;
        padding: 0;
    }

    .category-item {
        width: 100%;
         min-height: 72px;
    }

    .category-divider {
        display: none;
    }
}


/* Full card */
.brand-card-v2 {
    text-decoration: none;
    display: block;
    height: 100%;
}

/* White rounded container (THIS WAS MISSING) */
.brand-card-inner {
    background: #fff;
    border-radius: 18px;
    padding: 12px;
    height: 100%;
    position: relative;
    transition: transform .2s ease;
}

/* Lift on hover */
.brand-card-v2:hover .brand-card-inner {
    transform: translateY(-3px);
}

/* Image */
.brand-image-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 312 / 348;
    border-radius: 16px;
    overflow: hidden;
}

.brand-image-wrap img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Text block */
.brand-info {
    padding: 8px 4px 4px;
}

/* Text styles */
.brand-name {
    font-size: 14px;
    font-weight: 600;
    color: #111;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.brand-category {
    font-size: 12px;
    color: #6b7280;
    margin: 0;
}

/* Discount */
.brand-discount {
    display: flex;
    align-items: baseline;
    gap: 2px;
    margin-top: 4px;
}

.discount-value {
    font-size: 16px;
    font-weight: 600;
    color: #16a34a;
}

.discount-text {
    font-size: 13px;
    font-weight: 600;
    color: #16a34a;
}

/* Arrow */
.brand-arrow {
    position: absolute;
    bottom: 10px;
    right: 10px;
    opacity: 0;
    transition: opacity .2s ease;
    color: #111;
}

.brand-arrow path {
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.brand-card-v2:hover .brand-arrow {
    opacity: 1;
}


/* Footer */
.site-footer {
    background: #fff;
    padding: 64px 0 32px;
    font-size: 14px;
    color: #6b7280;
}

.footer-desc {
    max-width: 320px;
    line-height: 1.6;
}

/* App buttons */
.footer-apps img {
    height: 40px;
    margin-right: 10px;
    cursor: pointer;
}

/* Headings */
.site-footer h6 {
    font-size: 14px;
    font-weight: 600;
    color: #111;
    margin-bottom: 12px;
}

/* Links */
.site-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer ul li {
    margin-bottom: 8px;
}

.site-footer ul a {
    text-decoration: none;
    color: #6b7280;
    transition: color .2s ease;
}

.site-footer ul a:hover {
    color: #111;
}

/* Divider */
.footer-divider {
    margin: 40px 0 24px;
    border-color: #e5e7eb;
}

/* Bottom bar */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-social a {
    margin-left: 16px;
    text-decoration: none;
    color: #6b7280;
}

.footer-social a:hover {
    color: #111;
}


.gift-preview {
    background: linear-gradient(135deg, #0b2239, #123a5f);
}
.value-btn {
    border: 1px solid #e5e7eb;
    padding: 8px 14px;
    border-radius: 10px;
    background: #fff;
    font-size: 14px;
}
.value-btn.active {
    border-color: #22c55e;
    background: #ecfdf5;
    color: #15803d;
}

.trust-box {
    background: #fff7ed;
    border: 1px solid #fde68a;
}


.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #111;
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}
