/*
Theme Name:   OGH Child
Theme URI:    https://originalhustle.com
Description:  Original Hustle custom child theme for Astra
Author:       Original Hustle
Author URI:   https://originalhustle.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:  ogh-child
*/

/* 
========================================
FONTS
========================================
*/

/* Archivo Black - Headers */
@font-face {
    font-family: 'Archivo Black';
    src: url('https://fonts.googleapis.com/css2?family=Archivo+Black&display=swap');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Inter - Body Text */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* 
========================================
CSS VARIABLES
========================================
*/

:root {
    /* Colors */
    --ogh-primary: #3077ba;
    --ogh-dark-blue: #273962;
    --ogh-light-gray: #f9fafb;
    --ogh-text-gray: #6b7280;
    --ogh-border-gray: #e5e7eb;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    
    /* Content Boundaries */
    --content-padding-desktop: 3rem;
    --content-padding-mobile: 1rem;
}

/* 
========================================
GLOBAL STYLES
========================================
*/

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--ogh-dark-blue);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Archivo Black', sans-serif !important;
}

/* 
========================================
HEADER
========================================
*/

/* Header background and colors */
.site-header {
    background: #ffffff !important;
    border-bottom: none !important;
}

.main-header-bar {
    border-bottom: none !important;
}

/* Navigation links */
.main-header-menu .menu-item > a {
    color: var(--ogh-dark-blue) !important;
    font-family: 'Archivo Black', sans-serif !important;
}

.main-header-menu .menu-item > a:hover {
    color: var(--ogh-primary) !important;
}

/* Cart icon */
.ast-header-woo-cart a {
    color: var(--ogh-dark-blue) !important;
    border-color: var(--ogh-dark-blue) !important;
}

.ast-header-woo-cart a:hover {
    background: rgba(39, 57, 98, 0.1) !important;
}

/* Mobile menu */
.ast-mobile-menu-buttons .menu-toggle {
    color: var(--ogh-dark-blue) !important;
}

/* 
========================================
HERO SECTION
========================================
*/

.hero-section {
    background: #ffffff !important;
    padding: var(--spacing-xl) var(--content-padding-mobile);
}

.hero-section h1 {
    color: var(--ogh-dark-blue) !important;
    font-family: 'Archivo Black', sans-serif !important;
}

.hero-section p {
    color: var(--ogh-dark-blue) !important;
}

@media (min-width: 768px) {
    .hero-section {
        padding: var(--spacing-xl) var(--content-padding-desktop);
    }
}

/* 
========================================
WOOCOMMERCE - PRODUCT CARDS
========================================
*/

/* Let Astra control the grid layout - we just style the cards */
.woocommerce ul.products {
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .woocommerce ul.products {
        gap: 1rem;
    }
}

/* Product card wrapper - the pretty border and shadow */
.woocommerce ul.products li.product {
    margin: 0;
    padding: 0;
    border-radius: 1rem;
    border: 1px solid rgba(48, 119, 186, 0.25);
    background: white;
    box-shadow: 0 4px 6px -1px rgba(48, 119, 186, 0.15), 0 2px 4px -2px rgba(48, 119, 186, 0.1);
    transition: box-shadow 0.3s, transform 0.2s, border-color 0.2s;
    overflow: hidden;
}

.woocommerce ul.products li.product:hover {
    box-shadow: 0 10px 20px -5px rgba(48, 119, 186, 0.25), 0 6px 10px -3px rgba(48, 119, 186, 0.15);
    transform: translateY(-4px);
    border-color: rgba(48, 119, 186, 0.4);
}

/* Product card image container */
.woocommerce ul.products li.product .woocommerce-loop-product__link {
    position: relative;
    display: block;
    overflow: hidden;
    background: linear-gradient(to bottom, #f8fafc, white);
    border-bottom: 1px solid var(--ogh-border-gray);
}

/* Product card image */
.woocommerce ul.products li.product .woocommerce-loop-product__link img {
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center;
    aspect-ratio: 4 / 5;
    transition: transform 0.3s ease-out;
    display: block;
}

/* Image zoom on hover */
.woocommerce ul.products li.product:hover .woocommerce-loop-product__link img {
    transform: scale(1.05);
}

/* Sale badge - matches OGH design */
.woocommerce ul.products li.product .onsale {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: #000000 !important;
    color: white !important;
    padding: 0.25rem 0.5rem !important;
    border-radius: 0.375rem !important;
    font-size: 0.6875rem !important;
    font-weight: 600 !important;
    z-index: 10;
    margin: 0 !important;
    border: none !important;
    box-shadow: none !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    line-height: 1 !important;
    width: auto !important;
    height: auto !important;
    min-width: auto !important;
    min-height: auto !important;
    display: inline-block !important;
}

/* Product card content area */
.woocommerce ul.products li.product .astra-shop-summary-wrap,
.woocommerce ul.products li.product > *:not(.woocommerce-loop-product__link):not(.onsale) {
    padding: 0.25rem 0.75rem 0.5rem 0.75rem;
}

/* Product title */
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product h2 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #111827;
    line-height: 1.2;
    margin: 0 0 0.125rem 0;
    min-height: auto;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title:hover,
.woocommerce ul.products li.product h2 a:hover {
    color: #374151;
}

/* Price */
.woocommerce ul.products li.product .price {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin: 0;
    display: block;
}

.woocommerce ul.products li.product .price .woocommerce-Price-amount {
    font-size: inherit;
    color: inherit;
}

/* Sale price styling */
.woocommerce ul.products li.product .price del {
    opacity: 0.6;
    margin-right: 0.5rem;
    font-size: 0.9em;
}

.woocommerce ul.products li.product .price ins {
    text-decoration: none;
    font-weight: 700;
}

/* Star rating */
.woocommerce ul.products li.product .star-rating {
    font-size: 0.875rem;
    margin: 0.25rem 0 0 0;
}

/* Hide default add to cart button on cards */
.woocommerce ul.products li.product .button {
    display: none !important;
}

/* Category badge (if shown) */
.woocommerce ul.products li.product .ast-woo-product-category {
    font-size: 0.75rem;
    color: var(--ogh-text-gray);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
    display: block;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .woocommerce ul.products li.product .astra-shop-summary-wrap,
    .woocommerce ul.products li.product > *:not(.woocommerce-loop-product__link):not(.onsale) {
        padding: 0.25rem 0.5rem 0.5rem 0.5rem;
    }
    
    .woocommerce ul.products li.product .woocommerce-loop-product__title,
    .woocommerce ul.products li.product h2 {
        font-size: 0.875rem;
    }
    
    .woocommerce ul.products li.product .price {
        font-size: 1rem;
    }
    
    .woocommerce ul.products li.product .onsale {
        top: 0.5rem;
        left: 0.5rem;
        font-size: 0.6875rem;
        padding: 0.25rem 0.5rem;
    }
}

/* 
========================================
WOOCOMMERCE - SINGLE PRODUCT
========================================
*/

.single-product .product {
    padding: var(--spacing-lg);
}

.single-product .product_title {
    font-family: 'Archivo Black', sans-serif !important;
    color: var(--ogh-dark-blue);
}

/* Add to Cart button */
.single-product .single_add_to_cart_button {
    background: var(--ogh-primary) !important;
    color: #ffffff !important;
    border: none !important;
    padding: var(--spacing-md) var(--spacing-lg) !important;
    font-weight: 600 !important;
}

.single-product .single_add_to_cart_button:hover {
    background: #2563a8 !important;
}

/* 
========================================
WOOCOMMERCE - SHOP PAGE
========================================
*/

.woocommerce-breadcrumb {
    font-size: 0.875rem;
    color: var(--ogh-dark-blue);
    margin-bottom: var(--spacing-md);
}

.woocommerce-result-count {
    font-size: 0.875rem;
    color: var(--ogh-text-gray);
}

/* 
========================================
BUTTONS
========================================
*/

.ast-button,
.button,
.wp-block-button__link {
    font-family: 'Inter', sans-serif !important;
    font-weight: 600 !important;
    border-radius: 4px !important;
    transition: all 0.3s ease !important;
}

.ast-button:hover,
.button:hover,
.wp-block-button__link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 
========================================
RESPONSIVE
========================================
*/

@media (max-width: 768px) {
    :root {
        --content-padding-mobile: 1rem;
    }
    
    .single-product .product {
        padding: var(--spacing-md);
    }
}

