/*
Theme Name: Pixel Elites Marketplace
Theme URI: https://pixelelites.com
Author: Pixel Elites
Description: Lightweight Easy Digital Downloads theme for digital bundle marketplaces
Version: 1.0.0
License: GPLv2 or later
Text Domain: pixelelites
*/

/* =========================
   BASE RESET
========================= */
body, h1, h2, h3, p, div, section {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

.site-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* =========================
   HERO SECTION
========================= */
.hero-section {
    display: flex;
    justify-content: center;
    padding: 60px 20px;
    background: transparent;
}

.hero-box {
    position: relative;
    background: url('https://ridiby.com/wp-content/uploads/2026/01/Growbiz-Digital.jpg') center/cover no-repeat;
    border-radius: 20px;
    overflow: hidden;
    padding: 80px 30px;
    max-width: 1200px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}

/* Overlay for readability */
.hero-box .hero-overlay {
    content: "";
    position: absolute;
    top:0; left:0; right:0; bottom:0;
    background: rgba(0,0,0,0.5);
    border-radius: 20px;
    z-index: 0;
}

/* Text & Button */
.hero-box * {
    position: relative;
    z-index: 1;
    color: #fff;
}

.hero-box h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero-box p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.hero-box .cta-button {
    background: #ff5a5f;
    color: #fff;
    padding: 15px 36px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    transition: background 0.3s ease;
}

.hero-box .cta-button:hover {
    background: #e14c50;
}

/* =========================
   PRODUCTS GRID
========================= */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
}

/* =========================
   SINGLE PRODUCT PAGE
========================= */
.single-product-container {
    display: flex;
    gap: 40px;
    flex-wrap: nowrap;
    max-width: 1200px;
    margin: 50px auto;
    box-sizing: border-box;
}

.product-gallery {
    flex: 0 0 50%;
    max-width: 50%;
}

.product-info {
    flex: 0 0 50%;
    max-width: 50%;
}

/* Slider */
.slider-wrapper { width: 100%; overflow: hidden; position: relative; }
.slider-track { display: flex; transition: transform 0.4s ease; }
.slider-track img { width: 100%; height: auto; object-fit: contain; border-radius: 8px; }

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    font-size: 22px;
    padding: 10px 14px;
    cursor: pointer;
    border-radius: 50%;
    z-index: 10;
}
.slider-arrow.left { left: 10px; }
.slider-arrow.right { right: 10px; }

/* Thumbnails */
.thumbnail-images {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}
.thumbnail-images img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border 0.3s ease;
}
.thumbnail-images img.active { border-color: #ff5a5f; }

/* Product Description & Similar Products */
.product-description,
.edd-similar-products {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Purchase Button */
.edd-purchase-button {
    margin-top: 20px;
}

/* =========================
   MOBILE RESPONSIVENESS
========================= */
@media(max-width:768px){
    /* Hero box */
    .hero-box {
        padding: 60px 20px;
        border-radius: 18px;
    }
    .hero-box h1 {
        font-size: 2.2rem;
    }
    .hero-box p {
        font-size: 1.05rem;
    }

    /* Single product stack */
    .single-product-container,
    .product-gallery,
    .product-info {
        display: block;
        width: 100%;
        max-width: 100%;
    }

    /* Similar / Featured Products 2 per row */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    /* Thumbnails smaller */
    .thumbnail-images img {
        width: 50px;
        height: 50px;
    }
}
