/* =========================================================
   HERO
========================================================= */
.hero {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(7, 19, 13, .98) 0%, rgba(15, 33, 20, .92) 42%, rgba(15, 33, 20, .25) 75%),
        url("https://images.unsplash.com/photo-1606744824163-985d376605aa?auto=format&fit=crop&w=1800&q=85") center/cover;
    color: #fff;
    min-height: 440px;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 590px;
    padding: 3.5rem 0 3rem 3.5rem;
    position: relative;
    z-index: 2;
}

@media(max-width:991.98px) {
    .hero {
        min-height: 420px;
    }

    .hero-content {
        padding: 2.5rem 1.75rem;
        max-width: 100%;
    }
}

@media(max-width:575.98px) {
    .hero {
        min-height: auto;
        border-radius: 14px;
    }

    .hero-content {
        padding: 2rem 1.25rem;
    }

    .hero h1 {
        font-size: 2rem !important;
    }
}

.hero-kicker {
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .16em;
    color: var(--secondary-300);
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.hero h1 {
    font-size: clamp(2rem, 4vw, 4rem);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -.02em;
    margin-bottom: 1rem;
}

.hero h1 span {
    color: var(--secondary-400);
}

.hero p {
    font-size: 1rem;
    color: rgba(255, 255, 255, .72);
    max-width: 480px;
    margin-bottom: 1.5rem;
}

.btn-brand {
    background: var(--secondary);
    color: #fff;
    border: 0;
    font-weight: 700;
    border-radius: 9px;
    padding: .75rem 1.2rem;
    transition: all var(--t);
    display: inline-flex;
    align-items: center;
    gap: .5rem;
}

.btn-brand:hover {
    background: var(--secondary-hover);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -10px rgba(232, 93, 4, .6);
}

.btn-dark-brand {
    background: var(--primary);
    color: #fff;
    border: 0;
    border-radius: 9px;
    font-weight: 700;
    padding: .75rem 1.2rem;
    transition: all var(--t);
}

.btn-dark-brand:hover {
    background: var(--primary-hover);
    color: #fff;
    transform: translateY(-2px);
}

.trust-row {
    border-top: 1px solid rgba(255, 255, 255, .2);
    margin-top: 1.75rem;
    padding-top: 1.25rem;
}

.trust-row .item {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
}

.trust-row .item i {
    font-size: 1.35rem;
    color: var(--secondary-400);
    flex-shrink: 0;
    margin-top: 2px;
}

.trust-row .item strong {
    display: block;
    font-size: .82rem;
    font-weight: 700;
    color: #fff;
}

.trust-row .item small {
    font-size: .72rem;
    color: rgba(255, 255, 255, .65);
    line-height: 1.3;
}

/* =========================================================
   SECTIONS
========================================================= */
.section-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: .5rem;
}

@media(max-width:575.98px) {
    .section-title {
        font-size: 1.1rem;
    }
}

.section-link {
    color: var(--secondary);
    font-weight: 700;
    font-size: .82rem;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    transition: gap var(--t-fast);
}

.section-link:hover {
    gap: .6rem;
    color: var(--secondary-hover);
}

/* =========================================================
   CATEGORIES
========================================================= */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    gap: .75rem;
}

@media(max-width:1199.98px) {
    .cat-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media(max-width:767.98px) {
    .cat-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media(max-width:575.98px) {
    .cat-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform var(--t-fast);
    padding: .35rem 0;
    border: 0;
    background: transparent;
}

.category-item:hover {
    transform: translateY(-3px);
}

.category-item.active .category-card {
    border-color: var(--secondary);
    color: var(--secondary);
    background: var(--secondary-50);
}

.category-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 78px;
    height: 78px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--primary);
    box-shadow: var(--shadow-sm);
    transition: all var(--t);
}

@media(max-width:991.98px) {
    .category-card {
        width: 68px;
        height: 68px;
        font-size: 1.35rem;
    }
}

@media(max-width:575.98px) {
    .category-card {
        width: 58px;
        height: 58px;
        font-size: 1.15rem;
    }
}

.category-item:hover .category-card {
    border-color: var(--secondary);
    color: var(--secondary);
    box-shadow: var(--shadow-md);
}

.category-name {
    margin-top: .55rem;
    font-size: .75rem;
    font-weight: 700;
    text-align: center;
    color: var(--text);
    line-height: 1.2;
}

@media(max-width:575.98px) {
    .category-name {
        font-size: .68rem;
    }
}

/* =========================================================
   TOOLBAR (filter + sort)
========================================================= */
.toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem;
    padding: 1rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 1.25rem;
    box-shadow: var(--shadow-sm);
}

.toolbar-group {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .8rem;
    color: var(--text-secondary);
}

.toolbar select,
.toolbar input {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: .5rem .75rem;
    font-size: .82rem;
    color: var(--text);
    background: #fff;
    outline: 0;
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
}

.toolbar select:focus,
.toolbar input:focus {
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px rgba(63, 118, 80, .1);
}

.toolbar .price-inputs input {
    width: 90px;
}

.toolbar .count {
    margin-left: auto;
    font-size: .78rem;
    color: var(--muted);
}

@media(max-width:767.98px) {
    .toolbar {
        padding: .75rem;
    }

    .toolbar .count {
        margin-left: 0;
        width: 100%;
    }

    .toolbar .price-inputs input {
        width: 78px;
    }
}

/* =========================================================
   PRODUCT CARDS
========================================================= */
.product-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    overflow: hidden;
    height: 100%;
    box-shadow: var(--shadow-sm);
    transition: transform var(--t), box-shadow var(--t), border-color var(--t);
    display: flex;
    flex-direction: column;
    position: relative;
    animation: cardIn .35s ease both;
}

@keyframes cardIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

.product-media {
    position: relative;
    background: #f2eee9;
    aspect-ratio: 1/1;
    overflow: hidden;
    cursor: pointer;
}

.product-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .8s cubic-bezier(.2, .7, .3, 1);
}

.product-card:hover .product-media img {
    transform: scale(1.07);
}

.discount {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--secondary);
    color: #fff;
    font-size: .7rem;
    font-weight: 800;
    border-radius: 6px;
    padding: .3rem .5rem;
    z-index: 2;
}

.wishlist {
    position: absolute;
    top: 9px;
    right: 9px;
    background: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: var(--muted);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    border: 0;
    transition: all var(--t-fast);
    z-index: 2;
}

.wishlist:hover {
    color: var(--danger);
    transform: scale(1.1);
}

.wishlist.active {
    color: var(--danger);
}

.product-body {
    padding: .9rem 1rem 1rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-title {
    font-size: .85rem;
    font-weight: 700;
    min-height: 40px;
    line-height: 1.35;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.stars {
    color: var(--rating);
    font-size: .72rem;
}

.product-foot {
    margin-top: auto;
    padding-top: .6rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .5rem;
}

.price {
    color: var(--primary);
    font-weight: 800;
    font-size: 1rem;
}

.old-price {
    color: #999;
    text-decoration: line-through;
    font-size: .72rem;
    margin-left: .25rem;
}

.cart-btn {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 9px;
    background: var(--primary);
    color: #fff;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: all var(--t-fast);
    flex-shrink: 0;
}

.cart-btn:hover {
    background: var(--secondary);
    transform: translateY(-2px);
}

/* Skeleton */
.skeleton-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    overflow: hidden;
    height: 100%;
}

.skeleton {
    background: linear-gradient(90deg, #f0edea 0%, #e6e0da 50%, #f0edea 100%);
    background-size: 200% 100%;
    animation: shimmer 1.4s linear infinite;
    border-radius: 8px;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.skeleton-media {
    aspect-ratio: 1/1;
}

.skeleton-line {
    height: 12px;
    margin: .5rem 1rem;
}

.skeleton-line.short {
    width: 50%;
}

/* =========================================================
   LOAD MORE
========================================================= */
.load-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    padding: 2rem 0 1rem;
}

.load-btn {
    background: var(--primary);
    color: #fff;
    border: 0;
    border-radius: 999px;
    padding: .8rem 1.75rem;
    font-size: .85rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    cursor: pointer;
    transition: all var(--t);
    box-shadow: var(--shadow-sm);
}

.load-btn:hover:not(:disabled) {
    background: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -10px rgba(232, 93, 4, .5);
}

.load-btn:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.load-btn .spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, .3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .7s linear infinite;
    display: none;
}

.load-btn.loading .spinner {
    display: inline-block;
}

.load-btn.loading .load-label {
    opacity: .7;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.load-progress {
    font-size: .78rem;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: .6rem;
}

.load-progress .bar {
    width: 120px;
    height: 4px;
    background: var(--surface-muted);
    border-radius: 999px;
    overflow: hidden;
}

.load-progress .bar>span {
    display: block;
    height: 100%;
    background: var(--secondary);
    border-radius: 999px;
    width: 0%;
    transition: width .3s ease;
}

.end-msg {
    font-size: .82rem;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: .45rem;
}

.end-msg i {
    color: var(--success);
}

.no-products {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--muted);
}

.no-products i {
    font-size: 2.4rem;
    color: var(--border);
    margin-bottom: .75rem;
    display: block;
}

.no-products h5 {
    color: var(--text);
    font-weight: 700;
    margin-bottom: .35rem;
}

.no-products .btn {
    margin-top: .75rem;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--primary);
    padding: .6rem 1.2rem;
    border-radius: 999px;
    font-size: .82rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--t-fast);
}

.no-products .btn:hover {
    border-color: var(--primary);
}

/* =========================================================
   PROMO / REVIEWS / NEWSLETTER
========================================================= */
.promo-card {
    min-height: 145px;
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    padding: 1.5rem;
    background: var(--cream);
    transition: transform var(--t);
}

.promo-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.promo-card.green {
    background: linear-gradient(120deg, #DCE9DF, #EFF5EF);
}

.promo-card.orange {
    background: linear-gradient(120deg, #FFE8D5, #FFF6EF);
}

.promo-card.blue {
    background: linear-gradient(120deg, #E4EEF1, #F2F7F7);
}

.promo-card h3 {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -.01em;
}

.review-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.1rem;
    height: 100%;
    transition: all var(--t);
}

.review-card:hover {
    border-color: var(--secondary-100);
    box-shadow: var(--shadow-sm);
}

.avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: var(--shadow-sm);
}

.newsletter {
    background: var(--primary);
    border-radius: var(--radius);
    color: #fff;
    padding: 1.75rem 2rem;
    position: relative;
    overflow: hidden;
}

.newsletter::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(500px 300px at 95% 20%, rgba(232, 93, 4, .18), transparent 60%);
    pointer-events: none;
}

.newsletter>* {
    position: relative;
    z-index: 1;
}

.newsletter .form-control {
    border: 0;
    border-radius: 10px 0 0 10px;
    padding: .75rem 1rem;
    font-size: .85rem;
}

.newsletter .form-control:focus {
    box-shadow: 0 0 0 3px rgba(232, 93, 4, .3);
}

.newsletter .btn {
    border-radius: 0 10px 10px 0;
    background: var(--secondary);
    color: #fff;
    font-weight: 700;
    padding: .75rem 1.4rem;
    border: 0;
    transition: all var(--t);
}

.newsletter .btn:hover {
    background: var(--secondary-hover);
    color: #fff;
}

.newsletter .form-msg {
    font-size: .78rem;
    margin-top: .6rem;
    display: none;
}

.newsletter .form-msg.show {
    display: block;
}

.newsletter .form-msg.success {
    color: #A7F3D0;
}

.newsletter .form-msg.error {
    color: #FCA5A5;
}

.service-strip {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem .75rem;
}

.service-item {
    display: flex;
    gap: .85rem;
    align-items: center;
    justify-content: center;
}

@media(max-width:575.98px) {
    .service-item {
        justify-content: flex-start;
        padding-left: .5rem;
    }
}

.service-icon {
    color: var(--primary);
    font-size: 1.55rem;
    flex-shrink: 0;
}

.service-item strong {
    font-size: .82rem;
    color: var(--text);
}

.service-item span {
    font-size: .72rem;
    color: var(--muted);
    display: block;
}