/*
Theme Name: Storefront Patriotic Child
Description: Patriotic red, white, and blue child theme of Storefront
Template: storefront
Version: 1.0
*/

@import url("../storefront/style.css");

/* === PATRIOTIC COLOR SCHEME === */
.new-content-section {
    background-color: var(--star-white);
    padding: 40px 0 30px 0; /* Bottom: 40px → 30px */
    text-align: center;
}

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

.new-content-section h2 {
    color: var(--patriot-blue);
    font-size: 2rem;
    margin-bottom: 20px;
}

.new-content-section p {
    color: #555;
    font-size: 1.1rem;
    line-height: 1.6;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-width: 150px;
    max-height: 150px;
}

/* Resize VOB certification badge */
.footer-vob-widget img,
.widget img[src*="VOB"],
.widget img[src*="SDVOSB"] {
    max-width: 120px !important;
    height: auto !important;
}

/* Main site colors */
:root {
    --patriot-red: #C41E3A;
    --patriot-blue: #002868;
    --navy-blue: #1B2951;
    --star-white: #FFFFFF;
    --cream-white: #F5F5F0;
    --gold-accent: #FFD700;
    --silver-accent: #C0C0C0;
}

/* Header styling */
.site-header {
    background-color: var(--patriot-blue);
    border-bottom: 3px solid var(--patriot-red);
}

.site-header .site-title a,
.site-header .site-description {
    color: var(--star-white);
}

.site-header .site-title a:hover {
    color: var(--gold-accent);
}

/* Navigation menu */
.main-navigation ul li a {
    color: var(--star-white);
}

.main-navigation ul li a:hover {
    color: var(--gold-accent);
    background-color: var(--navy-blue);
}

/* Mobile menu button */
.menu-toggle {
    background-color: var(--patriot-red);
    color: var(--star-white);
}

.menu-toggle:hover {
    background-color: var(--gold-accent);
    color: var(--patriot-blue);
}

/* Buttons */
.button, 
.woocommerce .button,
.woocommerce input.button,
.woocommerce a.button,
.woocommerce #respond input#submit {
    background-color: var(--patriot-red);
    color: var(--star-white);
    border: none;
    font-weight: bold;
}

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

/* Add to cart buttons */
.woocommerce .single_add_to_cart_button {
    background-color: var(--patriot-red) !important;
    color: var(--star-white) !important;
}

.woocommerce .single_add_to_cart_button:hover {
    background-color: var(--patriot-blue) !important;
}

/* Product categories */
.woocommerce-loop-category__title {
    background-color: var(--patriot-blue);
    color: var(--star-white);
}

/* Product cards */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
    border: 2px solid var(--cream-white);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.woocommerce ul.products li.product:hover,
.woocommerce-page ul.products li.product:hover {
    border-color: var(--patriot-red);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(196, 30, 58, 0.2);
}

/* Product titles */
.woocommerce ul.products li.product h2,
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    color: var(--patriot-blue);
}

.woocommerce ul.products li.product h2:hover,
.woocommerce ul.products li.product .woocommerce-loop-product__title:hover {
    color: var(--patriot-red);
}

/* Footer */
.site-footer {
    background-color: var(--patriot-blue);
    color: var(--star-white);
    border-top: 3px solid var(--patriot-red);
}

.site-footer a {
    color: var(--gold-accent);
}

.site-footer a:hover {
    color: var(--star-white);
}

/* Price styling */
.woocommerce .price {
    color: var(--patriot-red);
    font-weight: bold;
}

.woocommerce .price del {
    color: var(--silver-accent);
}

/* Sale badges */
.woocommerce span.onsale {
    background-color: var(--patriot-red);
    color: var(--star-white);
    font-weight: bold;
}

/* Cart and checkout */
.woocommerce-cart .cart-collaterals,
.woocommerce-checkout .checkout {
    background-color: var(--cream-white);
    padding: 20px;
    border-radius: 8px;
}

.woocommerce table.shop_table {
    border-color: var(--patriot-blue);
}

.woocommerce table.shop_table th {
    background-color: var(--patriot-blue);
    color: var(--star-white);
}

/* Breadcrumbs */
.woocommerce .woocommerce-breadcrumb {
    color: var(--patriot-blue);
}

.woocommerce .woocommerce-breadcrumb a {
    color: var(--patriot-red);
}

.woocommerce .woocommerce-breadcrumb a:hover {
    color: var(--navy-blue);
}

/* Product tabs */
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
    background-color: var(--patriot-blue);
    color: var(--star-white);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
    color: var(--patriot-blue);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a:hover {
    background-color: var(--cream-white);
    color: var(--patriot-red);
}

/* Notices and messages */
.woocommerce-message,
.woocommerce-info {
    background-color: var(--cream-white);
    border-left: 4px solid var(--patriot-blue);
    color: var(--patriot-blue);
}

.woocommerce-error {
    background-color: #fdf2f2;
    border-left: 4px solid var(--patriot-red);
    color: var(--patriot-red);
}

/* Widget titles */
.widget-title {
    color: var(--patriot-blue);
    border-bottom: 2px solid var(--patriot-red);
    padding-bottom: 10px;
}

/* Links */
a {
    color: var(--patriot-red);
}

a:hover {
    color: var(--patriot-blue);
}

/* Page content styling */
.site-content {
    background-color: var(--star-white);
}

/* Pagination */
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
    background-color: var(--cream-white);
    color: var(--patriot-blue);
    border-color: var(--patriot-blue);
}

.woocommerce nav.woocommerce-pagination ul li a:hover,
.woocommerce nav.woocommerce-pagination ul li span.current {
    background-color: var(--patriot-red);
    color: var(--star-white);
}

/* Search form */
.widget_product_search form input[type="search"] {
    border: 2px solid var(--patriot-blue);
}

.widget_product_search form input[type="submit"] {
    background-color: var(--patriot-red);
    color: var(--star-white);
}

.widget_product_search form input[type="submit"]:hover {
    background-color: var(--patriot-blue);
}

/* Star ratings */
.woocommerce .star-rating span {
    color: var(--gold-accent);
}

/* Custom homepage sections (if using static page) */
.custom-hero {
    background: linear-gradient(135deg, var(--patriot-blue) 0%, var(--navy-blue) 100%);
    color: var(--star-white);
    padding: 80px 0;
    text-align: center;
}

.custom-hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: bold;
    color: var(--star-white);
}

.custom-hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: var(--star-white);
}

.cta-button {
    background-color: var(--patriot-red);
    color: var(--star-white);
    padding: 15px 30px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: all 0.3s ease;
    display: inline-block;
}

.cta-button:hover {
    background-color: var(--gold-accent);
    color: var(--patriot-blue);
    text-decoration: none;
}

.trust-section {
    background-color: var(--cream-white);
    padding: 40px 0;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.trust-item {
    padding: 20px;
    text-align: center;
}

.trust-item h3 {
    color: var(--patriot-blue);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.trust-item p {
    color: #555;
}

.featured-section {
    padding: 50px 0 60px 0; /* Top: 60px → 50px */
    background-color: #fff;
}

.section-title {
    text-align: center;
    color: var(--patriot-blue);
    font-size: 2.5rem;
    margin-bottom: 50px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.product-card {
    border: 2px solid var(--patriot-red);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.product-image {
    height: 250px;
    background-color: var(--cream-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.product-info {
    padding: 20px;
    text-align: center;
}

.product-info h3 {
    color: var(--patriot-blue);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.product-price {
    color: var(--patriot-red);
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.product-button {
    background-color: var(--patriot-red);
    color: var(--star-white);
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s ease;
    display: inline-block;
}

.product-button:hover {
    background-color: var(--patriot-blue);
    color: var(--star-white);
    text-decoration: none;
}

.categories-section {
    background-color: var(--patriot-blue);
    color: var(--star-white);
    padding: 60px 0;
}

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

.category-card {
    background-color: var(--navy-blue);
    padding: 40px 20px;
    text-align: center;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.category-card:hover {
    transform: translateY(-3px);
}

.category-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--star-white);
}

.category-card p {
    margin-bottom: 20px;
    opacity: 0.9;
    color: var(--star-white);
}

.category-link {
    color: var(--gold-accent);
    text-decoration: none;
    font-weight: bold;
}

.category-link:hover {
    color: var(--star-white);
    text-decoration: none;
}

.about-section {
    padding: 60px 0;
    background-color: var(--cream-white);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 0 20px;
}

.about-content h2 {
    color: var(--patriot-blue);
    font-size: 2rem;
    margin-bottom: 30px;
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
}

.custom-features {
    background-color: var(--cream-white);
    padding: 60px 0;
}

.custom-features h3 {
    color: var(--patriot-blue);
}

/* Footer styling override */
.site-footer,
.site-footer * {
    color: var(--star-white) !important;
}

.site-footer a {
    color: var(--gold-accent) !important;
}

.site-footer a:hover {
    color: var(--star-white) !important;
}

/* Homepage responsive design */
@media (max-width: 768px) {
    .custom-hero h1 {
        font-size: 2rem;
    }
    
    .custom-hero p {
        font-size: 1rem;
    }
    
    .trust-grid,
    .products-grid,
    .categories-grid {
        grid-template-columns: 1fr;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .site-header {
        padding: 10px 20px;
    }
    
    .main-navigation ul li a {
        padding: 10px 15px;
    }
}