/**
 * Phasor Product Enhancements Styles
 * Spec Sheet Layout: Dark Hero + Highlights Bar + Feature Band + Specs Table
 * Only applies to products in "Generators" category
 */

/* ============================================
   GLOBAL - Only for Generator Products
   ============================================ */

body.phasor-generator-product .single-product {
    background: #ffffff;
    color: #111111;
    padding: 0;
    margin: 0;
}

/* Make site-main full width for generator products */
body.phasor-generator-product .site-main {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Change content-area background and color for generator products */
body.phasor-generator-product .content-area {
    background: #0b0b0b;
    color: #606060;
    max-width: 100% !important;
    width: 100% !important;
}

/* Hide header-top on generator product pages (single product pages only) */
body.phasor-generator-product .header-top {
    display: none !important;
}

/* Ensure header-top is visible on product archive pages */
body.post-type-archive-product .header-top,
body.woocommerce-shop .header-top,
body.tax-product_cat .header-top {
    display: block !important;
}

/* ============================================
   ELEMENTOR HEADER - Ensure Visible on Product Archive Pages
   ============================================ */

/* Ensure the entire Elementor header is visible on product archive pages */
/* This ensures the header renders the same as on other pages */
body.post-type-archive-product [data-elementor-type="ehp-header"],
body.woocommerce-shop [data-elementor-type="ehp-header"],
body.tax-product_cat [data-elementor-type="ehp-header"],
body.post-type-archive-product .elementor-129,
body.woocommerce-shop .elementor-129,
body.tax-product_cat .elementor-129 {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Ensure Elementor header elements container is visible */
body.post-type-archive-product .ehp-header__elements-container,
body.woocommerce-shop .ehp-header__elements-container,
body.tax-product_cat .ehp-header__elements-container {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Ensure Elementor header navigation is visible on product archive pages */
body.post-type-archive-product .ehp-header__navigation,
body.woocommerce-shop .ehp-header__navigation,
body.tax-product_cat .ehp-header__navigation {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Ensure navigation menu and items are visible */
body.post-type-archive-product .ehp-header__menu,
body.woocommerce-shop .ehp-header__menu,
body.tax-product_cat .ehp-header__menu,
body.post-type-archive-product nav .ehp-header__menu,
body.woocommerce-shop nav .ehp-header__menu,
body.tax-product_cat nav .ehp-header__menu {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    flex-direction: row !important;
    width: auto !important;
    height: auto !important;
    max-width: none !important;
    max-height: none !important;
}

body.post-type-archive-product .ehp-header__menu li,
body.woocommerce-shop .ehp-header__menu li,
body.tax-product_cat .ehp-header__menu li,
body.post-type-archive-product nav .ehp-header__menu li,
body.woocommerce-shop nav .ehp-header__menu li,
body.tax-product_cat nav .ehp-header__menu li {
    display: list-item !important;
    visibility: visible !important;
    opacity: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
    width: auto !important;
    height: auto !important;
}

body.post-type-archive-product .ehp-header__item,
body.woocommerce-shop .ehp-header__item,
body.tax-product_cat .ehp-header__item,
body.post-type-archive-product nav .ehp-header__item,
body.woocommerce-shop nav .ehp-header__item,
body.tax-product_cat nav .ehp-header__item,
body.post-type-archive-product .ehp-header__menu a,
body.woocommerce-shop .ehp-header__menu a,
body.tax-product_cat .ehp-header__menu a {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: auto !important;
    height: auto !important;
}

/* Ensure navigation container is visible and has proper layout */
body.post-type-archive-product .ehp-header__navigation,
body.woocommerce-shop .ehp-header__navigation,
body.tax-product_cat .ehp-header__navigation {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: auto !important;
    height: auto !important;
    flex-direction: row !important;
    align-items: center !important;
}

/* Ensure header site link (logo) is visible */
body.post-type-archive-product .ehp-header__site-link-container,
body.woocommerce-shop .ehp-header__site-link-container,
body.tax-product_cat .ehp-header__site-link-container {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Ensure menu cart container is visible if present */
body.post-type-archive-product .ehp-header__menu-cart-container,
body.woocommerce-shop .ehp-header__menu-cart-container,
body.tax-product_cat .ehp-header__menu-cart-container {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Hide default theme header on shop pages ONLY if Elementor header is present */
body.post-type-archive-product:has([data-elementor-type="ehp-header"]) #site-header,
body.woocommerce-shop:has([data-elementor-type="ehp-header"]) #site-header,
body.tax-product_cat:has([data-elementor-type="ehp-header"]) #site-header,
body.post-type-archive-product:has(.elementor-129) #site-header,
body.woocommerce-shop:has(.elementor-129) #site-header,
body.tax-product_cat:has(.elementor-129) #site-header {
    display: none !important;
}

/* Ensure default header navigation is visible on shop pages if Elementor header is not present */
body.post-type-archive-product:not(:has([data-elementor-type="ehp-header"])):not(:has(.elementor-129)) .site-navigation,
body.woocommerce-shop:not(:has([data-elementor-type="ehp-header"])):not(:has(.elementor-129)) .site-navigation,
body.tax-product_cat:not(:has([data-elementor-type="ehp-header"])):not(:has(.elementor-129)) .site-navigation {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Fallback for browsers without :has() support - ensure menu is visible on shop pages */
body.post-type-archive-product .site-navigation,
body.woocommerce-shop .site-navigation,
body.tax-product_cat .site-navigation {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Ensure menu items are visible */
body.post-type-archive-product .site-navigation ul,
body.woocommerce-shop .site-navigation ul,
body.tax-product_cat .site-navigation ul,
body.post-type-archive-product .site-navigation li,
body.woocommerce-shop .site-navigation li,
body.tax-product_cat .site-navigation li {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.post-type-archive-product .site-navigation a,
body.woocommerce-shop .site-navigation a,
body.tax-product_cat .site-navigation a {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Ensure Elementor header is shown on shop pages */
body.post-type-archive-product [data-elementor-type="ehp-header"],
body.woocommerce-shop [data-elementor-type="ehp-header"],
body.tax-product_cat [data-elementor-type="ehp-header"],
body.post-type-archive-product .elementor-129,
body.woocommerce-shop .elementor-129,
body.tax-product_cat .elementor-129 {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* ============================================
   HERO SECTION - Dark Background Band
   ============================================ */

.phasor-hero-wrapper {
    padding: 60px 0 80px;
    margin: 0 auto 0 auto;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
    width: 80%;
    max-width: 80%;
}

.phasor-hero-wrapper .single-product div.product.phasor-generator {
    display: grid !important;
    grid-template-columns: 70% 30% !important;
    gap: 48px;
    align-items: start;
    margin-bottom: 0;
    max-width: 100%;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding: 0 40px;
    position: relative;
    z-index: 1;
}

/* Ensure gallery is in first grid column */
.phasor-hero-wrapper .single-product div.product.phasor-generator > .woocommerce-product-gallery,
.phasor-hero-wrapper .single-product div.product.phasor-generator > div.images.woocommerce-product-gallery {
    grid-column: 1 !important;
    min-width: 0;
    max-width: 100% !important;
    width: 100% !important;
    overflow: hidden;
}

/* Ensure summary is in second grid column */
.phasor-hero-wrapper .single-product div.product.phasor-generator > .summary {
    grid-column: 2 !important;
    min-width: 0;
    max-width: 100% !important;
    width: 100% !important;
}

/* Gallery in hero */
.phasor-hero-wrapper .woocommerce-product-gallery,
.phasor-hero-wrapper div.images.woocommerce-product-gallery {
    position: sticky;
    top: 20px;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.phasor-hero-wrapper .woocommerce-product-gallery__image img {
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    width: 50% !important;
    max-width: 50% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    display: block !important;
}

/* Disable zoom on hero gallery image - hide zoom image if it appears */
.phasor-hero-wrapper .woocommerce-product-gallery__image .zoomImg {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

/* Hide gallery trigger button */
.phasor-hero-wrapper .woocommerce-product-gallery__trigger {
    display: none !important;
}

/* Summary column in hero */
.phasor-hero-wrapper .summary {
    max-width: 100%;
    width: 100%;
    color: #ffffff;
    position: relative;
}

/* Override WooCommerce default widths for generator products */
body.phasor-generator-product .woocommerce #content div.product div.summary,
body.phasor-generator-product .woocommerce div.product div.summary,
body.phasor-generator-product .woocommerce-page #content div.product div.summary,
body.phasor-generator-product .woocommerce-page div.product div.summary,
body.phasor-generator-product .summary.entry-summary {
    width: 35% !important;
    max-width: 35% !important;
}

body.phasor-generator-product .woocommerce #content div.product div.images,
body.phasor-generator-product .woocommerce div.product div.images,
body.phasor-generator-product .woocommerce-page #content div.product div.images,
body.phasor-generator-product .woocommerce-page div.product div.images,
.woocommerce #content div.product div.images,
.woocommerce div.product div.images,
.woocommerce-page #content div.product div.images,
.woocommerce-page div.product div.images {
    width: 60% !important;
    max-width: 60% !important;
}

body.phasor-generator-product .woocommerce div.product div.images img {
    width: 25% !important;
    max-width: 25% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    display: block !important;
}


/* Product Title - Large with Hz - Inside gallery container */
body.phasor-generator-product .phasor-hero-wrapper .woocommerce-product-gallery h1.product_title,
body.phasor-generator-product .phasor-hero-wrapper .woocommerce-product-gallery h1.entry-title,
body.phasor-generator-product .phasor-hero-wrapper .woocommerce-product-gallery h1.product_title.entry-title {
    font-size: 56px;
    font-weight: 900;
    margin-bottom: 10px;
    line-height: 1.1;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    order: -1;
    width: 100%;
}

body.phasor-generator-product .phasor-hero-wrapper .woocommerce-product-gallery h1.product_title::after,
body.phasor-generator-product .phasor-hero-wrapper .woocommerce-product-gallery h1.entry-title::after,
body.phasor-generator-product .phasor-hero-wrapper .woocommerce-product-gallery h1.product_title.entry-title::after {
    content: attr(data-frequency);
    display: inline;
    font-size: 28px;
    font-weight: 400;
    margin-left: 20px;
    color: #0aa03c;
    text-transform: none;
    letter-spacing: 1px;
}

/* Spec value below title in gallery */
body.phasor-generator-product .phasor-hero-wrapper .woocommerce-product-gallery .phasor-spec-value {
    color: #0aa03c;
    font-size: 18px;
    font-weight: 500;
    margin-top: 8px;
    margin-bottom: 16px;
    line-height: 1.4;
}

/* ============================================
   HIGHLIGHTS BAR - Horizontal Row Below Hero
   ============================================ */

.phasor-highlights-bar {
    background: #0b0b0b;
    padding: 30px 0;
    border-bottom: 1px solid #e7e7e7;
    margin-bottom: 0;
}

.phasor-highlights-bar__inner {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.phasor-highlights-bar__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: inline-flex;
    flex-wrap: nowrap;
    gap: 20px;
    align-items: center;
    line-height: 1;
    animation: scroll-ticker 30s linear infinite;
    will-change: transform;
}

.phasor-highlights-bar__inner:hover .phasor-highlights-bar__list {
    animation-play-state: paused;
}

@keyframes scroll-ticker {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.phasor-highlights-bar__item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 0;
    font-size: 16px;
    color: #ffffff;
    font-weight: 500;
}

.phasor-highlights-bar__check {
    color: #0aa03c;
    font-weight: 700;
    font-size: 20px;
    flex-shrink: 0;
}

.phasor-highlights-bar__text {
    white-space: nowrap;
}

@media (max-width: 900px) {
    .phasor-highlights-bar__list {
        gap: 20px;
        line-height: 1;
    }
    
    .phasor-highlights-bar__item {
        font-size: 14px;
    }
}

/* ============================================
   REQUEST QUOTE CTA - Dark Framed Panel
   ============================================ */

.phasor-request-quote-cta {
    border: 0.5px solid #0aa03c;
    border-radius: 12px;
    padding: 15px 28px 15px 28px;
    background: #0b0b0b;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    margin: 110px 0 10px 0;
    text-align: center;
    position: sticky;
    top: 20px;
    z-index: 10;
}

.phasor-cta-header {
    margin-bottom: 0;
}

.phasor-cta-title {
    font-size: 26px;
    font-weight: 400;
    color: #ffffff;
    margin: 0 0 12px 0;
    text-transform: none;
    letter-spacing: 0.5px;
}

.phasor-cta-phone {
    margin: 0;
    padding: 0;
    background: transparent;
    border-radius: 0;
    border: none;
}

.phasor-phone-link {
    display: block;
    text-decoration: none;
    color: #ffffff;
    font-size: 32px;
    font-weight: 700;
    transition: opacity 0.2s ease;
    line-height: 1.3;
    padding: 0;
}

.phasor-phone-link:hover {
    opacity: 0.8;
}

.phasor-phone-number {
    letter-spacing: 1px;
    font-size: 36px;
}

.phasor-cta-actions {
    display: flex;
    gap: 0;
    margin: 24px 0 0 0;
    flex-wrap: wrap;
    justify-content: center;
}

.phasor-btn-primary {
    background: #0aa03c;
    color: #ffffff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 16px;
    padding: 16px 32px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    width: 100%;
    text-align: center;
    box-shadow: 0 4px 12px rgba(10, 160, 60, 0.3);
}

.phasor-btn-primary:hover {
    background: #0bb04d;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(10, 160, 60, 0.4);
}

.phasor-cta-footer {
    margin: 0;
    padding: 0;
    border: none;
}

.phasor-cta-hours {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 0 0;
    opacity: 0.95;
    line-height: 1.4;
}

/* Mini Related Products in CTA */
.phasor-mini-related {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-bottom: 0;
}

.phasor-mini-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding-left: 10px;
    padding-right: 10px;
}

.phasor-mini-related-item {
    text-align: center;
}

.phasor-mini-related-item:first-child {
    padding-left: 10px;
}

.phasor-mini-related-item:last-child {
    padding-right: 10px;
}

.phasor-mini-related-item a {
    text-decoration: none;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: opacity 0.2s ease;
}

.phasor-mini-related-item a:hover {
    opacity: 0.8;
}

.phasor-mini-related-img {
    width: 70%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: contain !important;
    object-position: center !important;
    border-radius: 6px;
    background-color: transparent !important;
    background: transparent !important;
    margin-bottom: 0;
    border: none;
    margin-left: auto;
    margin-right: auto;
    display: block;
}

.phasor-mini-related-title {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
    margin-top: 4px;
}

/* ============================================
   ONE-PAGE SPEC SHEET LAYOUT
   ============================================ */

.phasor-spec-sheet {
    margin-top: 0;
}

/* Full-width sections */
.phasor-section {
    width: 100%;
    padding: 80px 0;
}

.phasor-section__inner {
    width: min(1200px, calc(100% - 80px));
    margin: 0 auto;
    padding: 0 40px;
}

/* ============================================
   FEATURE BAND - Dark Gradient with Two Columns
   ============================================ */

.phasor-section--featureband {
    background: linear-gradient(135deg, #0b0b0b 0%, #1a1a1a 50%, #0b0b0b 100%);
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.phasor-section--featureband::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(10, 160, 60, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.phasor-section--featureband .phasor-section__inner {
    position: relative;
    z-index: 1;
}

.phasor-feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.phasor-feature-col {
    /* Column container */
}

.phasor-feature-band__title {
    margin: 0 0 28px 0;
    font-size: 32px;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #0aa03c;
    line-height: 1.2;
}

/* Features Grid */
.phasor-features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin: 0;
}

.phasor-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    font-size: 16px;
    line-height: 1.2;
    color: #ffffff;
}

.phasor-check {
    color: #0aa03c;
    font-weight: 700;
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Optional Equipment */
.phasor-optional-grid {
    list-style: none;
    margin: 0;
    padding: 0;
}

.phasor-optional-card {
    border: none;
    border-radius: 0;
    padding: 14px 0;
    background: transparent;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    list-style: none;
}

.phasor-optional-card:hover {
    border-bottom-color: #0aa03c;
    padding-left: 8px;
}

.phasor-optional-name {
    font-size: 16px;
    font-weight: 400;
    color: #ffffff;
    margin: 0;
    padding-left: 0;
    line-height: 1.7;
}

@media (max-width: 900px) {
    .phasor-feature-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .phasor-features-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* ============================================
   SPECIFICATIONS TABLE - Dark Section with Header
   ============================================ */

.phasor-section--specs {
    background: #0b0b0b;
    color: #ffffff;
}

.phasor-section--specs .phasor-section-title {
    color: #0aa03c;
    font-size: 36px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 40px;
}

.phasor-section-title--center {
    text-align: center;
    color: #ffffff !important;
}

.phasor-specs-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    background: transparent;
    border-radius: 0;
    overflow: visible;
    border: none;
    border-top: none;
    border-left: none;
    border-right: none;
    border-bottom: none;
}

.phasor-specs-table thead {
    background: transparent;
    border-top: none;
    border-left: none;
    border-right: none;
    border-bottom: 2px solid rgba(10, 160, 60, 0.5);
}

.phasor-specs-table th {
    padding: 18px 24px 18px 10px;
    text-align: left;
    font-weight: 700;
    font-size: 16px;
    color: #0aa03c;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-top: none;
    border-left: none;
    border-right: none;
    border-bottom: 2px solid rgba(10, 160, 60, 0.5);
}

.phasor-specs-table th:first-child {
    width: 40%;
}

.phasor-specs-table th:last-child {
    width: 60%;
}

.phasor-specs-table tbody tr {
    border-top: none;
    border-left: none;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.2s ease;
}

.phasor-specs-table tbody tr:hover {
    background: rgba(10, 160, 60, 0.08);
}

.phasor-specs-table tbody tr:last-child {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.phasor-specs-table td {
    padding: 16px 24px 16px 0;
    font-size: 16px;
    vertical-align: top;
    border-top: none;
    border-left: none;
    border-right: none;
    border-bottom: none;
}

.phasor-specs-table td:first-child {
    padding-left: 10px;
}

.phasor-spec-label {
    font-weight: 600;
    color: #ffffff;
    width: 40%;
    opacity: 0.95;
    padding-left: 10px;
}

.phasor-spec-value {
    color: #ffffff;
    width: 60%;
    opacity: 0.9;
    padding-left: 10px;
}

@media (max-width: 767px) {
    .phasor-specs-table {
        font-size: 14px;
    }
    
    .phasor-specs-table th {
        padding: 12px 16px 12px 10px;
    }
    
    .phasor-specs-table td {
        padding: 12px 16px 12px 0;
    }
    
    .phasor-specs-table td:first-child {
        padding-left: 10px;
    }
}

/* ============================================
   BIG CONTACT BAND CTA
   ============================================ */

.phasor-section--brandband {
    background: linear-gradient(90deg, #0aa03c, #047a2a);
    color: #ffffff;
    text-align: center;
    padding: 80px 0;
}

.phasor-brandband__title {
    margin: 0 0 16px 0;
    font-size: 42px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1.2;
}

.phasor-brandband__sub {
    margin: 0 0 32px 0;
    opacity: 0.95;
    font-size: 18px;
    line-height: 1.5;
}

.phasor-brandband__button {
    display: inline-block;
    padding: 18px 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.9);
    color: #ffffff;
    text-decoration: none;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 16px;
    transition: all 0.2s ease;
}

.phasor-brandband__button:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* ============================================
   DOCUMENTS SECTION
   ============================================ */

.phasor-docs-cta {
    margin-top: 40px;
    text-align: center;
}

.phasor-download-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    background: #0aa03c;
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s ease;
    font-size: 16px;
}

.phasor-download-link:hover {
    background: #0bb04d;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(10, 160, 60, 0.4);
}

/* ============================================
   HIDE DEFAULT ELEMENTS
   ============================================ */

body.phasor-generator-product .single-product .woocommerce-product-details__short-description {
    display: none;
}

body.phasor-generator-product .single-product .price {
    display: none !important;
}

body.phasor-generator-product .single-product form.cart,
body.phasor-generator-product .single-product .single_add_to_cart_button {
    display: none !important;
}

body.phasor-generator-product .woocommerce div.product .woocommerce-tabs {
    display: none;
}

/* ============================================
   RELATED PRODUCTS
   ============================================ */

body.phasor-generator-product .single-product .related.products {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid #e7e7e7;
}

body.phasor-generator-product .single-product .related.products h2 {
    font-size: 28px;
    margin-bottom: 24px;
    text-align: center;
    color: #111111;
}

body.phasor-generator-product .single-product .related.products h2:before {
    content: "Similar ";
}

body.phasor-generator-product .single-product .related.products ul.products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin: 0;
}

body.phasor-generator-product .single-product .related.products li.product {
    border: 1px solid #e7e7e7;
    border-radius: 8px;
    padding: 12px;
    background: #ffffff;
    transition: all 0.2s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
}

body.phasor-generator-product .single-product .related.products li.product:hover {
    transform: translateY(-2px);
    border-color: #0a7a2a;
    box-shadow: 0 4px 12px rgba(10, 122, 42, 0.2);
}

body.phasor-generator-product .single-product .related.products li.product img {
    border-radius: 8px;
    margin-bottom: 12px;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: contain !important;
    object-position: center;
    background: transparent;
}

body.phasor-generator-product .single-product .related.products li.product .woocommerce-loop-product__title {
    font-size: 14px;
    font-weight: 600;
    margin: 8px 0 0 0;
    color: #111111;
}

body.phasor-generator-product .single-product .related.products li.product .price,
body.phasor-generator-product .single-product .related.products li.product .button {
    display: none;
}

/* ============================================
   MOBILE / TABLET STACKING
   ============================================ */

@media (max-width: 900px) {
    .phasor-hero-wrapper {
        padding: 40px 0 60px;
        width: 80%;
        max-width: 80%;
    }
    
    .phasor-hero-wrapper .single-product div.product.phasor-generator {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 0 20px;
        max-width: 100%;
    }
    
    /* On mobile, title is inside gallery at top */
    body.phasor-generator-product .phasor-hero-wrapper .woocommerce-product-gallery h1.product_title,
    body.phasor-generator-product .phasor-hero-wrapper .woocommerce-product-gallery h1.entry-title,
    body.phasor-generator-product .phasor-hero-wrapper .woocommerce-product-gallery h1.product_title.entry-title {
        font-size: 36px;
        margin-bottom: 20px;
    }

    .phasor-hero-wrapper .woocommerce-product-gallery {
        position: relative;
        top: auto;
    }

    /* Critical: stop CTA from overlapping */
    .phasor-request-quote-cta {
        position: static;
        top: auto;
    }
    
    body.phasor-generator-product .phasor-hero-wrapper .woocommerce-product-gallery h1.product_title::after,
    body.phasor-generator-product .phasor-hero-wrapper .woocommerce-product-gallery h1.entry-title::after,
    body.phasor-generator-product .phasor-hero-wrapper .woocommerce-product-gallery h1.product_title.entry-title::after {
        font-size: 20px;
        margin-left: 12px;
    }
    
    .phasor-highlights-bar__inner {
        width: 100%;
        padding: 0;
    }
    
    .phasor-section__inner {
        padding: 0 20px;
    }
    
    .phasor-section {
        padding: 60px 0;
    }
    
    .phasor-feature-band__title {
        font-size: 24px;
    }
    
    .phasor-section--specs .phasor-section-title {
        font-size: 28px;
    }
    
    .phasor-brandband__title {
        font-size: 32px;
    }
    
    .phasor-mini-related-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }
    
    .phasor-cta-actions {
        flex-direction: column;
    }
    
    .phasor-btn-primary {
        width: 100%;
    }
    
    body.phasor-generator-product .single-product .related.products ul.products {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

/* ============================================
   TYPOGRAPHY IMPROVEMENTS
   ============================================ */

body.phasor-generator-product .single-product .entry-content,
body.phasor-generator-product .single-product .summary {
    font-size: 16px;
    line-height: 1.6;
}

/* Ensure summary area has proper background in hero */
body.phasor-generator-product .phasor-hero-wrapper .summary {
    background: transparent;
}

/* ============================================
   SKU AND CATEGORY (MUTED)
   ============================================ */

body.phasor-generator-product .single-product .product_meta {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

body.phasor-generator-product .phasor-hero-wrapper .product_meta {
    color: rgba(255, 255, 255, 0.6);
    border-top-color: rgba(255, 255, 255, 0.15);
}

body.phasor-generator-product .single-product .product_meta .sku,
body.phasor-generator-product .single-product .product_meta .posted_in {
    display: block;
    margin: 4px 0;
}

/* Hide category */
body.phasor-generator-product .single-product .product_meta .posted_in {
    display: none !important;
}

/* Hide product_meta completely */
body.phasor-generator-product .single-product .product_meta {
    display: none !important;
}

/* ============================================
   QUOTE REQUEST MODAL
   ============================================ */

.phasor-quote-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.phasor-quote-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
}

.phasor-quote-modal-content {
    position: relative;
    background: #2d2d2d;
    border-radius: 12px;
    padding: 40px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 10001;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    color: #ffffff;
}

.phasor-quote-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 32px;
    line-height: 1;
    color: #ffffff;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.phasor-quote-modal-close:hover {
    color: #0aa03c;
}

.phasor-quote-modal-content h2 {
    margin: 0 0 24px 0;
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
}

.phasor-quote-form {
    margin: 0;
}

.phasor-form-group {
    margin-bottom: 20px;
}

.phasor-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #ffffff;
    font-size: 14px;
}

.phasor-form-group .required {
    color: #ff6b6b;
}

.phasor-form-group input[type="text"],
.phasor-form-group input[type="email"],
.phasor-form-group input[type="tel"],
.phasor-form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #555;
    border-radius: 6px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
    background: #1a1a1a;
    color: #ffffff;
}

.phasor-form-group input::placeholder,
.phasor-form-group textarea::placeholder {
    color: #999;
}

.phasor-form-group input:focus,
.phasor-form-group textarea:focus {
    outline: none;
    border-color: #0aa03c;
    background: #222;
}

.phasor-form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.phasor-form-messages {
    margin-bottom: 20px;
    padding: 12px;
    border-radius: 6px;
    display: none;
}

.phasor-form-messages.success {
    background: rgba(10, 160, 60, 0.2);
    color: #0aa03c;
    border: 1px solid #0aa03c;
    display: block;
}

.phasor-form-messages.error {
    background: rgba(255, 107, 107, 0.2);
    color: #ff6b6b;
    border: 1px solid #ff6b6b;
    display: block;
}

.phasor-form-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.phasor-form-actions .phasor-btn-primary,
.phasor-form-actions .phasor-btn-secondary {
    flex: 1;
    padding: 14px 24px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-align: center;
}

.phasor-form-actions .phasor-btn-primary {
    background: #0aa03c;
    color: #ffffff;
}

.phasor-form-actions .phasor-btn-primary:hover {
    background: #0bb04d;
}

.phasor-form-actions .phasor-btn-secondary {
    background: #444;
    color: #ffffff;
}

.phasor-form-actions .phasor-btn-secondary:hover {
    background: #555;
}

@media (max-width: 600px) {
    .phasor-quote-modal-content {
        padding: 24px;
        width: 95%;
    }
    
    .phasor-form-actions {
        flex-direction: column;
    }
}

/* ============================================
   FREQUENCY FILTER FOR GENERATORS CATEGORY
   ============================================ */

.phasor-frequency-filter {
    margin: 0 0 20px 20px;
    margin-left: 20px !important;
    display: inline-block;
    float: right;
}

.phasor-frequency-filter .phasor-frequency-select {
    padding: 8px 32px 8px 12px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 14px;
    background: #ffffff;
    color: #333;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3e%3cpath fill='%23333' d='M6 9L1 4h10z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 40px;
    min-width: 180px;
}

.phasor-frequency-filter .phasor-frequency-select:focus {
    outline: none;
    border-color: #0aa03c;
}

/* Hide products that don't match filter */
.woocommerce ul.products li.product.phasor-filtered-out {
    display: none !important;
}

@media (max-width: 768px) {
    .phasor-frequency-filter {
        float: none;
        display: block;
        margin-bottom: 20px;
    }
    
    .phasor-frequency-filter .phasor-frequency-select {
        width: 100%;
    }
}

/* ============================================
   PRODUCT ARCHIVE / SHOP PAGE - UNIFORM IMAGE SIZES
   ============================================ */

/* Make all product images in loops the same square size */
/* The link contains both image and title, so we only make the image square */
.woocommerce ul.products li.product a.woocommerce-loop-product__link {
    display: block;
    text-decoration: none;
}

/* Modern browsers: Use aspect-ratio directly on the image */
/* This makes only the image square, title flows naturally below */
/* Reduce image size by another 15% (total ~28% reduction) while keeping container the same */
.woocommerce ul.products li.product a.woocommerce-loop-product__link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.woocommerce ul.products li.product a.woocommerce-loop-product__link img {
    display: block;
    width: 70%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    object-position: center;
    background-color: #ffffff;
    margin: 0 auto;
}

/* Fallback for older browsers: Wrap image in square container */
@supports not (aspect-ratio: 1 / 1) {
    .woocommerce ul.products li.product a.woocommerce-loop-product__link {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 0; /* Allow content to determine height */
    }
    
    /* Create square space for image - this creates the height */
    .woocommerce ul.products li.product a.woocommerce-loop-product__link::before {
        content: '';
        display: block;
        padding-top: 100%; /* Creates 1:1 aspect ratio (square) */
        width: 100%;
    }
    
    /* Position image absolutely within the square, reduced by another 15% (total ~28%) */
    .woocommerce ul.products li.product a.woocommerce-loop-product__link img {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) scale(0.70);
        width: 70%;
        height: 70%;
        object-fit: contain;
        object-position: center;
        background-color: #ffffff;
    }
    
    /* The title will naturally appear after the ::before element */
    /* No need for ::after since the title is a real DOM element that follows */
}

/* Ensure the product title is visible and properly positioned below the image */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    margin-top: 0.75em !important;
    margin-bottom: 0.5em;
    clear: both;
    font-size: 1.3em;
    text-align: left;
    padding-left: 30px;
}

li.product.type-product.status-publish.instock.product_cat-generators.has-post-thumbnail.taxable.shipping-taxable.product-type-simple > a > h2 {
    font-size: 1.3em;
}

/* Ensure images use contain to show full image */
.woocommerce ul.products li.product img.attachment-woocommerce_single,
.woocommerce ul.products li.product img.attachment-woocommerce_thumbnail,
.woocommerce ul.products li.product img.woocommerce-placeholder {
    object-fit: contain !important;
    object-position: center;
    background-color: #ffffff; /* White background */
}

/* Hide default "Read more" / Add to cart button for generator products in loops */
.woocommerce ul.products li.product.phasor-generator .button:not(.phasor-read-more-button),
.woocommerce ul.products li.product.phasor-generator a.button:not(.phasor-read-more-button),
.woocommerce ul.products li.product.phasor-generator .woocommerce-loop-product__link.button:not(.phasor-read-more-button),
.woocommerce ul.products li.product.phasor-generator .add_to_cart_button {
    display: none !important;
}

/* =========================
   PRODUCT GRID CARD STYLE
   ========================= */

/* Target WooCommerce product cards */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.04);
    padding: 16px 16px 18px;
    transition: 
        box-shadow 0.25s ease,
        transform 0.25s ease;
    overflow: hidden;
}

/* Lift on hover */
.woocommerce ul.products li.product:hover,
.woocommerce-page ul.products li.product:hover {
    transform: translateY(-4px);
    box-shadow: 6px 10px 24px rgba(0,0,0,0.06);
}

/* Make images float nicely inside cards */
.woocommerce ul.products li.product img {
    background: #f7f9fb;
    border-radius: 10px;
    padding: 8px;
    margin-bottom: 12px;
}

/* Product title styling */
.woocommerce ul.products li.product h2,
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 15px;
    font-weight: 600;
    text-align: left;
    margin: 10px 0 0;
    color: #1f2937;
    padding-left: 30px !important;
}

/* Remove default ugly Woo button spacing */
.woocommerce ul.products li.product .button {
    margin-top: 12px;
}

/* Clean grid spacing */
.woocommerce ul.products {
    gap: 24px;
}

/* ============================================
   SHOP BOTTOM BAR - RESULT COUNT & PAGINATION
   ============================================ */

/* Container for result count and pagination on same row */
.phasor-shop-bottom-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2em;
    margin-bottom: 1em;
    flex-wrap: wrap;
    gap: 1em;
    width: 100%;
    position: relative;
}

/* Result count on the left - hidden */
.phasor-shop-bottom-bar .woocommerce-result-count {
    display: none !important;
}

/* Pagination centered - full width in container */
.phasor-shop-bottom-bar nav.woocommerce-pagination,
.phasor-shop-bottom-bar ~ nav.woocommerce-pagination {
    flex: 1;
    margin: 0 auto;
    order: 2;
    width: 100%;
}

/* Ensure pagination list is centered */
.phasor-shop-bottom-bar nav.woocommerce-pagination ul,
.phasor-shop-bottom-bar ~ nav.woocommerce-pagination ul {
    margin: 0 auto;
    justify-content: center;
}

/* If pagination is a sibling (not child), we need to include it */
.woocommerce nav.woocommerce-pagination {
    margin: 0;
}

/* ============================================
   PAGINATION STYLING
   ============================================ */

/* Hide result count */
.woocommerce-result-count {
    display: none !important;
}

/* Pagination container - centered with horizontal rules */
.woocommerce nav.woocommerce-pagination {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2em auto;
    padding: 0 2em;
}

/* Horizontal rules on left and right */
.woocommerce nav.woocommerce-pagination::before,
.woocommerce nav.woocommerce-pagination::after {
    content: '';
    flex: 1;
    height: 1px;
    background-color: rgba(0, 0, 0, 0.1);
    margin: 0 1em;
}

.woocommerce nav.woocommerce-pagination::before {
    order: 1;
}

.woocommerce nav.woocommerce-pagination::after {
    order: 3;
}

/* Pagination list - centered */
.woocommerce nav.woocommerce-pagination ul {
    order: 2;
    list-style: none;
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    border: none !important;
}

/* Pagination list items - remove all spacing */
.woocommerce nav.woocommerce-pagination ul li {
    list-style: none;
    margin: 0 !important;
    padding: 0 !important;
    border-right: none !important;
}

/* All page numbers - same size */
.woocommerce nav.woocommerce-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

/* Current page - teal background, white text */
.woocommerce nav.woocommerce-pagination .page-numbers.current {
    background: #03979f;
    border-color: #03979f;
    color: #ffffff;
    font-weight: 500; /* Same weight as regular */
}

.woocommerce nav.woocommerce-pagination .page-numbers:hover:not(.current) {
    border-color: #03979f;
    color: #03979f;
}

/* Change arrow from → to > */
.woocommerce nav.woocommerce-pagination .page-numbers.next::after,
.woocommerce nav.woocommerce-pagination .page-numbers.prev::before {
    display: none;
}

.woocommerce nav.woocommerce-pagination .page-numbers.next {
    font-family: Arial, sans-serif;
}

.woocommerce nav.woocommerce-pagination .page-numbers.prev {
    font-family: Arial, sans-serif;
}

/* Replace arrow characters with > and < */
.woocommerce nav.woocommerce-pagination .page-numbers.next:not(.dots) {
    position: relative;
    font-size: 0;
    line-height: 0;
}

.woocommerce nav.woocommerce-pagination .page-numbers.next:not(.dots)::after {
    content: '>';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
    width: 100%;
    height: 100%;
}

.woocommerce nav.woocommerce-pagination .page-numbers.prev:not(.dots) {
    position: relative;
    font-size: 0;
    line-height: 0;
}

.woocommerce nav.woocommerce-pagination .page-numbers.prev:not(.dots)::before {
    content: '<';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
    width: 100%;
    height: 100%;
}

/* Dots styling */
.woocommerce nav.woocommerce-pagination .page-numbers.dots {
    background: transparent;
    border: none;
    color: rgba(0, 0, 0, 0.4);
    cursor: default;
    font-size: 14px;
}

/* On mobile, stack vertically */
@media (max-width: 768px) {
    .phasor-shop-bottom-bar {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .phasor-shop-bottom-bar nav.woocommerce-pagination,
    .phasor-shop-bottom-bar ~ nav.woocommerce-pagination {
        width: 100%;
        flex: none;
    }
}

/* ============================================
   ORDERBY DROPDOWN STYLING
   ============================================ */

/* Adjust border color for orderby dropdown */
.orderby {
    border-color: #dadadb !important;
}

/* ============================================
   NON-GENERATOR PRODUCTS - ALIGNMENT & ADD TO CART
   ============================================ */

/* Align price with product name for non-generator products */
.woocommerce ul.products li.product:not(.phasor-generator) .price {
    display: block;
    text-align: left;
    padding-left: 30px;
    margin-top: 0.5em;
    margin-bottom: 0.75em;
    font-size: 1em;
    color: #1f2937;
}

/* Ensure product card layout is flex for proper button positioning */
.woocommerce ul.products li.product:not(.phasor-generator) {
    display: flex;
    flex-direction: column;
}

/* Ensure add to cart button is visible and styled for non-generator products */
.woocommerce ul.products li.product:not(.phasor-generator) .button,
.woocommerce ul.products li.product:not(.phasor-generator) .add_to_cart_button,
.woocommerce ul.products li.product:not(.phasor-generator) a.button {
    display: block !important;
    width: 70% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-top: auto !important;
    margin-bottom: 20px !important;
    text-align: center;
    background: #047a2a;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 12px 24px;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(191, 191, 191, 0.3) !important;
}

.woocommerce ul.products li.product:not(.phasor-generator) .button:hover,
.woocommerce ul.products li.product:not(.phasor-generator) .add_to_cart_button:hover,
.woocommerce ul.products li.product:not(.phasor-generator) a.button:hover {
    background: #0aa03c;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(191, 191, 191, 0.3) !important;
    color: #ffffff;
}

/* Center text for added to cart and view cart buttons */
.woocommerce ul.products li.product .added_to_cart,
.woocommerce ul.products li.product .added_to_cart.wc-forward,
.woocommerce ul.products li.product a.added_to_cart,
.woocommerce ul.products li.product a.added_to_cart.wc-forward,
.woocommerce ul.products li.product .button.added_to_cart,
.woocommerce ul.products li.product .button.added_to_cart.wc-forward {
    text-align: center !important;
}

/* Remove underline from wp-block-button__link and add_to_cart_button */
/* Target elements with both classes (space-separated in HTML: class="wp-block-button__link add_to_cart_button") */
/* Override .wp-element-button and .wp-block-button__link rules */
.wp-element-button.add_to_cart_button,
.wp-element-button.add_to_cart_button:hover,
.wp-element-button.add_to_cart_button:focus,
.wp-element-button.add_to_cart_button:visited,
.wp-element-button.add_to_cart_button:active,
.wp-block-button__link.add_to_cart_button,
.wp-block-button__link.add_to_cart_button:hover,
.wp-block-button__link.add_to_cart_button:focus,
.wp-block-button__link.add_to_cart_button:visited,
.wp-block-button__link.add_to_cart_button:active,
a.wp-element-button.add_to_cart_button,
a.wp-element-button.add_to_cart_button:hover,
a.wp-element-button.add_to_cart_button:focus,
a.wp-element-button.add_to_cart_button:visited,
a.wp-element-button.add_to_cart_button:active,
a.wp-block-button__link.add_to_cart_button,
a.wp-block-button__link.add_to_cart_button:hover,
a.wp-block-button__link.add_to_cart_button:focus,
a.wp-block-button__link.add_to_cart_button:visited,
a.wp-block-button__link.add_to_cart_button:active {
    text-decoration: none !important;
}

li > div.wp-block-button.wc-block-grid__product-add-to-cart > a {
    text-decoration: none !important;
}

/* Empty Cart Page Styling */

/* Center the cart block */
.woocommerce-cart .wp-block-woocommerce-cart.alignwide,
.woocommerce-cart .wp-block-woocommerce-cart {
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Style empty cart image */
.woocommerce-cart .wc-block-cart__empty-cart__image-container,
.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-cart__empty-cart__image-container {
    text-align: center !important;
    margin-bottom: 30px !important;
    padding-top: 100px !important;
}

.woocommerce-cart .wc-block-cart__empty-cart__image,
.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-cart__empty-cart__image {
    max-width: 300px !important;
    height: auto !important;
    display: inline-block !important;
}

/* Style "Your Cart Is Empty!" heading */
.editor-styles-wrapper .wc-block-cart__empty-cart__title,
.wc-block-cart__empty-cart__title,
.woocommerce-cart .wc-block-cart__empty-cart__title,
.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-cart__empty-cart__title,
.woocommerce-cart h2.wc-block-cart__empty-cart__title,
.woocommerce-cart .wp-block-heading.has-text-align-center.wc-block-cart__empty-cart__title,
.woocommerce-cart .wp-block-heading.wc-block-cart__empty-cart__title,
body.woocommerce-cart .wc-block-cart__empty-cart__title,
body.woocommerce-cart .wp-block-heading.wc-block-cart__empty-cart__title,
.wp-block-woocommerce-empty-cart-block .wc-block-cart__empty-cart__title,
.wp-block-woocommerce-empty-cart-block .wp-block-heading.wc-block-cart__empty-cart__title,
.wp-block-woocommerce-empty-cart-block h2.wc-block-cart__empty-cart__title,
.woocommerce-cart .wc-block-cart__empty-cart__image-container {
    padding-top: 0 !important;
}

.editor-styles-wrapper .wc-block-cart__empty-cart__title,
.wc-block-cart__empty-cart__title,
.woocommerce-cart .wc-block-cart__empty-cart__title,
.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-cart__empty-cart__title,
.woocommerce-cart h2.wc-block-cart__empty-cart__title,
.woocommerce-cart .wp-block-heading.has-text-align-center.wc-block-cart__empty-cart__title,
.woocommerce-cart .wp-block-heading.wc-block-cart__empty-cart__title,
body.woocommerce-cart .wc-block-cart__empty-cart__title,
body.woocommerce-cart .wp-block-heading.wc-block-cart__empty-cart__title,
.wp-block-woocommerce-empty-cart-block .wc-block-cart__empty-cart__title,
.wp-block-woocommerce-empty-cart-block .wp-block-heading.wc-block-cart__empty-cart__title,
.wp-block-woocommerce-empty-cart-block h2.wc-block-cart__empty-cart__title {
    font-size: 50px !important;
    font-weight: 600 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 20px !important;
    text-align: center !important;
    color: #111111 !important;
}

/* Style the message text below the heading */
.woocommerce-cart .wc-block-cart__empty-cart__message,
.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-cart__empty-cart__message,
.woocommerce-cart p.wc-block-cart__empty-cart__message {
    font-size: 25px !important;
    text-align: center !important;
    color: #666666 !important;
    margin-top: 0 !important;
    margin-bottom: 30px !important;
    padding: 0 !important;
}

/* Style the Return to Shop button */
.woocommerce-cart .wc-block-cart__empty-cart__return-to-shop,
.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-cart__empty-cart__return-to-shop,
.woocommerce-cart .wp-block-button.wc-block-cart__empty-cart__return-to-shop {
    margin-top: 0 !important;
}


.woocommerce-cart .wc-block-cart__empty-cart__return-to-shop .wp-block-button__link,
.woocommerce-cart .wp-block-button.wc-block-cart__empty-cart__return-to-shop .wp-block-button__link {
    background-color: #00969E !important;
    color: #ffffff !important;
    padding: 15px 40px !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    border-radius: 4px !important;
    text-decoration: none !important;
    display: inline-block !important;
    transition: all 0.3s ease !important;
    border: none !important;
}

.woocommerce-cart .wc-block-cart__empty-cart__return-to-shop .wp-block-button__link:hover,
.woocommerce-cart .wp-block-button.wc-block-cart__empty-cart__return-to-shop .wp-block-button__link:hover {
    background-color: #007a82 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2) !important;
}

/* Hide empty cart icon emoji - very aggressive selectors */
.wc-block-cart__empty-cart__title.with-empty-cart-icon::before,
.wc-block-cart__empty-cart__title.with-empty-cart-icon:before,
.wp-block-heading.with-empty-cart-icon.wc-block-cart__empty-cart__title::before,
.wp-block-heading.with-empty-cart-icon.wc-block-cart__empty-cart__title:before,
.woocommerce-cart .wc-block-cart__empty-cart__title.with-empty-cart-icon::before,
.woocommerce-cart .wc-block-cart__empty-cart__title.with-empty-cart-icon:before,
.wp-block-woocommerce-empty-cart-block .wc-block-cart__empty-cart__title.with-empty-cart-icon::before,
.wp-block-woocommerce-empty-cart-block .wc-block-cart__empty-cart__title.with-empty-cart-icon:before,
body.woocommerce-cart .wc-block-cart__empty-cart__title.with-empty-cart-icon::before,
body.woocommerce-cart .wc-block-cart__empty-cart__title.with-empty-cart-icon:before,
body.woocommerce-cart .wp-block-heading.with-empty-cart-icon::before,
body.woocommerce-cart .wp-block-heading.with-empty-cart-icon::before {
    display: none !important;
    content: "" !important;
    height: 0 !important;
    width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
    background-color: transparent !important;
    mask-image: none !important;
    -webkit-mask-image: none !important;
    mask: none !important;
    -webkit-mask: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

.wc-block-grid.wc-block-product-new,
.wc-block-grid.wp-block-product-new,
.wc-block-product-new.wc-block-grid,
.wp-block-product-new.wc-block-grid,
.woocommerce-cart .wc-block-grid.wc-block-product-new,
.woocommerce-cart .wc-block-grid.wp-block-product-new,
.woocommerce-cart .wc-block-empty-cart-block .wc-block-grid,
.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid {
    width: 100% !important;
}

.wc-block-grid.wc-block-product-new .wc-block-grid__products,
.wc-block-grid.wp-block-product-new .wc-block-grid__products,
.wc-block-product-new .wc-block-grid__products,
.wp-block-product-new .wc-block-grid__products,
.wc-block-grid__products,
.woocommerce-cart .wc-block-grid__products {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
    gap: 24px !important;
    margin: 0 !important;
    list-style: none !important;
    padding: 0 !important;
    width: 100% !important;
}

.wc-block-grid.wc-block-product-new .wc-block-grid__product,
.wc-block-grid.wp-block-product-new .wc-block-grid__product,
.wc-block-product-new .wc-block-grid__product,
.wp-block-product-new .wc-block-grid__product,
.wc-block-grid__product,
.woocommerce-cart .wc-block-grid__product {
    border: 1px solid #e7e7e7 !important;
    border-radius: 8px !important;
    padding: 12px !important;
    background: #ffffff !important;
    transition: all 0.2s ease !important;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    list-style: none !important;
    margin: 0 !important;
}

.wc-block-grid.wc-block-product-new .wc-block-grid__product:hover,
.wc-block-grid.wp-block-product-new .wc-block-grid__product:hover,
.wc-block-product-new .wc-block-grid__product:hover,
.wp-block-product-new .wc-block-grid__product:hover,
.wc-block-grid__product:hover,
.woocommerce-cart .wc-block-grid__product:hover {
    transform: translateY(-2px) !important;
    border-color: #0a7a2a !important;
    box-shadow: 0 4px 12px rgba(10, 122, 42, 0.2) !important;
}

/* Style product images in "New in store" section to match Related products */
.wc-block-grid.wc-block-product-new .wc-block-grid__product-image,
.wc-block-grid.wp-block-product-new .wc-block-grid__product-image,
.wc-block-product-new .wc-block-grid__product-image,
.wp-block-product-new .wc-block-grid__product-image,
.wc-block-grid__product-image,
.woocommerce-cart .wc-block-grid__product-image {
    margin-bottom: 12px !important;
    display: block !important;
}

/* Match Related products image styling exactly */
.wc-block-grid.wc-block-product-new .wc-block-grid__product-image img,
.wc-block-grid.wp-block-product-new .wc-block-grid__product-image img,
.wc-block-product-new .wc-block-grid__product-image img,
.wp-block-product-new .wc-block-grid__product-image img,
.wc-block-grid__product-image img,
.wc-block-grid__product-image img.attachment-woocommerce_thumbnail,
.wc-block-grid__product-image img.size-woocommerce_thumbnail,
.wc-block-grid__product-image img.attachment-woocommerce_single,
.wc-block-grid__product-image img.size-woocommerce_single,
.woocommerce-cart .wc-block-grid__product-image img,
.woocommerce-cart .wc-block-grid__product-image img.attachment-woocommerce_thumbnail,
.woocommerce-cart .wc-block-grid__product-image img.size-woocommerce_thumbnail,
.woocommerce-cart .wc-block-grid__product-image img.attachment-woocommerce_single,
.woocommerce-cart .wc-block-grid__product-image img.size-woocommerce_single {
    border-radius: 8px !important;
    margin-bottom: 12px !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 !important;
    object-fit: contain !important;
    object-position: center !important;
    background: transparent !important;
}

.wc-block-grid.wc-block-product-new .wc-block-grid__product-title,
.wc-block-grid.wp-block-product-new .wc-block-grid__product-title,
.wc-block-product-new .wc-block-grid__product-title,
.wp-block-product-new .wc-block-grid__product-title,
.wc-block-grid__product-title,
.woocommerce-cart .wc-block-grid__product-title {
    font-size: 14px !important;
    font-weight: 600 !important;
    margin: 8px 0 0 0 !important;
    color: #111111 !important;
}

.wc-block-grid.wc-block-product-new .wc-block-grid__product .price,
.wc-block-grid.wc-block-product-new .wc-block-grid__product .wc-block-grid__product-price,
.wc-block-grid.wp-block-product-new .wc-block-grid__product .price,
.wc-block-grid.wp-block-product-new .wc-block-grid__product .wc-block-grid__product-price,
.wc-block-product-new .wc-block-grid__product .price,
.wc-block-product-new .wc-block-grid__product .wc-block-grid__product-price,
.wp-block-product-new .wc-block-grid__product .price,
.wp-block-product-new .wc-block-grid__product .wc-block-grid__product-price,
.wc-block-grid__product .price,
.wc-block-grid__product .wc-block-grid__product-price,
.woocommerce-cart .wc-block-grid__product .price,
.woocommerce-cart .wc-block-grid__product .wc-block-grid__product-price {
    display: none !important;
}

.wc-block-grid.wc-block-product-new .wc-block-grid__product-link,
.wc-block-grid.wp-block-product-new .wc-block-grid__product-link,
.wc-block-product-new .wc-block-grid__product-link,
.wp-block-product-new .wc-block-grid__product-link,
.wc-block-grid__product-link,
.woocommerce-cart .wc-block-grid__product-link {
    text-decoration: none !important;
    color: inherit !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Hide "Read more" button in New in store section */
.wc-block-grid.wc-block-product-new .wc-block-grid__product .wp-block-button,
.wc-block-grid.wc-block-product-new .wc-block-grid__product .wc-block-grid__product-add-to-cart,
.wc-block-grid.wp-block-product-new .wc-block-grid__product .wp-block-button,
.wc-block-grid.wp-block-product-new .wc-block-grid__product .wc-block-grid__product-add-to-cart,
.wc-block-product-new .wc-block-grid__product .wp-block-button,
.wc-block-product-new .wc-block-grid__product .wc-block-grid__product-add-to-cart,
.wp-block-product-new .wc-block-grid__product .wp-block-button,
.wp-block-product-new .wc-block-grid__product .wc-block-grid__product-add-to-cart,
.wc-block-grid__product .wp-block-button,
.wc-block-grid__product .wc-block-grid__product-add-to-cart,
.woocommerce-cart .wc-block-grid__product .wp-block-button,
.woocommerce-cart .wc-block-grid__product .wc-block-grid__product-add-to-cart {
    display: none !important;
}

/* Hide "New in store" section completely on cart page */
.woocommerce-cart .wp-block-woocommerce-empty-cart-block h2.wp-block-heading.has-text-align-center:not(.wc-block-cart__empty-cart__title),
.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wp-block-product-new,
.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid.wp-block-product-new,
.woocommerce-cart .wp-block-woocommerce-empty-cart-block [data-block-name="woocommerce/product-new"],
.woocommerce-cart .wp-block-woocommerce-empty-cart-block hr.wp-block-separator {
    display: none !important;
}

.woocommerce-cart .wc-block-grid__product-image img,
.woocommerce-cart .wc-block-grid__product-image img.attachment-woocommerce_thumbnail,
.woocommerce-cart .wc-block-grid__product-image img.size-woocommerce_thumbnail,
.woocommerce-cart .wc-block-grid__product-image img.attachment-woocommerce_single,
.woocommerce-cart .wc-block-grid__product-image img.size-woocommerce_single,
.woocommerce-cart .wc-block-empty-cart-block .wc-block-grid__product-image img,
.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-image img {
    border-radius: 8px !important;
    margin-bottom: 12px !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 !important;
    object-fit: contain !important;
    object-position: center !important;
    background: transparent !important;
}

/* ============================================
   GENERATOR PRODUCTS - READ MORE BUTTON
   ============================================ */

/* Ensure generator product card layout is flex for proper button positioning */
.woocommerce ul.products li.product.phasor-generator {
    display: flex;
    flex-direction: column;
}

/* Style "Read More" button for generator products - white button */
.woocommerce ul.products li.product.phasor-generator .phasor-read-more-button,
.woocommerce ul.products li.product.phasor-generator a.phasor-read-more-button,
.woocommerce ul.products li.product.phasor-generator .button.phasor-read-more-button,
.woocommerce ul.products li.product.phasor-generator a.button.phasor-read-more-button {
    display: block !important;
    width: 70% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-top: auto !important;
    margin-bottom: 20px !important;
    text-align: center !important;
    background: #ffffff !important;
    background-color: #ffffff !important;
    color: #4f4f4f !important;
    border: 2px solid #e5e7eb !important;
    border-radius: 6px !important;
    padding: 12px 24px !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
    box-shadow: 0 2px 8px rgba(37, 37, 37, 0.2) !important;
}

.woocommerce ul.products li.product.phasor-generator .phasor-read-more-button:hover,
.woocommerce ul.products li.product.phasor-generator a.phasor-read-more-button:hover,
.woocommerce ul.products li.product.phasor-generator .button.phasor-read-more-button:hover,
.woocommerce ul.products li.product.phasor-generator a.button.phasor-read-more-button:hover {
    background: #f9fafb !important;
    background-color: #f9fafb !important;
    border-color: #d1d5db !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(37, 37, 37, 0.3) !important;
    color: #4f4f4f !important;
}

/* Additional override rule to ensure styles apply */
a.phasor-read-more-button.button,
.phasor-read-more-button.button,
a.button.phasor-read-more-button {
    width: 70% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-bottom: 20px !important;
    background: #ffffff !important;
    background-color: #ffffff !important;
    color: #4f4f4f !important;
}
