/* =============================================================================
   CUSTOM HOME PAGE STYLES
   Jackys Theme — Greenhonchos/Jackys
   ============================================================================= */


/* =============================================================================
   1. GLOBAL / SHARED UTILITIES
   ============================================================================= */

.container {
    width: 95%;
    max-width: 1400px;
    margin: auto;
    padding: 0 20px;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 25px;
}

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

.section-header h2 {
    font-size: 26px;
    font-weight: 600;
    color: #222;
}

.section-header a {
    font-size: 14px;
    text-decoration: none;
    color: #222;
}

[data-content-type="row"][data-appearance="contained"] {
    max-width: 100%;
}


/* =============================================================================
   2. HERO SLIDER
   ============================================================================= */

.hero-slider-wrapper {
    position: relative;
}

.homepage-slider .slide-item {
    position: relative;
}

.homepage-slider .slide-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* --- Arrows --- */
.homepage-slider .slick-prev,
.homepage-slider .slick-next {
    width: 44px;
    height: 44px;
    background: #fff;
    border-radius: 50%;
    z-index: 10;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.homepage-slider .slick-prev {
    left: 20px;
}

.homepage-slider .slick-next {
    right: 20px;
}

.homepage-slider .slick-prev:hover,
.homepage-slider .slick-next:hover {
    background: #f5f5f5;
}

.homepage-slider .slick-prev:before,
.homepage-slider .slick-next:before {
    font-size: 18px;
    color: #000;
    opacity: 1;
}

/* --- Dots --- */
.homepage-slider .slick-dots {
    bottom: 15px;
}

.homepage-slider .slick-dots li,
.homepage-slider .slick-dots li button {
    margin: 0 4px;
    height: 0;
    width: 0;
}

.homepage-slider .slick-dots li button {
    padding: 0;
    font-size: 0;
}

.homepage-slider .slick-dots li button:before {
    content: "";
    width: 25px;
    height: 3px;
    background: #cfcfcf;
    display: block;
    border-radius: 3px;
    opacity: 1;
}

.homepage-slider .slick-dots li.slick-active button:before {
    background: #000;
}


/* =============================================================================
   3. HOME SECTION — SPOTLIGHTS / FLASH DEALS / TRENDING
   ============================================================================= */

.home-section {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
    gap: 20px;
    padding: 20px;
}

/* --- Column Backgrounds --- */
.spotlights {
    background: #b45309;
    padding: 20px;
    border-radius: 8px;
}

.flash-deals {
    background: #ea580c;
    padding: 20px;
    border-radius: 8px;
}

.trending {
    background: #b91c1c;
    padding: 20px;
    border-radius: 8px;
}

.column h2 {
    color: #fff;
    margin-bottom: 20px;
}

/* --- Spotlight Cards --- */
.card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
}

.card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
}

.card-content {
    padding: 12px;
}

.card-content h4 {
    font-size: 14px;
    margin: 0 0 5px;
}

.card-content p {
    font-size: 11px;
    color: #666;
}

/* --- Flash Deals --- */
.flash-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    margin-bottom: 20px;
}

.timer span {
    background: #000;
    color: #fff;
    padding: 4px 6px;
    border-radius: 4px;
    font-size: 12px;
}

.deal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.deal-card {
    background: #fff;
    padding: 12px;
    border-radius: 12px;
    position: relative;
}

.deal-card img {
    width: 100%;
    height: 120px;
    object-fit: contain;
}

.deal-card h4 {
    font-size: 13px;
    margin: 10px 0;
}

/* --- Trending --- */
.trend-card {
    background: #333;
    border-radius: 16px;
    color: #fff;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.trend-text {
    width: 55%;
}

.trend-text h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.trend-text p {
    font-size: 13px;
    margin-bottom: 12px;
}

.trend-text button {
    padding: 6px 14px;
    border: none;
    background: #fff;
    color: #000;
    border-radius: 6px;
    cursor: pointer;
}


/* =============================================================================
   4. SHOP CATEGORIES
   ============================================================================= */

.shop-categories {
    padding: 50px 0;
    background: #f4f6f9;
    font-family: Arial, sans-serif;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 25px;
    text-align: center;
}

.category-card {
    height: 150px;
    background: linear-gradient(180deg, #5d73c4, #8eb4f3);
    border-radius: 25px 25px 15px 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    transition: all 0.3s ease;
}

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

.category-item h4 {
    margin: 12px 0 5px;
    font-size: 15px;
    font-weight: 500;
    color: #111;
}

.category-item span {
    color: #e60000;
    font-weight: 600;
    font-size: 14px;
}

.category-item:hover .category-card {
    transform: translateY(-6px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}


/* =============================================================================
   5. POWER SLIDER
   ============================================================================= */

.power-slider .slick-dots {
    position: relative;
    bottom: -25px;
    text-align: center;
}

.power-slider .slick-dots li {
    width: 40px;
    height: 3px;
    margin: 0 6px;
}

.power-slider .slick-dots li button {
    width: 100%;
    height: 3px;
    padding: 0;
    background: #d8d8d8;
}

.power-slider .slick-dots li button:before {
    display: none;
}

.power-slider .slick-dots li.slick-active button {
    background: #000;
}

.power-slider .slick-prev,
.power-slider .slick-next {
    width: 38px;
    height: 38px;
    background: #f0f0f0;
    border-radius: 50%;
    z-index: 2;
}

.power-slider .slick-prev {
    left: -20px;
}

.power-slider .slick-next {
    right: -20px;
}

.power-slider .slick-prev:before,
.power-slider .slick-next:before {
    color: #000;
    font-size: 18px;
}


/* =============================================================================
   6. PRODUCT CARDS (SHARED)
   ============================================================================= */

.product-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    margin: 10px;
    position: relative;
}

.product-image img {
    height: 180px;
    width: 100%;
    object-fit: contain;
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: contain;
}

.product-card h4 {
    font-size: 15px;
    font-weight: 500;
    min-height: 40px;
}

.badge {
    position: absolute;
    top: 15px;
    left: 15px;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    background: #e7f1ff;
    color: #2b4eff;
}

.wishlist {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 18px;
    cursor: pointer;
}

.rating {
    font-size: 14px;
    margin: 10px 0;
}

.rating .star {
    color: #f4b400;
}

.price {
    margin: 10px 0;
    font-weight: bold;
}

.price .new,
.final-price {
    font-weight: 700;
    font-size: 18px;
}

.price .old,
.old-price {
    text-decoration: line-through;
    color: #888;
    margin-left: 6px;
}

.price del {
    color: #888;
    font-weight: normal;
    margin-left: 6px;
    font-size: 12px;
}

.price .off,
.discount {
    color: red;
    font-weight: 600;
    font-size: 13px;
    margin-left: 6px;
}

.emi {
    font-size: 12px;
    color: #777;
}

/* --- Deal Badge (Flash Deals) --- */
.deal-card .badge {
    background: #fde68a;
    color: inherit;
}

/* --- Nav Buttons (Gadgets Slider) --- */
.nav {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    background: #fff;
    border: none;
    font-size: 22px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.prev {
    left: -20px;
}

.next {
    right: -20px;
}


/* =============================================================================
   7. GADGETS / TABS SECTION
   ============================================================================= */

.gadgets-section {
    background: #f3f5f9;
    padding: 60px 0;
}

.tabs {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.tab {
    padding: 10px 20px;
    border-radius: 25px;
    border: 1px solid #ccc;
    background: #fff;
    cursor: pointer;
    font-size: 14px;
}

.tab.active {
    background: #dfe8ff;
    border-color: #5c7cff;
    color: #2b4eff;
}

.product-wrapper {
    position: relative;
}

.products {
    display: flex;
    gap: 25px;
    overflow: hidden;
    scroll-behavior: smooth;
}

.product-card.show {
    display: block;
}


/* =============================================================================
   8. VALUE SERVICES
   ============================================================================= */

.value-services {
    background: #f2f3f5;
    padding: 60px 0;
    font-family: Arial, sans-serif;
}

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

.service-card {
    border-radius: 14px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.service-card img {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 14px;
}

.service-card:hover {
    transform: translateY(-6px);
}


/* =============================================================================
   9. TECH / BLOG CARDS SECTION
   ============================================================================= */

.tech-section {
    background: #f4f7fb;
    padding: 70px 0;
}

.tech-section h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 26px;
    font-weight: 600;
}

.tech-section .card-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
}

.tech-section .card {
    background: #fff;
    border-radius: 0;
    overflow: visible;
}

.card-img {
    height: 230px;
    overflow: hidden;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category {
    display: block;
    margin-top: 15px;
    font-size: 12px;
    color: #9aa3af;
    letter-spacing: 1px;
}

.card h3 {
    font-size: 18px;
    margin: 8px 0 10px;
    line-height: 1.4;
}

.card p {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 10px;
}

.card a {
    font-size: 14px;
    color: #000;
    text-decoration: underline;
}


/* =============================================================================
   10. NEWS / PRESS SECTION
   ============================================================================= */

.news-section {
    padding: 60px 0;
    background: #fff;
}

.news-section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 26px;
    font-weight: 600;
}

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

.news-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.news-logo {
    width: 160px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-logo img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

.news-content p {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 6px;
}

.news-content a {
    font-size: 13px;
    color: #1a4cff;
    text-decoration: underline;
}


/* =============================================================================
   11. MAGENTO PAGE LAYOUT OVERRIDES
   ============================================================================= */

@media (min-width: 769px), print {
    .page-main {
        max-width: 100% !important;
    }

    .navigation,
    .breadcrumbs,
    .page-header .header.panel,
    .header.content,
    .footer.content,
    .page-wrapper > .widget,
    .page-wrapper > .page-bottom,
    .block.category.event,
    .top-container,
    .page-main {
        padding: 30px 20px 0;
        max-width: 100%;
    }
}


/* =============================================================================
   12. RESPONSIVE BREAKPOINTS
   ============================================================================= */

/* Large Desktop → Tablet (≤ 1200px) */
@media (max-width: 1200px) {
    .category-grid {
        grid-template-columns: repeat(6, 1fr);
    }

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

/* Tablet (≤ 1100px) */
@media (max-width: 1100px) {
    .home-section {
        grid-template-columns: 1fr;
    }
}

/* Tablet (≤ 992px) */
@media (max-width: 992px) {
    .category-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Tablet / Small Laptop (≤ 900px) */
@media (max-width: 900px) {
    .tech-section .card-grid {
        grid-template-columns: 1fr;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile (≤ 600px) */
@media (max-width: 600px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .category-card {
        height: 130px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 22px;
    }
}

/* Small Mobile (≤ 400px) */
@media (max-width: 400px) {
    .category-grid {
        grid-template-columns: 1fr;
    }
}
