/**
 * PPNT Getafe Custom Theme Colors
 * Primary Blue: #2E5AAC (from the banner)
 * Secondary Blue: #1E4A8C
 * Accent Blue: #4A90E2
 */

/* Site Logo */
.ppnt-site-logo {
    max-height: 70px;
    width: auto;
    display: block;
}

:root {
    --ppnt-primary-blue: #2E5AAC;
    --ppnt-secondary-blue: #1E4A8C;
    --ppnt-accent-blue: #4A90E2;
    --ppnt-light-blue: #EBF2FA;
}

/* Header Styling */
.site-header {
    background: transparent;
    padding: 0;
    box-shadow: none;
}

.site-header .site-branding {
    padding: 0;
    max-width: 100%;
}

.site-header .site-branding .container {
    max-width: 100%;
    padding: 0;
    width: 100%;
}

.site-header .site-branding .row {
    margin: 0;
}

.site-header .site-title {
    color: #ffffff !important;
    font-size: 2em;
    font-weight: 700;
}

.site-header .site-title a {
    color: #ffffff !important;
    text-decoration: none;
}

/* Top Header Bar */
.top-header-bar-container {
    background: #2386DE;
}

.top-header-bar {
    color: #ffffff;
}

.top-header-bar a {
    color: #ffffff !important;
}

.top-header-bar .fa {
    color: #4A90E2;
}

/* Navigation Menu */
.main-navigation {
    background: #2386DE;
}

.main-navigation .sf-menu > li > a {
    color: #ffffff !important;
    font-weight: 600;
    transition: all 0.3s ease;
}

.main-navigation .sf-menu > li > a:hover {
    background: #1E4A8C;
    color: #ffffff !important;
}

.main-navigation .sf-menu > li.current-menu-item > a,
.main-navigation .sf-menu > li.current_page_item > a {
    background: #1E4A8C;
}

/* Mobile Menu */
#mobile-menu-trigger {
    background: #2E5AAC;
    color: #ffffff;
    border: 2px solid #ffffff;
}

#mobile-menu-trigger:hover {
    background: #1E4A8C;
}

/* Buttons */
.button,
.btn,
input[type="submit"],
button[type="submit"],
.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
    background: #2386DE !important;
    color: #ffffff !important;
    border: none;
    transition: all 0.3s ease;
}

/* WooCommerce product buttons in Featured Plans */
.woocommerce ul.products li.product .button {
    background-color: #2386DE !important;
    color: #ffffff !important;
}

.button:hover,
.btn:hover,
input[type="submit"]:hover,
button[type="submit"]:hover,
.woocommerce #respond input#submit:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
    background: #1E4A8C !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(46, 90, 172, 0.3);
}

/* Links */
a {
    color: #2E5AAC;
    transition: color 0.3s ease;
}

a:hover {
    color: #1E4A8C;
}

/* WooCommerce Updates */
.woocommerce ul.products li.product .button {
    background-color: #2386DE !important;
}

.woocommerce ul.products li.product .button:hover {
    background-color: #1E6BB8 !important;
}

.woocommerce ul.products li.product .price {
    color: #2386DE !important;
}

.woocommerce span.onsale {
    background-color: #4A90E2 !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
    color: #2E5AAC !important;
    border-bottom-color: #2E5AAC !important;
}

/* Shop Homepage Hero Section */
.shop-hero {
    background: linear-gradient(135deg, #2E5AAC 0%, #1E4A8C 100%) !important;
}

.shop-hero .hero-button {
    background: white !important;
    color: #2E5AAC !important;
}

.shop-hero .hero-button:hover {
    background: #EBF2FA !important;
    color: #1E4A8C !important;
}

/* Section Titles */
.section-title:after {
    background: linear-gradient(90deg, #2E5AAC, #4A90E2) !important;
}

/* Category Cards */
.category-card:hover {
    box-shadow: 0 10px 30px rgba(46, 90, 172, 0.2);
}

.category-card i {
    color: #2E5AAC !important;
}

.category-card a {
    color: #2E5AAC !important;
}

/* Promotional Banner */
.promo-banner {
    background: linear-gradient(135deg, #4A90E2 0%, #2E5AAC 100%) !important;
}

.promo-banner .promo-button {
    background: white !important;
    color: #2E5AAC !important;
}

.promo-banner .promo-button:hover {
    background: #EBF2FA !important;
}

/* Footer */
.site-footer {
    background: #2386DE;
    color: #ffffff;
    padding: 20px 0 !important;
}

.site-footer a {
    color: #4A90E2;
}

.site-footer a:hover {
    color: #ffffff;
}

/* Breadcrumbs */
.woocommerce .woocommerce-breadcrumb a {
    color: #2E5AAC !important;
}

/* Add to Cart Success Messages */
.woocommerce-message,
.woocommerce-info {
    background: #EBF2FA !important;
    border-top-color: #2E5AAC !important;
}

.woocommerce-message::before,
.woocommerce-info::before {
    color: #2E5AAC !important;
}

/* Search Forms */
.search-form input[type="search"]:focus,
.widget_product_search input[type="search"]:focus {
    border-color: #2E5AAC !important;
}

.search-form button,
.widget_product_search button {
    background: #2E5AAC !important;
}

.search-form button:hover,
.widget_product_search button:hover {
    background: #1E4A8C !important;
}

/* Featured Plans - spacing between plan items */
#featured-plans .woocommerce ul.products {
    display: flex !important;
    flex-wrap: wrap;
    gap: 20px;
}

#featured-plans .woocommerce ul.products li.product {
    float: none !important;
    flex: 1 1 0 !important;
    width: auto !important;
    margin: 0 !important;
}

/* Product Hover Effects */
.woocommerce ul.products li.product:hover {
    border-color: #2386DE !important;
}

/* Checkout Button */
.woocommerce .checkout-button,
.woocommerce-page .checkout-button {
    background-color: #2E5AAC !important;
}

.woocommerce .checkout-button:hover,
.woocommerce-page .checkout-button:hover {
    background-color: #1E4A8C !important;
}

/* Logo Container - Full Width Banner */
.header-logo {
    width: 100vw !important;
    padding: 0 !important;
    max-width: none !important;
    flex: 0 0 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    overflow: hidden !important;
}

.header-logo .custom-logo-link {
    display: block;
    width: 100%;
    line-height: 0;
    overflow: hidden;
}

.header-logo .custom-logo {
    width: 100% !important;
    height: auto !important;
    max-width: none !important;
    max-height: none !important;
    display: block;
    object-fit: cover;
    object-position: center;
    transform: scale(0.85);
    transform-origin: top center;
    margin-bottom: -7.5%;
}

.header-logo .custom-logo:hover {
    opacity: 0.95;
    transition: opacity 0.3s ease;
}

/* Hide site title when logo is present */
.header-logo .site-title-description {
    display: none;
}

/* Ensure col-sm-4 becomes full width for logo */
.site-header .header-logo.col-sm-4 {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
}

/* Make header responsive */
@media (max-width: 768px) {
    .header-logo .custom-logo {
        width: 100% !important;
        height: auto !important;
    }

    .site-header .site-title {
        font-size: 1.5em;
    }
}

/* Navigation menu positioning - move below full width banner */
.main-navigation {
    margin-top: 0;
}

/* ===== PPNT GETAFE HOMEPAGE CUSTOMIZATIONS ===== */

/* 1. Hide HOME tab from navigation */
.main-navigation .sf-menu > li.menu-item:first-child,
.main-navigation .sf-menu > li:first-child,
.main-navigation .sf-menu > li a[href*="home"],
.main-navigation .sf-menu > li a:contains("Home"),
.main-navigation .sf-menu > li.page_item_home,
.main-navigation .sf-menu > li#menu-item-home {
    display: none !important;
}

/* Remove ALL black lines from header area */
.main-navigation,
.main-navigation .container,
.main-navigation .row,
.site-header,
.site-branding,
.site-branding .container,
.site-branding .row,
#masthead,
#site-navigation,
.header-logo,
.top-header-bar-container,
nav,
header {
    border: none !important;
    border-top: none !important;
    border-bottom: none !important;
    border-left: none !important;
    border-right: none !important;
    box-shadow: none !important;
    outline: none !important;
}

/* Remove any pseudo-element borders */
.main-navigation:before,
.main-navigation:after,
.site-header:before,
.site-header:after,
.site-branding:before,
.site-branding:after {
    display: none !important;
    border: none !important;
}

/* 2. Homepage title - white color */
.front-page-wrapper h1,
.hero-title,
.shop-hero h1,
.tyche-frontpage h1 {
    color: #ffffff !important;
}

/* 3. Homepage description */
.hero-description,
.shop-hero p,
.tyche-frontpage .hero-description {
    color: #ffffff !important;
}

/* 4. Background blue matching logo */
.shop-hero,
.hero-section,
.tyche-frontpage-area,
.front-page-wrapper .hero-area {
    background: #2386DE !important;
}

/* 5. Change SHOP NOW to VIEW PLANS - Handled in JavaScript */

/* 6. Change Featured Products to Featured Plans */
h2.section-title:contains("Featured Products"),
.products-title,
.section-heading {
    font-size: 0;
}

h2.section-title:contains("Featured Products")::after,
.products-title::after,
.section-heading::after {
    content: 'Featured Plans';
    font-size: 2rem;
    font-weight: 700;
}

/* 7. Hide Shop by Category section */
.category-section,
.shop-categories,
section.categories,
.tyche-frontpage-area.categories-area {
    display: none !important;
}

/* 8. Hide New Arrivals section */
.new-arrivals,
.recent-products,
section.new-products,
.tyche-frontpage-area.new-arrivals {
    display: none !important;
}

/* 9. Hide Special Offer section */
.special-offer,
.promo-section,
.promotional-banner,
.tyche-frontpage-area.promo-banner {
    display: none !important;
}

/* 10. Footer simple description */
.site-copyright {
    background: #2386DE;
    padding: 15px 0;
}

.copyright-text {
    width: 100% !important;
    text-align: center !important;
    float: none !important;
    color: #ffffff;
}

#menu-social {
    display: none;
}

/* Hide default WordPress sidebar widgets */
.widget_meta,
.widget_recent_entries,
.widget_categories,
.widget_archive,
.widget_recent_comments {
    display: none !important;
}

/* Hide entire sidebar (Archives, Categories, etc.) */
#secondary.widget-area,
.sidebar,
aside.widget-area,
.col-md-4.hidden-xs,
.woocommerce .col-md-4 {
    display: none !important;
}

/* Make content full width when sidebar is hidden */
.content-area,
.site-main,
main#primary,
.woocommerce .col-md-8,
.tyche-has-sidebar {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
}

/* Remove orange background from top header cart/apply button */
.top-header-bar .top-cart {
    background: transparent !important;
}

.top-header-bar .top-cart a {
    background: transparent !important;
    color: #ffffff !important;
    padding: 10px 15px;
    display: inline-block;
}

.top-header-bar .top-cart a:hover {
    background: rgba(255, 255, 255, 0.1) !important;
}

/* Apply Now and Login buttons - no background by default, background on hover with full height */
.top-header-bar-container {
    display: flex !important;
    align-items: center !important;
    height: 68px !important;
}

.top-header-bar-container .top-header-bar .top-cart,
.top-header-bar-container .top-header-bar .top-login,
.top-header-bar-container .top-header-bar .top-account {
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    height: 100% !important;
    border: none !important;
    border-left: none !important;
    border-right: none !important;
}

.top-header-bar-container .top-header-bar .top-cart a,
.top-header-bar-container .top-header-bar .top-login a,
.top-header-bar-container .top-header-bar .top-account a {
    background: transparent !important;
    color: #ffffff !important;
    transition: background 0.3s ease !important;
    border-radius: 8px !important;
    padding: 0 20px !important;
    display: flex !important;
    align-items: center !important;
    height: 100% !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    border: none !important;
}

.top-header-bar-container .top-header-bar .top-cart a:hover,
.top-header-bar-container .top-header-bar .top-login a:hover,
.top-header-bar-container .top-header-bar .top-account a:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
    text-decoration: none !important;
}

.top-header-bar-container .top-header-bar .top-cart a .fa,
.top-header-bar-container .top-header-bar .top-login a .fa,
.top-header-bar-container .top-header-bar .top-account a .fa {
    color: #ffffff !important;
    margin-right: 6px !important;
}

.top-header-bar .top-cart a {
    transition: background 0.3s ease !important;
    border-radius: 4px !important;
}

.top-header-bar .top-cart a:hover {
    background: rgba(255, 255, 255, 0.15) !important;
}

/* Vertically align all top header items */
.top-header-bar {
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 100% !important;
}

.top-header-bar li {
    display: flex !important;
    align-items: center !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 100% !important;
}

/* Hide entire quantity column in cart - ALL variations */
.woocommerce-cart-form .product-quantity,
.woocommerce-cart-form th.product-quantity,
.woocommerce-cart-form td.product-quantity,
.woocommerce table.cart .product-quantity,
.woocommerce table.shop_table .product-quantity,
table.cart td.product-quantity,
table.cart th.product-quantity,
.cart_item .product-quantity,
td.product-quantity,
th.product-quantity {
    display: none !important;
    visibility: hidden !important;
}

/* Hide Update Cart button - ALL variations */
.woocommerce-cart-form button[name="update_cart"],
.woocommerce-cart-form input[name="update_cart"],
.woocommerce-cart .actions .button[name="update_cart"],
button[name="update_cart"],
input[name="update_cart"],
.actions button[name="update_cart"] {
    display: none !important;
    visibility: hidden !important;
}

/* Hide remove button (X) - ALL variations */
.woocommerce-cart-form .product-remove,
.woocommerce-cart-form a.remove,
.woocommerce table.cart .product-remove,
table.cart td.product-remove,
table.cart th.product-remove,
.cart_item .product-remove,
td.product-remove,
th.product-remove,
a.remove,
.woocommerce-cart table.cart td.product-remove,
.woocommerce-cart table.cart td.product-remove a,
.woocommerce table.shop_table.cart td.product-remove,
.woocommerce table.shop_table.cart td.product-remove a {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    opacity: 0 !important;
}

/* Disable cart quantity input */
.woocommerce-cart .quantity input.qty,
.woocommerce-cart input.qty {
    pointer-events: none !important;
    background-color: #f5f5f5 !important;
    cursor: not-allowed !important;
    opacity: 0.6 !important;
}

/* Hide quantity increment/decrement buttons if they exist */
.woocommerce-cart .quantity .plus,
.woocommerce-cart .quantity .minus {
    display: none !important;
}

/* Hide default checkout fields - show only GCash QR */
.woocommerce-checkout .woocommerce-billing-fields,
.woocommerce-checkout .woocommerce-shipping-fields,
.woocommerce-checkout #payment,
.woocommerce-checkout .woocommerce-additional-fields,
.woocommerce-checkout .woocommerce-checkout-payment,
.woocommerce-checkout #customer_details,
.woocommerce-checkout .col2-set,
.woocommerce form.checkout {
    display: none !important;
}

/* Show GCash checkout content */
.woocommerce-checkout-gcash {
    display: block !important;
    visibility: visible !important;
}

/* ===== WHITE BACKGROUND FOR ALL INPUT FIELDS WHEN FOCUSED ===== */
input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="search"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
textarea:focus,
select:focus,
.form-control:focus,
.input-text:focus,
.woocommerce input:focus,
.woocommerce textarea:focus,
.woocommerce select:focus {
    background-color: #ffffff !important;
    background: #ffffff !important;
}

/* ===== MOBILE RESPONSIVE FIXES FOR TOP HEADER BAR ===== */
@media (max-width: 768px) {
    /* Reduce height for mobile */
    .top-header-bar-container {
        height: auto !important;
        min-height: 50px !important;
        flex-wrap: wrap !important;
    }

    /* Make buttons stack or reduce padding on mobile */
    .top-header-bar-container .top-header-bar .top-cart a,
    .top-header-bar-container .top-header-bar .top-login a,
    .top-header-bar-container .top-header-bar .top-account a {
        padding: 8px 12px !important;
        font-size: 12px !important;
        height: auto !important;
        white-space: nowrap !important;
    }

    /* Reduce icon margin on mobile */
    .top-header-bar-container .top-header-bar .top-cart a .fa,
    .top-header-bar-container .top-header-bar .top-login a .fa,
    .top-header-bar-container .top-header-bar .top-account a .fa {
        margin-right: 4px !important;
        font-size: 12px !important;
    }

    /* Allow wrapping if needed */
    .top-header-bar {
        flex-wrap: wrap !important;
        justify-content: center !important;
    }

    .top-header-bar li {
        height: auto !important;
    }
}

/* ===== Plan Card - New Design ===== */
.ppnt-plan-card {
    background: #fff !important;
    border-radius: 16px !important;
    border: 1px solid #e0e8f5 !important;
    box-shadow: 0 2px 12px rgba(35, 134, 222, 0.08) !important;
    padding: 20px !important;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    display: flex !important;
    flex-direction: column;
}

.ppnt-plan-card:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 10px 30px rgba(35, 134, 222, 0.18) !important;
    border-color: #2386DE !important;
}

.ppnt-plan-card__link {
    text-decoration: none !important;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    height: 100%;
}

.ppnt-plan-card__title {
    font-size: 1.15em !important;
    font-weight: 700 !important;
    color: #1a2e5a !important;
    margin: 0 0 4px !important;
    padding: 0 !important;
}

.ppnt-plan-card__image {
    width: 100%;
}

.ppnt-plan-card__image img {
    width: 100% !important;
    height: 160px !important;
    object-fit: cover !important;
    border-radius: 10px !important;
    display: block;
}

.ppnt-plan-card__price {
    font-size: 1.5em !important;
    font-weight: 700 !important;
    color: #1a2e5a !important;
}

.ppnt-plan-card__price .woocommerce-Price-amount {
    color: #1a2e5a !important;
    font-size: inherit !important;
}

.ppnt-plan-card__features {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    color: #666;
    font-size: 0.88em;
    line-height: 1.5;
}

.ppnt-plan-card__cta {
    margin-top: auto;
    padding-top: 8px;
    width: 100%;
}

.ppnt-plan-card__button {
    display: inline-block;
    background-color: #2386DE;
    color: #fff !important;
    padding: 12px 36px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.9em;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: background-color 0.3s ease;
}

.ppnt-plan-card:hover .ppnt-plan-card__button {
    background-color: #1E6BB8;
}
