/* --- Dosis Font Utility --- */
.font-dosis {
    font-family: 'Dosis', sans-serif !important;
}

/* Apply Dosis to entire home page content */
#heroCarousel,
#heroCarousel .carousel-caption,
.heading-title,
.hero-banner,
.stylish-chair-hero,
.reviews-section {
    font-family: 'Dosis', sans-serif;
}

.carousel-item {
    background-position: center;
    background-size: cover;
    height: 100vh;
    min-height: 600px
}

.carousel-caption {
    color: #000;
    position: absolute;
    text-align: left;
    top: 35%
}

.carousel-caption h5 {
    color: #666;
    font-size: 1rem
}

.carousel-caption h1 {
    font-size: 3rem;
    font-weight: 700
}

.carousel-caption p {
    color: #555;
    font-size: 1rem;
    max-width: 400px
}

.carousel-caption button {
    background: transparent;
    border: 1px solid #000;
    margin-top: 20px;
    padding: 10px 25px
}

.carousel-numbers {
    bottom: 20px;
    display: flex;
    gap: 20px;
    left: 50%;
    position: absolute;
    transform: translateX(-50%);
    z-index: 10
}

.carousel-numbers span {
    color: #000;
    cursor: pointer;
    font-size: 1.5rem;
    font-weight: 700;
    opacity: .6;
    transition: opacity 0.3s, transform .3s
}

.carousel-numbers span.active {
    opacity: 1;
    transform: scale(1.2)
}

.heading-title {
    color: #151515;
    font-size: 36px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    transition: background 0.3s, border 0.3s, border-radius 0.3s, box-shadow .3s
}

.tabs-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-bottom: 25px
}

.tab-title {
    background: #f5f5f5;
    border-radius: 8px;
    cursor: pointer;
    padding: 10px 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.tab-title::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 3px;
    background: #000;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab-title::after {
    content: '›';
    margin-left: 6px;
    opacity: 0;
    transform: translateX(-10px);
    display: inline-block;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 18px;
    font-weight: 700;
}

.tab-title:hover {
    background: #333;
    color: #fff;
    padding-right: 28px;
}

.tab-title:hover::after {
    opacity: 1;
    transform: translateX(0);
}

.tab-title.active {
    background: #333;
    color: #fff;
    padding-right: 28px;
}

.tab-title.active::before {
    width: 100%;
    background: #fff;
}

.tab-title.active::after {
    opacity: 1;
    transform: translateX(0);
}

.tabs-content .tab-content {
    display: none
}

.tabs-content .tab-content.active {
    display: block
}

.product-grid {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 10px;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 12px;
}

.product-item {
    flex: 0 0 22%;
    scroll-snap-align: start;
}

.product-item {
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    width: calc(25% - 15px);
    background: #fff;
    padding: 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
}

.product-item img {
    border-radius: 8px;
    object-fit: cover;
    width: 100%;
    height: 200px;
}

.product-item h4 {
    margin: 10px 0 6px 0;
    font-size: 1rem;
    color: #151515;
    font-weight: 700;
}

.product-item p {
    margin: 0 0 8px 0;
    color: #6c757d;
    font-weight: 600;
}

/* Product card hover lift and overlay CTA */
.product-item {
    transition: transform .3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow .3s ease;
}

.product-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

.product-media {
    position: relative;
    overflow: hidden;
}

.product-media::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.5) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.product-item:hover .product-media::after {
    opacity: 1;
}

.overlay-cta {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) translateX(-20px);
    background: rgba(255, 255, 255, 0.95);
    color: #000;
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.overlay-cta::after {
    content: '→';
    font-size: 18px;
    font-weight: 700;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
}

.product-item:hover .overlay-cta {
    opacity: 1;
    transform: translate(-50%, -50%) translateX(0);
}

.product-item:hover .overlay-cta::after {
    transform: translateX(4px);
}

.overlay-cta:hover {
    background: #000;
    color: #fff;
    transform: translate(-50%, -50%) translateX(0) scale(1.05);
}

.overlay-cta:hover::after {
    transform: translateX(6px);
}

.variant-badge {
    top: 8px;
    right: 8px;
    font-size: 0.7rem;
    padding: .25rem .4rem;
    z-index: 5;
}

/* Responsive columns: 4 columns desktop, 3 tablet, 2 mobile wide */
@media (max-width: 992px) {
    .product-item {
        width: calc(33.333% - 15px);
    }
}

@media (max-width: 768px) {
    .product-item {
        width: 70%;
    }
}

@media (max-width: 768px) {
    .product-grid {
        -webkit-overflow-scrolling: touch;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 10px
    }

    .product-item {
        flex: 0 0 auto;
        scroll-snap-align: start;
        width: 70%
    }

    .product-grid::-webkit-scrollbar {
        height: 6px
    }

    .product-grid::-webkit-scrollbar-thumb {
        background: #0000004d;
        border-radius: 3px
    }

    .tabs-content {
        overflow: hidden
    }
}

.hero-banner {
    align-items: center;
    display: flex;
    justify-content: center;
    min-height: 600px;
    position: relative
}

.hero-banner h1,
.hero-banner h2 {
    letter-spacing: 2px;
    text-transform: uppercase
}

.hero-banner .btn {
    font-weight: 600;
    padding: 10px 30px
}

.shop-now-btn {
    border-color: #000 !important;
    border-radius: 0;
    padding: 12px 30px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

.shop-now-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #000;
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.shop-now-btn::after {
    content: '→';
    margin-left: 8px;
    display: inline-block;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 18px;
    font-weight: 700;
    z-index: 0;
}

.shop-now-btn:hover::before {
    left: 0;
}

.shop-now-btn:hover::after {
    transform: translateX(6px);
}

.shop-now-btn:hover {
    color: #fff !important;
}

/* ==========================================
    MODERN CATEGORY SECTION
   ========================================== */

.category-section {
    background: #fff;
    position: relative;
}

/* Section Header */
.section-header {
    position: relative;
    z-index: 2;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: #151515;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.title-accent {
    color: #333;
}

.section-subtitle {
    font-size: 1rem;
    margin-bottom: 1rem;
    font-style: italic;
}

.title-divider {
    width: 60px;
    height: 2px;
    background: #000;
    border-radius: 1px;
}

/* Category Cards Grid */
.category-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 1;
}

.category-card {
    opacity: 0;
    transform: translateY(30px);
    animation: categoryFadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes categoryFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.category-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
}

/* Category Image Box */
.category-image-box {
    position: relative;
    margin-bottom: 16px;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
}

.category-image-wrapper {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.category-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease, filter 0.3s ease;
}

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 20px;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

/* Hover Effects */
.category-card:hover .category-image-box {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.category-card:hover .category-image {
    transform: scale(1.05);
}

.category-card:hover .category-overlay {
    opacity: 1;
}

.category-card:hover .category-icon {
    transform: scale(1);
}

/* Category Info */
.category-info {
    text-align: center;
}

.category-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #151515;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.category-card:hover .category-name {
    color: #000;
}

.category-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.product-count {
    display: inline-flex;
    align-items: center;
    background: #f5f5f5;
    color: #6c757d;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 16px;
    transition: all 0.3s ease;
}

.category-card:hover .product-count {
    background: #333;
    color: #fff;
}

/* Responsive */
@media (max-width: 992px) {
    .section-title {
        font-size: 28px;
        letter-spacing: 2px;
    }

    .category-cards-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 24px;
        letter-spacing: 1.5px;
    }

    .category-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .category-image-box {
        border-radius: 10px;
    }

    .category-name {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 20px;
        letter-spacing: 1px;
    }

    .category-cards-grid {
        gap: 16px;
    }

    .category-image-box {
        border-radius: 8px;
    }

    .category-name {
        font-size: 0.95rem;
    }

    .product-count {
        font-size: 0.75rem;
        padding: 3px 10px;
    }
}

.reviews-section .stars {
    font-size: 1.5rem;
    letter-spacing: 2px
}

.review-box {
    transition: transform .3s ease, box-shadow .3s ease
}

.review-box:hover {
    box-shadow: 0 8px 20px #0000001a;
    transform: scale(1.02)
}

#reviewCarousel .carousel-inner {
    display: block !important
}

#reviewCarousel .carousel-item {
    height: auto;
    min-height: 0;
    padding: 14px 0
}

#reviewCarousel .slide-content {
    align-items: center;
    display: flex;
    justify-content: center;
    width: 100%
}

#reviewCarousel .review-box {
    margin: 0 auto;
    max-width: 640px;
    transition: transform .28s ease, box-shadow .28s ease;
    width: 100%
}

#reviewCarousel .review-box:hover {
    box-shadow: 0 10px 30px #00000014;
    transform: translateY(-4px)
}

#reviewCarousel .stars {
    font-size: 1.25rem;
    letter-spacing: 2px
}

#reviewCarousel .carousel-control-prev,
#reviewCarousel .carousel-control-next {
    height: 44px;
    opacity: .65;
    top: 50%;
    transform: translateY(-50%);
    transition: opacity .18s ease;
    width: 44px
}

#reviewCarousel .carousel-control-prev-icon,
#reviewCarousel .carousel-control-next-icon {
    filter: invert(1)
}

#reviewCarousel .carousel-indicators [data-bs-target] {
    background-color: #ccc;
    border-radius: 50%;
    height: 10px;
    margin: 0 6px;
    width: 10px
}

#reviewCarousel .carousel-indicators .active {
    background-color: #333
}

@media (max-width: 576px) {
    #reviewCarousel .review-box {
        padding: 14px
    }

    #reviewCarousel .stars {
        font-size: 1.05rem
    }
}

.stylish-chair-img {
    aspect-ratio: 4 / 3;
    border-radius: 12px;
    height: auto;
    object-fit: cover;
    transition: transform .4s ease;
    width: 100%
}

.stylish-chair-img:hover {
    transform: scale(0.95)
}

/* ==========================================
   FEATURED PRODUCTS SECTION - MODERN MINIMAL
   ========================================== */

.featured-products {
    background: #fff;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

/* Product Card - Minimal Modern */
.product-card {
    display: block;
    text-decoration: none;
    color: inherit;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

/* Product Image */
.product-image {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f8f8 0%, #efefef 100%);
}

/* Product Info */
.product-info {
    padding: 18px 16px 20px;
    text-align: center;
}

/* Product Category */
.product-info .product-cat {
    font-size: 10px;
    text-transform: uppercase;
    color: #888;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
    display: block;
    font-weight: 500;
}

/* Product Title */
.product-info .product-title {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 10px;
    line-height: 1.4;
}

/* Product Price */
.product-info .product-price {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 600;
    color: #1a1a1a;
    font-size: 16px;
}

.product-info .old-price {
    color: #bbb;
    text-decoration: line-through;
    font-weight: 400;
    font-size: 14px;
}

.product-info .current-price {
    font-weight: 700;
    color: #1a1a1a;
    font-size: 17px;
}

.product-info .discount-badge {
    display: inline-block;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-image .no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
}

.product-image .no-image i {
    font-size: 48px;
    color: #ddd;
}

/* Desktop Hover Overlay */
.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    backdrop-filter: blur(2px);
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.view-text {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    padding: 12px 28px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 30px;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.product-card:hover .view-text {
    transform: translateY(0);
}

/* Mobile View Button - Always visible on touch devices */
.mobile-view-btn {
    display: none;
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: #000;
    font-size: 16px;
    transition: all 0.3s ease;
}

.mobile-view-btn i {
    transition: transform 0.3s ease;
}

/* Product Info */
.product-info {
    padding: 16px 4px;
    text-align: center;
}

.product-title {
    font-size: 15px;
    font-weight: 500;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.5;
    letter-spacing: 0.3px;
}

/* View All Link - Text with underline animation */
.view-all-link {
    display: inline-block;
    color: #000;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 4px;
}

.view-all-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    background: #000;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.view-all-link:hover::after {
    width: 100%;
}

.view-all-link:hover {
    color: #000;
}

/* ==========================================
   RESPONSIVE - Touch/Mobile Devices
   ========================================== */

@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .product-image {
        border-radius: 12px;
    }

    .product-info {
        padding: 12px 2px;
    }

    .product-title {
        font-size: 13px;
    }

    /* Hide desktop overlay on touch */
    .product-overlay {
        display: none;
    }

    /* Show mobile button on touch devices */
    .mobile-view-btn {
        display: flex;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .product-image {
        border-radius: 10px;
    }

    .mobile-view-btn {
        width: 36px;
        height: 36px;
        bottom: 10px;
        right: 10px;
        font-size: 14px;
    }

    .product-title {
        font-size: 12px;
    }

    .view-all-link {
        font-size: 13px;
    }
}

/* Touch device active states */
@media (hover: none) and (pointer: coarse) {
    .product-overlay {
        display: none;
    }

    .mobile-view-btn {
        display: flex;
    }

    .product-card:active .mobile-view-btn {
        background: #000;
        color: #fff;
    }

    .product-card:active .mobile-view-btn i {
        transform: translateX(3px);
    }
}