/*
Theme Name: Ecomus Child
Theme URI: https://thephone.store
Author: The Phone Store
Author URI: https://thephone.store
Description: Custom E-Commerce & Concierge Phone Store Theme with Instant Lead Capture & Bangalore In-Store Pickup
Version: 1.2.0
Template: ecomus
*/

/* Brand color variables */
:root {
    --tps-primary: #dc2626;
    --tps-primary-dark: #b91c1c;
    --tps-accent: #ef4444;
    --tps-dark: #0f172a;
    --tps-gray: #64748b;
    --tps-light: #f8fafc;
    --tps-border: #e2e8f0;
    --tps-whatsapp: #25D366;
}

/* Prevent horizontal page overflow across all devices */
html,
body {
    overflow-x: hidden !important;
    overflow-x: clip !important;
    max-width: 100vw !important;
    position: relative;
}

#page,
.site,
#content,
.site-content {
    overflow-x: hidden !important;
    overflow-x: clip !important;
    max-width: 100% !important;
}

/* Ensure carousel and swiper wrappers never burst viewport horizontally */
.swiper,
.swiper-container,
.products-carousel,
.ecomus-products-carousel,
.woocommerce-product-gallery {
    overflow-x: clip !important;
    max-width: 100% !important;
}

/* ==========================================================================
   1. PREMIUM TOPBAR STYLING (PURE BLACK, MINIMAL)
   ========================================================================== */
#topbar.tps-topbar {
    background: #000000 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
    padding: 7px 0 !important;
    color: #cbd5e1 !important;
    font-size: 12px !important;
    font-family: inherit;
    line-height: 1.5;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
}

.tps-topbar-container {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    padding-left: var(--em-container-fluid-padding, 50px) !important;
    padding-right: 40px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
}

.tps-topbar-container::before,
.tps-topbar-container::after {
    display: none !important;
    content: none !important;
}

@media (max-width: 1200px) {
    .tps-topbar-container {
        padding-left: var(--em-container-fluid-padding, 30px) !important;
        padding-right: 30px !important;
    }
}

@media (max-width: 768px) {
    .tps-topbar-container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}

.tps-topbar-left {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #cbd5e1;
}

.tps-topbar-shipping-text {
    color: #cbd5e1;
    font-weight: 500;
    letter-spacing: 0.1px;
}

.tps-topbar-right {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.tps-topbar-link {
    color: #cbd5e1 !important;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease;
    font-weight: 500;
}

.tps-topbar-link:hover {
    color: #ffffff !important;
}

.tps-topbar-link svg {
    color: #94a3b8;
    transition: color 0.2s;
}

.tps-topbar-link:hover svg {
    color: #ffffff;
}

/* ==========================================================================
   2. MAIN HEADER & LOGO
   ========================================================================== */
#site-header {
    background: #ffffff !important;
    border-bottom: 1px solid #f1f5f9 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03) !important;
    transition: all 0.3s ease;
}

.site-header__container {
    min-height: 72px;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

.tps-header-logo {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

.tps-logo-anchor {
    display: inline-block;
    line-height: 0;
    text-decoration: none;
    transition: opacity 0.2s;
}

.tps-logo-anchor:hover {
    opacity: 0.9;
}

.tps-logo-img {
    height: 38px !important;
    max-height: 38px !important;
    width: auto !important;
    max-width: 180px !important;
    object-fit: contain;
    display: block;
}

/* Hide any residual site title/description */
.header-logo .site-title,
.header-logo .site-description {
    display: none !important;
}

/* Primary Menu Styling */
#primary-menu > li > a {
    font-size: 14.5px !important;
    font-weight: 600 !important;
    color: #0f172a !important;
    padding: 10px 16px !important;
    letter-spacing: -0.1px;
    transition: color 0.2s ease;
}

#primary-menu > li > a:hover,
#primary-menu > li.current-menu-item > a {
    color: #dc2626 !important;
}

/* ==========================================================================
   3. HEADER RIGHT ACTIONS (Search + WhatsApp + Request Quote)
   ========================================================================== */
.header-right-items {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

.header-search__icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 38px !important;
    height: 38px !important;
    border-radius: 50% !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    color: #334155 !important;
    transition: all 0.2s ease !important;
}

.header-search__icon:hover {
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
    color: #dc2626 !important;
    transform: translateY(-1px);
}

.tps-header-actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-left: 6px;
}

.tps-header-wa-btn {
    display: none !important;
}

.tps-header-quote-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #0f172a;
    color: #ffffff !important;
    padding: 8px 18px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.2);
    white-space: nowrap;
    cursor: pointer;
    border: none;
}

.tps-header-quote-btn:hover {
    background: #dc2626;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.35);
}

/* ==========================================================================
   4. MOBILE HEADER & TOPBAR CONTROLS (< 1200px & < 992px)
   ========================================================================== */

/* 4.1 Hide Topbar completely in Mobile View */
@media (max-width: 991px) {
    #topbar,
    #topbar.tps-topbar,
    .tps-topbar,
    .topbar {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        min-height: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
        overflow: hidden !important;
    }
}

/* 4.2 Display Main Mobile Header below 1200px */
@media (max-width: 1199px) {
    .site-header__desktop {
        display: none !important;
    }

    .site-header__mobile {
        display: block !important;
        visibility: visible !important;
        width: 100% !important;
        background: #ffffff !important;
    }

    #site-header,
    header#site-header {
        display: block !important;
        visibility: visible !important;
        background: #ffffff !important;
        border-bottom: 1px solid #e2e8f0 !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04) !important;
        position: sticky !important;
        top: 0 !important;
        z-index: 9999 !important;
        width: 100% !important;
    }

    .site-header__mobile .header-mobile-main {
        display: flex !important;
        align-items: center !important;
        min-height: 60px !important;
        height: 60px !important;
        background: #ffffff !important;
        padding: 0 16px !important;
        box-sizing: border-box !important;
    }

    .site-header__mobile .site-header__container {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        min-height: 48px !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .site-header__mobile .header-left-items,
    .site-header__mobile .header-right-items {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        flex: 0 0 auto !important;
        width: auto !important;
    }

    .site-header__mobile .header-center-items {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex: 1 1 auto !important;
    }

    .site-header__mobile .header-hamburger {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: transparent !important;
        border: none !important;
        color: #0f172a !important;
        padding: 8px !important;
        cursor: pointer !important;
    }

    .site-header__mobile .header-hamburger svg {
        width: 22px !important;
        height: 16px !important;
        fill: #0f172a !important;
    }

    .site-header__mobile .tps-logo-img {
        height: 32px !important;
        max-height: 32px !important;
        width: auto !important;
        max-width: 160px !important;
        object-fit: contain !important;
        display: block !important;
    }

    .site-header__mobile .header-search__icon {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        color: #0f172a !important;
        padding: 8px !important;
    }

    .site-header__mobile .header-search__icon svg {
        width: 20px !important;
        height: 20px !important;
        fill: #0f172a !important;
    }

    .site-header__mobile .header-cart__icon {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        color: #0f172a !important;
        padding: 8px !important;
        position: relative !important;
    }

    .site-header__mobile .header-cart__icon svg {
        width: 20px !important;
        height: 20px !important;
        stroke: #0f172a !important;
    }
}

/* ==========================================================================
   5. FOOTER LOGO & BRANDING REFINEMENT
   ========================================================================== */
.site-footer .elementor-element-ef49391,
.site-footer .elementor-widget-image:first-child {
    margin-bottom: 18px !important;
}

.site-footer .elementor-element-ef49391 .elementor-widget-container,
.site-footer .elementor-element-ef49391 img,
.site-footer .elementor-widget-image img[src*="the_phone_store_logo"],
.site-footer .elementor-widget-image img[src*="Logo"],
.site-footer .elementor-widget-image img[src*="logo"] {
    max-width: 170px !important;
    width: 165px !important;
    height: auto !important;
    display: block !important;
    object-fit: contain !important;
}

/* Crisp white contrast against pitch-black footer */
.site-footer .elementor-element-ef49391 img,
.site-footer .elementor-widget-image img[src*="the_phone_store_logo"],
.site-footer .elementor-widget-image img[src*="Logo"] {
    filter: brightness(0) invert(1) !important;
    transition: all 0.25s ease;
}

.site-footer .elementor-element-ef49391 img:hover,
.site-footer .elementor-widget-image img[src*="the_phone_store_logo"]:hover,
.site-footer .elementor-widget-image img[src*="Logo"]:hover {
    opacity: 0.9;
    filter: brightness(0) invert(1) drop-shadow(0 0 10px rgba(255, 255, 255, 0.45)) !important;
}

.site-footer .tps-footer-newsletter-form input:focus {
    border-color: #dc2626 !important;
}

/* Footer Newsletter Form Alignment */
.site-footer form.tps-footer-newsletter-form div {
    display: flex !important;
    position: relative !important;
    gap: 8px !important;
    align-items: center !important;
    max-width: 320px !important;
    margin-top: 14px !important;
}

.site-footer form.tps-footer-newsletter-form button {
    position: static !important;
    transform: none !important;
    top: auto !important;
    right: auto !important;
}

/* Ensure 4 footer columns sit with balanced, generous spacing on desktop */
footer#site-footer .elementor-element-860de3b .e-con-inner,
footer#site-footer .elementor-element-860de3b {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    width: 100% !important;
    gap: 0 !important;
}

/* Col 1: Store branding & address - generous width and breathing room */
.site-footer .elementor-element-e20081a {
    flex: 0 0 32% !important;
    max-width: 32% !important;
    padding-right: 35px !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Col 2: Help menu - balanced compact width */
.site-footer .elementor-element-5c15054 {
    flex: 0 0 17% !important;
    max-width: 17% !important;
    padding-left: 10px !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Col 3: Useful Links - balanced compact width */
.site-footer .elementor-element-fce30ce {
    flex: 0 0 17% !important;
    max-width: 17% !important;
    padding-left: 10px !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Col 4: Newsletter signup - clean modern form */
.site-footer .elementor-element-12c41b3 {
    flex: 0 0 34% !important;
    max-width: 34% !important;
    padding-left: 15px !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Remove social icons completely from footer */
.site-footer .elementor-widget-ecomus-social-icons,
.site-footer .elementor-element-6f516f9 {
    display: none !important;
}

/* Center clean copyright line without address */
footer#site-footer .elementor-element-06d543b {
    padding: 18px 0 26px 0 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    width: 100% !important;
}

footer#site-footer .elementor-element-06d543b .elementor-widget-text-editor,
footer#site-footer .elementor-element-06d543b .elementor-widget-container,
footer#site-footer .elementor-element-06d543b p {
    text-align: center !important;
    margin: 0 auto !important;
    font-size: 13px !important;
    color: #888888 !important;
    letter-spacing: 0.3px;
    width: 100% !important;
}

@media (max-width: 991px) and (min-width: 576px) {
    footer#site-footer .elementor-element-860de3b .e-con-inner,
    footer#site-footer .elementor-element-860de3b {
        flex-wrap: wrap !important;
    }
    .site-footer .elementor-element-e20081a,
    .site-footer .elementor-element-5c15054,
    .site-footer .elementor-element-fce30ce,
    .site-footer .elementor-element-12c41b3 {
        flex: 0 0 calc(50% - 15px) !important;
        max-width: calc(50% - 15px) !important;
        padding-right: 0 !important;
        padding-left: 0 !important;
        margin-bottom: 30px !important;
    }
}

@media (max-width: 575px) {
    footer#site-footer .elementor-element-860de3b .e-con-inner,
    footer#site-footer .elementor-element-860de3b {
        flex-wrap: wrap !important;
    }
    .site-footer .elementor-element-e20081a,
    .site-footer .elementor-element-5c15054,
    .site-footer .elementor-element-fce30ce,
    .site-footer .elementor-element-12c41b3 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        padding-right: 0 !important;
        padding-left: 0 !important;
        margin-bottom: 25px !important;
    }
}

/* Remove redundant top page header banner on standard content pages */
.page-header.page-header--page {
    display: none !important;
}

/* ==========================================================================
   4. LUXURY SINGLE PRODUCT ORDER CTA & CONCIERGE TRUST CARD
   ========================================================================== */

/* Single Product Form & ATC Action Row */
.single-product div.product form.cart,
.single-product div.product .tps-order-action-wrap {
    margin: 22px 0 18px !important;
    width: 100% !important;
}

.single-product div.product .ecomus-product-atc-group {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    margin: 20px 0 16px !important;
}

/* Order This Phone CTA Button - Proportional, Compact Premium Button */
.tps-order-action-wrap {
    margin: 22px 0 18px !important;
    width: 100% !important;
    display: flex !important;
    justify-content: flex-start !important;
}

.tps-single-request-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    width: auto !important;
    min-width: 260px !important;
    max-width: 340px !important;
    height: 50px !important;
    min-height: 50px !important;
    background: #0f172a !important;
    color: #ffffff !important;
    padding: 0 28px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
    border: none !important;
    cursor: pointer !important;
    text-transform: none !important;
    letter-spacing: 0.2px !important;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.16) !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-sizing: border-box !important;
}

.tps-single-request-btn:hover {
    background: #dc2626 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 24px rgba(220, 38, 38, 0.28) !important;
    color: #ffffff !important;
}

.tps-single-request-btn .tps-action-icon {
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.tps-single-request-btn:hover .tps-action-icon {
    transform: scale(1.1);
}

/* Completely Remove & Hide Wishlist (Trash Icon) and Compare Buttons on Single Product */
.single-product div.product .product-featured-icons,
.single-product div.product .product-featured-icons--single-product,
.single-product div.product form.cart .product-featured-icons,
.single-product div.product .yith-wcwl-add-to-wishlist,
.single-product div.product .compare-button,
.single-product div.product .woosc-btn,
.single-product div.product .ecomus-button--wishlist,
.single-product div.product .ecomus-button--compare,
.single-product div.product .product-extra-buttons {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Loop / Catalog Request Button */
.tps-loop-inquiry-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    width: 100% !important;
    background: #0f172a !important;
    color: #ffffff !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    padding: 10px 14px !important;
    margin-top: 8px !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    text-transform: none !important;
}

.tps-loop-inquiry-btn:hover {
    background: #dc2626 !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
}

/* Bangalore Store Trust Card (Refined, Full Width across right column) */
.single-product div.product .ecomus-product-extra-link,
.single-product div.product .entry-summary .ecomus-product-extra-link {
    width: 100% !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
}

.tps-store-trust-box {
    margin: 24px 0 20px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 22px 24px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
    font-family: inherit;
}

.tps-trust-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid #e2e8f0;
    gap: 12px;
}

.tps-trust-header-left {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.tps-trust-pin-icon {
    color: #dc2626;
    flex-shrink: 0;
}

.tps-trust-heading {
    margin: 0 !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    letter-spacing: -0.2px;
}

/* Feature Grid */
.tps-trust-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tps-trust-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.tps-trust-icon-wrap {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #0f172a;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.tps-trust-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 12px;
    line-height: 1.4;
}

.tps-trust-text strong {
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
}

.tps-trust-text span {
    color: #64748b;
}

/* Color System Overrides - Eliminate unwanted neon green */
:root, body {
    --em-color__primary: #0f172a !important;
    --em-link-color-hover: #dc2626 !important;
    --em-text-color-on-primary: #ffffff !important;
}

/* Homepage Marquee Ticker: Luxury Dark Slate instead of Neon Lime */
.ecomus-marquee,
.elementor-widget-ecomus-marquee,
.elementor-widget-ecomus-marquee .ecomus-marquee {
    background-color: #0f172a !important;
    color: #ffffff !important;
}

.ecomus-marquee .ecomus-marquee__item,
.ecomus-marquee span,
.ecomus-marquee p {
    color: #ffffff !important;
    font-weight: 600 !important;
    letter-spacing: 0.3px !important;
}

/* Product Meta & Category Links: Sleek slate instead of neon green */
.product-taxonomy,
.product-taxonomy a,
.product_meta .posted_in a,
.product_meta a,
.single-product .product-taxonomy,
.single-product .product-taxonomy a {
    color: #475569 !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    transition: color 0.2s ease !important;
}

.product-taxonomy a:hover,
.product_meta .posted_in a:hover {
    color: #dc2626 !important;
}

/* Remove awkward floating Share buttons & modal triggers */
.ecomus-extra-link-item--share,
.ecomus-extra-link-item,
.ecomus-product-extra-links,
.product-extra-links,
.product-share-button,
a[data-target="product-share-modal"] {
    display: none !important;
}

/* Spinner Animation for Modal */
@keyframes tpsSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.tps-spin-svg {
    animation: tpsSpin 0.9s linear infinite;
    vertical-align: -3px;
    margin-right: 5px;
}

/* ==========================================================================
   5. REMOVE FOOTER GAP & REMOVE FLOATING WHATSAPP BUTTON
   ========================================================================== */

/* Eliminate any body or page padding causing gap below footer */
html,
body,
body.single-product,
body.ecomus-navigation-bar-show,
body.ecomus-atc-sticky-height-open {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

#page {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

footer#site-footer,
.site-footer {
    margin-bottom: 0 !important;
}

/* Remove floating and modal WhatsApp buttons completely */
.tps-floating-whatsapp,
#tps-floating-whatsapp,
.tps-form-feedback a,
a[aria-label="Chat on WhatsApp"],
a[href*="wa.me"],
a[href*="whatsapp"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Remove unstyled wireframe go-top box and theme sticky bars */
.em-button-go-top,
#gotop,
a.em-button-go-top,
.ecomus-mobile-navigation-bar,
.ecomus-sticky-add-to-cart {
    display: none !important;
}

/* Hide dummy demo payment cards in footer bottom row */
.site-footer .elementor-element-9f9fdc3,
footer#site-footer .elementor-element-9f9fdc3 {
    display: none !important;
}

.site-footer .elementor-element-4855ca1,
footer#site-footer .elementor-element-4855ca1 {
    width: 100% !important;
    text-align: center !important;
}

footer#site-footer .elementor-element-06d543b {
    justify-content: center !important;
}

/* ==========================================================================
   INQUIRY MODAL REFINEMENTS (NO PILLS, NO UPPERCASE, LUXURY MINIMAL)
   ========================================================================== */
.tps-modal-brand-badge {
    display: none !important;
}

.tps-modal-title {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    letter-spacing: -0.2px !important;
}

.tps-modal-subtitle {
    font-size: 13px !important;
    color: #64748b !important;
    margin: 5px 0 0 !important;
}

.tps-form-group label {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #334155 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}

.tps-form-group input,
.tps-form-group select,
.tps-form-group textarea {
    border: 1px solid #d1d5db !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    color: #0f172a !important;
    font-family: inherit !important;
}

.tps-form-group input:focus,
.tps-form-group select:focus,
.tps-form-group textarea:focus {
    border-color: #0f172a !important;
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08) !important;
}

.tps-modal-prod-info .tps-modal-price {
    color: #0f172a !important;
    font-weight: 700 !important;
}

.tps-btn-primary {
    background: #000000 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 13px 24px !important;
    font-size: 14.5px !important;
    font-weight: 600 !important;
    text-transform: none !important;
    letter-spacing: 0.2px !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12) !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.tps-btn-primary:hover {
    background: #1f2937 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}

/* ==========================================================================
   HERO SLIDER OVERLAY & TEXT LEGIBILITY (Widget 73328489)
   ========================================================================== */
.ecomus-slides-elementor .ecomus-slides-elementor__item::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.82) 0%, rgba(15, 23, 42, 0.60) 42%, rgba(15, 23, 42, 0.30) 75%, rgba(15, 23, 42, 0.12) 100%) !important;
    z-index: 2 !important;
    pointer-events: none !important;
}

.elementor-6069 .elementor-element.elementor-element-73328489 .ecomus-slides-elementor .elementor-repeater-item-tps_slide_1:not(.swiper-lazy),
.elementor-6069 .elementor-element.elementor-element-73328489 .ecomus-slides-elementor .elementor-repeater-item-tps_slide_1,
.elementor-6069 .elementor-element.elementor-element-73328489 .ecomus-slides-elementor .elementor-repeater-item-tps_slide_3:not(.swiper-lazy),
.elementor-6069 .elementor-element.elementor-element-73328489 .ecomus-slides-elementor .elementor-repeater-item-tps_slide_3,
.ecomus-slides-elementor .elementor-repeater-item-tps_slide_1,
.ecomus-slides-elementor .elementor-repeater-item-tps_slide_3 {
    background-image: url("/wp-content/uploads/homepage/hero_smartphones_flagship_v2.jpg") !important;
    background-position: right center !important;
    background-size: cover !important;
}




@media (max-width: 768px) {
    .ecomus-slides-elementor .ecomus-slides-elementor__item::before {
        background: linear-gradient(180deg, rgba(15, 23, 42, 0.80) 0%, rgba(15, 23, 42, 0.55) 60%, rgba(15, 23, 42, 0.30) 100%) !important;
    }
}

.ecomus-slides-elementor .ecomus-slide__content {
    position: relative !important;
    z-index: 5 !important;
    max-width: 680px !important;
}


.ecomus-slides-elementor .ecomus-slide .ecomus-slide__before-title {
    color: #e2e8f0 !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7) !important;
    letter-spacing: 1.5px !important;
    font-weight: 700 !important;
}

.ecomus-slides-elementor .ecomus-slide .ecomus-slide__title {
    color: #ffffff !important;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8) !important;
    font-weight: 800 !important;
}

/* Category Cards: Hide Subtitles */
.elementor-element-58264b98 .ecomus-image-box-carousel__description,
.ecomus-image-box-carousel__description {
    display: none !important;
}

/* Category Cards: Mobile Vertical Stack (One after another row-wise) */
@media (max-width: 767px) {
    .elementor-element-58264b98 {
        overflow: visible !important;
    }

    .elementor-element-58264b98 .ecomus-image-box-carousel,
    .elementor-element-58264b98 .swiper,
    .elementor-element-58264b98 .swiper-container {
        overflow: visible !important;
        height: auto !important;
        width: 100% !important;
    }

    .elementor-element-58264b98 .swiper-wrapper,
    .elementor-element-58264b98 .ecomus-image-box-carousel__inner {
        display: flex !important;
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        transform: none !important;
        transition: none !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
        gap: 20px !important;
        touch-action: pan-y !important;
    }

    .elementor-element-58264b98 .swiper-slide,
    .elementor-element-58264b98 .ecomus-image-box-carousel__item {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        transform: none !important;
        display: block !important;
        flex: 0 0 auto !important;
        box-sizing: border-box !important;
        border-radius: 12px !important;
        overflow: hidden !important;
    }

    .elementor-element-58264b98 .swiper-slide img,
    .elementor-element-58264b98 .ecomus-image-box-carousel__item img {
        width: 100% !important;
        height: auto !important;
        border-radius: 12px !important;
    }

    /* Hide slider pagination and navigation arrows on mobile */
    .elementor-element-58264b98 .swiper-pagination,
    .elementor-element-58264b98 .swiper-pagination-bullets,
    .elementor-element-58264b98 .swiper-button,
    .elementor-element-58264b98 .ecomus-image-box-carousel__heading .swiper-button {
        display: none !important;
    }
}


/* 1. Dual Promo Banners (Apple Flagships & Galaxy Ultra Series) */
.elementor-element-6630fcd .ecomus-banner__summary,
.elementor-element-4d92a207 .ecomus-banner__summary {
    background: rgba(255, 255, 255, 0.94) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border-radius: 18px !important;
    border: 1px solid rgba(255, 255, 255, 0.9) !important;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12) !important;
    padding: 24px 34px 28px 34px !important;
    max-width: 480px !important;
    width: calc(100% - 48px) !important;
    margin: 0 auto !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    bottom: 36px !important;
    text-align: center !important;
    box-sizing: border-box !important;
    z-index: 5 !important;
}

.elementor-element-6630fcd .ecomus-banner-content,
.elementor-element-4d92a207 .ecomus-banner-content {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    margin-bottom: 0 !important;
}

.elementor-element-6630fcd .ecomus-banner__title,
.elementor-element-4d92a207 .ecomus-banner__title {
    color: #475569 !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
    margin-top: 0 !important;
    margin-bottom: 8px !important;
    order: 1 !important;
}

.elementor-element-6630fcd .ecomus-banner__sub-title,
.elementor-element-4d92a207 .ecomus-banner__sub-title {
    color: #0f172a !important;
    font-size: 32px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    letter-spacing: -0.5px !important;
    margin-top: 0 !important;
    margin-bottom: 18px !important;
    order: 2 !important;
}

.elementor-element-6630fcd .ecomus-banner__button,
.elementor-element-4d92a207 .ecomus-banner__button {
    order: 3 !important;
    margin-top: 0 !important;
}

.elementor-element-6630fcd .ecomus-banner__button a,
.elementor-element-4d92a207 .ecomus-banner__button a {
    background: #0f172a !important;
    color: #ffffff !important;
    border-radius: 8px !important;
    padding: 12px 28px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    letter-spacing: 0.3px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.25s ease !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.18) !important;
}

.elementor-element-6630fcd .ecomus-banner__button a:hover,
.elementor-element-4d92a207 .ecomus-banner__button a:hover {
    background: #1e293b !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.28) !important;
}

@media (max-width: 768px) {
    .elementor-element-6630fcd .ecomus-banner__summary,
    .elementor-element-4d92a207 .ecomus-banner__summary {
        width: calc(100% - 32px) !important;
        padding: 18px 20px 22px 20px !important;
        bottom: 20px !important;
    }

    .elementor-element-6630fcd .ecomus-banner__sub-title,
    .elementor-element-4d92a207 .ecomus-banner__sub-title {
        font-size: 24px !important;
        margin-bottom: 14px !important;
    }
}

/* 2. Wide Inspection Quality Banner (Every Phone Tested & Verified) */
.elementor-element-269ab098 .ecomus-banner {
    border-radius: 12px !important;
    overflow: hidden !important;
}

.elementor-element-269ab098 .ecomus-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.78) 0%, rgba(15, 23, 42, 0.45) 55%, rgba(15, 23, 42, 0.15) 100%) !important;
    z-index: 2 !important;
    pointer-events: none !important;
}

.elementor-element-269ab098 .ecomus-banner__button--all {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
}

.elementor-element-269ab098 .ecomus-banner__summary {
    background: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: none !important;
    box-shadow: none !important;
    max-width: 580px !important;
    left: 60px !important;
    right: auto !important;
    top: 50% !important;
    bottom: auto !important;
    transform: translateY(-50%) !important;
    padding: 0 !important;
    z-index: 5 !important;
}

.elementor-element-269ab098 .ecomus-banner__title {
    color: #e2e8f0 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
    margin-top: 0 !important;
    margin-bottom: 12px !important;
    display: inline-block !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5) !important;
}

.elementor-element-269ab098 .ecomus-banner__sub-title {
    color: #ffffff !important;
    font-size: 38px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    letter-spacing: -0.5px !important;
    margin-top: 0 !important;
    margin-bottom: 14px !important;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6) !important;
}

.elementor-element-269ab098 .ecomus-banner__description {
    color: #cbd5e1 !important;
    font-size: 16px !important;
    line-height: 1.6 !important;
    margin-top: 0 !important;
    margin-bottom: 24px !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6) !important;
}

.elementor-element-269ab098 .ecomus-banner__button a {
    background: #ffffff !important;
    color: #0f172a !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 13px 30px !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    letter-spacing: 0.3px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.25s ease !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25) !important;
}

.elementor-element-269ab098 .ecomus-banner__button a:hover {
    background: #0f172a !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4) !important;
}

@media (max-width: 991px) {
    .elementor-element-269ab098 .ecomus-banner__summary {
        left: 30px !important;
        right: 30px !important;
        max-width: calc(100% - 60px) !important;
    }

    .elementor-element-269ab098 .ecomus-banner__sub-title {
        font-size: 30px !important;
    }
}

@media (max-width: 768px) {
    .elementor-element-269ab098 .ecomus-banner__summary {
        left: 20px !important;
        right: 20px !important;
        max-width: calc(100% - 40px) !important;
    }

    .elementor-element-269ab098 .ecomus-banner__sub-title {
        font-size: 24px !important;
    }

    .elementor-element-269ab098 .ecomus-banner__description {
        font-size: 14px !important;
        margin-bottom: 18px !important;
    }
}

/* 3. Remove Countdown Timer & Polish Shop Certified Phones Button */
.elementor-widget-ecomus-countdown,
.ecomus-countdown,
.elementor-element-7e6838d5,
.elementor-element-568a00b3 {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.elementor-element-3d4d8950 {
    margin-top: 24px !important;
}

.elementor-element-3d4d8950 a.ecomus-button,
.elementor-element-3d4d8950 a.ecomus-button-link,
.elementor-element-3d4d8950 a.em-button {
    background: #ffffff !important;
    color: #0f172a !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
    padding: 13px 30px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25) !important;
    transition: all 0.25s ease !important;
}

.elementor-element-3d4d8950 a.ecomus-button:hover,
.elementor-element-3d4d8950 a.ecomus-button-link:hover,
.elementor-element-3d4d8950 a.em-button:hover {
    background: #f1f5f9 !important;
    color: #0f172a !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35) !important;
}

/* ==========================================================================
   EDITORIAL & ARTICLE STYLING (SINGLE POSTS)
   Transforms plain text-heavy articles into modern visual tech publications
   ========================================================================== */

/* 1. Article Layout & Width */
.single-post .site-content-container,
.single-post #primary,
.single-post article.post {
    max-width: 920px !important;
    margin: 0 auto !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
}

.single-post .entry-header {
    text-align: center !important;
    margin-bottom: 40px !important;
}

.single-post .entry-header .entry-title {
    font-size: 40px !important;
    line-height: 1.25 !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    letter-spacing: -0.03em !important;
    margin: 16px auto 20px auto !important;
    max-width: 820px !important;
}

@media (max-width: 768px) {
    .single-post .entry-header .entry-title {
        font-size: 28px !important;
    }
}

.single-post .post-thumbnail {
    border-radius: 16px !important;
    overflow: hidden !important;
    margin-bottom: 44px !important;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08) !important;
}

.single-post .post-thumbnail img {
    border-radius: 16px !important;
    width: 100% !important;
    height: auto !important;
}

/* 2. Article Typography */
.single-post .entry-content {
    font-size: 17px !important;
    line-height: 1.8 !important;
    color: #334155 !important;
}

.single-post .entry-content p {
    margin-bottom: 24px !important;
    line-height: 1.8 !important;
    font-size: 17px !important;
    color: #334155 !important;
}

.single-post .entry-content h2 {
    font-size: 28px !important;
    font-weight: 800 !important;
    line-height: 1.35 !important;
    color: #0f172a !important;
    letter-spacing: -0.02em !important;
    margin-top: 48px !important;
    margin-bottom: 20px !important;
    padding-bottom: 12px !important;
    border-bottom: 2px solid #f1f5f9 !important;
}

.single-post .entry-content h3 {
    font-size: 21px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    color: #0f172a !important;
    margin-top: 32px !important;
    margin-bottom: 14px !important;
}

/* 3. Lead Paragraph */
.single-post .entry-content .lead,
.tps-article-lead {
    font-size: 19px !important;
    line-height: 1.75 !important;
    color: #1e293b !important;
    background: #f8fafc !important;
    border-left: 4px solid #0f172a !important;
    padding: 22px 28px !important;
    border-radius: 0 14px 14px 0 !important;
    margin-bottom: 36px !important;
    font-weight: 450 !important;
}

/* 4. Stats Highlight Bar */
.tps-stats-bar {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 16px !important;
    margin: 32px 0 44px 0 !important;
    background: #0f172a !important;
    color: #ffffff !important;
    padding: 24px 20px !important;
    border-radius: 16px !important;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12) !important;
    text-align: center !important;
}

.tps-stat-item .tps-stat-num {
    display: block !important;
    font-size: 26px !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    letter-spacing: -0.02em !important;
    line-height: 1.2 !important;
}

.tps-stat-item .tps-stat-label {
    display: block !important;
    font-size: 12px !important;
    color: #94a3b8 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
    font-weight: 600 !important;
    margin-top: 4px !important;
}

@media (max-width: 640px) {
    .tps-stats-bar {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 18px !important;
    }
}

/* 5. Editorial Cards Grid */
.tps-card-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
    margin: 28px 0 36px 0 !important;
}

@media (max-width: 640px) {
    .tps-card-grid {
        grid-template-columns: 1fr !important;
    }
}

.tps-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 14px !important;
    padding: 24px !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03) !important;
    transition: all 0.25s ease !important;
}

.tps-card:hover {
    border-color: #cbd5e1 !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06) !important;
    transform: translateY(-2px) !important;
}

.tps-badge {
    display: inline-block !important;
    padding: 4px 10px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.6px !important;
    text-transform: uppercase !important;
    border-radius: 6px !important;
    background: #f1f5f9 !important;
    color: #0f172a !important;
    margin-bottom: 12px !important;
}

.tps-badge.green {
    background: #dcfce7 !important;
    color: #166534 !important;
}

.tps-badge.blue {
    background: #dbeafe !important;
    color: #1e40af !important;
}

.tps-badge.dark {
    background: #0f172a !important;
    color: #ffffff !important;
}

.single-post .entry-content .tps-card-title,
.tps-card-title {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin: 0 0 10px 0 !important;
    line-height: 1.35 !important;
}

.single-post .entry-content .tps-card-desc,
.tps-card-desc {
    font-size: 15px !important;
    line-height: 1.65 !important;
    color: #475569 !important;
    margin: 0 !important;
}


/* 6. Blockquote */
.single-post .entry-content blockquote {
    background: #0f172a !important;
    color: #f8fafc !important;
    padding: 26px 32px !important;
    border-radius: 14px !important;
    border-left: 5px solid #e11d48 !important;
    font-size: 18px !important;
    line-height: 1.7 !important;
    font-style: italic !important;
    margin: 36px 0 !important;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.15) !important;
}

.single-post .entry-content blockquote p {
    color: #f8fafc !important;
    font-size: 18px !important;
    margin: 0 !important;
}

/* 7. Modern Comparison Table */
.tps-table-wrapper {
    overflow-x: auto !important;
    margin: 28px 0 36px 0 !important;
    border-radius: 12px !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04) !important;
}

.tps-table {
    width: 100% !important;
    border-collapse: collapse !important;
    font-size: 15px !important;
    text-align: left !important;
}

.tps-table thead tr {
    background-color: #0f172a !important;
    color: #ffffff !important;
}

.tps-table th {
    padding: 14px 18px !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    letter-spacing: 0.3px !important;
}

.tps-table td {
    padding: 14px 18px !important;
    border-bottom: 1px solid #f1f5f9 !important;
    color: #334155 !important;
}

.tps-table tbody tr:last-child td {
    border-bottom: none !important;
}

.tps-table tbody tr:nth-child(even) {
    background-color: #f8fafc !important;
}

/* 8. Callout & Guarantee Card */
.tps-callout-box {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 14px !important;
    padding: 26px 30px !important;
    margin: 36px 0 !important;
}

.tps-callout-title {
    font-size: 20px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin: 0 0 12px 0 !important;
}

.tps-article-cta {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
    border-radius: 16px !important;
    padding: 36px 32px !important;
    color: #ffffff !important;
    text-align: center !important;
    margin: 44px 0 20px 0 !important;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.16) !important;
}

.single-post .entry-content .tps-article-cta h3,
.tps-article-cta h3 {
    color: #ffffff !important;
    font-size: 24px !important;
    font-weight: 800 !important;
    margin: 0 0 12px 0 !important;
}

.single-post .entry-content .tps-article-cta p,
.tps-article-cta p {
    color: #e2e8f0 !important;
    font-size: 16px !important;
    max-width: 600px !important;
    margin: 0 auto 24px auto !important;
}


.tps-article-cta a.tps-cta-btn {
    display: inline-block !important;
    background: #ffffff !important;
    color: #0f172a !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    padding: 13px 28px !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
}

.tps-article-cta a.tps-cta-btn:hover {
    background: #f1f5f9 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25) !important;
}

/* ==========================================================================
   PRODUCT GALLERY & THUMBNAILS FIX (FIXED ASPECT RATIO & FULL VISIBILITY)
   ========================================================================== */

/* 1. Desktop Vertical Gallery (1200px+) */
@media (min-width: 1200px) {
    .single-product div.product .woocommerce-product-gallery--vertical {
        display: flex !important;
        flex-direction: row-reverse !important;
        justify-content: flex-end !important;
        align-items: stretch !important;
        min-height: 520px !important;
        height: 520px !important;
    }

    .single-product div.product .woocommerce-product-gallery--vertical.woocommerce-product-gallery--has-thumbnails .woocommerce-product-gallery__wrapper {
        width: 84% !important;
        min-height: 520px !important;
        height: 520px !important;
        margin-left: 14px !important;
        position: relative !important;
    }

    .single-product div.product .woocommerce-product-gallery--vertical.woocommerce-product-gallery--has-thumbnails .ecomus-product-gallery-thumbnails {
        width: 16% !important;
        min-height: 520px !important;
        height: 520px !important;
        max-height: 520px !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        scrollbar-width: thin !important;
        scrollbar-color: #cbd5e1 transparent !important;
    }

    .single-product div.product .woocommerce-product-gallery--vertical .ecomus-product-gallery-thumbnails .swiper-wrapper {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        height: auto !important;
        transform: none !important;
    }
}

/* 2. Main Gallery Slides & Image Canvas (Consistent across devices) */
.single-product div.product .woocommerce-product-gallery .woocommerce-product-gallery__image {
    min-height: 520px !important;
    height: 520px !important;
    max-height: 520px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #f8fafc !important;
    border-radius: 12px !important;
    border: 1px solid #f1f5f9 !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

.single-product div.product .woocommerce-product-gallery .woocommerce-product-gallery__image a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
}

/* Lock image proportions with object-fit: contain - no stretching, no collapsing, always centered */
.single-product div.product .woocommerce-product-gallery .woocommerce-product-gallery__image img {
    width: 100% !important;
    height: 100% !important;
    max-height: 500px !important;
    object-fit: contain !important;
    object-position: center !important;
    display: block !important;
    margin: 0 auto !important;
    padding: 14px !important;
    box-sizing: border-box !important;
    transition: transform 0.25s ease !important;
}

/* 3. Thumbnail Slides - Uniform Square Aspect Ratio */
.single-product div.product .ecomus-product-gallery-thumbnails .swiper-slide {
    width: 100% !important;
    height: 76px !important;
    min-height: 76px !important;
    max-height: 76px !important;
    aspect-ratio: 1 / 1 !important;
    border-radius: 8px !important;
    background: #f8fafc !important;
    border: 1.5px solid #e2e8f0 !important;
    overflow: hidden !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 4px !important;
    box-sizing: border-box !important;
    margin-bottom: 0 !important;
    transition: all 0.2s ease !important;
}

.single-product div.product .ecomus-product-gallery-thumbnails .swiper-slide:hover {
    border-color: #94a3b8 !important;
    transform: translateY(-1px);
}

.single-product div.product .ecomus-product-gallery-thumbnails .swiper-slide.swiper-slide-thumb-active {
    border-color: #0f172a !important;
    box-shadow: 0 0 0 1px #0f172a !important;
    background: #ffffff !important;
}

.single-product div.product .ecomus-product-gallery-thumbnails .swiper-slide img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
    display: block !important;
}

/* 4. Swiper Controls & Lightbox Button */
.single-product div.product .woocommerce-product-gallery .ecomus-button--product-lightbox {
    top: 14px !important;
    right: 14px !important;
    z-index: 5 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
}

.single-product div.product .woocommerce-product-gallery .ecomus-swiper-button {
    z-index: 5 !important;
}

/* 5. Responsive Breakpoint (< 1200px) */
@media (max-width: 1199px) {
    .single-product div.product .woocommerce-product-gallery .woocommerce-product-gallery__wrapper,
    .single-product div.product .woocommerce-product-gallery .woocommerce-product-gallery__image {
        min-height: 420px !important;
        height: 420px !important;
        max-height: 420px !important;
    }

    .single-product div.product .woocommerce-product-gallery .woocommerce-product-gallery__image img {
        max-height: 400px !important;
    }

    .single-product div.product .ecomus-product-gallery-thumbnails .swiper-slide {
        width: 68px !important;
        height: 68px !important;
        min-height: 68px !important;
        max-height: 68px !important;
    }
}

@media (max-width: 767px) {
    .single-product div.product .woocommerce-product-gallery .woocommerce-product-gallery__wrapper,
    .single-product div.product .woocommerce-product-gallery .woocommerce-product-gallery__image {
        min-height: 320px !important;
        height: 320px !important;
        max-height: 320px !important;
    }

    .single-product div.product .woocommerce-product-gallery .woocommerce-product-gallery__image img {
        max-height: 300px !important;
        padding: 8px !important;
    }

    .single-product div.product .ecomus-product-gallery-thumbnails .swiper-slide {
        width: 58px !important;
        height: 58px !important;
        min-height: 58px !important;
        max-height: 58px !important;
    }
}