/*
Theme Name: Astra Child - Zaptopz (Fixed)
Theme URI: https://zaptopz.com/
Description: Custom child theme with full-width layout fix for Zaptopz homepage.
Author: Zaptopz
Author URI: https://zaptopz.com/
Template: astra
Version: 1.0.1
Text Domain: astra-child-zaptopz
*/

/* Import parent styles */
@import url("../astra/style.css");

/* =============================================
   FULL-WIDTH LAYOUT FIX - REMOVES RIGHT SIDE GAP
   ============================================= */
html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    width: 100%;
}

/* Force Astra containers to full width */
.ast-container,
.ast-container-fluid,
.site-content,
#primary,
#main,
.ast-page-builder-template .site-content > .ast-container,
.ast-separate-container .ast-article-post,
.hentry {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent;
}

/* Remove any left/right restrictions on content */
.ast-page-builder-template .hentry {
    margin: 0;
    padding: 0;
}

/* Your custom homepage wrapper */
.zaptopz-homepage-fixed {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

/* Common container class – centered content */
.zaptopz-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

/* =============================================
   ZAPTOPZ CUSTOM STYLES (same as before, but fixed)
   ============================================= */
:root {
    --z-primary: #060097;
    --z-secondary: #ffcd57;
    --z-dark: #1e293b;
    --z-light-bg: #f9f6fe;
}

/* Hero section */
.hero {
    background: linear-gradient(125deg, #060097 0%, #1d0b8a 100%);
    padding: 60px 0;
    color: white;
}

.hero-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.hero-content {
    flex: 1;
}

.hero-content h1 {
    font-size: 3.2rem;
    font-weight: 800;
    font-family: 'Plus Jakarta Sans', sans-serif;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-image {
    flex: 0 0 40%;
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    filter: drop-shadow(0 20px 25px rgba(0,0,0,0.2));
}

/* Buttons */
.btn-primary {
    background: var(--z-secondary);
    color: var(--z-primary);
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    transition: 0.2s;
}

.btn-primary:hover {
    background: #ffc02e;
    transform: translateY(-2px);
}

/* Categories */
.categories-section {
    padding: 70px 0;
    background: var(--z-light-bg);
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 48px;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 28px;
}

.cat-card {
    background: white;
    border-radius: 28px;
    padding: 28px 16px;
    text-align: center;
    text-decoration: none;
    color: var(--z-dark);
    box-shadow: 0 8px 20px rgba(0,0,0,0.04);
    transition: 0.25s;
}

.cat-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 30px -12px rgba(0,0,0,0.12);
}

.cat-card img {
    height: 64px;
    width: auto;
    margin-bottom: 16px;
}

/* Feature banners */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.feature-card {
    border-radius: 32px;
    padding: 48px 28px;
    background-size: cover;
}

.feature-card:nth-child(1) { background: linear-gradient(125deg, #0b1c3a, #060097); }
.feature-card:nth-child(2) { background: linear-gradient(125deg, #1e293b, #0f172a); }
.feature-card:nth-child(3) { background: linear-gradient(125deg, #2d1b4e, #180b32); }

.feature-card h3 {
    font-size: 1.9rem;
    font-weight: 700;
    color: white;
    margin-bottom: 12px;
}

/* Products grid */
.products-section {
    padding: 60px 0;
    background: white;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 32px;
    margin-top: 40px;
}

.product-card {
    background: white;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
    text-decoration: none;
    color: var(--z-dark);
    transition: 0.25s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 28px -12px rgba(0,0,0,0.12);
}

.product-img {
    padding: 24px;
    background: #faf9fe;
    text-align: center;
}

.product-img img {
    max-height: 170px;
    width: auto;
}

.product-info {
    padding: 20px;
    border-top: 1px solid #edf2f7;
}

.price {
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--z-primary);
    margin-top: 12px;
}

.price del {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-right: 8px;
}

/* Testimonials */
.testimonials-section {
    background: #f8fafc;
    padding: 70px 0;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.testimonial-item {
    background: white;
    border-radius: 32px;
    padding: 32px;
}

.testimonial-item img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    margin-bottom: 20px;
}

/* Brands */
.brands-section {
    padding: 60px 0;
    text-align: center;
}

.brand-logos {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 52px;
    align-items: center;
}

.brand-logos img {
    max-height: 70px;
    width: auto;
}

/* Newsletter */
.newsletter-area {
    background: var(--z-primary);
    color: white;
    padding: 70px 0;
    text-align: center;
}

.newsletter-form {
    max-width: 520px;
    margin: 32px auto 0;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.newsletter-form input {
    flex: 1;
    padding: 14px 22px;
    border-radius: 60px;
    border: none;
    min-width: 200px;
}

.newsletter-form button {
    background: var(--z-secondary);
    color: var(--z-primary);
    border: none;
    padding: 14px 32px;
    border-radius: 60px;
    font-weight: 700;
    cursor: pointer;
}

/* Footer */
.main-footer {
    background: #0f172a;
    color: #cbd5e1;
    padding: 56px 0 28px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 48px;
    margin-bottom: 48px;
}

.footer-col h4 {
    color: white;
    margin-bottom: 20px;
}

.footer-col a {
    color: #cbd5e1;
    text-decoration: none;
}

.footer-col a:hover {
    color: var(--z-secondary);
}

.copyright {
    text-align: center;
    padding-top: 28px;
    border-top: 1px solid #334155;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content h1 { font-size: 2rem; }
    .hero-image { flex-basis: 100%; }
    .section-title { font-size: 1.8rem; }
    .zaptopz-container { padding: 0 16px; }
}