/* ===== SHOP / PRODUCTS PAGE ONLY ===== */

.shop-header-banner {
    background: linear-gradient(135deg, var(--bg-alt) 0%, var(--primary-light) 100%);
    padding: 60px 0 50px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    min-height: 560px;
    display: flex;
    align-items: center;
}

.shop-header-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.shop-header-overlay {
    position: absolute;
    inset: 0;
    background: rgba(45, 25, 18, 0.55);
    z-index: 1;
}

.shop-header-banner .container {
    position: relative;
    z-index: 2;
}

.product-hero h1 {
    font-family: "Playfair Display", serif;
    font-size: clamp(3rem, 7vw, 5.5rem);
    line-height: 1.05;
    margin-bottom: 24px;
    color: #fff;
    font-weight: 700;
}

.product-hero p {
    max-width: 650px;
    margin: 0 auto 32px;
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
    opacity: 0.9;
}

/* --- Hero enhancements --- */

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    padding: 7px 18px;
    border-radius: var(--radius-full, 40px);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    margin-bottom: 18px;
}

.hero-eyebrow i {
    color: var(--accent, #e8935a);
}

.hero-stats-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 26px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #fff;
}

.hero-stat strong {
    font-family: "Playfair Display", serif;
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.2;
}

.hero-stat span {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

.hero-stat-divider {
    width: 1px;
    height: 34px;
    background: rgba(255, 255, 255, 0.25);
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    animation: heroBounce 2s ease-in-out infinite;
    transition: var(--transition);
}

.hero-scroll-indicator:hover {
    background: rgba(255, 255, 255, 0.3);
}

@keyframes heroBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-8px); }
}

.shop-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 32px;
    align-items: start;
}

/* --- Sidebar Filters --- */

.sidebar-filter {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    position: sticky;
    top: 90px;
}

.filter-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.filter-header-row h3 {
    font-size: 1.05rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.reset-filters-btn {
    font-size: 0.78rem;
    color: var(--accent);
    font-weight: 700;
    background: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.reset-filters-btn:hover {
    text-decoration: underline;
}

.filter-group {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.filter-group:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.filter-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.category-filter-list {
    list-style: none;
}

.category-filter-list li {
    margin-bottom: 8px;
}

.category-filter-btn {
    width: 100%;
    text-align: left;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.category-filter-btn:hover,
.category-filter-btn.active {
    background: var(--accent-light);
    color: var(--accent);
    font-weight: 600;
}

.stock-checkbox-label {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 0.9rem;
    cursor: pointer;
    color: var(--text-muted);
    font-weight: 500;
}

.stock-checkbox-label input {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
    cursor: pointer;
}

.price-slider-wrap {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.price-range-values {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
}

.price-slider {
    width: 100%;
    accent-color: var(--primary);
}

/* Mobile filter accordion toggle button (hidden on desktop) */
.mobile-filter-toggle {
    display: none;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
    cursor: pointer;
}

.mobile-filter-toggle i:last-child {
    transition: transform 0.25s ease;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.mobile-filter-toggle.open i:last-child {
    transform: rotate(180deg);
}

/* --- Shop Controls (search + sort bar) --- */

.shop-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
    background: var(--bg-card);
    padding: 16px 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.shop-controls-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.result-count {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
    white-space: nowrap;
}

.search-box-wrap {
    position: relative;
    flex-grow: 1;
    max-width: 320px;
}

.search-box-wrap input {
    width: 100%;
    padding: 8px 14px 8px 36px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
    background: var(--bg-alt);
}

.search-box-wrap i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
}

.sort-select {
    padding: 8px 14px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
    background: var(--bg-alt);
    color: var(--text-dark);
    font-size: 0.9rem;
    cursor: pointer;
}

/* --- Products Grid & Cards --- */

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 28px;
}

.product-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    overflow: hidden;
    position: relative;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--accent);
    color: #ffffff;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
}

.wishlist-toggle-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.9);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    z-index: 2;
    transition: var(--transition);
}

.wishlist-toggle-btn.active,
.wishlist-toggle-btn:hover {
    color: var(--danger);
    background: #ffffff;
}

.product-img-wrapper {
    position: relative;
    padding-top: 75%;
    overflow: hidden;
    background: var(--bg-alt);
}

.product-img-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-img-wrapper img {
    transform: scale(1.06);
}

.quick-view-overlay {
    position: absolute;
    inset: 0;
    background: rgba(44, 24, 16, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.product-card:hover .quick-view-overlay {
    opacity: 1;
}

.quick-view-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transform: translateY(10px);
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.product-card:hover .quick-view-btn {
    transform: translateY(0);
}

.quick-view-btn:hover {
    background: var(--primary);
    color: #fff;
}

.product-info {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-category {
    font-size: 0.78rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.product-title {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.82rem;
    color: var(--gold-star);
    margin-bottom: 12px;
}

.product-rating span {
    color: var(--text-muted);
    margin-left: 4px;
}

.product-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 10px;
}

.product-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
}

.product-price-old {
    font-size: 0.85rem;
    color: var(--text-light);
    text-decoration: line-through;
    margin-left: 6px;
    font-weight: 500;
}

.stock-tag {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    letter-spacing: 0.3px;
}

.stock-tag.in {
    background: var(--success-bg);
    color: var(--success);
}

.stock-tag.low {
    background: #fff3e0;
    color: #e65100;
}

.stock-tag.out {
    background: var(--danger-bg);
    color: var(--danger);
}

/* --- Pagination --- */

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.page-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    background: var(--bg-card);
    transition: var(--transition);
}

.page-btn.active,
.page-btn:hover {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

/* --- Categories grid (used elsewhere, kept for reuse) --- */

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 20px;
}

.category-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px 10px;
    text-align: center;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.category-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow-sm);
}

.category-card i {
    font-size: 2rem;
    color: var(--accent);
}

.category-card span {
    font-weight: 600;
    font-size: 0.9rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 30px;
}

/* --- Promo section --- */

.promo-banner {
    background: var(--bg-alt);
    padding: 60px 0;
    margin: 40px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.promo-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 40px;
}

.badge-promo {
    display: inline-block;
    background: var(--soft-pink);
    color: var(--primary);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.promo-text h2 {
    font-size: 2.2rem;
    margin-bottom: 14px;
}

.promo-text p {
    color: var(--text-muted);
    margin-bottom: 24px;
}

.promo-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    object-fit: cover;
}


.user-profile-box {
    text-align: center;
    padding: 20px 0;
}

.avatar-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 16px;
}

/* ===== SHOP RESPONSIVE ===== */

@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 22px;
    }
    .shop-layout {
        grid-template-columns: 230px 1fr;
        gap: 24px;
    }
    .hero-stats-row {
        gap: 20px;
    }
}

@media (max-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .promo-container {
        grid-template-columns: 1fr;
    }
    .shop-layout {
        grid-template-columns: 1fr;
    }
    .sidebar-filter {
        position: static;
    }

    .mobile-filter-toggle {
        display: flex;
    }

    .sidebar-filter {
        display: none;
        margin-bottom: 20px;
    }
    .sidebar-filter.mobile-open {
        display: block;
        animation: filterSlideDown 0.25s ease;
    }
    @keyframes filterSlideDown {
        from { opacity: 0; transform: translateY(-8px); }
        to { opacity: 1; transform: translateY(0); }
    }

    .hero-stat strong {
        font-size: 1.35rem;
    }
}

@media (max-width: 768px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .category-card {
        padding: 18px 10px;
    }
    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }
    .product-info {
        padding: 14px;
    }
    .product-title {
        font-size: 0.95rem;
    }
    .product-price {
        font-size: 1.05rem;
    }
    .product-rating {
        font-size: 0.75rem;
    }
    .wishlist-toggle-btn {
        width: 32px;
        height: 32px;
        top: 8px;
        right: 8px;
    }
    .product-badge {
        top: 8px;
        left: 8px;
        font-size: 0.68rem;
    }
    .quick-view-overlay {
        display: none;
    }
    .promo-banner {
        margin: 25px 0;
        padding: 35px 22px;
    }
    .shop-header-banner {
        min-height: 440px;
        padding: 45px 0 40px;
    }
    .product-hero h1 {
        font-size: clamp(2.7rem, 11vw, 4.5rem);
    }
    .product-hero p {
        font-size: 0.95rem;
    }
    .shop-controls {
        flex-direction: column;
        align-items: stretch;
    }
    .search-box-wrap {
        max-width: none;
        width: 100%;
    }
    .sort-select {
        width: 100%;
    }
    .sidebar-filter {
        padding: 18px;
    }

    .hero-eyebrow {
        font-size: 0.72rem;
        padding: 6px 14px;
        margin-bottom: 14px;
    }
    .hero-stats-row {
        gap: 16px;
        margin-top: 6px;
    }
    .hero-stat strong {
        font-size: 1.2rem;
    }
    .hero-stat span {
        font-size: 0.68rem;
    }
    .hero-stat-divider {
        height: 26px;
    }
    .hero-scroll-indicator {
        width: 32px;
        height: 32px;
        bottom: 16px;
    }
    .shop-controls-right {
        width: 100%;
        justify-content: space-between;
    }
    .result-count {
        display: none;
    }
    .sort-select {
        flex: 1;
    }
}

@media (max-width: 576px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .product-img-wrapper {
        padding-top: 68%;
    }
    .product-info {
        padding: 16px;
    }
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .shop-header-banner {
        min-height: 400px;
    }
    .hero-eyebrow {
        display: none;
    }
    .hero-stats-row {
        gap: 12px;
    }
    .hero-stat strong {
        font-size: 1.05rem;
    }
    .hero-stat span {
        font-size: 0.62rem;
    }
    .mobile-filter-toggle {
        font-size: 0.85rem;
        padding: 12px 14px;
    }
    .sort-select {
        font-size: 0.82rem;
        padding: 8px 10px;
    }
}

@media (max-width: 400px) {
    .categories-grid {
        gap: 8px;
    }
    .category-card {
        padding: 15px 6px;
    }
    .category-card i {
        font-size: 1.6rem;
    }
    .category-card span {
        font-size: 0.78rem;
    }
    .product-info {
        padding: 13px;
    }
    .product-title {
        font-size: 0.9rem;
    }
    .product-price {
        font-size: 1rem;
    }

    .hero-stat-divider {
        display: none;
    }
    .hero-stats-row {
        gap: 18px;
    }
}