/*
Theme Name: ShopBaako
Theme URI: https://www.shopbaako.com
Author: ShopBaako Team
Author URI: https://www.shopbaako.com
Description: Custom WooCommerce child theme for ShopBaako - Ghana's One-Stop-Shop for household items. Built on Storefront with Ghana-inspired branding featuring red, yellow, and green colors.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Template: storefront
Text Domain: shopbaako
Tags: e-commerce, woocommerce, responsive, ghana, mobile-friendly

ShopBaako - "Baako" means "One" in Akan
The One-Stop-Shop, Bringing Global Quality to Ghana
*/

/* ==========================================================================
   CSS Variables - Ghana Flag Colors + Brand
   ========================================================================== */
:root {
    --sb-red: #CE1126;
    --sb-yellow: #FCD116;
    --sb-green: #006B3F;
    --sb-dark: #1a1a1a;
    --sb-light: #f8f9fa;
    --sb-white: #ffffff;
    --sb-gray: #6c757d;
    --sb-light-gray: #e9ecef;
    --sb-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --sb-shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.15);
    --sb-transition: all 0.3s ease;
    --sb-border-radius: 8px;
}

/* ==========================================================================
   Global Styles
   ========================================================================== */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--sb-dark);
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

a {
    color: var(--sb-green);
    text-decoration: none;
    transition: var(--sb-transition);
}

a:hover {
    color: var(--sb-red);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   Header Styles
   ========================================================================== */
.site-header {
    background: var(--sb-white);
    box-shadow: var(--sb-shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 15px;
}

.site-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: contain;
}

.site-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--sb-dark);
    margin: 0;
}

.site-title span {
    color: var(--sb-green);
}

.site-tagline {
    font-size: 0.85rem;
    color: var(--sb-gray);
    margin: 0;
}

/* Navigation */
.main-navigation {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 25px;
}

.nav-menu a {
    color: var(--sb-dark);
    font-weight: 500;
    padding: 8px 0;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--sb-green);
    transition: var(--sb-transition);
}

.nav-menu a:hover::after {
    width: 100%;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-search {
    position: relative;
}

.header-search input {
    padding: 10px 40px 10px 15px;
    border: 1px solid var(--sb-light-gray);
    border-radius: 25px;
    width: 250px;
    font-size: 0.9rem;
    transition: var(--sb-transition);
}

.header-search input:focus {
    outline: none;
    border-color: var(--sb-green);
    box-shadow: 0 0 0 3px rgba(0, 107, 63, 0.1);
}

.header-search button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--sb-gray);
}

.cart-icon {
    position: relative;
    font-size: 1.5rem;
    color: var(--sb-dark);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--sb-red);
    color: var(--sb-white);
    font-size: 0.7rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--sb-dark);
    margin: 5px 0;
    transition: var(--sb-transition);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
    background: linear-gradient(135deg, var(--sb-green) 0%, #004d2e 100%);
    color: var(--sb-white);
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="2"/></svg>') repeat;
    background-size: 100px;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero-logo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-tagline {
    font-size: 1.3rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

.hero-cta {
    display: inline-block;
    background: var(--sb-yellow);
    color: var(--sb-dark);
    padding: 15px 40px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--sb-transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero-cta:hover {
    background: var(--sb-white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* Ghana Flag Stripe */
.ghana-stripe {
    height: 6px;
    background: linear-gradient(to right, var(--sb-red) 33.33%, var(--sb-yellow) 33.33%, var(--sb-yellow) 66.66%, var(--sb-green) 66.66%);
}

/* ==========================================================================
   Categories Section
   ========================================================================== */
.categories-section {
    padding: 60px 20px;
    background: var(--sb-light);
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    color: var(--sb-dark);
}

.section-title span {
    color: var(--sb-green);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.category-card {
    background: var(--sb-white);
    border-radius: var(--sb-border-radius);
    padding: 30px 20px;
    text-align: center;
    transition: var(--sb-transition);
    box-shadow: var(--sb-shadow);
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--sb-shadow-hover);
}

.category-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
}

.category-card h3 {
    font-size: 1rem;
    color: var(--sb-dark);
    margin: 0;
}

.category-card:hover h3 {
    color: var(--sb-green);
}

/* ==========================================================================
   Featured Products Section
   ========================================================================== */
.featured-products {
    padding: 60px 20px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.product-card {
    background: var(--sb-white);
    border-radius: var(--sb-border-radius);
    overflow: hidden;
    transition: var(--sb-transition);
    box-shadow: var(--sb-shadow);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--sb-shadow-hover);
}

.product-image {
    position: relative;
    padding-top: 100%;
    background: var(--sb-light-gray);
    overflow: hidden;
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--sb-transition);
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--sb-red);
    color: var(--sb-white);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 1;
}

.product-badge.new {
    background: var(--sb-green);
}

.product-info {
    padding: 15px;
}

.product-category {
    font-size: 0.75rem;
    color: var(--sb-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-title {
    font-size: 1rem;
    margin: 8px 0;
    color: var(--sb-dark);
    font-weight: 500;
    line-height: 1.3;
}

.product-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--sb-green);
}

.product-price .old-price {
    font-size: 0.9rem;
    color: var(--sb-gray);
    text-decoration: line-through;
    margin-left: 8px;
    font-weight: 400;
}

.add-to-cart {
    width: 100%;
    padding: 12px;
    background: var(--sb-green);
    color: var(--sb-white);
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: var(--sb-transition);
}

.add-to-cart:hover {
    background: var(--sb-dark);
}

/* ==========================================================================
   Payment Methods Section
   ========================================================================== */
.payment-section {
    padding: 60px 20px;
    background: var(--sb-dark);
    color: var(--sb-white);
}

.payment-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.payment-method {
    text-align: center;
    padding: 20px;
}

.payment-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
    color: var(--sb-yellow);
}

.payment-method h4 {
    font-size: 1rem;
    margin: 0 0 8px 0;
}

.payment-method p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* ==========================================================================
   Delivery Section
   ========================================================================== */
.delivery-section {
    padding: 60px 20px;
    background: var(--sb-light);
}

.delivery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.delivery-option {
    background: var(--sb-white);
    padding: 30px;
    border-radius: var(--sb-border-radius);
    text-align: center;
    box-shadow: var(--sb-shadow);
}

.delivery-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--sb-green);
}

.delivery-option h4 {
    font-size: 1.1rem;
    margin: 0 0 10px 0;
    color: var(--sb-dark);
}

.delivery-option p {
    font-size: 0.9rem;
    color: var(--sb-gray);
    margin: 0;
}

/* ==========================================================================
   Footer Styles
   ========================================================================== */
.site-footer {
    background: var(--sb-dark);
    color: var(--sb-white);
    padding: 60px 20px 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto 40px;
}

.footer-brand .footer-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 15px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-column h4 {
    color: var(--sb-yellow);
    font-size: 1.1rem;
    margin: 0 0 20px 0;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column li {
    margin-bottom: 10px;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    transition: var(--sb-transition);
}

.footer-column a:hover {
    color: var(--sb-yellow);
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin: 0 0 10px 0;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sb-white);
    font-size: 1.2rem;
    transition: var(--sb-transition);
}

.social-links a:hover {
    background: var(--sb-green);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    margin: 0;
}

/* ==========================================================================
   WooCommerce Overrides
   ========================================================================== */
.woocommerce ul.products li.product {
    margin-bottom: 30px;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 1rem;
    color: var(--sb-dark);
}

.woocommerce ul.products li.product .price {
    color: var(--sb-green);
    font-weight: 700;
}

.woocommerce ul.products li.product .button {
    background: var(--sb-green);
    color: var(--sb-white);
    border-radius: 4px;
}

.woocommerce ul.products li.product .button:hover {
    background: var(--sb-dark);
}

.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
    background: var(--sb-green);
    color: var(--sb-white);
    border-radius: 4px;
    font-weight: 600;
}

.woocommerce #respond input#submit:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
    background: var(--sb-dark);
    color: var(--sb-white);
}

.woocommerce #respond input#submit.alt,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt {
    background: var(--sb-yellow);
    color: var(--sb-dark);
}

.woocommerce #respond input#submit.alt:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover {
    background: var(--sb-red);
    color: var(--sb-white);
}

/* ==========================================================================
   Responsive Styles - Tablet (768px - 1024px)
   ========================================================================== */
@media screen and (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

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

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

    .hero-title {
        font-size: 2rem;
    }

    .header-search input {
        width: 200px;
    }
}

/* ==========================================================================
   Responsive Styles - Tablet Small (768px)
   ========================================================================== */
@media screen and (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .main-navigation {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--sb-white);
        flex-direction: column;
        padding: 80px 30px 30px;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
        transition: var(--sb-transition);
        z-index: 1001;
    }

    .main-navigation.active {
        right: 0;
    }

    .nav-menu {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }

    .nav-menu li {
        border-bottom: 1px solid var(--sb-light-gray);
    }

    .nav-menu a {
        display: block;
        padding: 15px 0;
    }

    .header-search {
        display: none;
    }

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

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

    .hero-section {
        padding: 50px 20px;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-tagline {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

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

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .social-links {
        justify-content: center;
    }
}

/* ==========================================================================
   Responsive Styles - Mobile (< 480px)
   ========================================================================== */
@media screen and (max-width: 480px) {
    .header-container {
        padding: 10px 15px;
    }

    .site-logo {
        width: 45px;
        height: 45px;
    }

    .site-title {
        font-size: 1.3rem;
    }

    .site-tagline {
        display: none;
    }

    .hero-logo {
        width: 80px;
        height: 80px;
    }

    .hero-title {
        font-size: 1.4rem;
    }

    .hero-tagline {
        font-size: 1rem;
    }

    .hero-cta {
        padding: 12px 30px;
        font-size: 1rem;
    }

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

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

    .category-card {
        padding: 20px 15px;
    }

    .category-icon {
        font-size: 2.5rem;
    }

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

    .product-info {
        padding: 12px;
    }

    .product-title {
        font-size: 0.9rem;
    }

    .product-price {
        font-size: 1.1rem;
    }
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */
.text-center {
    text-align: center;
}

.text-green {
    color: var(--sb-green);
}

.text-yellow {
    color: var(--sb-yellow);
}

.text-red {
    color: var(--sb-red);
}

.bg-green {
    background-color: var(--sb-green);
}

.bg-yellow {
    background-color: var(--sb-yellow);
}

.bg-red {
    background-color: var(--sb-red);
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.py-40 {
    padding-top: 40px;
    padding-bottom: 40px;
}

/* Overlay for mobile menu */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: var(--sb-transition);
    z-index: 1000;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Close button for mobile menu */
.menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--sb-dark);
}
