/* ============================================================
   HOMEPAGE COMPACT OVERRIDES
   Smart, modern, compact design for every homepage section
   (hero banner excluded). Loaded last via @push('styles')
   so it wins the cascade over style.css / blog-slider.css /
   review-section-fix.css / product-auto-slider.css etc.
   ============================================================ */

/* ------------------------------------------------------------
   Shared section header - compact
   ------------------------------------------------------------ */
.section-header {
    margin-bottom: 18px;
}

.section-header h2 {
    font-size: 22px;
    margin-bottom: 4px;
}

.section-header p {
    font-size: 13px;
}

.section-link {
    margin-top: 8px;
    font-size: 13px;
}

/* ------------------------------------------------------------
   CATEGORIES - smaller smart cards
   ------------------------------------------------------------ */
.categories-section {
    padding: 32px 0;
}

.categories-section .catalog-header {
    margin-bottom: 18px;
}

.categories-section .catalog-header-label {
    font-size: 0.72rem;
    margin-bottom: 6px;
    letter-spacing: 0.8px;
}

.categories-section .catalog-header h2 {
    font-size: 1.5rem;
}

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

.category-card.category-card-image {
    height: 270px;
    border-radius: 12px;
}

.category-card.category-card-image:hover {
    transform: translateY(-3px);
}

.category-name-overlay {
    padding-bottom: 16px;
    background: linear-gradient(to top, rgba(0,0,0,0.75), rgba(0,0,0,0.15), transparent);
}

.category-name-overlay h3 {
    font-size: 1.05rem;
    margin-bottom: 3px;
}

.category-name-overlay .collection-btn {
    font-size: 0.62rem;
    letter-spacing: 1px;
    padding-bottom: 3px;
    border-bottom-width: 1px;
}

.category-card-placeholder {
    font-size: 26px;
}

/* ------------------------------------------------------------
   SHOP BY SUBCATEGORY - circle row
   ------------------------------------------------------------ */
.subcategories-section {
    padding: 32px 0;
}

.subcategories-section .section-header {
    margin-bottom: 20px;
}

.subcategories-scroll {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 6px 4px 16px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--primary, #7d3cff) var(--gray-200, #e9ecef);
}

.subcategories-scroll::-webkit-scrollbar {
    height: 6px;
}

.subcategories-scroll::-webkit-scrollbar-track {
    background: var(--gray-200, #e9ecef);
    border-radius: 10px;
}

.subcategories-scroll::-webkit-scrollbar-thumb {
    background: var(--primary, #7d3cff);
    border-radius: 10px;
}

.subcategory-circle-card {
    flex: 0 0 calc((100% - 144px) / 10);
    min-width: 70px;
    max-width: 110px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    scroll-snap-align: start;
    text-decoration: none;
    color: inherit;
    transition: var(--transition, all 0.3s ease);
}

.subcategory-circle {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--gray-100, #f8f9fa);
    border: 2.5px solid var(--white, #ffffff);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition, all 0.3s ease);
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.subcategory-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.subcategory-circle i {
    font-size: 28px;
    color: var(--primary, #7d3cff);
}

.subcategory-name {
    font-size: 12.5px;
    font-weight: 500;
    color: var(--gray-700, #495057);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-width: 100%;
    min-height: 32px;
    transition: var(--transition, all 0.3s ease);
}

.subcategory-circle-card:hover .subcategory-circle {
    border-color: var(--primary, #7d3cff);
    transform: scale(1.06);
    box-shadow: 0 6px 20px rgba(125, 60, 255, 0.22);
}

.subcategory-circle-card:hover .subcategory-name {
    color: var(--primary, #7d3cff);
}

.subcategories-empty {
    text-align: center;
    padding: 24px;
    color: var(--gray-500, #adb5bd);
    background: var(--gray-100, #f8f9fa);
    border-radius: var(--radius, 10px);
}

/* ------------------------------------------------------------
   FEATURES STRIP - compact
   ------------------------------------------------------------ */
.features {
    padding: 16px 0;
    margin-top: -16px;
}

.features-grid {
    gap: 10px;
}

.feature-item {
    padding: 10px 12px;
    gap: 10px;
}

.feature-icon {
    width: 38px;
    height: 38px;
    font-size: 15px;
    border-radius: 10px;
    flex-shrink: 0;
}

.feature-content h4 {
    font-size: 13px;
    margin-bottom: 1px;
}

.feature-content p {
    font-size: 11.5px;
}

/* ------------------------------------------------------------
   PRODUCT SECTIONS (Featured / New / Bestsellers) - compact
   ------------------------------------------------------------ */
.products-section {
    padding: 32px 0;
}

.product-auto-slider-wrapper {
    margin-top: 14px;
}

.product-auto-slider {
    gap: 14px;
    padding: 6px 0;
}

/* Smaller slider cards */
.product-auto-slider .product-card {
    flex: 0 0 230px;
    min-width: 230px;
    max-width: 230px;
}

/* 4-zone card layout inside the home sliders:
   1) image  2) name (2-line slot)  3) price  4) bottom button */
.product-auto-slider .product-card {
    height: auto !important;
    min-height: 0;
    display: flex !important;
    flex-direction: column !important;
}

.product-auto-slider .product-card .product-image {
    flex: none !important;
    height: 170px !important;
    min-height: 170px !important;
    max-height: 170px !important;
    width: 100%;
    padding: 0 !important;
    overflow: hidden !important;
}

.product-auto-slider .product-card .product-image img,
.product-auto-slider .product-card .product-image video,
.product-auto-slider .product-card .product-image .no-image {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.product-auto-slider .product-card .product-info {
    flex: 1 1 auto !important;
    height: auto !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 10px 12px;
}

.product-auto-slider .product-card .product-category {
    display: none !important;
}

.product-auto-slider .product-card .product-title {
    font-size: 13.5px;
    min-height: 32px !important;
    max-height: 32px !important;
    margin-bottom: 4px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden !important;
}

.product-auto-slider .product-card .product-price {
    min-height: 20px;
    margin-bottom: 6px !important;
    font-size: 14px;
}

.product-auto-slider .product-card .btn-add-cart,
.product-auto-slider .product-card .btn-out-of-stock {
    margin-top: auto !important;
    margin-bottom: 0 !important;
    padding: 8px 10px;
    font-size: 12px;
}

/* Smaller slider arrows */
.product-slider-nav {
    width: 38px;
    height: 38px;
    font-size: 14px;
}

/* ------------------------------------------------------------
   COUPON SECTION - compact
   ------------------------------------------------------------ */
.coupon-section {
    padding: 28px 0;
}

.coupon-section .section-header {
    margin-bottom: 14px;
}

.coupon-section .section-header h2 {
    font-size: 20px;
}

.coupon-section .section-header p {
    font-size: 12.5px;
}

.coupon-slider-wrapper {
    margin-top: 12px;
}

.coupon-slider {
    gap: 14px;
    padding: 6px 0 14px;
}

.coupon-slider .coupon-card {
    flex: 0 0 230px;
    min-width: 230px;
    max-width: 230px;
    border-radius: 12px;
}

/* ------------------------------------------------------------
   BLOG SECTION - compact modern cards
   ------------------------------------------------------------ */
.blog-section-home {
    padding: 36px 0;
}

.blog-slider-wrapper {
    margin-top: 16px;
    min-height: 0;
    padding: 0; /* peeks go edge-to-edge */
}

/* Center-mode slides: active centered, neighbors peek 50% each side */
.blog-slide {
    min-width: 50%;
    width: 50%;
    padding: 0 8px;
    display: flex;
    opacity: 0.55;
    transform: scale(0.96);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.blog-slide.active {
    opacity: 1;
    transform: scale(1);
}

.blog-card-modern {
    height: auto;
    width: 100%;
    max-width: 100%;
    flex: 1;
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
}

.blog-card-modern:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(125, 60, 255, 0.16);
}

.blog-image-wrapper {
    height: 190px;
}

.blog-category-badge {
    top: 10px;
    left: 10px;
    padding: 4px 12px;
    font-size: 10.5px;
    letter-spacing: 0.6px;
    box-shadow: 0 3px 10px rgba(125, 60, 255, 0.35);
}

.blog-card-content {
    padding: 14px 16px;
}

.blog-meta {
    gap: 12px;
    margin-bottom: 6px;
    font-size: 10.5px;
}

.blog-title {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 6px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-excerpt {
    font-size: 12.5px;
    line-height: 1.55;
    margin-bottom: 10px;
    max-height: 39px;
}

.blog-footer {
    padding-top: 10px;
    border-top-width: 1px;
}

.blog-author {
    font-size: 12px;
    gap: 6px;
}

.blog-author i {
    font-size: 16px;
}

.blog-read-more {
    padding: 7px 16px;
    font-size: 10.5px;
    letter-spacing: 0.6px;
    gap: 6px;
}

.blog-nav {
    width: 38px;
    height: 38px;
    font-size: 14px;
}

.blog-prev {
    left: 8px;
}

.blog-next {
    right: 8px;
}

.blog-dots {
    gap: 8px;
    margin-top: 16px;
}

.blog-dot {
    width: 9px;
    height: 9px;
    border-width: 1.5px;
}

.blog-dot.active {
    width: 26px;
    border-radius: 5px;
}

/* ------------------------------------------------------------
   CTA / NEWSLETTER - compact
   ------------------------------------------------------------ */
.cta-banner {
    padding: 32px 0;
}

.cta-content h2 {
    font-size: 22px;
    margin-bottom: 6px;
}

.cta-content p {
    font-size: 13px;
    margin-bottom: 16px;
}

.newsletter-form {
    max-width: 400px;
    gap: 8px;
}

.newsletter-form input {
    border: 1.5px solid #ffffff;
    background: transparent;
    color: #ffffff;
    outline: none;
    transition: box-shadow 0.2s;
}

.newsletter-form input::placeholder {
    color: #ffffff;
    opacity: 0.85;
}

.newsletter-form input:focus {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25);
}

/* ------------------------------------------------------------
   WHY US - compact
   ------------------------------------------------------------ */
.why-us {
    padding: 32px 0;
}

.why-us-grid {
    gap: 12px;
}

.why-us-item {
    padding: 14px 10px;
}

.why-us-icon {
    width: 46px;
    height: 46px;
    font-size: 18px;
    margin-bottom: 10px;
}

.why-us-item h4 {
    font-size: 14px;
    margin-bottom: 4px;
}

.why-us-item p {
    font-size: 12px;
    line-height: 1.5;
}

/* ------------------------------------------------------------
   PHOTO GALLERY - compact
   ------------------------------------------------------------ */
.photo-gallery-section {
    padding: 32px 0;
}

.photo-gallery-section .section-header {
    margin-bottom: 16px;
    display: block;
    text-align: center;
}

.photo-gallery-section .section-header h2 {
    font-size: 22px;
}

.photo-gallery-section .section-header p {
    font-size: 13px;
}

.photo-gallery-grid {
    gap: 12px;
}

.photo-gallery-item {
    border-radius: 10px;
}

.photo-gallery-item .gallery-zoom {
    width: 40px;
    height: 40px;
    font-size: 18px;
}

.photo-gallery-item .gallery-overlay {
    padding: 10px;
    justify-content: center;
}

.photo-gallery-item .gallery-title {
    font-size: 12px;
    text-align: center;
    width: 100%;
}

/* ------------------------------------------------------------
   REVIEWS - compact modern cards
   ------------------------------------------------------------ */
.reviews-section {
    padding: 32px 0;
}

.reviews-slider-wrapper {
    padding: 0 42px;
}

.review-slide {
    margin: 0 8px;
    min-width: calc(33.333% - 16px);
}

.review-card {
    padding: 16px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.review-stars {
    margin-bottom: 8px;
}

.review-stars i {
    font-size: 12px;
    margin-right: 1px;
}

.review-text {
    font-size: 12.5px;
    line-height: 1.55;
    margin-bottom: 12px;
}

.review-images {
    gap: 6px;
    margin-bottom: 12px;
}

.review-img-wrapper {
    width: 44px;
    height: 44px;
    border-radius: 6px;
    border-width: 1px;
}

.review-author {
    gap: 10px;
    padding-top: 12px;
}

.author-avatar,
.avatar-placeholder {
    width: 38px;
    height: 38px;
}

.author-avatar img {
    border-width: 2px;
}

.avatar-placeholder {
    font-size: 15px;
    border-width: 2px;
}

.author-info strong {
    font-size: 13px;
    margin-bottom: 1px;
}

.author-info span {
    font-size: 11.5px;
}

.slider-btn {
    width: 34px;
    height: 34px;
    font-size: 12px;
    border-width: 1px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 992px) {
    .product-auto-slider .product-card {
        flex: 0 0 200px;
        min-width: 200px;
        max-width: 200px;
    }

    .product-auto-slider .product-card .product-image {
        height: 150px !important;
        min-height: 150px !important;
        max-height: 150px !important;
    }

    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .category-card.category-card-image {
        height: 230px;
    }
}

@media (max-width: 768px) {
    /* Remove the 80px blank bands above/below the hero slider */
    .hero {
        padding: 0;
    }

    .section-header {
        margin-bottom: 14px;
    }

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

    .categories-section,
    .products-section,
    .coupon-section,
    .blog-section-home,
    .why-us,
    .photo-gallery-section,
    .reviews-section {
        padding: 24px 0;
    }

    .product-auto-slider .product-card {
        flex: 0 0 180px;
        min-width: 180px;
        max-width: 180px;
    }

    .product-auto-slider .product-card .product-image {
        height: 135px !important;
        min-height: 135px !important;
        max-height: 135px !important;
    }

    .blog-image-wrapper {
        height: 170px;
    }

    .blog-slider-wrapper {
        padding: 0;
    }

    .blog-slide {
        min-width: 70%;
        width: 70%;
    }

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

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

    .photo-gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .subcategory-circle-card {
        flex: 0 0 calc((100% - 80px) / 6);
    }

    .subcategory-circle {
        width: 72px;
        height: 72px;
    }

    .subcategory-circle i {
        font-size: 24px;
    }

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

    .reviews-slider-wrapper {
        padding: 0 36px;
    }
}

@media (max-width: 576px) {
    /* Kill the blank bands around the hero on small mobile:
       .hero keeps 80px padding from style.css and .hero-slider
       stays 350px while slides are capped at 200px */
    .hero {
        padding: 0;
    }

    .hero-slider {
        height: 200px;
    }

    .section-header h2 {
        font-size: 17px;
    }

    .section-header p {
        font-size: 12px;
    }

    .categories-section,
    .products-section,
    .coupon-section,
    .blog-section-home,
    .why-us,
    .photo-gallery-section,
    .reviews-section {
        padding: 20px 0;
    }

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

    .category-card.category-card-image {
        height: 180px;
        border-radius: 10px;
    }

    .category-name-overlay {
        padding-bottom: 10px;
    }

    .category-name-overlay h3 {
        font-size: 0.85rem;
    }

    .category-name-overlay .collection-btn {
        font-size: 0.55rem;
    }

    .subcategory-circle-card {
        flex: 0 0 calc((100% - 48px) / 4);
        min-width: 60px;
        gap: 6px;
    }

    .subcategory-circle {
        width: 64px;
        height: 64px;
        border-width: 2px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }

    .subcategory-circle i {
        font-size: 22px;
    }

    .subcategory-name {
        font-size: 11px;
        min-height: 28px;
    }

    .features {
        padding: 12px 0;
    }

    .feature-item {
        padding: 8px 10px;
    }

    .feature-icon {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }

    .feature-content h4 {
        font-size: 12px;
    }

    .feature-content p {
        font-size: 10.5px;
    }

    .product-auto-slider .product-card {
        flex: 0 0 160px;
        min-width: 160px;
        max-width: 160px;
    }

    .product-auto-slider .product-card .product-image {
        height: 120px !important;
        min-height: 120px !important;
        max-height: 120px !important;
    }

    .product-auto-slider .product-card .product-info {
        padding: 8px 10px;
    }

    .product-auto-slider .product-card .product-title {
        font-size: 12px;
        min-height: 29px !important;
        max-height: 29px !important;
    }

    .product-auto-slider .product-card .product-price {
        font-size: 13px;
    }

    .product-auto-slider .product-card .btn-add-cart,
    .product-auto-slider .product-card .btn-out-of-stock {
        padding: 7px 8px;
        font-size: 11px;
    }

    .coupon-slider .coupon-card {
        flex: 0 0 200px;
        min-width: 200px;
        max-width: 200px;
    }

    .blog-slider-wrapper {
        padding: 0;
    }

    .blog-slide {
        min-width: 78%;
        width: 78%;
        padding: 0 6px;
    }

    .blog-image-wrapper {
        height: 150px;
    }

    .blog-card-content {
        padding: 12px;
    }

    .blog-title {
        font-size: 15px;
    }

    .blog-excerpt {
        font-size: 11.5px;
        max-height: 36px;
    }

    .blog-read-more {
        padding: 6px 12px;
        font-size: 9.5px;
    }

    .cta-banner {
        padding: 24px 0;
    }

    .cta-content h2 {
        font-size: 18px;
    }

    .why-us-item {
        padding: 10px 6px;
    }

    .why-us-icon {
        width: 38px;
        height: 38px;
        font-size: 15px;
        margin-bottom: 8px;
    }

    .why-us-item h4 {
        font-size: 12.5px;
    }

    .why-us-item p {
        font-size: 11px;
    }

    .photo-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .reviews-slider-wrapper {
        padding: 0 30px;
    }

    .review-card {
        padding: 12px;
    }

    .review-text {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .subcategories-section {
        padding: 18px 0;
    }

    .subcategories-scroll {
        gap: 10px;
        padding: 4px 2px 12px;
    }

    .subcategory-circle-card {
        flex: 0 0 calc((100% - 50px) / 6);
        min-width: 44px;
        gap: 4px;
    }

    .subcategory-circle {
        width: 48px;
        height: 48px;
        border-width: 1.5px;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.07);
    }

    .subcategory-circle i {
        font-size: 16px;
    }

    .subcategory-name {
        font-size: 9.5px;
        min-height: 24px;
    }
}

@media (max-width: 400px) {
    .product-auto-slider .product-card {
        flex: 0 0 148px;
        min-width: 148px;
        max-width: 148px;
    }

    .product-auto-slider .product-card .product-image {
        height: 110px !important;
        min-height: 110px !important;
        max-height: 110px !important;
    }

    .category-card.category-card-image {
        height: 160px;
    }

    .blog-image-wrapper {
        height: 135px;
    }
}
