/*
Theme Name: Astra Child (GatorTone)
Theme URI: https://gatortone.com/
Description: Child theme of Astra for gatortone.com. Carries over the site's Additional CSS customizations so they no longer depend on the parent theme being active.
Author: GatorTone
Template: astra
Version: 1.1.0
Text Domain: astra-child
*/

/* ==========================================================================
   Migrated from WordPress Customizer -> Additional CSS
   (previously stored against the "astra" theme slug; moved here so it
   travels with the site regardless of which theme is active)
   ========================================================================== */

.site-branding .site-title, .site-branding .site-title a { display:none !important; }

/* GT: put category name + product count below the image instead of overlaid on it */
.woocommerce-js ul.products li.product.product-category > a,
.woocommerce-page ul.products li.product.product-category > a {
    display: block;
}
.woocommerce-js ul.products li.product .woocommerce-loop-category__title,
.woocommerce-page ul.products li.product .woocommerce-loop-category__title {
    position: static;
    left: auto;
    right: auto;
    bottom: auto;
    background-color: transparent;
    margin-top: 0.6em;
    padding: 0;
}

/* GT: center the primary nav menu in the header bar */
.ast-builder-grid-row-has-sides {
    display: flex;
    align-items: center;
}
.site-header-primary-section-right.ast-grid-right-section {
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
}
.site-header-primary-section-right .main-header-bar-navigation,
.site-header-primary-section-right .ast-main-header-bar-alignment {
    display: flex;
    justify-content: center;
    width: 100%;
}

/* GT: keep embedded YouTube/video at a normal contained size instead of full-width */
.woocommerce div.product iframe,
.entry-content iframe,
.wp-block-embed iframe,
.wp-embed-responsive iframe {
    max-width: 640px;
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    display: block;
    margin: 1.5em auto;
}

/* GT: fix category tiles clipping multi-line titles (leftover overlay-era height:100%) */
.woocommerce-js ul.products li.product.product-category > a,
.woocommerce-page ul.products li.product.product-category > a {
    height: auto;
}
.woocommerce-js ul.products li.product.product-category > a img,
.woocommerce-page ul.products li.product.product-category > a img {
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

/* Shop by Brand: hover effect on brand tabs */
.gt-brand-letter-group a { transition: color 0.2s ease, transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease; }
.gt-brand-letter-group a:hover, .gt-brand-letter-group a:focus { color:#fff !important; background-color:#c0392b; border-color:#c0392b; transform:scale(1.08); font-size:1.08em; }

/* ============================================================
   Shop by Category: universal, responsive category card design
   Scope: only the WooCommerce [product_categories] shortcode
   grid, which this site always renders as ul.products.columns-7
   (used on the Home page and the Shop by Category page).
   The real product Shop grid renders as ul.products.columns-6
   and is untouched by every rule below.
   ============================================================ */

.woocommerce ul.products.columns-7,
.woocommerce-page ul.products.columns-7 {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 16px;
    list-style: none;
    margin: 0 0 2em;
    padding: 0;
}

.woocommerce ul.products.columns-7 li.product.product-category,
.woocommerce-page ul.products.columns-7 li.product.product-category {
    float: none;
    width: auto !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.woocommerce ul.products.columns-7 li.product.product-category:hover,
.woocommerce-page ul.products.columns-7 li.product.product-category:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.woocommerce ul.products.columns-7 li.product.product-category > a,
.woocommerce-page ul.products.columns-7 li.product.product-category > a {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.woocommerce ul.products.columns-7 li.product.product-category > a img,
.woocommerce-page ul.products.columns-7 li.product.product-category > a img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    object-position: center;
    display: block;
    margin: 0;
    aspect-ratio: auto;
    transition: transform 0.35s ease;
}

.woocommerce ul.products.columns-7 li.product.product-category:hover > a img,
.woocommerce-page ul.products.columns-7 li.product.product-category:hover > a img {
    transform: scale(1.05);
}

.woocommerce ul.products.columns-7 li.product.product-category .woocommerce-loop-category__title,
.woocommerce-page ul.products.columns-7 li.product.product-category .woocommerce-loop-category__title {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 3em;
    margin: 0;
    padding: 8px 10px;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.3;
}

.woocommerce ul.products.columns-7 li.product.product-category .woocommerce-loop-category__title .count,
.woocommerce-page ul.products.columns-7 li.product.product-category .woocommerce-loop-category__title .count {
    display: block;
    margin-top: 4px;
    font-size: 0.72rem;
    font-weight: 400;
    color: #767676;
    background: none;
    padding: 0;
}

/* Tablet: automatically adjust columns */
@media (max-width: 1024px) {
    .woocommerce ul.products.columns-7,
    .woocommerce-page ul.products.columns-7 {
        grid-template-columns: repeat(5, 1fr);
        gap: 12px;
    }
    .woocommerce ul.products.columns-7 li.product.product-category > a img,
    .woocommerce-page ul.products.columns-7 li.product.product-category > a img {
        height: 110px;
    }
}

@media (max-width: 782px) {
    .woocommerce ul.products.columns-7,
    .woocommerce-page ul.products.columns-7 {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
    }
}

/* Mobile: exactly 2 columns, with proper spacing */
@media (max-width: 600px) {
    .woocommerce ul.products.columns-7,
    .woocommerce-page ul.products.columns-7 {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .woocommerce ul.products.columns-7 li.product.product-category > a img,
    .woocommerce-page ul.products.columns-7 li.product.product-category > a img {
        height: 90px;
    }
    .woocommerce ul.products.columns-7 li.product.product-category .woocommerce-loop-category__title,
    .woocommerce-page ul.products.columns-7 li.product.product-category .woocommerce-loop-category__title {
        font-size: 0.82rem;
        min-height: 2.6em;
        padding: 6px 6px;
    }
}

/* ============================================================
   Shop by Brand: modern compact brand directory cards.
   Scope: only the custom .gt-brand-* markup on the Shop by
   Brand page (post ID 22). Does not touch WooCommerce's
   product grid, product pages, or category cards.
   ============================================================ */

.gt-brand-section-heading {
    text-align: center;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 30px auto 16px;
}

.gt-az-nav {
    text-align: center;
    margin-bottom: 20px;
    font-size: 15px;
}
.gt-az-nav a {
    display: inline-block;
    margin: 2px 6px;
    font-weight: bold;
    text-decoration: none;
}
.gt-az-nav a:hover {
    color: #c0392b;
}

.gt-letter-heading {
    text-align: left;
    max-width: 1200px;
    margin: 28px auto 10px;
    border-bottom: 2px solid #eee;
    padding-bottom: 4px;
    font-size: 1.1rem;
}

.gt-brand-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 14px;
    max-width: 1200px;
    margin: 0 auto 10px;
    padding: 0;
    list-style: none;
}

.gt-brand-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 8px;
    padding: 14px 8px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.gt-brand-card:hover,
.gt-brand-card:focus {
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.10);
    border-color: #ddd;
}

.gt-brand-card-logo {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.gt-brand-card-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.gt-brand-logo-fallback {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #f2f2f2;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.3rem;
}

.gt-brand-card-name {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.25;
}

.gt-brand-card-count {
    font-size: 0.72rem;
    color: #767676;
    margin-top: 2px;
}

/* Tablet: 4 cards per row */
@media (max-width: 1024px) {
    .gt-brand-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
    }
}

/* Mobile: 2 cards per row */
@media (max-width: 600px) {
    .gt-brand-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .gt-brand-card-logo,
    .gt-brand-logo-fallback {
        width: 52px;
        height: 52px;
    }
    .gt-brand-logo-fallback {
        font-size: 1.1rem;
    }
    .gt-brand-card-name {
        font-size: 0.85rem;
    }
}

/* ============================================================
   Site Header — Gator Tone Brand Colors
   Astra's free version has no built-in "Header Background Color"
   customizer control (that's an Astra Pro addon feature), so the
   site's established pattern — this child theme's stylesheet —
   is used instead, same as the rest of the site's customizations.
   Primary: #111111 (black) / Accent: #F97316 (orange)
   ============================================================ */
#ast-desktop-header,
#ast-mobile-header,
.site-header .ast-primary-header-bar {
    background-color: #111111;
}

.site-header .main-header-menu .menu-item > .menu-link,
.site-header .ast-mobile-header-content .menu-item > .menu-link {
    color: #FFFFFF;
}

.site-header .main-header-menu .menu-item.current-menu-item > .menu-link,
.site-header .main-header-menu .menu-item > .menu-link:hover,
.site-header .main-header-menu .menu-item.current-menu-item > .menu-link:focus,
.site-header .ast-mobile-header-content .menu-item.current-menu-item > .menu-link,
.site-header .ast-mobile-header-content .menu-item > .menu-link:hover {
    color: #F97316;
}

.site-header .main-header-menu .sub-menu {
    background-color: #111111;
    border-color: rgba(255,255,255,0.12);
}
.site-header .main-header-menu .sub-menu .menu-link {
    color: #FFFFFF;
}
.site-header .main-header-menu .sub-menu .menu-link:hover {
    color: #F97316;
}

.site-header .menu-toggle,
.site-header .astra-search-icon,
.site-header .ast-header-account .ahfb-svg-iconset,
.site-header .ast-site-header-cart .ast-icon svg {
    color: #FFFFFF;
    fill: #FFFFFF;
}
.site-header .menu-toggle:hover,
.site-header .astra-search-icon:hover,
.site-header .ast-header-account:hover .ahfb-svg-iconset {
    color: #F97316;
    fill: #F97316;
}

.site-header .ast-mobile-header-content {
    background-color: #111111;
}
