/* ======================================================
   Sarekam CSS — spotlight.css
   Urban Company format "In the spotlight" carousel
   ====================================================== */

.spotlight-section {
    width: 100%;
    margin: 40px 0 50px 0;
    box-sizing: border-box;
    position: relative;
    clear: both;
    display: block;
}

.spotlight-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    padding: 0 4px;
}

.spotlight-heading {
    font-size: 1.55rem;
    font-weight: 800;
    color: #111827;
    letter-spacing: -0.4px;
    margin: 0;
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
}

.spotlight-carousel-wrapper {
    position: relative;
    width: 100%;
}

.spotlight-track {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    padding: 6px 2px 10px 2px;
    touch-action: pan-x pan-y;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    overscroll-behavior-y: auto;
    overscroll-behavior-x: contain;
}

.spotlight-track::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.spotlight-card {
    flex: 0 0 310px;
    min-width: 290px;
    max-width: 350px;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    scroll-snap-align: start;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
    user-select: none;
    -webkit-user-drag: none;
    touch-action: pan-x pan-y;
    background: #f8f9fa;
}

.spotlight-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.spotlight-card-img {
    width: 100%;
    height: 100%;
    aspect-ratio: 600 / 328;
    object-fit: cover;
    display: block;
    border-radius: 16px;
    pointer-events: none;
}

/* Desktop Arrow Buttons */
.spotlight-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.14);
    color: #1f2937;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    outline: none;
}

.spotlight-arrow:hover {
    background: #f9fafb;
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 5px 16px rgba(0, 0, 0, 0.18);
}

.spotlight-arrow:active {
    transform: translateY(-50%) scale(0.96);
}

.spotlight-arrow-prev {
    left: 8px;
}

.spotlight-arrow-next {
    right: 8px;
}

/* Mobile Pill Pagination Indicator */
.spotlight-indicator-container {
    display: none;
    justify-content: center;
    align-items: center;
    margin-top: 14px;
}

.spotlight-indicator-track {
    width: 60px;
    height: 4px;
    background: #e2e8f0;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.spotlight-indicator-thumb {
    width: 24px;
    height: 4px;
    background: #334155;
    border-radius: 4px;
    position: absolute;
    left: 0;
    top: 0;
    transition: transform 0.1s ease-out;
}

/* Responsive Styles */
@media (max-width: 800px) {
    .spotlight-section {
        margin: 25px 0 35px 0;
    }

    .spotlight-heading {
        font-size: 1.25rem;
        margin-bottom: 12px;
        padding-left: 4px;
    }

    .spotlight-arrow {
        display: none !important; /* Hide arrows on touch devices */
    }

    .spotlight-track {
        gap: 14px;
        padding: 4px 16px 8px 16px;
        scroll-padding: 0 16px;
        scroll-snap-type: x mandatory;
        touch-action: pan-x pan-y;
        overscroll-behavior-y: auto;
        overscroll-behavior-x: contain;
    }

    .spotlight-card {
        flex: 0 0 85vw;
        max-width: 350px;
        scroll-snap-align: center;
        border-radius: 16px;
        touch-action: pan-x pan-y;
    }

    .spotlight-indicator-container {
        display: flex;
    }
}

/* ======================================================
   Home S3 Featured Cards Section (below Key Services)
   ====================================================== */
.home-s3-cards-section {
    width: 100%;
    margin: 20px 0 50px 0;
    box-sizing: border-box;
}

.home-s3-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 24px;
}

.home-s3-item-wrapper {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.home-s3-category-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #111827;
    letter-spacing: -0.3px;
    margin: 0 0 12px 2px;
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.3;
}

.home-s3-item-wrapper .s3-product-card {
    height: 100%;
    box-sizing: border-box;
    margin: 0;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    cursor: pointer;
    background: #fff;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, border-color 0.2s ease;
}

.home-s3-item-wrapper .s3-product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border-color: #d1d5db;
}

.home-s3-item-wrapper .s3-product-info {
    flex: 1;
    min-width: 0;
    padding-right: 15px;
}

.home-s3-item-wrapper .s3-product-title {
    font-size: 1.02rem;
    font-weight: 800;
    color: #111827;
    margin: 0 0 6px 0;
    line-height: 1.35;
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
}

.home-s3-item-wrapper .s3-product-desc {
    font-size: 0.82rem;
    color: #6b7280;
    margin: 0 0 14px 0;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-s3-item-wrapper .s3-product-price {
    font-size: 1.15rem;
    font-weight: 800;
    color: #111827;
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
}

.home-s3-item-wrapper .s3-product-action-col {
    width: 105px;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}

.home-s3-item-wrapper .s3-product-img {
    width: 105px;
    height: 105px;
    border-radius: 12px;
    overflow: hidden;
    background: #f3f4f6;
}

.home-s3-item-wrapper .s3-product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-s3-item-wrapper .s3-add-btn {
    background: transparent;
    border: none;
    color: #1ea050;
    padding: 6px 0;
    font-weight: 800;
    font-size: 0.85rem;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.2s;
}

/* Mobile Responsiveness (Image 1 & Image 2) */
@media (max-width: 768px) {
    .home-s3-cards-section {
        margin: 15px 0 35px 0;
    }

    .home-s3-cards-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .home-s3-category-title {
        font-size: 1.22rem;
        margin-bottom: 10px;
        padding-left: 2px;
    }

    .home-s3-item-wrapper .s3-product-card {
        padding: 14px;
        border-radius: 12px;
    }

    .home-s3-item-wrapper .s3-product-title {
        font-size: 0.95rem;
    }

    .home-s3-item-wrapper .s3-product-action-col {
        width: 95px;
    }

    .home-s3-item-wrapper .s3-product-img {
        width: 95px;
        height: 95px;
    }
}
