/* ============================================
   Kadence - Praia do Norte — Surf Premium CSS
   ============================================ */

/* ------------------------------------------
   0. Global Utility Classes
   ------------------------------------------ */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}


/* ------------------------------------------
   1. CSS Custom Properties — Brand Tokens
   ------------------------------------------ */
:root {
    /* Ocean palette (matches Laravel frontend) */
    --pn-ocean-primary: #0066cc;
    --pn-ocean-deep: #003566;
    --pn-ocean-abyss: #001d3d;
    --pn-ocean-mid: #0077b6;
    --pn-ocean-surface: #00b4d8;
    --pn-ocean-light: #90e0ef;

    /* Neutral/sand */
    --pn-sand: #f4e4c1;
    --pn-dark-navy: #0b1022;
    --pn-white: #ffffff;
    --pn-off-white: #f8f9fa;
    --pn-gray-light: #e9ecef;
    --pn-gray-mid: #6c757d;
    --pn-gray-dark: #343a40;

    /* Typography */
    --pn-font-heading: 'Montserrat', system-ui, sans-serif;
    --pn-font-body: 'Inter', ui-sans-serif, system-ui, sans-serif;

    /* Spacing */
    --pn-radius: 8px;
    --pn-radius-lg: 12px;
    --pn-shadow: 0 2px 8px rgba(0, 29, 61, 0.08);
    --pn-shadow-hover: 0 8px 24px rgba(0, 102, 204, 0.15);
    --pn-transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}


/* ------------------------------------------
   2. Typography
   ------------------------------------------ */
body {
    font-family: var(--pn-font-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6,
.site-title,
.product_title,
.woocommerce-loop-product__title,
.entry-title {
    font-family: var(--pn-font-heading);
    font-weight: 700;
    letter-spacing: -0.01em;
}


/* ------------------------------------------
   3. Hide Kadence default header/footer chrome
   ------------------------------------------ */
.wp-site-header .site-top-header-wrap,
.site-header-row-container.site-header-focus-item[data-section="kadence_customizer_header_top"],
#main-header .header-top,
.kadence-header-row--top {
    display: none !important;
}

/* Hide Kadence default header internals (replaced by custom) */
#masthead .site-header-row-container-inner,
#masthead .site-main-header-wrap,
.site-branding,
.header-menu-container,
.header-navigation,
.header-cart-wrap,
.header-search-toggle,
.header-account-wrap,
.header-mobile-toggle,
.mobile-header-navigation {
    display: none !important;
}


/* ------------------------------------------
   4. Custom Header — Matches Laravel site
   ------------------------------------------ */
.pn-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--pn-white);
    border-bottom: 1px solid var(--pn-gray-light);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    height: 4rem;
}

.pn-header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
}

/* Logo */
.pn-logo {
    display: flex !important;
    align-items: center;
    flex-shrink: 0;
}

.pn-header .pn-logo-img {
    height: 2.5rem !important;
    width: auto !important;
    max-width: none !important;
    overflow: visible !important;
}

/* Nav Pill */
.pn-nav-pill {
    display: flex;
    align-items: center;
    gap: 2px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 9999px;
    padding: 0.25rem 0.375rem;
}

.pn-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    font-family: var(--pn-font-body);
    color: rgba(11, 16, 34, 0.7);
    border-radius: 9999px;
    transition: color var(--pn-transition), background var(--pn-transition);
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    border: none;
    background: none;
    cursor: pointer;
    line-height: 1.4;
}

.pn-nav-link:hover {
    color: rgba(11, 16, 34, 0.95);
    background: rgba(0, 0, 0, 0.05);
}

/* Active nav link (Loja) */
.pn-nav-active {
    position: relative;
}

.pn-nav-underline {
    position: absolute;
    bottom: 0;
    left: 0.75rem;
    right: 0.75rem;
    height: 2px;
    background: var(--pn-ocean-primary);
    border-radius: 9999px;
}

/* Chevron icon */
.pn-chevron {
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

/* Dropdown */
.pn-dropdown {
    position: relative;
}

.pn-dropdown-menu {
    display: none;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 100%;
    padding-top: 0.75rem;
    z-index: 200;
    width: 14rem;
}

/* Invisible hover bridge between trigger and menu */
.pn-dropdown-menu::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 0.75rem;
}

/* Show dropdown on hover */
.pn-dropdown:hover .pn-dropdown-menu {
    display: block;
    background: var(--pn-white);
    border-radius: var(--pn-radius-lg);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.05);
    padding: 0.75rem 0.5rem 0.5rem;
}

.pn-dropdown:hover .pn-chevron {
    transform: rotate(180deg);
}

.pn-dropdown-item {
    display: block;
    padding: 0.625rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    font-family: var(--pn-font-body);
    color: var(--pn-gray-dark);
    text-decoration: none;
    border-radius: 6px;
    transition: background var(--pn-transition);
}

.pn-dropdown-item:hover {
    background: var(--pn-off-white);
    color: var(--pn-gray-dark);
}

/* Right zone */
.pn-header-right {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

/* Cart icon */
.pn-cart-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 9999px;
    color: rgba(11, 16, 34, 0.7);
    transition: background var(--pn-transition), color var(--pn-transition);
    text-decoration: none;
    position: relative;
}

.pn-cart-icon:hover {
    background: rgba(0, 0, 0, 0.05);
    color: rgba(11, 16, 34, 0.95);
}

.pn-cart-icon svg {
    width: 20px;
    height: 20px;
}

.pn-cart-badge {
    position: absolute;
    top: 0;
    right: -2px;
    background-color: var(--pn-ocean-primary);
    color: var(--pn-white);
    font-size: 0.6rem;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Language toggle */
.pn-lang-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-family: var(--pn-font-body);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: rgba(11, 16, 34, 0.7);
    transition: color var(--pn-transition), background var(--pn-transition);
    text-decoration: none;
    border: 1px solid rgba(11, 16, 34, 0.2);
}
.pn-lang-toggle:hover {
    color: rgba(11, 16, 34, 0.95);
    background: rgba(0, 0, 0, 0.05);
}

/* Mobile toggle */
.pn-mobile-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 9999px;
    border: none;
    background: none;
    color: rgba(11, 16, 34, 0.7);
    cursor: pointer;
    transition: background var(--pn-transition);
}

.pn-mobile-toggle:hover {
    background: rgba(0, 0, 0, 0.05);
}

/* Content offset for fixed header */
body.pn-surf-theme #inner-wrap,
body.pn-surf-theme .site {
    padding-top: 4rem !important;
}

/* WooCommerce pages with hero banner: no extra offset (hero fills the gap) */
body.pn-surf-theme.post-type-archive-product #inner-wrap,
body.pn-surf-theme.post-type-archive-product .site,
body.pn-surf-theme.single-product #inner-wrap,
body.pn-surf-theme.single-product .site,
body.pn-surf-theme.woocommerce-cart #inner-wrap,
body.pn-surf-theme.woocommerce-cart .site,
body.pn-surf-theme.woocommerce-checkout #inner-wrap,
body.pn-surf-theme.woocommerce-checkout .site {
    padding-top: 0 !important;
}

/* Also offset entry-hero if present */
.entry-hero-container-inner,
.wp-site-blocks .entry-hero {
    margin-top: 0;
}


/* ------------------------------------------
   5. Product Cards — Hover lift + ocean shadow
   ------------------------------------------ */
.woocommerce ul.products li.product,
.wc-block-grid__product {
    background: var(--pn-white);
    border-radius: var(--pn-radius-lg);
    overflow: hidden;
    box-shadow: var(--pn-shadow);
    transition: transform var(--pn-transition), box-shadow var(--pn-transition);
    border: 1px solid var(--pn-gray-light);
}

.woocommerce ul.products li.product:hover,
.wc-block-grid__product:hover {
    transform: translateY(-4px);
    box-shadow: var(--pn-shadow-hover);
    border-color: rgba(0, 102, 204, 0.2);
}

/* Product image container */
.woocommerce ul.products li.product a img,
.wc-block-grid__product-image img {
    border-radius: var(--pn-radius-lg) var(--pn-radius-lg) 0 0;
    transition: transform var(--pn-transition);
}

.woocommerce ul.products li.product:hover a img {
    transform: scale(1.03);
}

/* Product title in cards */
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.wc-block-grid__product-title {
    font-family: var(--pn-font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--pn-ocean-abyss);
    padding: 0.75rem 1rem 0.25rem;
    margin: 0;
}

/* Product price */
.woocommerce ul.products li.product .price,
.wc-block-grid__product-price {
    color: var(--pn-ocean-deep);
    font-family: var(--pn-font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    padding: 0 1rem;
}

.woocommerce ul.products li.product .price del {
    color: var(--pn-gray-mid);
    font-weight: 400;
    font-size: 0.85rem;
}

.woocommerce ul.products li.product .price ins {
    color: var(--pn-ocean-primary);
    text-decoration: none;
    font-weight: 700;
}


/* ------------------------------------------
   6. Buttons — Ocean blue with depth
   ------------------------------------------ */
.woocommerce ul.products li.product .button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.wp-block-button__link,
.button.primary-color {
    background-color: var(--pn-ocean-primary) !important;
    color: var(--pn-white) !important;
    border: none !important;
    border-radius: var(--pn-radius) !important;
    font-family: var(--pn-font-heading) !important;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    line-height: 1 !important;
    padding: 0.7rem 1.5rem !important;
    transition: all var(--pn-transition) !important;
    cursor: pointer;
}

.woocommerce ul.products li.product .button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover,
.wp-block-button__link:hover,
.button.primary-color:hover {
    background-color: var(--pn-ocean-deep) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 53, 102, 0.3);
}

/* Add to cart button in product cards — full width, always visible */
.woocommerce ul.products li.product .button {
    display: block !important;
    text-align: center !important;
    margin: 0.75rem 1rem 1rem !important;
    width: calc(100% - 2rem) !important;
    position: static !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Ensure hover doesn't cause button overlap */
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product a.added_to_cart {
    position: static !important;
    bottom: auto !important;
    left: auto !important;
}


/* ------------------------------------------
   7. Sale Badge
   ------------------------------------------ */
.woocommerce span.onsale,
.onsale {
    background-color: var(--pn-ocean-surface) !important;
    color: var(--pn-ocean-abyss) !important;
    font-family: var(--pn-font-heading);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--pn-radius) !important;
    padding: 0.3rem 0.75rem !important;
    min-height: auto !important;
    min-width: auto !important;
    line-height: 1.4 !important;
}


/* ------------------------------------------
   8. Single Product Page
   ------------------------------------------ */

/* Custom product page header (matches Laravel layout) */
.pn-product-header {
    border-bottom: 1px solid var(--pn-gray-light);
    padding: 1.5rem 0;
}

.pn-product-header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

.pn-product-header .pn-product-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.pn-product-header .pn-product-category {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--pn-ocean-primary);
    font-family: var(--pn-font-body);
}

.pn-product-header .pn-product-category-sep {
    font-size: 0.75rem;
    color: var(--pn-gray-mid);
}

.pn-product-header h1 {
    font-family: var(--pn-font-heading);
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--pn-ocean-abyss);
    margin: 0;
    line-height: 1.3;
}

.pn-product-header .pn-product-header-price {
    margin-top: 0.5rem;
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
}

.pn-product-header .pn-product-header-price .pn-current-price {
    font-family: var(--pn-font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--pn-ocean-deep);
}

.pn-product-header .pn-product-header-price .pn-original-price {
    font-size: 1.1rem;
    color: var(--pn-gray-mid);
    text-decoration: line-through;
}

/* Hide the default product_title in summary (shown in page header instead) */
.single-product .summary .product_title {
    display: none !important;
}

.single-product .product_title {
    font-family: var(--pn-font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--pn-ocean-abyss);
    margin-bottom: 0.5rem;
}

/* Center add-to-cart button text */
.single-product .single_add_to_cart_button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
}

.single-product .price {
    font-family: var(--pn-font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--pn-ocean-deep);
}

/* Product tabs */
.woocommerce div.product .woocommerce-tabs ul.tabs li a {
    font-family: var(--pn-font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--pn-gray-mid);
    transition: color var(--pn-transition);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
    color: var(--pn-ocean-primary);
}

/* Quantity input */
.woocommerce .quantity .qty {
    border-radius: var(--pn-radius);
    border: 1px solid var(--pn-gray-light);
    padding: 0.5rem;
    font-family: var(--pn-font-body);
}

/* Product gallery */
.woocommerce div.product div.images .woocommerce-product-gallery__image img {
    border-radius: var(--pn-radius-lg);
}


/* ------------------------------------------
   9. Cart & Checkout
   ------------------------------------------ */
.woocommerce-cart .woocommerce table.shop_table {
    border-radius: var(--pn-radius-lg);
    overflow: hidden;
    border: 1px solid var(--pn-gray-light);
}

.woocommerce-cart .woocommerce table.shop_table th {
    background-color: var(--pn-ocean-abyss);
    color: var(--pn-white);
    font-family: var(--pn-font-heading);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
}

.woocommerce-checkout .woocommerce-input-wrapper input,
.woocommerce-checkout .woocommerce-input-wrapper textarea,
.woocommerce-checkout select {
    border-radius: var(--pn-radius) !important;
    border: 1px solid var(--pn-gray-light) !important;
    padding: 0.6rem 0.8rem !important;
    font-family: var(--pn-font-body);
    transition: border-color var(--pn-transition);
}

.woocommerce-checkout .woocommerce-input-wrapper input:focus,
.woocommerce-checkout select:focus {
    border-color: var(--pn-ocean-primary) !important;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.15);
}

/* Checkout order summary */
.woocommerce-checkout #order_review {
    background: var(--pn-off-white);
    border-radius: var(--pn-radius-lg);
    padding: 1.5rem;
    border: 1px solid var(--pn-gray-light);
}


/* ------------------------------------------
   10. Custom Footer — Matches Laravel site
   ------------------------------------------ */
/* Hide all Kadence default footer rows */
.site-footer .site-middle-footer-wrap,
.site-footer .site-top-footer-wrap,
.site-footer .site-bottom-footer-wrap,
.kadence-footer-row--middle,
.kadence-footer-row--top,
.kadence-footer-row--bottom,
.site-footer-row-container {
    display: none !important;
}

.pn-footer {
    background: var(--pn-dark-navy);
    color: var(--pn-white);
}

.pn-footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 3rem 1rem;
}

.pn-footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
}

.pn-footer h3 {
    font-size: 0.875rem;
    font-weight: 600;
    font-family: var(--pn-font-body);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--pn-white);
    margin-bottom: 1rem;
}

.pn-footer h4 {
    font-size: 0.75rem;
    font-weight: 600;
    font-family: var(--pn-font-body);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.pn-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pn-footer ul li {
    margin-bottom: 0.5rem;
}

.pn-footer a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color var(--pn-transition);
}

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

.pn-ext {
    font-size: 0.625rem;
}

.pn-footer-address {
    font-size: 0.875rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0 0.5rem;
}

.pn-footer-phone {
    margin: 0.25rem 0;
    font-size: 0.875rem;
}

.pn-footer-phone a {
    color: rgba(255, 255, 255, 0.6);
}

.pn-footer-contact-link {
    margin: 0.5rem 0 0;
    font-size: 0.875rem;
}

/* Footer logo */
.pn-footer-logo {
    margin-top: 2.5rem;
}

.pn-footer .pn-footer-logo-img {
    height: 3rem !important;
    width: auto !important;
    max-width: none !important;
    overflow: visible !important;
    opacity: 0.6;
}

/* Copyright bar */
.pn-footer-copyright {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.4);
}

.pn-footer-copyright p {
    margin: 0;
}

.pn-footer-legal {
    display: flex;
    gap: 1rem;
}

.pn-footer-legal a {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.875rem;
}

.pn-footer-legal a:hover {
    color: rgba(255, 255, 255, 0.7);
}


/* ------------------------------------------
   11. Breadcrumbs — Custom bar (matches Laravel)
   ------------------------------------------ */
.pn-breadcrumbs {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--pn-gray-light);
    background: var(--pn-white);
}

.pn-breadcrumbs-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

.pn-breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.375rem;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.875rem;
    color: var(--pn-gray-mid);
}

.pn-breadcrumbs li {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

.pn-breadcrumbs a {
    color: var(--pn-gray-mid);
    text-decoration: none;
    transition: color var(--pn-transition);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.pn-breadcrumbs a:hover {
    color: var(--pn-ocean-primary);
}

.pn-breadcrumbs [aria-current="page"] {
    font-weight: 500;
    color: var(--pn-gray-dark);
}

.pn-bc-sep {
    color: var(--pn-gray-mid);
    opacity: 0.5;
}

/* Hide Kadence breadcrumbs inside product content (replaced by custom bar) */
.single-product .product-title.product-above {
    display: none !important;
}

/* Hide Kadence default breadcrumbs in WooCommerce product content area */
.single-product .woocommerce-breadcrumb {
    display: none !important;
}

/* Legacy Kadence breadcrumb styles (shop/archive pages) */
.woocommerce .woocommerce-breadcrumb,
.kadence-breadcrumbs {
    font-family: var(--pn-font-body);
    font-size: 0.8rem;
    color: var(--pn-gray-mid);
    padding: 0.75rem 0;
}

.woocommerce .woocommerce-breadcrumb a,
.kadence-breadcrumbs a {
    color: var(--pn-ocean-primary);
    text-decoration: none;
    transition: color var(--pn-transition);
}

.woocommerce .woocommerce-breadcrumb a:hover,
.kadence-breadcrumbs a:hover {
    color: var(--pn-ocean-deep);
}


/* ------------------------------------------
   11b. Page Title Banner — Clean flat style
   ------------------------------------------ */
.entry-hero-container-inner,
.wp-site-blocks .entry-hero,
.kadence-page-title,
.product-hero-section,
.woocommerce-products-header {
    background: transparent !important;
    color: inherit !important;
    padding: 0 !important;
    border-bottom: 1px solid var(--pn-gray-light);
}

/* Hide entry-hero on all WooCommerce pages (replaced by custom pn-shop-hero) */
.single-product .entry-hero-container-inner,
.single-product .entry-hero,
.single-product .kadence-page-title,
.woocommerce-cart .entry-hero-container-inner,
.woocommerce-cart .entry-hero,
.woocommerce-cart .kadence-page-title,
.woocommerce-checkout .entry-hero-container-inner,
.woocommerce-checkout .entry-hero,
.woocommerce-checkout .kadence-page-title {
    display: none !important;
}

/* Remove extra padding/margin on WooCommerce pages with hero */
.single-product .content-area,
.woocommerce-cart .content-area,
.woocommerce-checkout .content-area {
    margin-top: 0 !important;
}

.single-product #inner-wrap,
.woocommerce-cart #inner-wrap,
.woocommerce-checkout #inner-wrap {
    padding-top: 0 !important;
}

.entry-hero-container-inner .entry-title,
.kadence-page-title .entry-title,
.entry-hero .entry-title,
.woocommerce-products-header .page-title {
    color: var(--pn-ocean-abyss) !important;
    font-size: 1.875rem;
    font-weight: 700;
    padding: 1.5rem 0;
}

.entry-hero .kadence-breadcrumbs,
.entry-hero .kadence-breadcrumbs span {
    color: var(--pn-gray-mid) !important;
}

.entry-hero .kadence-breadcrumbs a {
    color: var(--pn-ocean-primary) !important;
}

.entry-hero .kadence-breadcrumbs a:hover {
    color: var(--pn-ocean-deep) !important;
}


/* ------------------------------------------
   11c. Shop Hero Banner
   ------------------------------------------ */

/* Hide ALL Kadence/WooCommerce page-title elements on store pages with hero */
body.post-type-archive-product .entry-hero-container-inner,
body.post-type-archive-product .entry-hero,
body.post-type-archive-product .entry-hero-container,
body.post-type-archive-product .kadence-page-title,
body.post-type-archive-product .woocommerce-products-header,
body.post-type-archive-product .product-archive-hero-section,
body.post-type-archive-product .page-title {
    display: none !important;
}

/* Remove extra spacing between hero and content on all store pages */
body.post-type-archive-product #inner-wrap,
body.post-type-archive-product .wrap.kt-clear,
body.woocommerce-cart .wrap.kt-clear,
body.woocommerce-checkout .wrap.kt-clear {
    padding-top: 0 !important;
}

body.post-type-archive-product .content-area,
body.post-type-archive-product .site-main,
body.woocommerce-cart .content-area,
body.woocommerce-cart .site-main,
body.woocommerce-checkout .content-area,
body.woocommerce-checkout .site-main {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

body.post-type-archive-product .woocommerce-notices-wrapper:empty {
    display: none;
}

/* Spacing between hero and product grid on shop page */
body.post-type-archive-product .pn-shop-hero {
    margin-bottom: 1.5rem;
}

.pn-shop-hero {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 286px;
    background-size: cover;
    background-position: center 40%;
}

.pn-shop-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 29, 61, 0.85) 0%, rgba(0, 53, 102, 0.7) 100%);
    z-index: 1;
}

.pn-shop-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2.5rem 1rem;
}

.pn-shop-hero h1 {
    font-family: var(--pn-font-heading);
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--pn-white);
    margin: 0 0 0.25rem;
    letter-spacing: -0.02em;
}

.pn-shop-hero p {
    font-family: var(--pn-font-body);
    font-size: 1rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

@media (max-width: 768px) {
    .pn-shop-hero {
        min-height: 208px;
    }

    .pn-shop-hero h1 {
        font-size: 1.75rem;
    }

    .pn-shop-hero p {
        font-size: 0.875rem;
    }
}


/* ------------------------------------------
   12. Shop Page / Archive
   ------------------------------------------ */
.woocommerce-page .woocommerce-result-count,
.woocommerce-page .woocommerce-ordering select {
    font-family: var(--pn-font-body);
    font-size: 0.85rem;
}

.woocommerce-page .woocommerce-ordering select {
    border-radius: var(--pn-radius);
    border: 1px solid var(--pn-gray-light);
    padding: 0.4rem 0.8rem;
}

/* Pagination */
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
    border-radius: var(--pn-radius) !important;
    font-family: var(--pn-font-heading);
    font-weight: 600;
    transition: all var(--pn-transition);
}

.woocommerce nav.woocommerce-pagination ul li span.current {
    background-color: var(--pn-ocean-primary) !important;
    color: var(--pn-white) !important;
    border-color: var(--pn-ocean-primary) !important;
}

.woocommerce nav.woocommerce-pagination ul li a:hover {
    background-color: var(--pn-ocean-abyss) !important;
    color: var(--pn-white) !important;
}


/* ------------------------------------------
   12b. Placeholder Product Images
   ------------------------------------------ */
.woocommerce-placeholder {
    background: linear-gradient(135deg, #e6f2ff 0%, #b3d9ff 100%);
    opacity: 0.6;
    border-radius: var(--pn-radius-lg) var(--pn-radius-lg) 0 0;
}


/* ------------------------------------------
   13. WooCommerce Notices
   ------------------------------------------ */
.woocommerce-message {
    border-top-color: var(--pn-ocean-primary) !important;
}

.woocommerce-message::before {
    color: var(--pn-ocean-primary) !important;
}

.woocommerce-info {
    border-top-color: var(--pn-ocean-mid) !important;
}


/* ------------------------------------------
   14. Search
   ------------------------------------------ */
.search-form .search-field {
    border-radius: var(--pn-radius);
    border: 1px solid var(--pn-gray-light);
    font-family: var(--pn-font-body);
}

.search-form .search-submit {
    background-color: var(--pn-ocean-primary);
    color: var(--pn-white);
    border-radius: var(--pn-radius);
}


/* ------------------------------------------
   15. Star Ratings
   ------------------------------------------ */
.woocommerce .star-rating span::before,
.woocommerce .star-rating::before {
    color: var(--pn-ocean-surface) !important;
}


/* ------------------------------------------
   16. Mobile Responsive
   ------------------------------------------ */

/* Mobile menu (hidden by default) */
.pn-mobile-menu {
    display: none;
    background: var(--pn-white);
    border-top: 1px solid var(--pn-gray-light);
    padding: 1rem;
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
}

.pn-mobile-menu.is-open {
    display: block;
}

.pn-mobile-section {
    border-bottom: 1px solid var(--pn-gray-light);
}

.pn-mobile-section-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.875rem 0;
    font-size: 0.9375rem;
    font-weight: 600;
    font-family: var(--pn-font-body);
    color: var(--pn-gray-dark);
    background: none;
    border: none;
    cursor: pointer;
}

.pn-mobile-section-toggle .pn-chevron {
    transition: transform 0.2s ease;
}

.pn-mobile-section.is-expanded .pn-mobile-section-toggle .pn-chevron {
    transform: rotate(180deg);
}

.pn-mobile-section-items {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.pn-mobile-section-items a {
    display: block;
    padding: 0.5rem 0 0.5rem 1rem;
    font-size: 0.875rem;
    color: rgba(11, 16, 34, 0.6);
    text-decoration: none;
    transition: color var(--pn-transition);
}

.pn-mobile-section-items a:hover {
    color: var(--pn-ocean-primary);
}

.pn-mobile-direct-links {
    padding: 0.875rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.pn-mobile-direct-links a {
    display: block;
    padding: 0.625rem 0;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--pn-gray-dark);
    text-decoration: none;
}

.pn-mobile-direct-links a.pn-mobile-active {
    color: var(--pn-ocean-primary);
    font-weight: 600;
}

/* Breakpoint: < 1024px — show mobile, hide desktop nav */
@media (max-width: 1023px) {
    .pn-nav-desktop {
        display: none !important;
    }

    .pn-mobile-toggle {
        display: flex;
    }
}

/* Breakpoint: >= 1024px — show desktop nav, hide mobile */
@media (min-width: 1024px) {
    .pn-mobile-menu {
        display: none !important;
    }

    .pn-mobile-toggle {
        display: none !important;
    }
}

/* Footer responsive */
@media (max-width: 1023px) {
    .pn-footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 639px) {
    .pn-footer-grid {
        grid-template-columns: 1fr;
    }

    .pn-footer-copyright {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* Product responsive */
@media (max-width: 768px) {
    /* Full-width buttons */
    .woocommerce ul.products li.product .button {
        width: calc(100% - 1.5rem) !important;
        margin: 0.5rem 0.75rem 0.75rem !important;
    }

    /* Product cards — less padding */
    .woocommerce ul.products li.product .woocommerce-loop-product__title {
        padding: 0.5rem 0.75rem 0.25rem;
        font-size: 0.9rem;
    }

    .woocommerce ul.products li.product .price {
        padding: 0 0.75rem;
        font-size: 1rem;
    }

    /* Sticky add to cart on mobile */
    .single-product .summary .single_add_to_cart_button {
        width: 100% !important;
    }

    /* Single product title */
    .single-product .product_title {
        font-size: 1.4rem;
    }

    /* Product page header */
    .pn-product-header h1 {
        font-size: 1.4rem;
    }

    .pn-product-header .pn-product-header-price .pn-current-price {
        font-size: 1.25rem;
    }

    /* Logo */
    .pn-logo-img {
        height: 2rem;
    }
}

@media (max-width: 480px) {
    /* Even more compact on small phones */
    .woocommerce ul.products li.product .woocommerce-loop-product__title {
        font-size: 0.85rem;
    }

    .woocommerce ul.products li.product .price {
        font-size: 0.95rem;
    }

    .woocommerce ul.products li.product .button {
        font-size: 0.8rem !important;
        padding: 0.6rem 1rem !important;
    }
}


/* ------------------------------------------
   17. Smooth scroll and general polish
   ------------------------------------------ */
html {
    scroll-behavior: smooth;
}

/* Remove outlines on click, keep for keyboard */
*:focus:not(:focus-visible) {
    outline: none;
}

*:focus-visible {
    outline: 2px solid var(--pn-ocean-primary);
    outline-offset: 2px;
}

/* Image lazy load fade-in */
img[loading="lazy"] {
    transition: opacity var(--pn-transition);
}

/* Selection color */
::selection {
    background-color: var(--pn-ocean-primary);
    color: var(--pn-white);
}
