/*
Theme Name: GeneratePress Child
Template: generatepress
Description: Child theme for GeneratePress - OA custom header
Version: 1.0.0
*/
/* OA 3-Row Header */
.site-header { padding: 0 !important; background: transparent !important; }
.site-header .inside-header, .site-header .site-logo, #site-navigation { display: none !important; }
.oa-header-container { max-width: 1400px; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; }

/* ROW 1 - Blue */
.oa-header-row-1 { background: #2E89CE; padding: 22px 0; width: 100%; }
.oa-header-logo { flex-shrink: 0; margin-right: 24px; }
.oa-header-logo img { max-height: 65px; width: auto; }
.oa-header-search { flex: 1; max-width: 500px; margin: 0 24px; }
.oa-header-search form { display: flex; align-items: center; background: #fff; border-radius: 4px; overflow: hidden; }
.oa-search-cat { border: none; border-right: 1px solid #ddd; padding: 8px 10px; background: #f5f5f5; font-size: 13px; height: 40px; outline: none; }
.oa-header-search input[type=search] { flex: 1; border: none; padding: 8px 12px; font-size: 14px; outline: none; height: 40px; }
.oa-header-search button { background: #2E89CE; border: none; color: #fff; padding: 0 14px; height: 40px; cursor: pointer; display: flex; align-items: center; }
.oa-header-icons { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.oa-icon { color: #fff; position: relative; display: flex; align-items: center; text-decoration: none; }
.oa-cart-count { position: absolute; top: -8px; right: -8px; background: #f5a623; color: #fff; font-size: 10px; font-weight: 700; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }

/* ROW 2 - White Nav */
.oa-header-row-2 { background: #fff; border-bottom: 1px solid #eee; width: 100%; }
.oa-header-row-2 .oa-header-container { justify-content: space-between; }
.oa-nav-wrapper { flex: 1; }
.oa-primary-nav { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; }
.oa-primary-nav > li > a { display: block; padding: 10px 14px; color: #333; text-decoration: none; font-size: 14px; font-weight: 500; }
.oa-primary-nav > li > a:hover { color: #2E89CE; }
.oa-primary-nav .sub-menu { display: none; position: absolute; background: #fff; border: 1px solid #eee; min-width: 180px; z-index: 999; list-style: none; padding: 8px 0; box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.oa-primary-nav > li { position: relative; }
.oa-primary-nav > li:hover > .sub-menu { display: block; }
.oa-primary-nav .sub-menu li a { display: block; padding: 8px 16px; color: #333; font-size: 13px; text-decoration: none; }
.oa-primary-nav .sub-menu li a:hover { background: #f5f5f5; color: #2E89CE; }
.oa-cta-button { display: flex; align-items: center; gap: 6px; background: #f5a623; color: #fff !important; padding: 8px 16px; border-radius: 4px; font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; flex-shrink: 0; margin-left: 16px; }
.oa-cta-button:hover { background: #e09000; }

/* ROW 3 - Light Blue */
.oa-header-row-3 { background: #d0e8f5; padding: 5px 0; width: 100%; }
.oa-header-row-3 .oa-header-container { justify-content: space-between; }
.oa-newsletter-text { color: #333; font-size: 12px; }
.oa-header-utilities { display: flex; align-items: center; gap: 12px; font-size: 12px; }

/* Hide GP header elements that bleed through */
.main-navigation, .nav-container, #masthead .inside-header { display: none !important; }

/* Mobile */
@media (max-width: 768px) {
  .oa-header-row-2, .oa-header-row-3 { display: none; }
  .oa-header-search { max-width: 200px; }
}

/* Logo left-aligned */
.oa-header-logo { flex-shrink: 0; margin-right: 24px; }

/* Hide page title on homepage */
.home .entry-header, .home .page-title, .home h1.entry-title { display: none !important; }

/* ===================== OA FOOTER ===================== */
.oa-footer { background: #2E89CE; color: #fff; margin-top: 0; }
.oa-footer-container { max-width: 1400px; margin: 0 auto; padding: 0 30px; display: flex; align-items: flex-start; }
.oa-footer-main { padding: 50px 0 40px; }
.oa-footer-main .oa-footer-container { gap: 40px; }
.oa-footer-col { flex: 1; min-width: 140px; }
.oa-footer-col h4 { color: #fff; font-size: 14px; font-weight: 700; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.5px; }
.oa-footer-col ul { list-style: none; margin: 0; padding: 0; }
.oa-footer-col ul li { margin-bottom: 10px; }
.oa-footer-col ul li a { color: rgba(255,255,255,0.85); text-decoration: none; font-size: 13px; transition: color 0.2s; }
.oa-footer-col ul li a:hover { color: #fff; }
.oa-footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.oa-footer-brand img { max-height: 60px; width: auto; }
.oa-footer-logo-text { color: #fff; font-size: 18px; font-weight: 700; text-decoration: none; }
.oa-footer-social { display: flex; gap: 16px; }
.oa-footer-social a { color: rgba(255,255,255,0.85); transition: color 0.2s; }
.oa-footer-social a:hover { color: #fff; }

/* Footer bottom bar */
.oa-footer-bar { background: rgba(0,0,0,0.2); padding: 14px 0; }
.oa-footer-bar .oa-footer-container { justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.oa-footer-bar-left { display: flex; align-items: center; gap: 12px; font-size: 12px; color: rgba(255,255,255,0.85); }
.oa-footer-bar-center { font-size: 12px; color: rgba(255,255,255,0.7); text-align: center; }
.oa-footer-bar-right { display: flex; gap: 6px; align-items: center; }
.oa-payment-icons svg { border-radius: 3px; }

/* Force footer text white for WPML/currency */
.oa-footer-bar .wpml-ls-legacy-list-horizontal a,
.oa-footer-bar select { color: #fff !important; background: transparent !important; border-color: rgba(255,255,255,0.3) !important; }

/* Mobile */
@media (max-width: 768px) {
    .oa-footer-main .oa-footer-container { flex-wrap: wrap; }
    .oa-footer-col { min-width: calc(50% - 20px); }
    .oa-footer-bar .oa-footer-container { flex-direction: column; text-align: center; }
}

/* === HOMEPAGE LAYOUT FIXES v3 === */

/* Remove GP inner-container padding */
.entry-content .wp-block-group.alignfull > .wp-block-group__inner-container {
    padding-left: 20px;
    padding-right: 20px;
}

/* Hero text */
.wp-block-cover h1 { font-size: 28px !important; line-height: 1.35 !important; font-style: italic; color: #fff !important; }
.wp-block-cover p { font-size: 15px; color: #fff !important; }

/* Featured-in - small clustered thumbnails */
.oa-featured-in { text-align: center; }
.oa-featured-in .wp-block-columns {
    display: flex !important;
    justify-content: center !important;
    gap: 30px !important;
    flex-wrap: nowrap !important;
    max-width: 700px;
    margin: 0 auto !important;
}
.oa-featured-in .wp-block-column {
    flex: 0 0 auto !important;
    max-width: 140px !important;
    min-width: 0 !important;
    text-align: center;
}
.oa-featured-in .wp-block-image img {
    width: 90px !important; height: 90px !important;
    object-fit: cover !important; border-radius: 6px;
    display: inline-block !important; max-width: none !important;
}
.oa-featured-in .wp-element-caption { font-size: 11px; margin-top: 6px; line-height: 1.3; }

/* Expedition photos - equal height fill */
.oa-expedition-photos .wp-block-columns { gap: 16px !important; align-items: stretch !important; }
.oa-expedition-photos .wp-block-column { padding: 0; }
.oa-expedition-photos .wp-block-image { margin: 0; }
.oa-expedition-photos .wp-block-image img {
    width: 100% !important; height: 260px !important;
    object-fit: cover !important; border-radius: 4px; max-width: 100% !important;
}
.oa-expedition-photos .wp-element-caption { font-size: 12px; text-align: center; margin-top: 8px; }

/* Pyramid/product image - constrain height in column */
.wp-block-column .wp-block-image.aligncenter img,
.wp-block-column .wp-block-image img {
    max-width: 100% !important;
    max-height: 400px !important;
    width: auto !important;
    height: auto !important;
    display: block;
    margin: 0 auto;
}

/* Section gap removal */
.wp-block-group.alignfull { margin-top: 0 !important; margin-bottom: 0 !important; }

/* Columns vertical alignment */
.wp-block-columns.alignwide { align-items: center; }

/* Tighten inner whitespace */
.wp-block-group__inner-container { padding-top: 0 !important; padding-bottom: 0 !important; }

/* === ROW 2 NAV STYLES v2 === */
.oa-header-row-2 #primary-menu { flex: 1; }
.oa-header-row-2 .main-nav { flex: 1; }
.oa-header-row-2 .main-nav > ul.sf-menu {
    list-style: none; margin: 0; padding: 0;
    display: flex; align-items: center; flex-wrap: wrap;
}
.oa-header-row-2 .main-nav > ul.sf-menu > li { position: relative; }
.oa-header-row-2 .main-nav > ul.sf-menu > li > a {
    display: block; padding: 14px 16px; color: #333;
    text-decoration: none; font-size: 14px; font-weight: 500; white-space: nowrap;
}
.oa-header-row-2 .main-nav > ul.sf-menu > li > a:hover { color: #2E89CE; }

/* HIDE sub-menus by default */
.oa-header-row-2 .main-nav ul ul {
    display: none !important;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff !important;
    border-top: 3px solid #2E89CE;
    border: 1px solid #e5e5e5;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    min-width: 200px;
    z-index: 9999;
    list-style: none;
    padding: 6px 0;
    margin: 0;
}
/* SHOW on hover */
.oa-header-row-2 .main-nav > ul.sf-menu > li:hover > ul,
.oa-header-row-2 .main-nav > ul.sf-menu > li:focus-within > ul {
    display: block !important;
}
.oa-header-row-2 .main-nav ul ul li a {
    display: block; padding: 9px 18px; color: #333;
    font-size: 13px; text-decoration: none; white-space: nowrap;
}
.oa-header-row-2 .main-nav ul ul li a:hover { background: #f5f9ff; color: #2E89CE; }

/* SALE in red - by menu item ID */
#menu-item-2047 > a { color: #e03030 !important; font-weight: 700 !important; }

/* Hide GP dropdown toggles */
.oa-header-row-2 .dropdown-menu-toggle { display: none !important; }


/* === SHOP PAGE STYLES === */
/* Hide page title on shop/archive pages */
.woocommerce-page .entry-header,
.woocommerce-page h1.entry-title,
.shop-page-title,
.woocommerce .page-title { display: none !important; }

/* Shop page breadcrumb styling */
.woocommerce-breadcrumb { 
    padding: 12px 0; 
    font-size: 13px; 
    color: #666; 
    margin-bottom: 10px;
}

/* Product grid */
.woocommerce ul.products { 
    gap: 20px !important; 
}
.woocommerce ul.products li.product { 
    text-align: center; 
}
.woocommerce ul.products li.product .woocommerce-loop-product__title { 
    font-size: 14px !important; 
    font-weight: 500; 
    padding: 8px 0 4px; 
}
.woocommerce ul.products li.product .price { 
    color: #2E89CE !important; 
    font-weight: 600; 
    font-size: 15px; 
}
.woocommerce ul.products li.product .button { 
    width: 100%; 
    text-align: center; 
    margin-top: 8px; 
    font-size: 13px; 
    padding: 8px; 
    border-radius: 4px; 
}

/* Result count + ordering row */
.woocommerce-result-count { 
    color: #666; 
    font-size: 13px; 
}

/* Category page title */
.woocommerce-products-header__title.page-title { 
    font-size: 28px; 
    color: #2E89CE; 
    margin-bottom: 20px; 
}

/* Placeholder image tint */
.woocommerce-placeholder { opacity: 0.4; }
