/*
Theme Name: Philippines Local
Theme URI: https://example.com
Author: Philippines Local
Description: A simple, beginner-friendly theme for selling local Filipino products. Edit texts and images via Appearance > Customize. Add products via WooCommerce.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: philippines-local
Requires at least: 5.0
Requires PHP: 7.2
*/

/* Reset and Base */


* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary-color: #0038A8;
    --secondary-color: #CE1126;
    --accent-color: #FCD116;
    --dark-color: #1a1a1a;
    --light-color: #f8f9fa;
    --text-color: #333;
    --text-light: #666;
    --border-color: #e0e0e0;
    --success-color: #28a745;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 5px 20px rgba(0, 0, 0, 0.15);
}

body { font-family: 'Poppins', sans-serif; color: var(--text-color); line-height: 1.6; overflow-x: hidden; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
    background: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1rem 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo img,
.site-logo .custom-logo {
    height: 78px;
    width: auto;
    object-fit: contain;
    max-width: 280px;
}
.site-logo a { display: flex; align-items: center; }

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.main-navigation a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
}

.main-navigation a:hover { color: var(--primary-color); }

.header-cart a {
    font-size: 1.5rem;
    text-decoration: none;
    color: var(--text-color);
    position: relative;
}

/* Hero */
.hero {
    height: 380px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.hero::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 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,154.7C960,171,1056,181,1152,165.3C1248,149,1344,107,1392,85.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.3;
}

.hero-content { position: relative; z-index: 1; max-width: 800px; padding: 0 20px; }

.hero-title { font-size: 2.25rem; font-weight: 700; margin-bottom: 0.75rem; }
.hero-subtitle { font-size: 1.05rem; margin-bottom: 1.25rem; opacity: 0.95; }

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--accent-color);
    color: var(--dark-color);
    box-shadow: 0 4px 15px rgba(252, 209, 22, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(252, 209, 22, 0.6);
    color: var(--dark-color);
}

/* Features */
.features { padding: 4rem 0; background: var(--light-color); }

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.feature-icon { font-size: 3rem; margin-bottom: 1rem; }
.feature-card h3 { color: var(--primary-color); margin-bottom: 0.5rem; font-size: 1.3rem; }
.feature-card p { color: var(--text-light); font-size: 0.95rem; }

/* Section titles */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

/* About */
.about { padding: 5rem 0; background: var(--light-color); }

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text h2 { font-size: 2.5rem; color: var(--primary-color); margin-bottom: 1.5rem; }
.about-text p { margin-bottom: 1rem; color: var(--text-color); line-height: 1.8; }

.about-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: var(--shadow-hover);
}

.about-placeholder {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    height: 400px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8rem;
    box-shadow: var(--shadow-hover);
}

/* Contact */
.contact { padding: 5rem 0; background: white; }

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.contact-info h3 { color: var(--primary-color); font-size: 1.8rem; margin-bottom: 1.5rem; }
.contact-info p { margin-bottom: 1rem; font-size: 1.1rem; color: var(--text-color); }

.contact-form input,
.contact-form textarea {
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    width: 100%;
    margin-bottom: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Footer */
.site-footer {
    background: var(--dark-color);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.site-footer .footer-section h3,
.site-footer .footer-section h4 { margin-bottom: 1rem; color: var(--accent-color); }
.site-footer .footer-section ul { list-style: none; padding: 0; margin: 0; }
.site-footer .footer-section ul li { margin-bottom: 0.5rem; }
.site-footer .footer-section a { color: rgba(255, 255, 255, 0.8); text-decoration: none; transition: color 0.3s; }
.site-footer .footer-section a:hover { color: var(--accent-color); }
.site-footer .social-links { display: flex; gap: 1rem; }
.footer-bottom { text-align: center; padding-top: 2rem; border-top: 1px solid rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.6); }

/* WooCommerce products on homepage */
.home-products { padding: 5rem 0; background: white; }

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.ph-product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.ph-product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.ph-product-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.ph-product-card .product-info { padding: 1.5rem; }
.ph-product-card .product-category { color: var(--accent-color); font-size: 0.85rem; font-weight: 600; text-transform: uppercase; margin-bottom: 0.5rem; }
.ph-product-card .product-name { font-size: 1.3rem; font-weight: 600; color: var(--text-color); margin-bottom: 0.5rem; }
.ph-product-card .product-name a { color: inherit; text-decoration: none; }
.ph-product-card .product-name a:hover { color: var(--primary-color); }
.ph-product-card .price { font-size: 1.5rem; font-weight: 700; color: var(--secondary-color); margin: 1rem 0; }
.ph-product-card .button { background: var(--primary-color); color: white !important; padding: 0.7rem 1.5rem; border-radius: 25px; font-weight: 600; text-decoration: none; display: inline-block; transition: all 0.3s; border: none; cursor: pointer; }
.ph-product-card .button:hover { background: var(--secondary-color); color: white !important; }

/* WooCommerce shop page */
.woocommerce ul.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 2rem; list-style: none; padding: 0; margin: 0; }
.woocommerce ul.products li.product { width: 100% !important; margin: 0 !important; }

@media (max-width: 768px) {
    .nav-container { flex-wrap: wrap; }
    .main-navigation ul { order: 3; width: 100%; justify-content: center; flex-wrap: wrap; margin-top: 1rem; gap: 1rem; }
    .header-cart { order: 2; margin-left: auto; }
    .site-logo img { height: 56px; }
    .hero-title { font-size: 1.75rem; }
    .hero-subtitle { font-size: 0.95rem; }
    .about-content, .contact-content { grid-template-columns: 1fr; }
    .products-grid { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }
}

/* Smaller product images on Shop page */
.woocommerce ul.products li.product img {
    height: 200px !important;
    width: 100% !important;
    object-fit: cover !important;
}

.woocommerce ul.products li.product a.woocommerce-loop-product__link {
    display: block;
    overflow: hidden;
}
