/*
Theme Name: ParkBuyers - Astra Child
Theme URI: https://yoursite.com
Description: Custom child theme for ParkBuyers ecommerce site based on Astra
Author: Your Name
Author URI: https://yoursite.com
Template: astra
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: astra-child
Domain Path: /languages
*/

/* ==========================================================================
   IMPORT PARENT THEME STYLES
   ========================================================================== */
@import url('../astra/style.css');

/* ==========================================================================
   CUSTOM STYLES FOR PARKBUYERS
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #F5F5F5;
    color: #424242;
    line-height: 1.6;
}

/* ==========================================================================
   TOP HEADER BAR
   ========================================================================== */
.top-bar {
    background: #424242;
    color: #fff;
    padding: 0.5rem 5%;
    font-size: 0.85rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-links {
    display: flex;
    gap: 1.5rem;
}

.top-bar-links a {
    color: #fff;
    text-decoration: none;
}

.top-bar-links a:hover {
    color: #FF9800;
}

/* ==========================================================================
   MAIN NAVBAR
   ========================================================================== */
.navbar {
    background: #fff;
    padding: 1rem 5%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #424242;
    white-space: nowrap;
}

.logo span {
    color: #FF9800;
}

/* Search Bar */
.search-container {
    flex: 1;
    max-width: 600px;
}

.search-bar {
    display: flex;
    border: 2px solid #FF9800;
    border-radius: 4px;
    overflow: hidden;
}

.search-bar input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    outline: none;
    font-size: 0.95rem;
}

.search-bar button {
    background: #FF9800;
    color: #fff;
    border: none;
    padding: 0.75rem 2rem;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

.search-bar button:hover {
    background: #F57C00;
}

/* Nav Actions */
.nav-actions {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #424242;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s;
}

.nav-link:hover {
    color: #FF9800;
}

.nav-link-icon {
    font-size: 1.5rem;
    margin-bottom: 0.2rem;
}

.cart-count {
    background: #FF9800;
    color: #fff;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: bold;
}

/* ==========================================================================
   CATEGORIES BAR
   ========================================================================== */
.categories-bar {
    background: #fff;
    padding: 1rem 5%;
    border-bottom: 1px solid #e0e0e0;
}

.categories {
    display: flex;
    justify-content: center;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.category-link {
    color: #424242;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s;
}

.category-link:hover {
    background: #FF9800;
    color: #fff;
}

/* ==========================================================================
   HERO BANNER
   ========================================================================== */
.hero-banner {
    background: linear-gradient(135deg, #F57C00, #FF9800);
    color: #fff;
    padding: 2rem 5%;
    text-align: center;
}

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
}

.hero-banner h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.hero-banner p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.promo-code {
    background: rgba(255,255,255,0.2);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    display: inline-block;
    font-weight: bold;
    border: 2px dashed #fff;
}

/* ==========================================================================
   PRODUCTS SECTION
   ========================================================================== */
.products-section {
    padding: 2rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #FF9800;
}

.section-title {
    font-size: 1.5rem;
    color: #424242;
    font-weight: bold;
}

.view-all {
    color: #FF9800;
    text-decoration: none;
    font-weight: 600;
}

.view-all:hover {
    text-decoration: underline;
}

/* Product Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.product-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
}

.product-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.product-image {
    width: 100%;
    height: 220px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    position: relative;
}

.discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #F57C00;
    color: #fff;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
}

.product-info {
    padding: 1rem;
}

.product-name {
    font-size: 0.95rem;
    color: #424242;
    margin-bottom: 0.5rem;
    height: 2.4em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}

.stars {
    color: #FF9800;
}

.rating-count {
    color: #757575;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.current-price {
    font-size: 1.3rem;
    font-weight: bold;
    color: #F57C00;
}

.original-price {
    font-size: 0.9rem;
    color: #9e9e9e;
    text-decoration: line-through;
}

.add-to-cart {
    width: 100%;
    background: #FF9800;
    color: #fff;
    border: none;
    padding: 0.6rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

.add-to-cart:hover {
    background: #F57C00;
}

/* ==========================================================================
   REVIEWS SECTION
   ========================================================================== */
.reviews-section {
    padding: 3rem 5%;
    background: #fff;
}

.reviews-container {
    max-width: 1400px;
    margin: 0 auto;
}

.reviews-header {
    text-align: center;
    margin-bottom: 2rem;
}

.reviews-header h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.overall-rating {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.rating-number {
    font-size: 3rem;
    font-weight: bold;
    color: #424242;
}

.rating-breakdown {
    max-width: 600px;
    margin: 0 auto 2rem;
}

.rating-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.rating-label {
    width: 60px;
    font-size: 0.9rem;
}

.rating-bar-container {
    flex: 1;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.rating-bar {
    height: 100%;
    background: #FF9800;
    transition: width 0.5s ease;
}

.rating-percentage {
    width: 50px;
    text-align: right;
    font-size: 0.9rem;
    color: #757575;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}

.review-card {
    background: #F5F5F5;
    padding: 1.5rem;
    border-radius: 4px;
    border-left: 3px solid #FF9800;
}

.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.reviewer-name {
    font-weight: bold;
    color: #424242;
}

.review-date {
    color: #9e9e9e;
    font-size: 0.85rem;
}

.review-text {
    color: #616161;
    line-height: 1.6;
}

/* ==========================================================================
   TRUST BADGES
   ========================================================================== */
.trust-section {
    padding: 3rem 5%;
    background: #F5F5F5;
}

.trust-container {
    max-width: 1400px;
    margin: 0 auto;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.trust-badge {
    text-align: center;
    padding: 2rem;
    background: #fff;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

.trust-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.trust-title {
    font-size: 1.1rem;
    font-weight: bold;
    color: #424242;
    margin-bottom: 0.5rem;
}

.trust-description {
    color: #757575;
    font-size: 0.9rem;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    background: #424242;
    color: #fff;
    padding: 3rem 5% 1rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: #FF9800;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #e0e0e0;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #FF9800;
}

.footer-bottom {
    border-top: 1px solid #616161;
    padding-top: 1.5rem;
    text-align: center;
    color: #bdbdbd;
    font-size: 0.85rem;
}

.payment-methods {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.payment-icon {
    background: #fff;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.85rem;
    color: #424242;
    font-weight: bold;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 968px) {
    .nav-container {
        flex-wrap: wrap;
    }

    .search-container {
        order: 3;
        width: 100%;
        margin-top: 1rem;
    }

    .categories {
        gap: 1rem;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}

@media (max-width: 600px) {
    .top-bar {
        flex-direction: column;
        gap: 0.5rem;
    }

    .top-bar-links {
        gap: 1rem;
    }

    .hero-banner h1 {
        font-size: 1.5rem;
    }

    .nav-actions {
        gap: 0.8rem;
    }

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

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

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