
/* =====================================================
   SKTUTUL HOMEPAGE - PREMIUM CSS
   PART 1 OF 2
===================================================== */

:root {
    --home-primary: #0f172a;
    --home-secondary: #2563eb;
    --home-accent: #f59e0b;
    --home-danger: #ef4444;
    --home-bg: #f8fafc;
    --home-white: #ffffff;
    --home-text: #1e293b;
    --home-muted: #64748b;
    --home-border: #e2e8f0;
    --home-radius: 14px;
    --home-shadow: 0 8px 30px rgba(15, 23, 42, .07);
}

/* GLOBAL */

.home-page {
    width: 100%;
    overflow: hidden;
    background: var(--home-bg);
    color: var(--home-text);
    font-family: 'Inter', 'Hind Siliguri', sans-serif;
}

.home-container {
    width: min(1280px, calc(100% - 40px));
    margin: auto;
}

.home-section {
    padding: 65px 0;
}

.home-section-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.home-section-heading h2 {
    margin: 8px 0 0;
    font-size: clamp(23px, 3vw, 34px);
    font-weight: 800;
    color: var(--home-primary);
}

.section-eyebrow {
    display: inline-block;
    color: var(--home-secondary);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
}

.view-all-link {
    color: var(--home-secondary);
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    white-space: nowrap;
}

.view-all-link i {
    margin-left: 6px;
}

/* BUTTON */

.home-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 14px 25px;
    border-radius: 7px;
    background: var(--home-secondary);
    color: white;
    font-weight: 700;
    text-decoration: none;
    transition: .3s ease;
}

.home-btn:hover {
    background: var(--home-primary);
    color: white;
    transform: translateY(-3px);
}

/* HERO SLIDER */

.home-hero-section {
    padding: 20px 0 35px;
}

.hero-slider {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    background: #111827;
    height: clamp(300px, 43vw, 560px);
}

.hero-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity .7s ease;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.hero-slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(15, 23, 42, .85),
        rgba(15, 23, 42, .35),
        transparent
    );
}

.hero-content {
    position: absolute;
    z-index: 3;
    top: 50%;
    left: 7%;
    transform: translateY(-50%);
    max-width: 550px;
    color: white;
}

.hero-subtitle {
    display: block;
    margin-bottom: 15px;
    color: #fbbf24;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
}

.hero-content h1 {
    margin: 0 0 25px;
    color: white;
    font-size: clamp(28px, 5vw, 55px);
    line-height: 1.2;
    font-weight: 800;
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,.9);
    color: var(--home-primary);
    cursor: pointer;
    transform: translateY(-50%);
    transition: .3s;
}

.hero-arrow:hover {
    background: var(--home-secondary);
    color: white;
}

.hero-prev {
    left: 20px;
}

.hero-next {
    right: 20px;
}

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

.hero-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: none;
    border-radius: 20px;
    background: rgba(255,255,255,.6);
    cursor: pointer;
    transition: .3s;
}

.hero-dot.active {
    width: 28px;
    background: white;
}

/* PROMOTIONAL BANNERS */

.home-promo-section {
    padding: 15px 0 45px;
}

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

.promo-card {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: var(--home-radius);
    background: #e2e8f0;
    aspect-ratio: 1.65 / 1;
}

.promo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s;
}

.promo-card:hover img {
    transform: scale(1.07);
}

.promo-title {
    position: absolute;
    bottom: 15px;
    left: 15px;
    padding: 9px 14px;
    border-radius: 6px;
    background: white;
    color: var(--home-primary);
    font-weight: 700;
}

/* CATEGORY SECTION */

.category-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 18px;
}

.category-card {
    padding: 15px 10px;
    border: 1px solid var(--home-border);
    border-radius: var(--home-radius);
    background: white;
    text-align: center;
    text-decoration: none;
    transition: .3s;
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--home-shadow);
    border-color: var(--home-secondary);
}

.category-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 50%;
    background: #f1f5f9;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .4s;
}

.category-card:hover img {
    transform: scale(1.1);
}

.category-card h3 {
    margin: 13px 0 0;
    font-size: 14px;
    font-weight: 700;
    color: var(--home-primary);
}

/* FLASH SALE */

.flash-sale-section {
    padding-top: 35px;
}

.flash-sale-box {
    padding: 30px;
    border-radius: 18px;
    background: linear-gradient(135deg, #991b1b, #ef4444);
    color: white;
}

.flash-sale-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
    margin-bottom: 30px;
}

.flash-sale-heading h2 {
    margin: 8px 0;
    color: white;
    font-size: clamp(24px, 3vw, 36px);
}

.flash-sale-heading p {
    margin: 0;
    color: rgba(255,255,255,.85);
}

.flash-sale-heading .section-eyebrow {
    color: #fde68a;
}

.flash-countdown {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.flash-countdown div {
    min-width: 62px;
    padding: 12px 8px;
    border-radius: 9px;
    background: rgba(255,255,255,.15);
    text-align: center;
}

.flash-countdown strong {
    display: block;
    font-size: 24px;
}

.flash-countdown span {
    font-size: 11px;
}

/* =====================================================
   SKTUTUL HOMEPAGE - PREMIUM CSS
   PART 2 OF 2
===================================================== */

/* PRODUCT SECTIONS */

.product-section {
    padding: 55px 0;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.product-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--home-border);
    border-radius: var(--home-radius);
    background: var(--home-white);
    transition: .3s ease;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--home-shadow);
}

.product-image-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: #f1f5f9;
}

.product-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
    transition: transform .4s ease;
}

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

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    padding: 5px 10px;
    border-radius: 5px;
    background: var(--home-danger);
    color: white;
    font-size: 11px;
    font-weight: 700;
}

.product-content {
    padding: 16px;
}

.product-category {
    margin-bottom: 7px;
    color: var(--home-muted);
    font-size: 12px;
}

.product-name {
    display: -webkit-box;
    overflow: hidden;
    min-height: 42px;
    margin: 0 0 12px;
    color: var(--home-primary);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.5;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-price {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 14px;
}

.product-price .current-price {
    color: var(--home-secondary);
    font-size: 19px;
    font-weight: 800;
}

.product-price .old-price {
    color: #94a3b8;
    font-size: 13px;
    text-decoration: line-through;
}

.product-actions {
    display: flex;
    gap: 8px;
}

.product-cart-btn {
    flex: 1;
    padding: 11px 8px;
    border: none;
    border-radius: 6px;
    background: var(--home-primary);
    color: white;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: .3s;
}

.product-cart-btn:hover {
    background: var(--home-secondary);
}

.product-view-btn {
    display: flex;
    width: 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--home-border);
    border-radius: 6px;
    color: var(--home-primary);
    text-decoration: none;
}

.product-view-btn:hover {
    background: var(--home-secondary);
    color: white;
}

/* PRODUCT SECTION BACKGROUND */

.featured-section {
    background: white;
}

.latest-section {
    background: #f8fafc;
}

.new-arrivals-section {
    background: white;
}

.best-selling-section {
    background: #f1f5f9;
}

/* BRANDS */

.brands-section {
    background: white;
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 18px;
}

.brand-card {
    display: flex;
    min-height: 110px;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border: 1px solid var(--home-border);
    border-radius: 10px;
    background: white;
    transition: .3s;
}

.brand-card:hover {
    border-color: var(--home-secondary);
    box-shadow: var(--home-shadow);
    transform: translateY(-4px);
}

.brand-card img {
    max-width: 100%;
    max-height: 65px;
    object-fit: contain;
}

/* TESTIMONIALS */

.testimonial-section {
    background: #f8fafc;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.testimonial-card {
    padding: 28px;
    border: 1px solid var(--home-border);
    border-radius: var(--home-radius);
    background: white;
    box-shadow: 0 4px 15px rgba(0,0,0,.03);
}

.testimonial-stars {
    margin-bottom: 15px;
    color: #f59e0b;
    letter-spacing: 3px;
}

.testimonial-text {
    margin-bottom: 22px;
    color: var(--home-muted);
    font-size: 14px;
    line-height: 1.9;
}

.testimonial-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-user img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-user h4 {
    margin: 0;
    color: var(--home-primary);
    font-size: 14px;
}

.testimonial-user span {
    color: var(--home-muted);
    font-size: 12px;
}

/* FAQ */

.faq-section {
    background: white;
}

.faq-list {
    max-width: 850px;
    margin: auto;
}

.faq-item {
    margin-bottom: 13px;
    overflow: hidden;
    border: 1px solid var(--home-border);
    border-radius: 10px;
    background: white;
}

.faq-question {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding: 19px 22px;
    border: none;
    background: white;
    color: var(--home-primary);
    text-align: left;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.faq-question i {
    transition: transform .3s;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    display: none;
    padding: 0 22px 20px;
    color: var(--home-muted);
    font-size: 14px;
    line-height: 1.9;
}

.faq-item.active .faq-answer {
    display: block;
}

/* NEWSLETTER */

.newsletter-section {
    padding: 65px 0;
    background: var(--home-primary);
}

.newsletter-box {
    max-width: 750px;
    margin: auto;
    text-align: center;
    color: white;
}

.newsletter-box h2 {
    margin-bottom: 12px;
    color: white;
    font-size: clamp(25px, 4vw, 36px);
    font-weight: 800;
}

.newsletter-box p {
    margin-bottom: 25px;
    color: #cbd5e1;
    line-height: 1.8;
}

.newsletter-form {
    display: flex;
    max-width: 550px;
    gap: 10px;
    margin: auto;
}

.newsletter-form input {
    flex: 1;
    min-width: 0;
    padding: 15px 18px;
    border: none;
    border-radius: 7px;
    outline: none;
    font-size: 14px;
}

.newsletter-form button {
    padding: 15px 25px;
    border: none;
    border-radius: 7px;
    background: var(--home-accent);
    color: var(--home-primary);
    font-weight: 800;
    cursor: pointer;
}

.newsletter-form button:hover {
    background: white;
}

/* EMPTY STATE */

.home-empty {
    grid-column: 1 / -1;
    padding: 35px 15px;
    border: 1px dashed var(--home-border);
    border-radius: 12px;
    color: var(--home-muted);
    text-align: center;
}

/* RESPONSIVE TABLET */

@media (max-width: 1024px) {

    .home-section {
        padding: 50px 0;
    }

    .product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
    }

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

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

    .promo-grid {
        gap: 12px;
    }

    .testimonial-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* RESPONSIVE MOBILE */

@media (max-width: 768px) {

    .home-container {
        width: calc(100% - 24px);
    }

    .home-section {
        padding: 38px 0;
    }

    .home-hero-section {
        padding: 12px 0 25px;
    }

    .hero-slider {
        height: 350px;
        border-radius: 10px;
    }

    .hero-content {
        left: 7%;
        right: 7%;
        max-width: 85%;
    }

    .hero-content h1 {
        font-size: 30px;
    }

    .hero-subtitle {
        font-size: 11px;
    }

    .hero-arrow {
        width: 34px;
        height: 34px;
    }

    .hero-prev {
        left: 8px;
    }

    .hero-next {
        right: 8px;
    }

    .home-section-heading {
        margin-bottom: 20px;
    }

    .home-section-heading h2 {
        font-size: 22px;
    }

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

    .promo-card {
        aspect-ratio: 2 / 1;
    }

    .category-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .category-card {
        padding: 10px 7px;
    }

    .category-card h3 {
        font-size: 12px;
    }

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .product-content {
        padding: 11px;
    }

    .product-name {
        font-size: 13px;
        min-height: 39px;
    }

    .product-price .current-price {
        font-size: 16px;
    }

    .product-cart-btn {
        font-size: 11px;
        padding: 10px 5px;
    }

    .brands-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .brand-card {
        min-height: 85px;
        padding: 12px;
    }

    .testimonial-grid {
        grid-template-columns: 1fr;
        gap: 13px;
    }

    .flash-sale-box {
        padding: 20px 14px;
    }

    .flash-sale-heading {
        flex-direction: column;
        align-items: flex-start;
    }

    .flash-countdown {
        width: 100%;
        justify-content: center;
    }

    .flash-countdown div {
        min-width: 55px;
    }

    .newsletter-section {
        padding: 45px 0;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form button {
        width: 100%;
    }
}

/* SMALL MOBILE */

@media (max-width: 380px) {

    .home-container {
        width: calc(100% - 18px);
    }

    .product-grid {
        gap: 8px;
    }

    .product-content {
        padding: 9px;
    }

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

    .product-price {
        gap: 5px;
    }

    .category-grid {
        gap: 8px;
    }

    .hero-content h1 {
        font-size: 25px;
    }

    .home-section-heading h2 {
        font-size: 19px;
    }
}

/* ACCESSIBILITY */

.home-page a:focus-visible,
.home-page button:focus-visible {
    outline: 3px solid var(--home-accent);
    outline-offset: 3px;
}

/* REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {

    .home-page *,
    .home-page *::before,
    .home-page *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
}
