/* --- Reset & Base Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Nunito:wght@400;600&display=swap');

/* Disable default browser tap highlights and focus outline boxes globally */
* {
    -webkit-tap-highlight-color: transparent !important;
}

*:focus,
*:active,
*:focus-visible,
a:focus,
a:active,
button:focus,
button:active,
input:focus,
input:active,
textarea:focus,
textarea:active,
select:focus,
select:active {
    outline: none !important;
    outline-color: transparent !important;
    box-shadow: none !important;
}

body, html, p, span, div, input, button, select, textarea {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: #1d1d1f;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Bebas Neue', sans-serif !important;
    font-weight: 400 !important;
    letter-spacing: 0.05em !important;
    color: #1d1d1f;
}

/* Force backgrounds */
body, 
#page, 
.site, 
.site-content, 
.ast-container, 
#primary,
.entry-content,
article {
    background-color: #ffffff !important;
}

body, html {
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden !important;
}

/* Page Layout Reset to fix margins and full width issues */
.site, .site-header, .site-main, .post-2056, .entry-content, .page-content {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

.site-content .container {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* --- Apple-Style Custom Scrollbar --- */
::-webkit-scrollbar {
    width: 8px !important;
    height: 8px !important;
}

::-webkit-scrollbar-track {
    background: #ffffff !important; /* Pure white track to match background */
}

::-webkit-scrollbar-thumb {
    background: #d2d2d7 !important; /* Soft gray scrollbar thumb */
    border-radius: 10px !important;
    border: 2px solid #ffffff !important; /* Creates padding around thumb */
}

::-webkit-scrollbar-thumb:hover {
    background: #86868b !important; /* Darker gray on hover */
}

/* --- Premium Header Apple-Style (Fixed Position & Fixed Height) --- */
.site-header {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: saturate(180%) blur(20px) !important;
    -webkit-backdrop-filter: saturate(180%) blur(20px) !important;
    position: fixed !important; /* Keep header absolutely fixed during scroll */
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    z-index: 9999 !important;
    border-bottom: 1px solid transparent !important; /* Invisible at top */
    transition: border-bottom-color 0.3s ease !important;
    height: 63px !important; 
    display: flex !important;
    justify-content: center !important; 
    align-items: center !important;
    gap: 240px !important; /* Equal distance logo <-> navigation and navigation <-> actions */
    padding: 0 !important;
    box-sizing: border-box !important;
}

/* Active border bottom class to be added via JS on scroll */
.site-header.scrolled {
    border-bottom-color: rgba(0, 0, 0, 0.08) !important;
}

/* Padding offset on body to prevent content from starting under the fixed header */
body {
    padding-top: 63px !important; /* Header height only (63px) */
    box-sizing: border-box !important;
    display: block !important;
}

body.home {
    padding-top: 103px !important; /* Header (63px) + Marquee (40px) */
}

body.woocommerce-page {
    padding-top: 63px !important; /* Default for WooCommerce pages */
    display: flex !important;
    flex-direction: column !important;
    min-height: 100vh !important;
}

body.woocommerce-page.home {
    padding-top: 103px !important; /* Homepage as WC shop page */
}

/* consolidated content wrapper styles below */

/* Hard reset alignments on theme wrapper containers to force vertical centering and narrow alignment */
.site-header .site-branding {
    flex: 0 0 auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 100% !important;
    margin: 0 !important; 
    padding: 0 !important;
}

/* Fix title/logo font size, line-height, and padding to prevent vertical text misalignment */
.site-header .site-title, 
.site-header .site-title a {
    font-family: 'Bebas Neue', sans-serif !important;
    font-size: 26px !important; /* Slightly larger for Bebas Neue logo */
    font-weight: 400 !important;
    line-height: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #1d1d1f !important;
    text-decoration: none !important;
    display: flex !important;
    align-items: center !important;
    height: 100% !important;
    letter-spacing: 0.05em !important;
}

/* Navigation Links Style Reset to align horizontally and vertically (Centered) */
.site-navigation, .main-navigation {
    flex: 0 0 auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 100% !important;
    margin-left: 0 !important;
}

.site-navigation ul, .main-navigation ul {
    display: flex !important;
    flex-direction: row !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 24px !important; /* Spacing between menu items: Catalog, Featured, Deals */
    align-items: center !important;
    height: 100% !important;
}

.site-navigation li, .main-navigation li {
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    height: 100% !important;
}

/* Navigation Links */
.main-navigation a, .main-header-menu a, .menu-link, .site-navigation a {
    font-family: 'Nunito', sans-serif !important;
    color: #1d1d1f !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    letter-spacing: -0.01em !important;
    transition: opacity 0.2s ease !important;
    text-decoration: none !important;
    display: flex !important;
    align-items: center !important;
    height: 100% !important;
    line-height: 1 !important;
    padding: 0 !important;
    margin: 0 !important;
}

.main-navigation a:hover, .main-header-menu a:hover, .site-navigation a:hover {
    opacity: 0.7 !important;
}

/* --- HIDE ANY TOP BARS AND ADMIN BANDS --- */
#wpadminbar, 
.ast-above-header-wrap, 
.above-header-container,
.ast-below-header-wrap,
.below-header-container {
    display: none !important;
}

html {
    margin-top: 0 !important;
}

/* --- Hero Section Styling (FULL VIEWPORT HEIGHT) --- */
.apple-hero-container {
    position: relative !important;
    display: flex;
    flex-direction: column;
    justify-content: flex-start !important; /* Start content below header so it is never covered */
    align-items: center;
    text-align: center;
    height: auto !important; /* Set to auto to avoid vertical overflow clipping */
    min-height: calc(100vh - 103px) !important; /* Full viewport height minus header and carousel */
    padding: 80px 0 140px 0 !important; /* Large top padding to push content below sticky header */
    background-color: #ffffff !important;
    background-image: none !important;
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 auto !important; 
    box-sizing: border-box !important;
    overflow: visible !important; /* Allow visible content overflow */
}

/* Flex wrapper to offset content slightly upwards */
.apple-hero-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 0 !important; /* Never shift upwards to avoid covering text */
    width: 100%;
    max-width: 1200px !important;
    padding: 0 20px !important;
    box-sizing: border-box !important;
}

.apple-hero-title {
    font-size: 72px !important; 
    line-height: 1 !important;
    font-weight: 400 !important;
    letter-spacing: 0.03em !important;
    color: #1d1d1f !important;
    margin: 0 0 20px 0 !important;
    white-space: nowrap !important; /* Force title to stay in one line */
}

.apple-hero-subtitle {
    font-size: 24px !important;
    line-height: 1.35 !important;
    font-weight: 400 !important;
    color: #86868b !important;
    margin: 0 0 36px 0 !important; /* Margins for buttons */
    max-width: 800px; 
}

/* --- Buttons layout --- */
.apple-hero-buttons {
    display: none !important;
}

.apple-btn {
    font-family: 'Nunito', sans-serif !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    padding: 12px 28px !important;
    border-radius: 980px !important;
    text-decoration: none !important;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1) !important;
    display: inline-block !important;
    line-height: 1.2 !important;
    height: auto !important;
    border: none !important;
}

/* Category Grid on Desktop (originally mobile only) */
.apple-hero-mobile-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important; /* 4 columns on desktop/tablet to align evenly in one row */
    justify-content: center !important;
    gap: 24px !important;
    width: 100% !important;
    max-width: 1300px !important;
    margin: 40px auto 0 auto !important;
    box-sizing: border-box !important;
}
.apple-hero-mobile-grid .mobile-grid-item {
    width: 100% !important;
    max-width: 290px !important;
    margin: 0 auto !important;
}

.apple-btn-dark {
    background-color: #1d1d1f !important;
    color: #ffffff !important;
}

.apple-btn-dark:hover {
    background-color: #000000 !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15) !important;
    transform: scale(1.02) !important;
}

.apple-btn-light {
    background-color: #f5f5f7 !important;
    color: #1d1d1f !important;
}

.apple-btn-light:hover {
    background-color: #e8e8ed !important;
    transform: scale(1.02) !important;
}

/* --- Infinite Text Marquee Carousel at Bottom (Single Line, Styled Box, Full 100% Width) --- */
.apple-text-carousel-container {
    position: fixed !important;
    top: 63px !important; /* Positioned directly under 63px header */
    left: 0 !important;
    width: 100% !important;
    height: 40px !important; /* Elegant thin banner height */
    overflow: hidden !important;
    white-space: nowrap !important;
    background-color: #e31e24 !important; /* Kaspi Red */
    display: flex !important;
    align-items: center !important;
    box-sizing: border-box !important;
    border: none !important;
    z-index: 9998 !important; /* Placed directly below header (9999) */
}

.apple-carousel-track {
    display: flex !important; /* Forces single line block */
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    width: max-content !important; /* Ensures track stretches far enough to hold both copies */
    -webkit-animation: marquee 35s linear infinite !important;
    animation: marquee 35s linear infinite !important;
    height: 100% !important;
}

.apple-carousel-track br {
    display: none !important;
}

.apple-carousel-item {
    font-family: 'Bebas Neue', sans-serif !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    letter-spacing: 0.05em !important;
    color: #ffffff !important; /* White text on Kaspi Red */
    text-transform: uppercase !important;
    padding: 0 10px !important;
    transition: opacity 0.3s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    white-space: nowrap !important;
    line-height: 40px !important;
}
.apple-carousel-item img {
    height: 28px !important; /* Larger Kaspi logo */
    width: auto !important;
    vertical-align: middle !important;
    display: inline-block !important;
}

.apple-carousel-item:hover {
    opacity: 0.7 !important; /* Soft opacity change on hover for feedback */
}

.apple-carousel-divider {
    font-size: 18px !important;
    color: #ffffff !important; /* White divider on Kaspi Red */
    margin: 0 15px !important;
    vertical-align: middle !important;
    display: inline-block !important;
    line-height: 40px !important;
}

/* Infinitely sliding animation */
@-webkit-keyframes marquee {
    0% {
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
    }
    100% {
        -webkit-transform: translate3d(-50%, 0, 0);
        transform: translate3d(-50%, 0, 0);
    }
}

@keyframes marquee {
    0% {
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
    }
    100% {
        -webkit-transform: translate3d(-50%, 0, 0);
        transform: translate3d(-50%, 0, 0);
    }
}

/* Hide breadcrumbs, default page headers, footer, AND the Hello Elementor default entry header/title */
.woocommerce-breadcrumb, 
.entry-header, 
.post-thumbnail,
.page-header, 
.page-title,
.entry-title:not(.product_title),
.site-footer,
footer {
    display: none !important;
}

/* Kill any pink/outlined buttons from WooCommerce or plugins */
button:not(.mobile-menu-toggle):not(.mobile-menu-close):not(.premiumstore-zakryt-okno):not(.apple-btn-apply),
input[type="submit"],
input[type="button"] {
    outline: none !important;
    box-shadow: none !important;
    -webkit-appearance: none !important;
}

/* Hide WooCommerce required asterisk and any stray form elements on homepage */
.woocommerce-notices-wrapper,
.woocommerce form .form-row .required,
abbr[title="required"] {
    display: none !important;
    visibility: hidden !important;
}

/* Hide only footer nav menu, keep GTranslate visible */
.widget_nav_menu,
.footer-inner,
#site-footer,
.dynamic-footer {
    display: none !important;
}

/* --- GTranslate — полностью скрыт --- */
.gtranslate_wrapper,
#gtranslate_wrapper,
[id^="gt-wrapper"],
[class*="gtranslate"],
.gt-float-switcher,
.gt-float-switcher-wrapper,
[class*="gt-float"],
[class*="gt_popup"],
[class*="gt-popup"],
.gt_popup_overlay,
.gt-close,
.gt_close,
.gt_switcher_close,
#gt_float_wrapper,
.gt-selected,
.gt_switcher {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* --- Header Action Buttons (Search & Cart) --- */
.header-right-actions {
    flex: 0 0 auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 20px !important;
    height: 100% !important;
}

.header-action-btn {
    color: #1d1d1f !important;
    opacity: 0.8 !important;
    transition: opacity 0.25s ease, transform 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    height: 40px !important;
    width: 40px !important;
    position: relative !important;
}

.header-action-btn:hover {
    opacity: 1 !important;
    transform: scale(1.05) !important;
}

.header-action-btn svg {
    stroke: #1d1d1f !important;
}

.header-right-actions .cart-count {
    position: absolute !important;
    top: 2px !important;
    right: 2px !important;
    background-color: #1d1d1f !important;
    color: #ffffff !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    border-radius: 980px !important;
    padding: 1px 5px !important;
    line-height: 1.2 !important;
    font-family: 'Nunito', sans-serif !important;
    border: 2px solid #ffffff !important;
}

/* --- WooCommerce Store Catalog Styling --- */
.woocommerce-products-header, 
.woocommerce-result-count, 
.woocommerce-ordering,
.woocommerce-breadcrumb,
.woocommerce ul.products li.product a.button.add_to_cart_button:not(.premiumstore-knopka-korzina-razdel) {
    display: none !important; /* Hide sorting, count, breadcrumbs and duplicate default buttons */
}

/* Two-column layout container under body.woocommerce-page */
body.woocommerce-page {
    display: flex !important;
    flex-direction: column !important;
    min-height: 100vh !important;
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 100px 0 0 0 !important; /* Reset padding to allow full-width footer */
    box-sizing: border-box !important;
    background-color: #ffffff !important;
}

/* Constrain content to 1400px maximum and center it on WooCommerce pages only */
body.woocommerce-page #page,
body.woocommerce-page #content,
body.woocommerce-page .site-content,
body.woocommerce-page #primary,
body.woocommerce-page .woocommerce-container,
body.woocommerce-page .site-main {
    flex: 1 0 auto !important;
    display: flex !important;
    flex-direction: column !important;
    max-width: 1400px !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding-left: 24px !important;
    padding-right: 24px !important;
    box-sizing: border-box !important;
    margin-bottom: 135px !important; /* Pushes the footer exactly 135px lower relative to page content */
}

.store-layout-row {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important; /* Keep side-by-side on desktop */
    justify-content: center !important;
    align-items: flex-start !important;
    gap: 30px !important; /* Space between sidebar and primary content */
    width: 100% !important;
}

.store-header-container {
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 24px !important;
    text-align: center !important;
    padding: 0 0 16px 0 !important;
}

.store-header-title {
    font-family: 'Bebas Neue', sans-serif !important;
    font-size: 56px !important;
    font-weight: 400 !important;
    letter-spacing: 0.04em !important;
    color: #1d1d1f !important;
    margin: 0 0 10px 0 !important;
    text-transform: uppercase !important;
}

.store-header-description {
    font-family: 'Nunito', sans-serif !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    color: #86868b !important;
    margin: 0 auto !important;
    max-width: 800px !important;
    line-height: 1.5 !important;
}

/* --- Store Category Tabs & Filter Sort Bar --- */
.store-category-tabs {
    display: none !important;
}

.store-category-tabs::-webkit-scrollbar {
    display: none !important; /* Hide scrollbar for Chrome/Safari/Opera */
}

.category-tab-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-decoration: none !important;
    color: #86868b !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    padding-bottom: 12px !important;
    position: relative !important;
    min-width: 76px !important;
    flex: 0 0 auto !important;
}

.category-tab-item .category-tab-img-wrapper {
    width: 56px !important;
    height: 56px !important;
    margin-bottom: 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: transform 0.2s ease !important;
}

.category-tab-item .category-tab-img-wrapper img {
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
}

.category-tab-item span {
    font-size: 13px !important;
    color: #1d1d1f !important;
    font-weight: 600 !important;
    text-align: center !important;
}

.category-tab-item.active {
    color: #1d1d1f !important;
}

.category-tab-item.active::after {
    content: '' !important;
    position: absolute !important;
    bottom: -1px !important;
    left: 0 !important;
    width: 100% !important;
    height: 3px !important;
    background-color: #000000 !important;
}

.category-tab-item:hover .category-tab-img-wrapper {
    transform: scale(1.06) !important;
}

/* Filter and Sort Grey Bar */
.store-filter-sort-bar {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    background-color: #f5f5f7 !important;
    padding: 6px 12px !important;
    border-radius: 12px !important;
    margin-bottom: 30px !important;
    box-sizing: border-box !important;
    width: 100% !important;
    position: relative !important;
    z-index: 95 !important;
}

.store-filter-sort-bar.hidden-bar {
    display: none !important;
}

.store-sort-select-wrapper {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
}

.store-sort-select {
    display: none !important;
}

.store-sort-select-wrapper::after {
    display: none !important;
}

.apple-custom-select {
    position: relative !important;
    font-family: 'Nunito', sans-serif !important;
    user-select: none !important;
}

.apple-select-trigger {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    background-color: #ffffff !important;
    border: 1px solid #d2d2d7 !important;
    border-radius: 980px !important;
    padding: 6px 16px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #1d1d1f !important;
    cursor: pointer !important;
    transition: all 0.2s cubic-bezier(0.25, 1, 0.5, 1) !important;
}

.apple-select-trigger:hover {
    background-color: #f5f5f7 !important;
    border-color: #86868b !important;
}

.apple-select-trigger-arrow {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: transform 0.2s ease !important;
    color: #86868b !important;
}

.apple-custom-select.open .apple-select-trigger-arrow {
    transform: rotate(180deg) !important;
}

.apple-select-options {
    position: absolute !important;
    top: calc(100% + 6px) !important;
    right: 0 !important;
    background-color: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
    padding: 6px !important;
    z-index: 9999 !important;
    min-width: 190px !important;
    display: none !important;
    animation: appleDropdownFadeIn 0.2s cubic-bezier(0.25, 1, 0.5, 1) !important;
}

.apple-custom-select.open .apple-select-options {
    display: block !important;
}

.apple-select-option {
    padding: 8px 14px !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #1d1d1f !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
    white-space: nowrap !important;
    text-align: left !important;
}

.apple-select-option:hover {
    background-color: #f5f5f7 !important;
}

.apple-select-option.selected {
    background-color: rgba(0, 125, 250, 0.08) !important;
    color: #0071e3 !important;
    font-weight: 600 !important;
}

@keyframes appleDropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.store-filter-sort-bar .store-filter-toggle-btn {
    background: transparent !important;
    border: none !important;
    color: #1d1d1f !important;
    cursor: pointer !important;
    padding: 4px !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: transform 0.15s ease !important;
    outline: none !important;
}

.store-filter-sort-bar .store-filter-toggle-btn svg {
    width: 20px !important;
    height: 20px !important;
}

.store-filter-sort-bar .store-filter-toggle-btn:active {
    transform: scale(0.92) !important;
}

/* Responsive Overrides */
@media (min-width: 1025px) {
    .store-filter-sort-bar .store-filter-toggle-btn {
        display: none !important; /* Hide filter toggle on desktop since sidebar is always visible */
    }
}

@media (max-width: 1024px) {
    .store-header-container {
        text-align: center !important;
        padding-bottom: 0 !important;
        border-bottom: none !important;
        margin-bottom: 20px !important;
        width: 100% !important;
    }
    
    .store-header-title {
        font-family: 'Nunito', sans-serif !important;
        font-size: 32px !important;
        font-weight: 700 !important;
        text-transform: none !important;
        letter-spacing: -0.5px !important;
        margin-bottom: 12px !important;
        text-align: center !important;
    }
    
    .store-header-description {
        display: none !important; /* Hide description on mobile to match screenshot */
    }
    
    .store-filter-toggle-btn {
        display: none !important; /* Hide old standalone filter toggle button */
    }
    
    /* Center Sort dropdown and position Filter toggle on the right */
    .store-filter-sort-bar {
        position: relative !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        background-color: transparent !important;
        padding: 0 !important;
        margin-bottom: 20px !important;
        border: none !important;
        z-index: 95 !important;
    }
    
    .store-sort-select-wrapper {
        display: flex !important;
        justify-content: center !important;
        width: auto !important;
        margin: 0 auto !important;
    }
    
    .store-filter-sort-bar .store-filter-toggle-btn {
        position: absolute !important;
        right: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background-color: #f5f5f7 !important;
        padding: 8px !important;
        border-radius: 50% !important;
        width: 36px !important;
        height: 36px !important;
    }
    
    .store-filter-sort-bar .store-filter-toggle-btn:active {
        transform: scale(0.92) !important;
    }
    
    /* Center the options dropdown under the custom select trigger */
    .apple-select-options {
        left: 50% !important;
        right: auto !important;
        margin-left: -90px !important;
    }
}

body.woocommerce-page #primary {
    flex: 1 1 auto !important; /* Grow and shrink dynamically */
    min-width: 0 !important; /* Prevent blowout */
    max-width: 1050px !important;
    order: 2 !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

body.woocommerce-page .store-sidebar {
    width: 280px !important;
    flex: 0 0 280px !important; /* Do not grow, do not shrink */
    order: 1 !important;
    margin: 0 !important;
    padding: 30px 24px !important;
    box-sizing: border-box !important;
    background: #f5f5f7 !important; /* Gray container so it doesn't merge with background */
    border-radius: 20px !important;
}

/* Smooth products transition during AJAX loading */
#primary .products {
    transition: opacity 0.25s ease !important;
    opacity: 1;
}

#primary:not(.products-formatted) .products {
    opacity: 1;
    /* opacity:0 removed - was hiding products when JS delayed */
}

#primary.products-loading .products {
    opacity: 0.3;
    transition: opacity 0.2s ease !important;
}

/* Main products container inside #primary */
.woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important; /* 4 columns */
    gap: 20px !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    list-style: none !important;
}

/* Clear WooCommerce floats and extra pseudoelements that break grids */
.woocommerce ul.products::before,
.woocommerce ul.products::after {
    display: none !important;
}

/* Product Card Styling */
.woocommerce ul.products li.product {
    width: 100% !important;
    max-width: 100% !important;
    background: #f5f5f7 !important; /* Soft gray card background */
    border-radius: 20px !important;
    padding: 24px !important;
    box-sizing: border-box !important;
    text-align: left !important; /* Left alignment as requested */
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s ease !important;
    margin: 0 !important;
    float: none !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: stretch !important;
    position: relative !important;
    min-height: 330px !important; /* Ensure unified card height */
}

.woocommerce ul.products li.product:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06) !important;
}

.woocommerce ul.products li.product a.woocommerce-loop-product__link {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    text-decoration: none !important;
    color: inherit !important;
    width: 100% !important;
    margin-bottom: auto !important; /* Push everything else up */
}

.woocommerce ul.products li.product img {
    max-width: 100% !important;
    width: auto !important;
    height: 150px !important; /* Fixed image height to keep rows aligned */
    object-fit: contain !important;
    border-radius: 12px !important;
    margin: 0 auto 20px auto !important;
    background: transparent !important;
    display: block !important;
    mix-blend-mode: multiply !important; /* Blend solid white background of the parsed images into the light gray card */
}

.woocommerce-loop-product__title {
    font-family: 'Nunito', sans-serif !important;
    font-size: 18px !important;
    font-weight: 700 !important; /* Bold black title */
    color: #1d1d1f !important;
    margin: 0 0 6px 0 !important;
    line-height: 1.25 !important;
    text-align: left !important;
    height: 68px !important; /* Fixed height for 3 lines */
    overflow: hidden !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important; /* Clamp to 3 lines */
    -webkit-box-orient: vertical !important;
}

/* Subtitle and Description Meta */
.product-meta-wrapper {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    margin-bottom: 20px !important;
}

.product-subtitle {
    font-family: 'Nunito', sans-serif !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #86868b !important; /* Gray smaller text */
    text-align: left !important;
}

/* Specs Tag Badges */
.product-tags {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    margin: 6px 0 !important;
}

.product-tag-pill {
    background: #e8e8ed !important;
    color: #515154 !important;
    font-family: 'Nunito', sans-serif !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    padding: 3px 8px !important;
    border-radius: 6px !important;
    display: inline-block !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
}

.color-tag {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.color-dot {
    width: 8px !important;
    height: 8px !important;
    border-radius: 50% !important;
    display: inline-block !important;
    flex-shrink: 0 !important;
}

.product-description {
    font-family: 'Nunito', sans-serif !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    color: #86868b !important; /* Lighter gray text */
    line-height: 1.4 !important;
    text-align: left !important;
    min-height: 36px !important; /* Standardize excerpt area */
}

/* Bottom Row: Price Pill on the Left, Buy Button on the Right */
.product-bottom-row {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important; /* Center child elements vertically */
    margin-top: auto !important; /* Anchor to card bottom */
    width: 100% !important;
    gap: 12px !important;
    height: 29px !important; /* Decreased by 5px */
    padding: 0 !important;
    box-sizing: border-box !important;
}

.product-price-pill {
    background: #e8e8ed !important; /* Light gray pill background */
    height: 29px !important; /* Decreased to 29px */
    line-height: 27px !important; /* Adjusted for top padding offset */
    padding: 0 12px !important;
    padding-top: 2px !important; /* Shift text slightly down to align with button text */
    padding-bottom: 0 !important;
    margin: 0 !important;
    border-radius: 980px !important;
    font-family: 'Nunito', sans-serif !important;
    font-size: 12px !important; /* Slightly smaller font to fit 29px height */
    font-weight: 700 !important;
    color: #1d1d1f !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
}

/* Black add-to-cart button - Square with cart icon */
.woocommerce ul.products li.product a.button.premiumstore-knopka-korzina-razdel,
.woocommerce ul.products li.product a.button.add_to_cart_button,
.premiumstore-knopka-korzina-razdel {
    background-color: #1d1d1f !important; /* Pure black background */
    background: #1d1d1f !important; /* Override gradient/images */
    color: #ffffff !important; /* White text */
    border-radius: 10px !important; /* Square with rounded corners */
    font-family: 'Nunito', sans-serif !important;
    height: 38px !important; /* Square dimensions */
    width: 38px !important;
    min-width: 38px !important;
    line-height: 38px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.25s ease !important;
    text-decoration: none !important;
    border: none !important;
    margin: 0 !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
    vertical-align: middle !important;
}

.woocommerce ul.products li.product a.button.premiumstore-knopka-korzina-razdel::after,
.woocommerce ul.products li.product a.button.add_to_cart_button::after,
.premiumstore-knopka-korzina-razdel::after {
    display: none !important; /* Remove WooCommerce loader spinner icon that breaks alignment */
}

.woocommerce ul.products li.product a.button.premiumstore-knopka-korzina-razdel:hover,
.woocommerce ul.products li.product a.button.add_to_cart_button:hover,
.premiumstore-knopka-korzina-razdel:hover {
    background-color: #000000 !important;
    background: #000000 !important;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15) !important;
    transform: scale(1.03) !important;
    color: #ffffff !important;
}

/* Hide original price and credit badges completely */
.woocommerce ul.products li.product .price,
.premiumstore-kaspi-price-wrap,
.premiumstore-kaspi-credit-badges,
.premiumstore-kaspi-credit-row,
.premiumstore-kaspi-red,
.premiumstore-kaspi-yellow,
.premiumstore-kaspi-orange {
    display: none !important;
}

/* Sidebar filter section styling */
.filter-group {
    margin-bottom: 28px !important;
}

.filter-group:last-child {
    margin-bottom: 0 !important;
}

.filter-title {
    font-family: 'Nunito', sans-serif !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    color: #86868b !important;
    margin: 0 0 14px 0 !important;
}

/* Category Tree Styles */
.category-tree {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    user-select: none !important;
}

.category-tree ul {
    list-style: none !important;
    padding-left: 14px !important;
    margin: 6px 0 0 0 !important;
    display: none; /* Collapsed by default */
}

/* Expand class */
.tree-branch-parent.expanded > ul {
    display: block !important;
}

.tree-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
}

.tree-toggle {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #86868b !important;
    cursor: pointer !important;
    padding: 2px 8px !important;
    transition: color 0.2s ease !important;
}

.tree-toggle:hover {
    color: #1d1d1f !important;
}

.tree-sub-sub-list {
    padding-left: 12px !important;
    border-left: 1px solid #d2d2d7 !important;
    margin-left: 4px !important;
}

.filter-list li {
    margin-bottom: 8px !important;
}

.filter-list li a {
    font-family: 'Nunito', sans-serif !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #515154 !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
    display: inline-block !important;
}

.filter-list li a:hover {
    color: #1d1d1f !important;
}

.filter-list li a.active {
    color: #1d1d1f !important;
    font-weight: 700 !important;
}

/* Price Range CSS styles */
.price-input-fields {
    display: flex !important;
    gap: 10px !important;
    margin-bottom: 12px !important;
}

.price-field {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
}

.price-field span {
    font-family: 'Nunito', sans-serif !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    color: #86868b !important;
}

.price-field input {
    background: #ffffff !important;
    border: 1px solid #d2d2d7 !important; /* Thin gray border */
    border-radius: 8px !important;
    padding: 8px 10px !important;
    font-family: 'Nunito', sans-serif !important;
    font-size: 13px !important;
    color: #1d1d1f !important;
    width: 100% !important;
    box-sizing: border-box !important;
    transition: border-color 0.2s ease !important;
}

.price-field input:focus {
    border-color: #86868b !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Hide spin buttons / arrows in inputs */
.price-field input::-webkit-outer-spin-button,
.price-field input::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

.price-field input[type=number] {
    -moz-appearance: textfield !important;
}

.price-slider-container {
    margin-bottom: 16px !important;
}

#price-range-slider {
    -webkit-appearance: none !important;
    appearance: none !important;
    width: 100% !important;
    height: 4px !important; /* Extremely thin track */
    border-radius: 980px !important;
    background: #e8e8ed !important;
    outline: none !important;
    margin: 12px 0 !important;
    cursor: pointer !important;
}

/* Custom styles for WebKit browsers (Chrome, Safari, Edge) */
#price-range-slider::-webkit-slider-runnable-track {
    width: 100% !important;
    height: 4px !important;
    background: #e8e8ed !important;
    border-radius: 980px !important;
}

#price-range-slider::-webkit-slider-thumb {
    -webkit-appearance: none !important;
    appearance: none !important;
    width: 14px !important;
    height: 14px !important;
    border-radius: 50% !important;
    background: #1d1d1f !important; /* Black thumb */
    cursor: pointer !important;
    margin-top: -5px !important; /* Vertically center the thumb */
    border: none !important;
    transition: transform 0.1s ease !important;
}

#price-range-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15) !important;
}

/* Custom styles for Firefox */
#price-range-slider::-moz-range-track {
    width: 100% !important;
    height: 4px !important;
    background: #e8e8ed !important;
    border-radius: 980px !important;
}

#price-range-slider::-moz-range-thumb {
    width: 14px !important;
    height: 14px !important;
    border-radius: 50% !important;
    background: #1d1d1f !important;
    cursor: pointer !important;
    border: none !important;
    transition: transform 0.1s ease !important;
}

#price-range-slider::-moz-range-thumb:hover {
    transform: scale(1.15) !important;
}

.slider-labels {
    display: flex !important;
    justify-content: space-between !important;
    font-family: 'Nunito', sans-serif !important;
    font-size: 12px !important;
    color: #86868b !important;
}

.apple-btn-apply {
    width: 100% !important;
    background: #1d1d1f !important;
    color: #ffffff !important;
    font-family: 'Nunito', sans-serif !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    padding: 8px 0 !important;
    border-radius: 980px !important;
    border: none !important;
    cursor: pointer !important;
    transition: background-color 0.2s ease !important;
}

.apple-btn-apply:hover {
    background: #000000 !important;
}

/* Hide hamburger menu toggle and sidebar controls on desktop by default */
.mobile-menu-toggle,
.sidebar-close-btn,
.store-filter-toggle-btn {
    display: none !important;
}

@media (max-width: 1024px) {
    body, body.woocommerce-page {
        padding-top: 63px !important; /* Tablet Header height only (63px) */
    }
    body.home, body.woocommerce-page.home {
        padding-top: 103px !important; /* Tablet Header (63px) + Marquee (40px) */
    }
    .store-layout-row {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 20px !important;
    }
    .store-layout-row #primary {
        width: 100% !important;
        max-width: 100% !important;
    }
    .store-sidebar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100vh !important;
        background: rgba(255, 255, 255, 0.98) !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
        z-index: 9999 !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: stretch !important;
        padding: 80px 40px 40px 40px !important;
        box-sizing: border-box !important;
        overflow-y: auto !important;
        margin: 0 !important;
        border-radius: 0 !important;
        gap: 25px !important;
        opacity: 0 !important;
        pointer-events: none !important;
        transition: opacity 0.3s ease !important;
    }
    .store-sidebar.active {
        opacity: 1 !important;
        pointer-events: auto !important;
    }
    .sidebar-close-btn {
        display: block !important;
        position: absolute !important;
        top: 20px !important;
        right: 20px !important;
        font-size: 38px !important;
        background: transparent !important;
        border: none !important;
        color: #1d1d1f !important;
        cursor: pointer !important;
        z-index: 10002 !important;
        line-height: 1 !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    .store-filter-toggle-btn {
        display: inline-flex !important;
        align-items: center !important;
        gap: 8px !important;
        background: #f5f5f7 !important;
        color: #1d1d1f !important;
        border: none !important;
        padding: 10px 20px !important;
        font-family: 'Nunito', sans-serif !important;
        font-size: 15px !important;
        font-weight: 600 !important;
        border-radius: 980px !important;
        cursor: pointer !important;
        margin: 15px auto 0 auto !important;
        transition: background 0.2s ease !important;
    }
    .store-filter-toggle-btn:hover {
        background: #e8e8ed !important;
    }
    body.sidebar-active {
        overflow: hidden !important;
    }
    .filter-group {
        margin-bottom: 0 !important;
    }
    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    body, body.woocommerce-page {
        padding-top: 60px !important; /* Mobile Header only (60px) */
    }
    body.home, body.woocommerce-page.home {
        padding-top: 96px !important; /* Mobile Header (60px) + Marquee (36px) */
    }
    .store-category-tabs {
        display: none !important;
    }
    /* Mobile Fixed Header Layout Fix */
    .site-header {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
        align-items: center !important;
        height: 60px !important;
        padding: 0 16px !important;
        gap: 0 !important;
    }
    .site-header .site-branding {
        flex: 0 0 auto !important;
        margin: 0 !important;
        padding: 0 !important;
        justify-content: flex-start !important;
    }
    .site-header .site-title, 
    .site-header .site-title a {
        font-size: 22px !important;
        margin: 0 !important;
    }
    .site-navigation, 
    .main-navigation {
        display: none !important; /* Hide desktop links on mobile */
    }
    .header-right-actions {
        flex: 0 0 auto !important;
        gap: 12px !important;
        margin-left: auto !important;
        margin-right: 16px !important;
        height: 100% !important;
    }
    .header-action-btn {
        width: 36px !important;
        height: 36px !important;
    }

    /* Hamburger menu toggle button style */
    .mobile-menu-toggle {
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        width: 22px !important;
        height: 16px !important;
        background: transparent !important;
        border: none !important;
        cursor: pointer !important;
        padding: 0 !important;
        z-index: 10001 !important;
        flex-shrink: 0 !important;
        margin: 0 !important;
    }
    .mobile-menu-toggle span {
        width: 100% !important;
        height: 2px !important;
        background-color: #1d1d1f !important;
        transition: all 0.3s ease !important;
    }
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg) !important;
    }
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0 !important;
    }
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg) !important;
    }

    /* Mobile Menu Full Screen Overlay */
    .mobile-menu-overlay {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100vh !important;
        background: rgba(255, 255, 255, 0.98) !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
        z-index: 10000 !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        opacity: 0 !important;
        pointer-events: none !important;
        transition: opacity 0.3s ease !important;
    }
    .mobile-menu-overlay.active {
        opacity: 1 !important;
        pointer-events: auto !important;
    }
    .mobile-menu-close {
        position: absolute !important;
        top: 16px !important;
        right: 16px !important;
        font-size: 38px !important;
        background: transparent !important;
        border: none !important;
        color: #1d1d1f !important;
        cursor: pointer !important;
    }
    .mobile-menu-nav {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 24px !important;
    }
    .mobile-menu-nav a {
        font-family: 'Bebas Neue', sans-serif !important;
        font-size: 28px !important;
        color: #1d1d1f !important;
        text-decoration: none !important;
        letter-spacing: 0.05em !important;
        transition: opacity 0.2s ease !important;
    }
    .mobile-menu-nav a:hover {
        opacity: 0.7 !important;
    }

    /* Responsive Hero section */
    .apple-hero-container {
        position: relative !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
        height: auto !important;
        min-height: calc(100vh - 96px) !important;
        padding: 30px 0 140px 0 !important;
        box-sizing: border-box !important;
    }
    .apple-hero-content-wrapper {
        margin-top: -70px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        width: 100% !important;
        padding: 0 !important;
    }
    .apple-hero-title {
        font-size: 40px !important;
        white-space: normal !important;
        line-height: 1.15 !important;
        text-align: center !important;
        margin: 0 auto 12px auto !important;
    }
    .apple-hero-subtitle {
        font-size: 14px !important;
        margin: 0 auto 16px auto !important;
        padding: 0 12px !important;
        text-align: center !important;
        line-height: 1.4 !important;
    }
    .apple-hero-buttons {
        display: none !important;
    }
    
    /* Mobile Hero Category Grid */
    .apple-hero-mobile-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
        width: 100% !important;
        max-width: 480px !important;
        margin: 20px auto 0 auto !important;
        box-sizing: border-box !important;
        padding: 0 12px !important;
    }
    
    .mobile-grid-item {
        background-color: #f5f5f7 !important;
        border-radius: 20px !important;
        padding: 16px 12px 12px 12px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-decoration: none !important;
        color: #1d1d1f !important;
        transition: transform 0.2s ease, background-color 0.2s ease !important;
        box-sizing: border-box !important;
        position: relative !important;
        overflow: hidden !important;
        border: 1px solid rgba(0, 0, 0, 0.02) !important;
        height: 180px !important; /* Uniform height to prevent stretching */
        justify-content: space-between !important;
    }
    
    .mobile-grid-item:active {
        transform: scale(0.97) !important;
        background-color: #e8e8ed !important;
    }
    
    .mobile-grid-item .grid-item-title {
        font-family: 'Nunito', sans-serif !important;
        font-size: 15px !important;
        font-weight: 700 !important;
        color: #1d1d1f !important;
        margin-bottom: 2px !important;
        line-height: 1.2 !important;
    }
    
    .mobile-grid-item .grid-item-price {
        font-family: 'Nunito', sans-serif !important;
        font-size: 13px !important;
        font-weight: 600 !important;
        color: #86868b !important;
        margin-bottom: 8px !important;
        line-height: 1.2 !important;
        white-space: nowrap !important; /* Prevent price wrapping */
    }
    
    .mobile-grid-item .grid-item-img-wrapper {
        width: 100% !important;
        height: 90px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin-top: auto !important;
    }
    
    .mobile-grid-item .grid-item-img-wrapper img {
        max-width: 100% !important;
        max-height: 100% !important;
        object-fit: contain !important;
    }

    /* Mobile Text Carousel tweaks */
    .apple-text-carousel-container {
        height: 36px !important;
        position: fixed !important;
        top: 60px !important; /* Positioned directly under 60px mobile header */
        left: 0 !important;
        width: 100% !important;
        z-index: 9998 !important;
    }
    .apple-carousel-item {
        font-size: 16px !important;
        line-height: 36px !important;
    }
    .apple-carousel-item img {
        height: 24px !important; /* Larger Kaspi logo on mobile */
        width: auto !important;
    }
    .apple-carousel-divider {
        line-height: 36px !important;
        font-size: 14px !important;
    }
    
    /* Store Header responsive */
    .store-header-title {
        font-size: 38px !important;
    }
    .store-header-description {
        font-size: 14px !important;
        padding: 0 12px !important;
    }
}

@media (max-width: 600px) {
    .store-sidebar {
        padding: 60px 24px 30px 24px !important;
        gap: 20px !important;
    }
    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr) !important; /* 2 columns on mobile phone */
        gap: 10px !important;
    }
    .woocommerce ul.products li.product {
        padding: 10px !important;
        min-height: unset !important;
        border-radius: 12px !important;
        display: flex !important;
        flex-direction: column !important;
    }
    .woocommerce ul.products li.product img {
        height: 120px !important;
        width: auto !important;
        margin-bottom: 10px !important;
    }
    .woocommerce-loop-product__title {
        font-size: 13px !important;
        line-height: 1.3 !important;
        margin-bottom: 8px !important;
        height: 34px !important;
        overflow: hidden !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
    }
    .product-meta-wrapper {
        margin-bottom: 8px !important;
    }
    .product-tag-pill {
        font-size: 8px !important;
        padding: 2px 4px !important;
    }
    .product-bottom-row {
        height: auto !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px !important;
        margin-top: auto !important;
    }
    .product-bottom-row .apple-price-block {
        align-items: flex-start !important;
        width: 100% !important;
    }
    .product-bottom-row .apple-price-sale,
    .product-bottom-row .apple-price-regular-only {
        font-size: 15px !important;
    }
    .product-bottom-row .apple-price-regular-old {
        font-size: 11px !important;
    }
    .product-bottom-row .apple-price-discount-badge {
        font-size: 8px !important;
        padding: 1px 4px !important;
    }
    .woocommerce ul.products li.product a.button.premiumstore-knopka-korzina-razdel,
    .woocommerce ul.products li.product a.button.add_to_cart_button {
        width: 34px !important;
        height: 34px !important;
        min-width: 34px !important;
        padding: 0 !important;
        border-radius: 8px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 !important;
    }
}

/* --- WooCommerce Pagination Styling (Horizontal Bottom Block) --- */
.woocommerce-pagination {
    position: relative !important;
    right: auto !important;
    top: auto !important;
    transform: none !important;
    margin: 40px auto 0 auto !important;
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
}

.woocommerce-pagination ul.page-numbers {
    display: flex !important;
    flex-direction: row !important; /* Horizontal flow */
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 8px !important;
    border: none !important;
}

.woocommerce-pagination ul.page-numbers li {
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: inline-block !important;
}

.woocommerce-pagination ul.page-numbers li a,
.woocommerce-pagination ul.page-numbers li span {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 36px !important;
    height: 36px !important;
    padding: 0 6px !important;
    border-radius: 50% !important; /* Circles */
    font-family: 'Nunito', sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
    border: none !important;
}

/* Active Page */
.woocommerce-pagination ul.page-numbers li span.current {
    background-color: #1d1d1f !important;
    color: #ffffff !important;
}

/* Other Pages */
.woocommerce-pagination ul.page-numbers li a {
    color: #515154 !important;
    background-color: #f5f5f7 !important;
    transition: all 0.2s ease !important;
}

.woocommerce-pagination ul.page-numbers li a:hover {
    background-color: #e8e8ed !important;
    color: #1d1d1f !important;
}

/* --- Single Product WooCommerce Form Layout Adjustments --- */
.single-product div.product form.cart {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    margin: 24px 0 !important;
    max-width: 400px !important;
}

.single-product div.product form.cart .quantity {
    display: none !important;
}

.single-product div.product form.cart .single_add_to_cart_button {
    width: 100% !important;
    background-color: #f5f5f7 !important;
    background: #f5f5f7 !important;
    color: #1d1d1f !important;
    border: none !important;
    border-radius: 980px !important;
    padding: 14px 24px !important;
    font-family: 'Nunito', sans-serif !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    text-align: center !important;
    transition: background-color 0.2s ease, transform 0.1s ease !important;
    height: 48px !important;
    line-height: 20px !important;
    box-sizing: border-box !important;
    margin: 0 !important;
}

.single-product div.product form.cart .single_add_to_cart_button:hover {
    background-color: #e8e8ed !important;
    background: #e8e8ed !important;
}

.single-product div.product form.cart .single_add_to_cart_button:active {
    transform: scale(0.98) !important;
}

/* --- WhatsApp Order & Inquiry Buttons (Single Product Page) --- */
.stepcamp-knopka-whatsapp {
    margin: 0 !important;
    width: 100% !important;
    background-color: #1d1d1f !important;
    background: #1d1d1f !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 980px !important;
    padding: 14px 24px !important;
    font-family: 'Nunito', sans-serif !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    text-align: center !important;
    transition: background-color 0.2s ease, transform 0.1s ease !important;
    height: 48px !important;
    line-height: 20px !important;
    box-sizing: border-box !important;
}

.stepcamp-knopka-whatsapp:hover {
    background-color: #000000 !important;
    background: #000000 !important;
}

.stepcamp-knopka-whatsapp:active {
    transform: scale(0.98) !important;
}



.stepcamp-wa-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 20px !important;
    height: 20px !important;
    flex: 0 0 20px !important;
}

.stepcamp-wa-icon svg {
    width: 20px !important;
    height: 20px !important;
}

/* --- WhatsApp Checkout Button (Cart Page) --- */
.stepcamp-knopka-whatsapp-korzina {
    display: block !important;
    width: 100% !important;
    background-color: #1d1d1f !important;
    background: #1d1d1f !important;
    color: #ffffff !important;
    text-align: center !important;
    border-radius: 980px !important;
    padding: 16px 24px !important;
    font-family: 'Nunito', sans-serif !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    margin-top: 15px !important;
    box-sizing: border-box !important;
    transition: background-color 0.2s ease, transform 0.1s ease !important;
}

.stepcamp-knopka-whatsapp-korzina:hover {
    background-color: #000000 !important;
    background: #000000 !important;
    color: #ffffff !important;
}

.stepcamp-knopka-whatsapp-korzina:active {
    transform: scale(0.98) !important;
}

/* --- WhatsApp Order Modal Popup --- */
.stepcamp-okno-whatsapp {
    display: flex !important;
    position: fixed !important;
    z-index: 999999 !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.4) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 20px !important;
    box-sizing: border-box !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity 0.3s ease !important;
}

.stepcamp-okno-whatsapp.active {
    opacity: 1 !important;
    pointer-events: auto !important;
}

.stepcamp-okno-whatsapp-blok {
    background: #ffffff !important;
    width: 100% !important;
    max-width: 400px !important;
    border-radius: 24px !important;
    padding: 36px 28px !important;
    text-align: center !important;
    position: relative !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
    box-sizing: border-box !important;
    transform: scale(0.95) !important;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.stepcamp-okno-whatsapp.active .stepcamp-okno-whatsapp-blok {
    transform: scale(1) !important;
}

.stepcamp-zakryt-okno {
    position: absolute !important;
    right: 20px !important;
    top: 16px !important;
    background: transparent !important;
    border: none !important;
    color: #86868b !important;
    font-size: 24px !important;
    line-height: 1 !important;
    cursor: pointer !important;
    padding: 0 !important;
    transition: color 0.2s ease !important;
}

.stepcamp-zakryt-okno:hover {
    color: #1d1d1f !important;
}

.stepcamp-okno-whatsapp-blok h3 {
    color: #1d1d1f !important;
    font-family: 'Nunito', sans-serif !important;
    font-size: 22px !important;
    margin: 0 0 12px !important;
    font-weight: 700 !important;
}

.stepcamp-okno-whatsapp-blok p {
    color: #86868b !important;
    font-family: 'Nunito', sans-serif !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    margin: 0 0 24px !important;
}

.stepcamp-knopka-napisat {
    display: block !important;
    width: 100% !important;
    background-color: #25D366 !important;
    background: #25D366 !important;
    color: #ffffff !important;
    border-radius: 980px !important;
    padding: 14px 20px !important;
    font-family: 'Nunito', sans-serif !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
    transition: background-color 0.2s ease, transform 0.1s ease !important;
}

.stepcamp-knopka-napisat:hover {
    background-color: #20ba59 !important;
    background: #20ba59 !important;
    color: #ffffff !important;
}

.stepcamp-knopka-napisat:active {
    transform: scale(0.98) !important;
}

/* Hide WooCommerce default "View cart" link that pops up after adding items */
.added_to_cart.wc-forward {
    display: none !important;
}

/* --- Centered Cart Modal Popup --- */
.stepcamp-cart-modal {
    position: fixed !important;
    z-index: 1000000 !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    height: 100% !important;
    visibility: hidden !important;
    transition: visibility 0.3s ease !important;
}

.stepcamp-cart-modal.active {
    visibility: visible !important;
}

.stepcamp-cart-modal-overlay {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.4) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    opacity: 0 !important;
    transition: opacity 0.3s ease !important;
}

.stepcamp-cart-modal.active .stepcamp-cart-modal-overlay {
    opacity: 1 !important;
}

.stepcamp-cart-modal-container {
    position: fixed !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -45%) scale(0.95) !important;
    width: 520px !important;
    max-width: 90% !important;
    max-height: 85vh !important;
    background: #f5f5f7 !important; /* Soft gray background like Pinterest design */
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
    display: flex !important;
    flex-direction: column !important;
    border-radius: 28px !important; /* Premium rounded corners */
    overflow: hidden !important;
    opacity: 0 !important;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease !important;
}

.stepcamp-cart-modal.active .stepcamp-cart-modal-container {
    transform: translate(-50%, -50%) scale(1) !important;
    opacity: 1 !important;
}

/* Header inside Cart Modal */
.stepcamp-cart-modal-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 20px 24px !important;
    background: #ffffff !important;
    border-bottom: 1px solid #e8e8ed !important;
}

.stepcamp-cart-modal-header h3 {
    margin: 0 !important;
    font-family: 'Nunito', sans-serif !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #1d1d1f !important;
}

.stepcamp-cart-modal-close {
    background: transparent !important;
    border: none !important;
    font-size: 28px !important;
    line-height: 1 !important;
    color: #86868b !important;
    cursor: pointer !important;
    padding: 0 !important;
    transition: color 0.2s ease !important;
}

.stepcamp-cart-modal-close:hover {
    color: #1d1d1f !important;
}

/* Body and Cart Items */
.stepcamp-cart-modal-body {
    flex: 1 !important;
    overflow-y: auto !important;
    padding: 24px !important;
}

.cart-modal-loading {
    text-align: center !important;
    font-family: 'Nunito', sans-serif !important;
    color: #86868b !important;
    padding: 40px 0 !important;
    font-size: 15px !important;
}

.cart-modal-empty {
    text-align: center !important;
    font-family: 'Nunito', sans-serif !important;
    color: #86868b !important;
    padding: 60px 0 !important;
    font-size: 16px !important;
}

/* White Card for Each Cart Item */
.cart-modal-item {
    background: #ffffff !important;
    border-radius: 20px !important;
    padding: 16px !important;
    margin-bottom: 16px !important;
    position: relative !important;
    display: flex !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.01) !important;
    border: 1px solid #e8e8ed !important;
}

.cart-modal-item-img {
    width: 80px !important;
    height: 80px !important;
    flex: 0 0 80px !important;
    background: #f5f5f7 !important;
    border-radius: 16px !important;
    padding: 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
}

.cart-modal-item-img img {
    max-width: 100% !important;
    max-height: 100% !important;
    height: auto !important;
    width: auto !important;
    object-fit: contain !important;
}

.cart-modal-item-details {
    flex: 1 !important;
    padding-left: 16px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
}

.cart-modal-item-info {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
}

.cart-modal-item-title {
    margin: 0 !important;
    font-family: 'Nunito', sans-serif !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #1d1d1f !important;
    line-height: 1.2 !important;
}

.cart-modal-item-meta {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 4px !important;
}

.cart-modal-meta-pill {
    font-family: 'Nunito', sans-serif !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    color: #86868b !important;
    background: #f5f5f7 !important;
    padding: 2px 8px !important;
    border-radius: 980px !important;
}

.cart-modal-item-price {
    font-family: 'Nunito', sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #1d1d1f !important;
    margin-top: 2px !important;
}

.cart-modal-item-bottom-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-top: 10px !important;
}

.cart-modal-qty-selector {
    display: inline-flex !important;
    align-items: center !important;
    background-color: #f5f5f7 !important;
    border-radius: 980px !important;
    padding: 3px 8px !important;
    gap: 8px !important;
}

.cart-modal-qty-btn {
    width: 24px !important;
    height: 24px !important;
    border: none !important;
    background: transparent !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #1d1d1f !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    transition: opacity 0.2s !important;
}

.cart-modal-qty-btn:hover {
    opacity: 0.6 !important;
}

.cart-modal-qty-num {
    font-family: 'Nunito', sans-serif !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #1d1d1f !important;
    min-width: 14px !important;
    text-align: center !important;
}

.cart-modal-item-remove-btn {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: none !important;
    cursor: pointer !important;
    background: #fff0f0 !important;
    color: #ff4d4d !important;
    padding: 0 !important;
    transition: background-color 0.2s, color 0.2s, transform 0.1s !important;
}

.cart-modal-item-remove-btn:hover {
    background: #ffe0e0 !important;
    color: #ff3333 !important;
}

.cart-modal-item-remove-btn:active {
    transform: scale(0.92) !important;
}

/* Cart Summary block at the bottom of the modal */
.cart-modal-summary {
    background: #ffffff !important;
    padding: 24px !important;
    border-radius: 28px 28px 0 0 !important; /* Rounded top corners */
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.05) !important; /* Soft shadow floating above scrolling list */
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
}

.cart-modal-total-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

.cart-modal-total-label {
    font-family: 'Nunito', sans-serif !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #86868b !important;
    text-transform: uppercase !important;
    letter-spacing: 0.02em !important;
}

.cart-modal-total-val {
    font-family: 'Nunito', sans-serif !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    color: #1d1d1f !important;
}

.cart-modal-actions {
    width: 100% !important;
}

/* Primary Capsule Checkout button */
.cart-modal-checkout-btn {
    display: block !important;
    width: 100% !important;
    background-color: #1d1d1f !important;
    background: #1d1d1f !important;
    color: #ffffff !important;
    text-align: center !important;
    border-radius: 980px !important;
    padding: 14px 20px !important;
    font-family: 'Nunito', sans-serif !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
    transition: background-color 0.2s ease, transform 0.1s ease !important;
    white-space: nowrap !important;
}

.cart-modal-checkout-btn:hover {
    background-color: #000000 !important;
    background: #000000 !important;
    color: #ffffff !important;
}

.cart-modal-checkout-btn:active {
    transform: scale(0.97) !important;
}

/* --- Single Product Page Centering (no sidebar) --- */
body.single-product .store-layout-row {
    justify-content: center !important;
}

body.single-product #primary {
    max-width: 1200px !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 40px 24px !important;
    box-sizing: border-box !important;
    order: unset !important;
    align-self: center !important;
}

/* Disable hover zoom image */
.zoomImg {
    display: none !important;
    pointer-events: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}
.woocommerce-product-gallery__image {
    pointer-events: none !important;
}

/* Related Products clearance and layout spacing */
.woocommerce .related.products {
    clear: both !important;
    width: 100% !important;
    float: none !important;
    display: block !important;
    margin-top: 60px !important;
    padding-top: 40px !important;
    border-top: 1px solid #e5e5e7 !important;
}

body.single-product .store-sidebar {
    display: none !important;
}

/* --- WooCommerce Vertical Gallery (Thumbnails on the Left - Nike Style) --- */
@media (min-width: 769px) {
    .woocommerce div.product div.images {
        width: 53% !important;
        float: left !important;
        margin-right: 5% !important;
    }
    
    .woocommerce div.product div.summary {
        width: 42% !important;
        float: right !important;
    }

    /* Clearfix for float layout */
    .woocommerce div.product::after {
        content: "" !important;
        display: table !important;
        clear: both !important;
    }

    .woocommerce div.product .related {
        clear: both !important;
        width: 100% !important;
    }
    
    .woocommerce-product-gallery {
        display: flex !important;
        flex-direction: row-reverse !important;
        align-items: flex-start !important;
        gap: 16px !important;
    }
    
    /* --- Main image viewport (FlexSlider wraps slides inside this) --- */
    .woocommerce-product-gallery .flex-viewport {
        flex: 1 !important;
        min-width: 0 !important;
        height: auto !important; /* KEY FIX: override FlexSlider's inline height */
        aspect-ratio: 1 / 1 !important; /* Force square */
        background-color: #f6f6f6 !important;
        border-radius: 16px !important;
        overflow: hidden !important;
        border: none !important;
        margin: 0 !important;
        padding: 0 !important;
        position: relative !important;
    }
    
    /* Before FlexSlider init - wrapper is direct child of gallery */
    .woocommerce-product-gallery > .woocommerce-product-gallery__wrapper {
        flex: 1 !important;
        height: auto !important;
        aspect-ratio: 1 / 1 !important;
        background-color: #f6f6f6 !important;
        border-radius: 16px !important;
        overflow: hidden !important;
        border: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    /* After FlexSlider init - wrapper inside viewport must fill it */
    .woocommerce-product-gallery .flex-viewport > .woocommerce-product-gallery__wrapper {
        height: 100% !important;
    }
    
    /* Each slide must fill the viewport height */
    .woocommerce-product-gallery__image {
        height: 100% !important;
        box-sizing: border-box !important;
    }
    
    .woocommerce-product-gallery__image a {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        height: 100% !important;
    }
    
    /* Product image - contained inside the square filling it completely */
    .woocommerce-product-gallery__image img {
        width: 100% !important;
        height: 100% !important;
        max-width: 100% !important;
        max-height: 100% !important;
        object-fit: contain !important;
        margin: auto !important;
        display: block !important;
    }
    
    .woocommerce-product-gallery .flex-control-thumbs {
        display: flex !important;
        flex-direction: column !important;
        width: 70px !important;
        margin: 0 !important;
        padding: 0 !important;
        list-style: none !important;
        gap: 10px !important;
        flex-shrink: 0 !important;
    }
    
    .woocommerce-product-gallery .flex-control-thumbs li {
        width: 100% !important;
        margin: 0 !important;
        cursor: pointer !important;
        background-color: #f6f6f6 !important;
        border-radius: 8px !important;
        overflow: hidden !important;
        aspect-ratio: 1 / 1 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-sizing: border-box !important;
        border: 2px solid transparent !important;
        transition: border-color 0.2s ease !important;
        padding: 6px !important;
    }
    
    .woocommerce-product-gallery .flex-control-thumbs li:hover,
    .woocommerce-product-gallery .flex-control-thumbs li.flex-active {
        border-color: #1d1d1f !important;
    }
    
    .woocommerce-product-gallery .flex-control-thumbs img {
        max-height: 100% !important;
        max-width: 100% !important;
        width: auto !important;
        height: auto !important;
        object-fit: contain !important;
        opacity: 1 !important;
        background: transparent !important;
        border: none !important;
        padding: 0 !important;
        margin: auto !important;
        display: block !important;
    }
}

@media (max-width: 768px) {
    .woocommerce-product-gallery {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
    }
    .woocommerce-product-gallery .flex-viewport,
    .woocommerce-product-gallery > .woocommerce-product-gallery__wrapper {
        width: 100% !important;
        aspect-ratio: 1 / 1 !important;
        background-color: #f6f6f6 !important;
        border-radius: 12px !important;
        overflow: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    .woocommerce-product-gallery .flex-viewport > .woocommerce-product-gallery__wrapper {
        height: 100% !important;
        display: block !important;
    }
    .woocommerce-product-gallery__image {
        height: 100% !important;
        box-sizing: border-box !important;
        display: block !important;
        position: relative !important;
    }
    .woocommerce-product-gallery__image a {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        height: 100% !important;
        position: relative !important;
    }
    .woocommerce-product-gallery__image img {
        width: 100% !important;
        height: 100% !important;
        max-width: 100% !important;
        max-height: 100% !important;
        object-fit: contain !important;
        margin: auto !important;
        display: block !important;
        border-radius: 12px !important;
        position: relative !important;
        top: 0 !important;
        left: 0 !important;
        transform: none !important;
    }
    .woocommerce-product-gallery .flex-control-thumbs {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        margin: 0 !important;
        padding: 0 !important;
        list-style: none !important;
        gap: 8px !important;
        justify-content: center !important;
    }
    .woocommerce-product-gallery .flex-control-thumbs li {
        width: 50px !important;
        aspect-ratio: 1 / 1 !important;
        background-color: #f6f6f6 !important;
        border-radius: 6px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-sizing: border-box !important;
        border: 1.5px solid transparent !important;
        padding: 4px !important;
    }
    .woocommerce-product-gallery .flex-control-thumbs li.flex-active {
        border-color: #1d1d1f !important;
    }
    .woocommerce-product-gallery .flex-control-thumbs img {
        max-height: 100% !important;
        max-width: 100% !important;
        width: auto !important;
        height: auto !important;
        object-fit: contain !important;
    }
}

/* --- Single Product Right Column styling --- */
.single-product .product_title {
    display: block !important;
    font-family: 'Outfit', sans-serif !important;
    font-size: 32px !important;
    font-weight: 700 !important;
    color: #1d1d1f !important;
    line-height: 1.2 !important;
    margin-bottom: 4px !important;
    margin-top: 0 !important;
}

.product-subtitle {
    font-family: 'Nunito', sans-serif !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #86868b !important; /* Apple gray subtitle */
    margin-bottom: 16px !important;
    margin-top: 0 !important;
}

/* Price Style */
.single-product p.price,
.single-product .premiumstore-kaspi-price-wrap {
    margin: 12px 0 24px 0 !important;
}
.single-product .premiumstore-price-regular,
.single-product .woocommerce-Price-amount {
    font-family: 'Outfit', sans-serif !important;
    font-size: 30px !important;
    font-weight: 700 !important;
    color: #1d1d1f !important;
}

/* Configurator Grid Layout */
.product-custom-configurator {
    margin: 20px 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
    font-family: 'Nunito', sans-serif !important;
    max-width: 380px !important;
}

.config-group {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
}

.config-label {
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #1d1d1f !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
}

.config-options {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
}

/* RAM Pills (Compact inline) */
.config-group[data-attr="ram"] .config-pill {
    flex: 0 0 auto !important;
    min-width: 65px !important;
}

/* Storage Pills (Compact inline) */
.config-group[data-attr="storage"] .config-pill {
    flex: 0 0 auto !important;
    min-width: 70px !important;
}

.config-pill {
    background: #ffffff !important;
    border: 1.5px solid #e5e5e7 !important;
    border-radius: 6px !important;
    padding: 5px 10px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #1d1d1f !important;
    cursor: pointer !important;
    transition: all 0.15s ease-in-out !important;
    outline: none !important;
    text-align: center !important;
    box-sizing: border-box !important;
}

.config-pill:hover {
    border-color: #86868b !important;
}

.config-pill.active {
    border-color: #1d1d1f !important;
    background-color: #1d1d1f !important;
    color: #ffffff !important;
    box-shadow: none !important;
}

/* Primary "Заказать" button (Add to Cart) */
.single-product div.product form.cart .single_add_to_cart_button {
    width: 100% !important;
    background-color: #1d1d1f !important;
    background: #1d1d1f !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 980px !important;
    padding: 16px 24px !important;
    font-family: 'Nunito', sans-serif !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    text-align: center !important;
    transition: background-color 0.2s ease, transform 0.1s ease !important;
    height: 54px !important; /* Nike thick button height */
    line-height: 22px !important;
    box-sizing: border-box !important;
    margin: 0 !important;
}

.single-product div.product form.cart .single_add_to_cart_button:hover {
    background-color: #000000 !important;
    background: #000000 !important;
}

/* Secondary "Задать вопрос" button (WhatsApp) */
.stepcamp-knopka-vopros-whatsapp {
    margin: 0 !important;
    width: 100% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    background-color: #f5f5f7 !important; /* Premium light gray background */
    background: #f5f5f7 !important;
    color: #1d1d1f !important; /* Muted black text */
    border: none !important;
    border-radius: 980px !important;
    padding: 16px 24px !important;
    font-family: 'Nunito', sans-serif !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    text-align: center !important;
    text-decoration: none !important;
    line-height: 22px !important;
    height: 54px !important;
    box-sizing: border-box !important;
    transition: background-color 0.2s ease, transform 0.1s ease !important;
}

.stepcamp-knopka-vopros-whatsapp:hover {
    background-color: #e8e8ed !important;
    background: #e8e8ed !important;
    color: #1d1d1f !important;
}

/* Style WhatsApp SVG icon to match Nike grayscale theme */
.stepcamp-knopka-vopros-whatsapp svg path[fill="#25D366"] {
    fill: #1d1d1f !important; /* Change green bubble to dark black bubble */
}
.stepcamp-knopka-vopros-whatsapp svg path[fill="#ffffff"] {
    fill: #f5f5f7 !important; /* Match background inside bubble */
}

/* Hide single product page categories meta */
.single-product .product_meta {
    display: none !important;
}

/* Hide extra duplicate/plugin order buttons */
.premiumstore-knopka-whatsapp,
.stepcamp-knopka-whatsapp {
    display: none !important;
}

/* Premium Product Reviews Section with Horizontal Slider */
.stepcamp-reviews-section {
    max-width: 1200px;
    margin: 60px auto;
    padding: 40px 20px;
    border-top: 1px solid #e8e8ed;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    position: relative;
    clear: both !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.stepcamp-reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 30px;
}

.stepcamp-reviews-header-left h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1d1d1f;
    margin: 0 0 8px 0;
    letter-spacing: -0.5px;
}

.stepcamp-reviews-header-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
}

.stepcamp-reviews-header-meta .rating-avg {
    font-weight: 700;
    color: #1d1d1f;
}

.stepcamp-stars {
    display: inline-flex !important;
    align-items: center !important;
    gap: 3px !important;
    vertical-align: middle !important;
}

.stepcamp-stars svg.star-icon {
    width: 18px !important;
    height: 18px !important;
    transition: transform 0.2s ease !important;
}

.stepcamp-review-card .stepcamp-stars svg.star-icon {
    width: 14px !important;
    height: 14px !important;
}

.stepcamp-stars svg.star-icon.fill {
    color: #1d1d1f !important; /* Premium black fill */
}

.stepcamp-stars svg.star-icon.empty {
    color: #e5e5e7 !important; /* Soft gray outline */
}

.stepcamp-reviews-header-meta .count {
    color: #86868b;
}

.stepcamp-reviews-header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.stepcamp-btn-write-review-top {
    background: #1d1d1f !important;
    color: #ffffff !important;
    border: none !important;
    padding: 12px 24px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    border-radius: 980px !important;
    cursor: pointer !important;
    transition: background-color 0.2s ease, transform 0.1s ease !important;
}

.stepcamp-btn-write-review-top:hover {
    background: #000000 !important;
    color: #ffffff !important;
}

.stepcamp-btn-write-review-top:active {
    transform: scale(0.98) !important;
}

.stepcamp-reviews-slider-container {
    position: relative !important;
    width: 100% !important;
}

.stepcamp-reviews-slider-container .slider-arrow {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    background: rgba(245, 245, 247, 0.88) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #1d1d1f !important;
    transition: background 0.25s, color 0.25s, opacity 0.25s, transform 0.25s, box-shadow 0.25s !important;
    z-index: 10 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06) !important;
}

.stepcamp-reviews-slider-container .slider-arrow svg {
    width: 24px !important;
    height: 24px !important;
    fill: currentColor !important;
}

.stepcamp-reviews-slider-container .slider-arrow:hover:not(:disabled) {
    background: #1d1d1f !important;
    color: #ffffff !important;
    border-color: #1d1d1f !important;
    transform: translateY(-50%) scale(1.08) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12) !important;
}

.stepcamp-reviews-slider-container .slider-arrow:active:not(:disabled) {
    transform: translateY(-50%) scale(0.96) !important;
}

.stepcamp-reviews-slider-container .slider-arrow:disabled {
    opacity: 0 !important;
    pointer-events: none !important;
}

.stepcamp-reviews-slider-container .prev-arrow {
    left: -22px !important;
}

.stepcamp-reviews-slider-container .next-arrow {
    right: -22px !important;
}

@media (max-width: 768px) {
    .stepcamp-reviews-slider-container .slider-arrow {
        display: none !important;
    }
}

/* Slider Track and Viewport */
.stepcamp-reviews-viewport {
    overflow: hidden;
    width: 100%;
}

.stepcamp-reviews-slider-track {
    display: flex;
    gap: 20px;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}

/* Review Card inside Slider */
.stepcamp-review-card {
    flex: 0 0 calc(33.333% - 14px); /* 3 cards on desktop */
    background: #f5f5f7;
    padding: 24px;
    border-radius: 18px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 200px;
}

.stepcamp-review-card-top {
    margin-bottom: 15px;
}

.stepcamp-review-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.stepcamp-review-author {
    font-size: 15px;
    font-weight: 600;
    color: #1d1d1f;
}

.stepcamp-review-date {
    font-size: 13px;
    color: #86868b;
}

.stepcamp-review-stars {
    color: #1d1d1f;
    font-size: 16px;
}

.stepcamp-review-content {
    font-size: 14px;
    color: #1d1d1f;
    line-height: 1.5;
    /* Limit text to 5 lines with ellipsis */
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stepcamp-reviews-empty {
    width: 100%;
    padding: 40px 20px;
    text-align: center;
    color: #86868b;
    font-size: 16px;
    border: 1px dashed #d2d2d7;
    border-radius: 18px;
    background: #f5f5f7;
}

/* Modal Popup for Writing Review */
.stepcamp-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.stepcamp-modal-backdrop.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.stepcamp-modal-content {
    background: #ffffff;
    padding: 35px;
    border-radius: 24px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    position: relative;
    transform: scale(0.85);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-sizing: border-box;
}

.stepcamp-modal-backdrop.active .stepcamp-modal-content {
    transform: scale(1);
}

.stepcamp-modal-close {
    position: absolute !important;
    top: 20px !important;
    right: 20px !important;
    border: none !important;
    background: #f5f5f7 !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    font-size: 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #1d1d1f !important;
    transition: background-color 0.2s ease, transform 0.1s ease !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.stepcamp-modal-close:hover {
    background: #e8e8ed !important;
    color: #000000 !important;
}

.stepcamp-modal-close:active {
    transform: scale(0.95) !important;
}

.stepcamp-modal-content h4 {
    font-size: 22px;
    font-weight: 700;
    color: #1d1d1f;
    margin: 0 0 25px 0;
    letter-spacing: -0.5px;
}

/* Form Styles inside Modal */
.stepcamp-form-group {
    margin-bottom: 18px;
}

.stepcamp-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #515154;
    margin-bottom: 8px;
}

.stepcamp-form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #d2d2d7;
    border-radius: 10px;
    font-size: 15px;
    background: #ffffff;
    color: #1d1d1f;
    box-sizing: border-box;
    font-family: inherit;
    transition: border-color 0.2s;
}

.stepcamp-form-control:focus {
    outline: none;
    border-color: #0071e3;
}

textarea.stepcamp-form-control {
    resize: none !important;
}

.stepcamp-stars-input-container {
    display: inline-flex !important;
    gap: 8px !important;
    cursor: pointer !important;
    user-select: none !important;
    align-items: center !important;
}

.stepcamp-stars-input-container .star-input {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #e5e5e7 !important; /* Muted gray star color */
    transition: color 0.15s ease, transform 0.15s cubic-bezier(0.25, 1, 0.5, 1) !important;
}

.stepcamp-stars-input-container .star-input svg {
    width: 32px !important;
    height: 32px !important;
    fill: currentColor !important;
    pointer-events: none !important;
}

.stepcamp-stars-input-container .star-input.active {
    color: #1d1d1f !important; /* Active black */
}

.stepcamp-stars-input-container .star-input.hover {
    color: #000000 !important; /* Hovered black */
}

/* Only scale the star that is directly hovered */
.stepcamp-stars-input-container .star-input:hover {
    transform: scale(1.22) !important;
}

.stepcamp-form-submit-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 25px;
}

.stepcamp-btn-submit-review {
    background: #1d1d1f !important;
    color: #ffffff !important;
    border: none !important;
    padding: 14px 28px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    border-radius: 980px !important; /* Premium pill shape */
    cursor: pointer !important;
    transition: background-color 0.2s ease, transform 0.1s ease !important;
}

.stepcamp-btn-submit-review:hover {
    background: #000000 !important;
    color: #ffffff !important;
}

.stepcamp-btn-submit-review:active {
    transform: scale(0.98) !important;
}

.stepcamp-form-message {
    font-size: 14px;
    font-weight: 500;
}

.stepcamp-form-message.success {
    color: #34c759;
}

.stepcamp-form-message.error {
    color: #ff3b30;
}

/* Responsiveness */
@media (max-width: 1024px) {
    .stepcamp-review-card {
        flex: 0 0 calc(50% - 10px); /* 2 cards on tablet */
    }
}

@media (max-width: 768px) {
    .stepcamp-reviews-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .stepcamp-reviews-header-right {
        width: 100%;
        justify-content: space-between;
    }
    .stepcamp-review-card {
        flex: 0 0 100%; /* 1 card on mobile */
    }
}

/* File Upload and Attachment Thumbnails Styling */
.stepcamp-file-upload-zone {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    background: #f5f5f7 !important;
    border: 2px dashed #d2d2d7 !important;
    border-radius: 12px !important;
    padding: 24px !important;
    cursor: pointer !important;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.15s ease !important;
    text-align: center !important;
}

.stepcamp-file-upload-zone:hover {
    background: #e8e8ed !important;
    border-color: #86868b !important;
    transform: scale(1.01) !important;
}

.stepcamp-file-upload-zone:active {
    transform: scale(0.99) !important;
}

.stepcamp-file-upload-zone .upload-icon {
    font-size: 28px !important;
    font-weight: 300 !important;
    color: #1d1d1f !important;
    margin-bottom: 6px !important;
    line-height: 1 !important;
}

.stepcamp-file-upload-zone .upload-text {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #1d1d1f !important;
    margin-bottom: 4px !important;
}

.stepcamp-file-upload-zone .upload-hint {
    font-size: 11px !important;
    color: #86868b !important;
}

.stepcamp-selected-files-list {
    margin-top: 10px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
}

.stepcamp-selected-file-item {
    display: flex !important;
    align-items: center !important;
    background: #f5f5f7 !important;
    padding: 8px 12px !important;
    border-radius: 8px !important;
    border: 1px solid #e5e5e7 !important;
}

.stepcamp-selected-file-item .file-name {
    font-size: 12px !important;
    font-weight: 500 !important;
    color: #1d1d1f !important;
    word-break: break-all !important;
}

.stepcamp-review-attachments {
    display: flex !important;
    gap: 8px !important;
    margin-top: 12px !important;
    flex-wrap: wrap !important;
}

.review-attach-item {
    width: 60px !important;
    height: 60px !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    border: 1px solid #d2d2d7 !important;
    cursor: pointer !important;
    position: relative !important;
    background: #000000 !important;
}

.review-attach-item img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.2s ease !important;
}

.review-attach-item img:hover {
    transform: scale(1.08) !important;
}

.review-attach-item.video-item video {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.review-attach-item .video-play-btn {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    color: #ffffff !important;
    font-size: 14px !important;
    background: rgba(0,0,0,0.5) !important;
    width: 24px !important;
    height: 24px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    pointer-events: none !important;
}

/* Media Lightbox Modal Styling */
.stepcamp-lightbox-backdrop {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.4) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    z-index: 999999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity 0.3s cubic-bezier(0.25, 1, 0.5, 1) !important;
}

.stepcamp-lightbox-backdrop.active {
    opacity: 1 !important;
    pointer-events: auto !important;
}

.stepcamp-lightbox-content-wrapper {
    position: relative !important;
    max-width: 90% !important;
    max-height: 85% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.stepcamp-lightbox-body {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.stepcamp-lightbox-img,
.stepcamp-lightbox-video {
    max-width: 100% !important;
    max-height: 80vh !important;
    object-fit: contain !important;
    border-radius: 12px !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.stepcamp-lightbox-close {
    position: absolute !important;
    top: 24px !important;
    right: 24px !important;
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.88) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    color: #1d1d1f !important;
    font-size: 28px !important;
    font-weight: 300 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.25s cubic-bezier(0.25, 1, 0.5, 1) !important;
    z-index: 1000001 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
    line-height: 1 !important;
    padding: 0 0 4px 0 !important;
    margin: 0 !important;
}

.stepcamp-lightbox-close:hover {
    background: #1d1d1f !important;
    color: #ffffff !important;
    transform: scale(1.08) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18) !important;
}

.stepcamp-lightbox-close:active {
    transform: scale(0.95) !important;
}

/* Subcategory grid styling for both desktop and mobile */
.store-subcategory-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 24px !important;
    width: 100% !important;
    margin: 20px auto 30px auto !important;
    box-sizing: border-box !important;
}

.store-layout-row.no-sidebar {
    justify-content: center !important;
}

.store-layout-row.no-sidebar #primary {
    max-width: 1300px !important;
    width: 100% !important;
}

.store-layout-row.no-sidebar .store-sidebar {
    display: none !important;
}

/* Category Grid Item Styling - Desktop-first and Responsive */
.mobile-grid-item {
    width: 290px !important;
    height: 330px !important;
    background-color: #f5f5f7 !important;
    border-radius: 28px !important;
    padding: 28px 24px 20px 24px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-decoration: none !important;
    color: #1d1d1f !important;
    transition: transform 0.25s cubic-bezier(0.25, 1, 0.5, 1), background-color 0.25s ease, box-shadow 0.25s ease !important;
    box-sizing: border-box !important;
    position: relative !important;
    overflow: hidden !important;
    border: 1px solid rgba(0, 0, 0, 0.04) !important;
}

.mobile-grid-item:hover {
    transform: translateY(-4px) scale(1.02) !important;
    background-color: #f5f5f7 !important; /* Keep it grey so the device grey backgrounds blend perfectly on hover! */
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06) !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
}

.mobile-grid-item:active {
    transform: translateY(-2px) scale(0.98) !important;
}

.mobile-grid-item .grid-item-title {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #1d1d1f !important;
    margin-bottom: 6px !important;
    line-height: 1.2 !important;
    white-space: nowrap !important; /* Force 'Series' to stay on one line! */
    text-align: center !important;
}

.mobile-grid-item .grid-item-price {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    color: #86868b !important;
    margin-bottom: 16px !important;
    line-height: 1.2 !important;
    text-align: center !important;
}

.mobile-grid-item .grid-item-img-wrapper {
    width: 100% !important;
    height: 190px !important; /* Larger images on desktop */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: transform 0.25s cubic-bezier(0.25, 1, 0.5, 1) !important;
    margin-top: auto !important; /* Push image to the bottom */
}

.mobile-grid-item:hover .grid-item-img-wrapper {
    transform: scale(1.05) !important;
}

.mobile-grid-item .grid-item-img-wrapper img {
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
}

/* Responsive adjustments for subcategory grid */
@media (max-width: 1024px) {
    .store-subcategory-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 20px !important;
    }
    .mobile-grid-item {
        padding: 28px 20px 20px 20px !important;
        height: auto !important;
    }
    .mobile-grid-item .grid-item-title {
        font-size: 18px !important;
    }
    .mobile-grid-item .grid-item-price {
        font-size: 15px !important;
        margin-bottom: 16px !important;
    }
    .mobile-grid-item .grid-item-img-wrapper {
        height: 160px !important;
    }
}

@media (max-width: 768px) {
    .store-subcategory-grid {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 16px !important;
        margin-top: 10px !important;
        margin-bottom: 20px !important;
    }
    .store-subcategory-grid.apple-hero-mobile-grid .mobile-grid-item {
        width: calc(50% - 8px) !important;
        max-width: none !important;
        padding: 24px 12px 16px 12px !important;
        border-radius: 20px !important;
        height: auto !important;
    }
    .apple-hero-mobile-grid .mobile-grid-item {
        width: 100% !important;
        max-width: none !important;
        padding: 16px 12px 12px 12px !important;
        border-radius: 20px !important;
        height: 180px !important;
    }
    .mobile-grid-item .grid-item-title {
        font-size: 16px !important;
    }
    .mobile-grid-item .grid-item-price {
        font-size: 14px !important;
        margin-bottom: 12px !important;
    }
    .mobile-grid-item .grid-item-img-wrapper {
        height: 100px !important; 
    }
}

@media (max-width: 480px) {
    .store-subcategory-grid {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 12px !important;
    }
    .store-subcategory-grid.apple-hero-mobile-grid .mobile-grid-item {
        width: calc(50% - 6px) !important;
        max-width: none !important;
        padding: 16px 12px 12px 12px !important;
        border-radius: 16px !important;
        height: 170px !important;
    }
    .apple-hero-mobile-grid .mobile-grid-item {
        width: 100% !important;
        max-width: none !important;
        padding: 16px 12px 12px 12px !important;
        border-radius: 16px !important;
        height: 170px !important;
    }
    .mobile-grid-item .grid-item-title {
        font-size: 14px !important;
    }
    .mobile-grid-item .grid-item-price {
        font-size: 12px !important;
        margin-bottom: 10px !important;
    }
    .mobile-grid-item .grid-item-img-wrapper {
        height: 85px !important;
    }
}

/* Hide default WooCommerce onsale circle badges and Premiumstore custom loop badges */
.woocommerce ul.products li.product .onsale,
.woocommerce ul.products li.product span.onsale,
.woocommerce ul.products li.product .premiumstore-discount-badge-catalog,
.woocommerce ul.products li.product .stepcamp-sale-badge,
.woocommerce ul.products li.product .tonmart-discount-badge-catalog,
.tonmart-discount-badge-catalog,
.tonmart-discount-badge-single,
.onsale,
.woocommerce-loop-product__title + .onsale,
.single-product .onsale,
.stepcamp-sale-badge,
.premiumstore-discount-badge-catalog,
.premiumstore-discount-badge-single {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* Custom Apple Price Block styling */
.apple-price-block {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    align-items: flex-start !important;
    text-align: left !important;
}

.apple-price-top-row {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 6px !important;
}

.apple-price-regular-old {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #86868b !important;
    text-decoration: line-through !important;
}

.apple-price-discount-badge {
    background-color: #ff3b30 !important; /* Premium Apple Red */
    color: #ffffff !important;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    padding: 1px 5px !important;
    border-radius: 5px !important;
    line-height: 1.2 !important;
    display: inline-block !important;
}

.apple-price-sale {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #1d1d1f !important;
}

.apple-price-regular-only {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #1d1d1f !important;
}

/* Adjust card bottom row height and alignment to fit the 2-line price block */
.product-bottom-row {
    height: auto !important; /* Grow vertically to fit two lines */
    align-items: flex-end !important; /* Align bottom of price and button */
}

/* Prevent price text or currency symbol wrapping */
.apple-price-sale,
.apple-price-regular-only,
.apple-price-regular-old {
    white-space: nowrap !important;
}

/* Single product page specific price overrides - restricted to main summary only */
.single-product .summary .apple-price-sale,
.single-product .entry-summary .apple-price-sale,
.single-product .summary .apple-price-regular-only,
.single-product .entry-summary .apple-price-regular-only {
    font-size: 32px !important; /* Large price on main product view */
}

.single-product .summary .apple-price-regular-old,
.single-product .entry-summary .apple-price-regular-old {
    font-size: 18px !important;
}

.single-product .summary .apple-price-discount-badge,
.single-product .entry-summary .apple-price-discount-badge {
    font-size: 13px !important;
    padding: 3px 7px !important;
    border-radius: 7px !important;
}

.apple-bu-badge {
    display: none !important;
}

.apple-bu-badge-single {
    display: none !important;
}

/* --- Premium Apple-Style Custom Footer --- */
.apple-custom-footer {
    background-color: #f5f5f7 !important;
    padding: 40px 40px 24px 40px !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    border-top: 1px solid #d2d2d7 !important;
    margin-top: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    position: relative !important;
    clear: both !important;
    display: block !important;
    z-index: 100 !important;
}

.apple-custom-footer .footer-grid {
    max-width: 1200px !important;
    width: 100% !important;
    margin: 0 auto 32px auto !important;
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 32px !important;
    box-sizing: border-box !important;
}

.apple-custom-footer .footer-col {
    display: flex !important;
    flex-direction: column !important;
    box-sizing: border-box !important;
}

.apple-custom-footer .footer-col-title {
    color: #1d1d1f !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    margin: 0 0 12px 0 !important;
    letter-spacing: -0.01em !important;
    text-transform: none !important;
    line-height: 1.3 !important;
}

.apple-custom-footer .footer-col-links,
.apple-custom-footer .footer-col-text {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
}

.apple-custom-footer .footer-col-links li a {
    color: #515154 !important;
    text-decoration: none !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
    transition: color 0.15s ease !important;
}

.apple-custom-footer .footer-col-links li a:hover {
    color: #1d1d1f !important;
    text-decoration: underline !important;
}

.apple-custom-footer .footer-col-text li,
.apple-custom-footer .footer-about-text {
    color: #86868b !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
    margin: 0 !important;
}

.apple-custom-footer .footer-bottom {
    max-width: 1200px !important;
    width: 100% !important;
    margin: 0 auto !important;
    border-top: 1px solid #d2d2d7 !important;
    padding-top: 20px !important;
    box-sizing: border-box !important;
}

.apple-custom-footer .footer-bottom-container {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
    color: #86868b !important;
    font-size: 12px !important;
    width: 100% !important;
}

.apple-custom-footer .footer-copyright {
    font-size: 12px !important;
    color: #86868b !important;
}

.apple-custom-footer .footer-bottom-links {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.apple-custom-footer .footer-bottom-links a {
    color: #515154 !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    font-size: 12px !important;
    transition: color 0.15s ease !important;
}

.apple-custom-footer .footer-bottom-links a:hover {
    color: #1d1d1f !important;
    text-decoration: underline !important;
}

.apple-custom-footer .footer-dot {
    color: #d2d2d7 !important;
    font-size: 12px !important;
}

@media (max-width: 768px) {
    .apple-custom-footer {
        padding: 32px 20px 20px 20px !important;
    }
    
    .apple-custom-footer .footer-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 24px !important;
        margin-bottom: 24px !important;
    }
}

@media (max-width: 480px) {
    .apple-custom-footer .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
}

/* Prevent any scrollable empty space below footer */
body, html, body.woocommerce-page {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

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

/* Hide any empty text paragraphs, line breaks, or translation widget containers that WordPress or plugins output below the footer */
.apple-custom-footer ~ p,
.apple-custom-footer ~ br,
.apple-custom-footer ~ div:empty {
    display: none !important;
    align-items: center !important;
    gap: 6px !important;
}

.apple-price-regular-old {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #86868b !important;
    text-decoration: line-through !important;
}

.apple-price-discount-badge {
    background-color: #ff3b30 !important; /* Premium Apple Red */
    color: #ffffff !important;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    padding: 1px 5px !important;
    border-radius: 5px !important;
    line-height: 1.2 !important;
    display: inline-block !important;
}

.apple-price-sale {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #1d1d1f !important;
}

.apple-price-regular-only {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #1d1d1f !important;
}

/* Adjust card bottom row height and alignment to fit the 2-line price block */
.product-bottom-row {
    height: auto !important; /* Grow vertically to fit two lines */
    align-items: flex-end !important; /* Align bottom of price and button */
}

/* Prevent price text or currency symbol wrapping */
.apple-price-sale,
.apple-price-regular-only,
.apple-price-regular-old {
    white-space: nowrap !important;
}

/* Single product page specific price overrides - restricted to main summary only */
.single-product .summary .apple-price-sale,
.single-product .entry-summary .apple-price-sale,
.single-product .summary .apple-price-regular-only,
.single-product .entry-summary .apple-price-regular-only {
    font-size: 32px !important; /* Large price on main product view */
}

.single-product .summary .apple-price-regular-old,
.single-product .entry-summary .apple-price-regular-old {
    font-size: 18px !important;
}

.single-product .summary .apple-price-discount-badge,
.single-product .entry-summary .apple-price-discount-badge {
    font-size: 13px !important;
    padding: 3px 7px !important;
    border-radius: 7px !important;
}

.apple-bu-badge {
    display: none !important;
}

.apple-bu-badge-single {
    display: none !important;
}



/* Prevent any scrollable empty space below footer */
body, html, body.woocommerce-page {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

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

/* Hide any empty text paragraphs, line breaks, or translation widget containers that WordPress or plugins output below the footer */
.apple-custom-footer ~ p,
.apple-custom-footer ~ br,
.apple-custom-footer ~ div:empty {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Custom class for hiding elements via JS with highest priority override */
.hidden-by-js {
    display: none !important;
}

/* Back to models pill button styling */
.apple-back-to-models {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #86868b !important;
    text-decoration: none !important;
    background-color: #f5f5f7 !important;
    padding: 8px 16px !important;
    border-radius: 20px !important;
    margin-top: 12px !important;
    transition: all 0.2s cubic-bezier(0.25, 1, 0.5, 1) !important;
    border: 1px solid rgba(0, 0, 0, 0.04) !important;
    width: fit-content !important;
}

.apple-back-to-models:hover {
    color: #1d1d1f !important;
    background-color: #e8e8ed !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03) !important;
}

.apple-back-to-models:active {
    transform: translateY(0) !important;
}

.apple-back-to-models svg {
    transition: transform 0.2s ease !important;
}

.apple-back-to-models:hover svg {
    transform: translateX(-2px) !important;
}

/* Kaspi badge styles on catalog images */
.apple-kaspi-badge {
    position: absolute !important;
    top: 10px !important;
    left: 12px !important;
    width: 44px !important;
    height: 44px !important;
    z-index: 10 !important;
    pointer-events: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    overflow: visible !important;
}

.woocommerce ul.products li.product .apple-kaspi-badge img,
.apple-kaspi-badge img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    object-fit: contain !important;
    mix-blend-mode: normal !important;
    background: transparent !important;
    filter: drop-shadow(0 1px 3px rgba(0,0,0,0.5)) !important; /* Add subtle shadow to the red circle so it pops on dark backgrounds */
}

/* --- Product Specs Table --- */
.apple-specs-container {
    margin: 30px 0 !important;
    padding: 24px !important;
    background-color: #f5f5f7 !important;
    border-radius: 12px !important;
    font-family: 'Nunito', sans-serif !important;
}

.apple-specs-title {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #1d1d1f !important;
    margin-bottom: 16px !important;
}

.apple-specs-table {
    width: 100% !important;
    border-collapse: collapse !important;
}

.apple-specs-table tr {
    border-bottom: 1px solid #e2e2e7 !important;
}

.apple-specs-table tr:last-child {
    border-bottom: none !important;
}

.apple-specs-table td {
    padding: 12px 0 !important;
    font-size: 14px !important;
    color: #1d1d1f !important;
}

.apple-specs-table td.spec-label {
    font-weight: 600 !important;
    color: #86868b !important;
    width: 45% !important;
}

.apple-specs-table td.spec-value {
    font-weight: 700 !important;
    text-align: right !important;
}

/* --- Used Product (б/у) Image & Layout Tweaks --- */
.woocommerce ul.products li.product.is-bu-product {
    padding-top: 0 !important;
    overflow: hidden !important; /* Keep top corners of the full-bleed image rounded matching the card */
}

.woocommerce ul.products li.product.is-bu-product a.woocommerce-loop-product__link > img {
    height: 215px !important; /* Scale up to occupy all space above title */
    width: calc(100% + 48px) !important; /* Expand horizontally past the 24px left/right card padding */
    max-width: calc(100% + 48px) !important;
    margin: 0 -24px 5px -24px !important; /* Negative horizontal margin to align with card borders, 5px bottom offset */
    object-fit: cover !important; /* Cover the entire top region of the card container */
    padding-top: 0 !important; /* Touch the absolute top of the card border */
    border-top-left-radius: 20px !important;
    border-top-right-radius: 20px !important;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

@media (max-width: 768px) {
    .woocommerce ul.products li.product.is-bu-product {
        padding-top: 0 !important;
    }
    
    .woocommerce ul.products li.product.is-bu-product a.woocommerce-loop-product__link > img {
        height: 155px !important; /* Scale up on mobile */
        width: calc(100% + 20px) !important; /* Expand past the 10px mobile card padding */
        max-width: calc(100% + 20px) !important;
        margin: 0 -10px 5px -10px !important; /* Negative margin for mobile card padding, 5px bottom offset */
        padding-top: 0 !important;
        object-fit: cover !important;
        border-top-left-radius: 12px !important;
        border-top-right-radius: 12px !important;
        border-bottom-left-radius: 0 !important;
        border-bottom-right-radius: 0 !important;
    }
}

/* --- Used Product Battery Badge --- */
.apple-battery-badge {
    position: absolute !important;
    top: 10px !important;
    right: 12px !important;
    height: auto !important;
    z-index: 10 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    pointer-events: none !important;
    font-family: 'Nunito', sans-serif !important;
}

@media (max-width: 768px) {
    .apple-kaspi-badge {
        width: 36px !important;
        height: 36px !important;
        top: 6px !important;
        left: 8px !important;
    }
    .apple-battery-badge {
        top: 6px !important;
        right: 8px !important;
    }
}

/* --- Used Product City Location --- */
.apple-product-city {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 4px !important;
    color: #86868b !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    margin-bottom: 6px !important;
    font-family: 'Nunito', sans-serif !important;
    width: 100% !important;
}

.apple-product-city svg {
    flex-shrink: 0 !important;
    color: #86868b !important;
}

@media (max-width: 768px) {
    .apple-product-city {
        font-size: 11px !important;
        margin-bottom: 4px !important;
        gap: 3px !important;
    }
    .apple-product-city svg {
        width: 10px !important;
        height: 10px !important;
    }
}

/* --- Used Product Specs Description List --- */
.apple-specs-list {
    width: 100% !important;
    font-family: 'Nunito', sans-serif !important;
    margin: 20px 0 !important;
    padding: 20px !important;
    background-color: #f5f5f7 !important;
    border-radius: 12px !important;
    box-sizing: border-box !important;
}

.apple-spec-item {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 10px 0 !important;
    border-bottom: 1px solid #e2e2e7 !important;
}

.apple-spec-item:last-child {
    border-bottom: none !important;
}

.apple-spec-item .spec-label {
    font-weight: 600 !important;
    color: #86868b !important;
    font-size: 14px !important;
}

.apple-spec-item .spec-value {
    font-weight: 700 !important;
    color: #1d1d1f !important;
    font-size: 14px !important;
    text-align: right !important;
}

@media (max-width: 768px) {
    .apple-specs-list {
        padding: 15px !important;
        margin: 15px 0 !important;
    }
    .apple-spec-item {
        padding: 8px 0 !important;
    }
    .apple-spec-item .spec-label,
    .apple-spec-item .spec-value {
        font-size: 12px !important;
    }
}


/* --- Used Product Specs Accordion --- */
.apple-specs-accordion {
    width: 100% !important;
    font-family: 'Nunito', sans-serif !important;
    margin: 20px 0 !important;
    border: 1px solid #e2e2e7 !important;
    border-radius: 12px !important;
    background-color: #f5f5f7 !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

.apple-specs-accordion-header {
    width: 100% !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 16px 20px !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
    outline: none !important;
    box-sizing: border-box !important;
    text-align: left !important;
    margin: 0 !important;
}

.apple-specs-accordion-header .header-title {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #1d1d1f !important;
}

.apple-specs-accordion-header .chevron-icon {
    color: #86868b !important;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.apple-specs-accordion.is-open .chevron-icon {
    transform: rotate(180deg) !important;
}

.apple-specs-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.apple-specs-accordion-content .apple-specs-list {
    margin: 0 !important;
    padding: 0 20px 20px 20px !important;
    background-color: transparent !important;
    border-radius: 0 !important;
}

.apple-specs-accordion-content .apple-spec-item {
    border-bottom: 1px solid #e2e2e7 !important;
}

.apple-specs-accordion-content .apple-spec-item:last-child {
    border-bottom: none !important;
}

@media (max-width: 768px) {
    .apple-specs-accordion {
        margin: 15px 0 !important;
    }
    .apple-specs-accordion-header {
        padding: 12px 16px !important;
    }
    .apple-specs-accordion-header .header-title {
        font-size: 14px !important;
    }
    .apple-specs-accordion-content .apple-specs-list {
        padding: 0 16px 16px 16px !important;
    }
}

/* --- Device Specifications Block above Reviews --- */
.stepcamp-specs-section {
    max-width: 1200px;
    margin: 60px auto 0 auto;
    padding: 40px 20px;
    border-top: 1px solid #e8e8ed;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    position: relative;
    clear: both !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.stepcamp-specs-section h2.stepcamp-specs-title {
    font-size: 28px;
    font-weight: 700;
    color: #1d1d1f;
    margin: 0 0 30px 0;
    letter-spacing: -0.5px;
}

.stepcamp-specs-section .apple-specs-list {
    margin: 0 !important;
    padding: 30px !important;
    background-color: #f5f5f7 !important;
    border-radius: 18px !important;
    box-sizing: border-box !important;
}

@media (max-width: 768px) {
    .stepcamp-specs-section {
        padding: 30px 15px;
        margin: 40px auto 0 auto;
    }
    .stepcamp-specs-section h2.stepcamp-specs-title {
        font-size: 22px;
        margin-bottom: 20px;
    }
    .stepcamp-specs-section .apple-specs-list {
        padding: 20px 15px !important;
        border-radius: 12px !important;
    }
}

/* --- Photoswipe Lightbox Stretched Image Fix --- */
.pswp__img {
    height: auto !important;
    object-fit: contain !important;
}

/* --- MacBook catalog image adjustment --- */
.woocommerce ul.products li.product.product_cat-macbook img {
    height: 120px !important;
    margin-top: 15px !important;
    margin-bottom: 15px !important;
}

@media (max-width: 600px) {
    .woocommerce ul.products li.product.product_cat-macbook img {
        height: 90px !important;
        margin-top: 10px !important;
        margin-bottom: 10px !important;
    }
}

/* --- Language Switcher with Flags --- */
.lang-switcher {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin-right: 15px !important;
}

.lang-switcher .lang-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    text-decoration: none !important;
    transition: opacity 0.2s ease, transform 0.2s ease !important;
}

.lang-switcher .lang-flag {
    width: 24px !important;
    height: 16px !important;
    border-radius: 2px !important;
    object-fit: cover !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    opacity: 0.4 !important;
    filter: grayscale(40%) !important;
    transition: opacity 0.2s ease, filter 0.2s ease, transform 0.2s ease !important;
}

.lang-switcher .lang-btn:hover .lang-flag {
    opacity: 0.8 !important;
    filter: grayscale(0%) !important;
    transform: scale(1.1) !important;
}

.lang-switcher .lang-btn.active .lang-flag {
    opacity: 1 !important;
    filter: grayscale(0%) !important;
    border: 1px solid rgba(0, 0, 0, 0.12) !important;
    transform: scale(1.05) !important;
}

/* --- Apple-Style Modals --- */
.apple-modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-color: rgba(0, 0, 0, 0.25) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    z-index: 99999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition: opacity 0.3s cubic-bezier(0.25, 1, 0.5, 1), visibility 0.3s !important;
    padding: 20px !important;
}

.apple-modal-overlay.active {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

.apple-modal-card {
    background-color: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    border: 1px solid rgba(255, 255, 255, 0.45) !important;
    border-radius: 20px !important;
    width: 100% !important;
    max-width: 550px !important;
    max-height: 85vh !important;
    overflow-y: auto !important;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2) !important;
    transform: scale(0.9) translateY(20px) !important;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1) !important;
    position: relative !important;
    padding: 35px 30px !important;
    scrollbar-width: none !important; /* Hide scrollbar for clean look */
}

.apple-modal-card::-webkit-scrollbar {
    display: none !important;
}

.apple-modal-overlay.active .apple-modal-card {
    transform: scale(1) translateY(0) !important;
}

.apple-modal-close {
    position: absolute !important;
    top: 20px !important;
    right: 20px !important;
    width: 30px !important;
    height: 30px !important;
    border-radius: 50% !important;
    background-color: rgba(0, 0, 0, 0.05) !important;
    border: none !important;
    color: #1d1d1f !important;
    font-size: 18px !important;
    font-weight: 500 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: background-color 0.2s, transform 0.2s !important;
    z-index: 10 !important;
    line-height: 1 !important;
    padding-bottom: 2px !important;
}

.apple-modal-close:hover {
    background-color: rgba(0, 0, 0, 0.1) !important;
    transform: scale(1.05) !important;
}

.apple-modal-title {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif !important;
    font-size: 28px !important;
    font-weight: 700 !important;
    color: #1d1d1f !important;
    margin-bottom: 25px !important;
    letter-spacing: -0.01em !important;
}

/* --- Delivery Info Styles --- */
.delivery-info-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 24px !important;
}

.delivery-item {
    display: flex !important;
    gap: 16px !important;
    align-items: flex-start !important;
}

.delivery-icon {
    font-size: 24px !important;
    background-color: rgba(0, 0, 0, 0.03) !important;
    width: 48px !important;
    height: 48px !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}

.delivery-text h3 {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #1d1d1f !important;
    margin: 0 0 6px 0 !important;
}

.delivery-text p {
    font-size: 14px !important;
    line-height: 1.5 !important;
    color: #86868b !important;
    margin: 0 !important;
}

/* --- FAQ Accordion Styles --- */
.faq-accordion {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
}

.faq-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
    padding-bottom: 12px !important;
}

.faq-question {
    width: 100% !important;
    background: none !important;
    border: none !important;
    text-align: left !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #1d1d1f !important;
    padding: 12px 24px 12px 0 !important;
    cursor: pointer !important;
    position: relative !important;
    transition: color 0.2s !important;
}

.faq-question:hover {
    color: #0066cc !important;
}

.faq-question::after {
    content: '+' !important;
    position: absolute !important;
    right: 0 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    font-size: 20px !important;
    font-weight: 300 !important;
    color: #86868b !important;
    transition: transform 0.3s ease, color 0.2s !important;
}

.faq-item.active .faq-question {
    color: #0066cc !important;
}

.faq-item.active .faq-question::after {
    content: '−' !important;
    transform: translateY(-50%) rotate(180deg) !important;
    color: #0066cc !important;
}

.faq-answer {
    max-height: 0 !important;
    overflow: hidden !important;
    transition: max-height 0.3s cubic-bezier(0.25, 1, 0.5, 1), padding 0.3s ease !important;
}

.faq-answer p {
    font-size: 14px !important;
    line-height: 1.6 !important;
    color: #86868b !important;
    margin: 0 !important;
    padding: 4px 0 12px 0 !important;
}

/* --- Mobile styles for header items --- */
@media (max-width: 768px) {
    .lang-switcher {
        margin-right: 4px !important;
        gap: 4px !important;
        font-size: 11px !important;
    }
    .lang-switcher .lang-btn {
        padding: 2px 4px !important;
    }
    .apple-modal-card {
        padding: 25px 20px !important;
        border-radius: 16px !important;
    }
    .apple-modal-title {
        font-size: 22px !important;
        margin-bottom: 20px !important;
    }
    .delivery-icon {
        width: 38px !important;
        height: 38px !important;
        font-size: 18px !important;
        border-radius: 8px !important;
    }
    .delivery-text h3 {
        font-size: 14px !important;
    }
    .delivery-text p {
        font-size: 13px !important;
    }
    .faq-question {
        font-size: 14px !important;
    }
    .faq-answer p {
        font-size: 13px !important;
    }
}

/* --- First Entry Language Selector Modal --- */
.lang-select-modal {
    background-color: rgba(0, 0, 0, 0.28) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
}

.lang-select-card {
    max-width: 450px !important;
    text-align: center !important;
    padding: 40px 30px !important;
    border-radius: 24px !important;
    background-color: rgba(255, 255, 255, 0.94) !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
}

.lang-select-title {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", sans-serif !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    color: #1d1d1f !important;
    margin-bottom: 8px !important;
    letter-spacing: -0.01em !important;
}

.lang-select-subtitle {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif !important;
    font-size: 14px !important;
    color: #86868b !important;
    margin-bottom: 30px !important;
    line-height: 1.4 !important;
}

.lang-select-options-grid {
    display: flex !important;
    gap: 16px !important;
    justify-content: center !important;
}

.lang-select-opt-btn {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 24px 16px !important;
    background-color: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-radius: 16px !important;
    cursor: pointer !important;
    transition: all 0.25s cubic-bezier(0.25, 1, 0.5, 1) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03) !important;
}

.lang-select-opt-btn:hover {
    transform: translateY(-4px) !important;
    border-color: #0066cc !important;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08) !important;
}

.lang-select-flag {
    width: 48px !important;
    height: 32px !important;
    border-radius: 3px !important;
    object-fit: cover !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05) !important;
}

.lang-select-name {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #1d1d1f !important;
}

/* Prevent layout flashing (CLS) on load and filter changes */
.woocommerce ul.products:not(.layout-ready) {
    /* layout-ready opacity removed - products were invisible */
}

.woocommerce ul.products.layout-ready {
    opacity: 1 !important;
    visibility: visible !important;
    height: auto !important;
    transition: opacity 0.3s ease-in-out !important;
}

.store-filter-sort-bar:not(.layout-ready) {
    opacity: 0.5;
}

.store-filter-sort-bar.layout-ready {
    opacity: 1 !important;
    visibility: visible !important;
    transition: opacity 0.3s ease-in-out !important;
}

/* --- Apple Hero Slider --- */
.apple-hero-slider {
    position: relative !important;
    width: 100% !important;
    max-width: 1200px !important;
    aspect-ratio: 1200 / 400 !important; /* ~3:1 aspect ratio */
    margin: 0 auto 40px auto !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    box-shadow: 0 12px 36px rgba(0,0,0,0.03) !important;
    background-color: #ffffff !important;
}

@media (max-width: 768px) {
    .apple-hero-slider {
        border-radius: 0 !important;
        box-shadow: none !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-top: 0 !important;
        margin-bottom: 25px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        aspect-ratio: auto !important;
        height: 250px !important;
    }
}

@media (max-width: 480px) {
    .apple-hero-slider {
        height: 230px !important;
    }
}

.apple-slider-track {
    display: flex !important;
    width: 200% !important; /* 2 slides = 200% */
    height: 100% !important;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1) !important;
}

.apple-hero-slider .apple-slide {
    width: 50% !important; /* 1/2 of 200% = 100% container width */
    height: 100% !important;
    display: block !important;
    flex-shrink: 0 !important;
}

.apple-hero-slider .apple-slide img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    border-radius: 20px !important;
}

@media (max-width: 768px) {
    .apple-hero-slider .apple-slide img {
        border-radius: 0 !important;
        object-position: center !important;
    }
}

/* Dots pagination */
.apple-slider-dots {
    position: absolute !important;
    bottom: 12px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    display: flex !important;
    gap: 6px !important;
    z-index: 10 !important;
}

.apple-dot {
    width: 5px !important;
    height: 5px !important;
    border-radius: 50% !important;
    background-color: rgba(0, 0, 0, 0.2) !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1) !important;
}

.apple-dot.active {
    background-color: #1d1d1f !important;
    transform: scale(1.1) !important;
    width: 12px !important; /* smaller pill shape active */
    border-radius: 3px !important;
}

@media (max-width: 768px) {
    html body .site-main,
    html body .page-content,
    html body .entry-content,
    html body .post-2056 {
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* Shift the first slide image slightly to the right by 3px */
.apple-hero-slider .apple-slide:first-child img {
    object-position: calc(50% + 3px) center !important;
}

/* Prevent footer from jumping up during page loading */
.site-main {
    min-height: calc(100vh - 180px) !important;
}

/* --- Apple Premium Footer --- */
.apple-footer {
    background-color: #f5f5f7 !important;
    color: #86868b !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    padding: 60px 0 30px 0 !important;
    border-top: 1px solid #d2d2d7 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.apple-footer-container {
    max-width: 1200px !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 0 22px !important;
    box-sizing: border-box !important;
}

.apple-footer-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 40px !important;
    margin-bottom: 40px !important;
}

.apple-footer-col {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
}

.apple-footer-title {
    color: #1d1d1f !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    margin: 0 !important;
    letter-spacing: -0.01em !important;
}

.apple-footer-links {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
}

.apple-footer-links li {
    margin: 0 !important;
    padding: 0 !important;
}

.apple-footer-links a, 
.foot-contact-item {
    color: #515154 !important;
    text-decoration: none !important;
    font-size: 12px !important;
    transition: color 0.2s ease !important;
    cursor: pointer !important;
    display: inline-block !important;
    line-height: 1.4 !important;
}

.apple-footer-links a:hover {
    color: #1d1d1f !important;
    text-decoration: underline !important;
}

.foot-kaspi-info {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
}

.foot-kaspi-text {
    font-size: 12px !important;
    line-height: 1.4 !important;
    color: #515154 !important;
    margin: 0 !important;
}

.foot-kaspi-badge {
    width: 110px !important;
    height: auto !important;
    border-radius: 8px !important;
}

/* Bottom copyright area */
.apple-footer-bottom {
    border-top: 1px solid #d2d2d7 !important;
    padding-top: 20px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 16px !important;
}

.apple-footer-copy {
    font-size: 12px !important;
    color: #86868b !important;
}

.apple-footer-sublinks {
    display: flex !important;
    gap: 16px !important;
}

.apple-footer-sublinks a {
    color: #515154 !important;
    text-decoration: none !important;
    font-size: 12px !important;
    transition: color 0.2s ease !important;
}

.apple-footer-sublinks a:hover {
    color: #1d1d1f !important;
    text-decoration: underline !important;
}

/* Responsive Footer styles */
@media (max-width: 768px) {
    .apple-footer {
        padding: 40px 0 30px 0 !important;
    }
    
    .apple-footer-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
        margin-bottom: 30px !important;
    }
    
    .apple-footer-bottom {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
    }
    
    .apple-footer-sublinks {
        width: 100% !important;
        flex-wrap: wrap !important;
        gap: 12px 16px !important;
    }
}

/* --- Apple Premium Dark Footer --- */
.apple-footer.dark-theme {
    background-color: #151516 !important; /* Premium dark background */
    color: #86868b !important;
    border-top: 1px solid #333336 !important;
}

.apple-footer.dark-theme .apple-footer-title {
    color: #f5f5f7 !important; /* Light text for titles */
}

.apple-footer.dark-theme .apple-footer-links a, 
.apple-footer.dark-theme .foot-contact-item {
    color: #a1a1a6 !important; /* Slightly lighter gray for links */
}

.apple-footer.dark-theme .apple-footer-links a:hover {
    color: #ffffff !important; /* Pure white on hover */
}

.apple-footer.dark-theme .apple-footer-bottom {
    border-top: 1px solid #333336 !important;
}

.apple-footer.dark-theme .apple-footer-sublinks a {
    color: #a1a1a6 !important;
}

.apple-footer.dark-theme .apple-footer-sublinks a:hover {
    color: #ffffff !important;
}




/* --- Catalog card title and used warranty polish --- */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    min-height: 68px !important;
    height: auto !important;
    max-height: 68px !important;
    margin: 0 0 8px 0 !important;
    line-height: 1.25 !important;
    overflow: hidden !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    word-break: normal !important;
    overflow-wrap: anywhere !important;
}

.woocommerce ul.products li.product .apple-product-city.apple-product-warranty {
    margin: 0 0 10px 0 !important;
    min-height: 18px !important;
    color: #86868b !important;
    font-size: 13px !important;
    line-height: 1.2 !important;
}

.woocommerce ul.products li.product .apple-product-city.apple-product-warranty svg {
    width: 12px !important;
    height: 12px !important;
}

.woocommerce ul.products li.product .apple-price-block {
    margin-top: 2px !important;
}

.woocommerce ul.products li.product .product-bottom-row {
    margin-top: 8px !important;
}

@media (max-width: 768px) {
    .woocommerce ul.products li.product .woocommerce-loop-product__title {
        min-height: 60px !important;
        max-height: 60px !important;
        font-size: 16px !important;
    }

    .woocommerce ul.products li.product .apple-product-city.apple-product-warranty {
        font-size: 11px !important;
        margin-bottom: 8px !important;
    }
}


/* --- Catalog card title 3-line height fix --- */
.woocommerce ul.products li.product {
    min-height: 360px !important;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    min-height: 76px !important;
    height: 76px !important;
    max-height: 76px !important;
    line-height: 1.32 !important;
    padding-bottom: 2px !important;
    margin-bottom: 10px !important;
}

.woocommerce ul.products li.product .apple-price-block {
    margin-top: 4px !important;
}

@media (max-width: 768px) {
    .woocommerce ul.products li.product {
        min-height: 350px !important;
    }

    .woocommerce ul.products li.product .woocommerce-loop-product__title {
        min-height: 70px !important;
        height: 70px !important;
        max-height: 70px !important;
        line-height: 1.32 !important;
    }
}


/* --- Catalog card vertical rhythm fix --- */
.woocommerce ul.products li.product {
    min-height: 382px !important;
}

.woocommerce ul.products li.product a.woocommerce-loop-product__link {
    flex: 1 1 auto !important;
    margin-bottom: 0 !important;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    min-height: 78px !important;
    height: 78px !important;
    max-height: 78px !important;
    margin: 0 0 8px 0 !important;
    line-height: 1.3 !important;
}

.woocommerce ul.products li.product .apple-product-city.apple-product-warranty {
    display: inline-flex !important;
    min-height: 18px !important;
    height: 18px !important;
    margin: 0 0 22px 0 !important;
    align-items: center !important;
}

.woocommerce ul.products li.product .price {
    display: block !important;
    min-height: 48px !important;
    margin: 0 !important;
}

.woocommerce ul.products li.product .apple-price-block {
    min-height: 48px !important;
    justify-content: flex-start !important;
    margin-top: 0 !important;
}

.woocommerce ul.products li.product .product-bottom-row {
    margin-top: 0 !important;
    min-height: 54px !important;
    align-items: flex-start !important;
}

@media (max-width: 768px) {
    .woocommerce ul.products li.product {
        min-height: 370px !important;
    }

    .woocommerce ul.products li.product .woocommerce-loop-product__title {
        min-height: 72px !important;
        height: 72px !important;
        max-height: 72px !important;
    }

    .woocommerce ul.products li.product .apple-product-city.apple-product-warranty {
        margin-bottom: 18px !important;
    }
}


/* --- Used warranty above product title --- */
.woocommerce ul.products li.product .apple-product-city.apple-product-warranty {
    height: 18px !important;
    min-height: 18px !important;
    margin: 0 0 8px 0 !important;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    margin-bottom: 12px !important;
}

.woocommerce ul.products li.product .price {
    margin-top: 0 !important;
}

.woocommerce ul.products li.product .product-bottom-row {
    margin-top: 0 !important;
}


/* --- Keep used warranty below image and above title --- */
.woocommerce ul.products li.product a.woocommerce-loop-product__link .apple-product-city.apple-product-warranty {
    order: 0 !important;
    margin: 0 0 8px 0 !important;
}

.woocommerce ul.products li.product a.woocommerce-loop-product__link > img + .apple-product-city.apple-product-warranty {
    margin-top: 0 !important;
}


/* --- Compact used catalog card spacing --- */
.woocommerce ul.products li.product {
    min-height: 360px !important;
}

.woocommerce ul.products li.product a.woocommerce-loop-product__link {
    flex: 0 0 auto !important;
    margin-bottom: 0 !important;
}

.woocommerce ul.products li.product a.woocommerce-loop-product__link .apple-product-city.apple-product-warranty {
    width: calc(100% - 48px) !important;
    margin: 0 24px 10px 24px !important;
    height: 18px !important;
    min-height: 18px !important;
    line-height: 18px !important;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    width: calc(100% - 48px) !important;
    margin: 0 24px 14px 24px !important;
    min-height: 72px !important;
    height: 72px !important;
    max-height: 72px !important;
    line-height: 1.3 !important;
}

.woocommerce ul.products li.product .price {
    min-height: 0 !important;
    margin: 0 24px !important;
}

.woocommerce ul.products li.product .apple-price-block {
    min-height: 0 !important;
    margin-top: 0 !important;
}

.woocommerce ul.products li.product .product-bottom-row {
    min-height: 0 !important;
    margin-top: 0 !important;
}

@media (max-width: 768px) {
    .woocommerce ul.products li.product a.woocommerce-loop-product__link .apple-product-city.apple-product-warranty,
    .woocommerce ul.products li.product .woocommerce-loop-product__title,
    .woocommerce ul.products li.product .price {
        width: calc(100% - 32px) !important;
        margin-left: 16px !important;
        margin-right: 16px !important;
    }

    .woocommerce ul.products li.product .woocommerce-loop-product__title {
        min-height: 66px !important;
        height: 66px !important;
        max-height: 66px !important;
        margin-bottom: 12px !important;
    }
}


/* --- Restore catalog card left alignment --- */
.woocommerce ul.products li.product a.woocommerce-loop-product__link .apple-product-city.apple-product-warranty,
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product .price {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.woocommerce ul.products li.product a.woocommerce-loop-product__link .apple-product-city.apple-product-warranty {
    margin-top: 0 !important;
    margin-bottom: 10px !important;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    margin-top: 0 !important;
    margin-bottom: 12px !important;
    text-align: left !important;
}


/* --- Lift catalog card text closer to image --- */
.woocommerce ul.products li.product img {
    margin-bottom: 12px !important;
}

.woocommerce ul.products li.product a.woocommerce-loop-product__link .apple-product-city.apple-product-warranty {
    margin-bottom: 8px !important;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    margin-bottom: 10px !important;
}


/* --- Lift catalog card text a bit more --- */
.woocommerce ul.products li.product img {
    margin-bottom: 6px !important;
}

.woocommerce ul.products li.product a.woocommerce-loop-product__link .apple-product-city.apple-product-warranty {
    margin-bottom: 6px !important;
}


/* --- Tighten gap between warranty and title --- */
.woocommerce ul.products li.product a.woocommerce-loop-product__link .apple-product-city.apple-product-warranty {
    margin-bottom: 2px !important;
}


/* --- Zero gap between warranty and title --- */
.woocommerce ul.products li.product a.woocommerce-loop-product__link .apple-product-city.apple-product-warranty {
    margin-bottom: 0 !important;
}


/* --- Tiny catalog card bottom breathing room --- */
.woocommerce ul.products li.product {
    padding-bottom: 28px !important;
    min-height: 364px !important;
}


/* --- Reduce title to price gap by 3px --- */
.woocommerce ul.products li.product {
    padding-bottom: 24px !important;
    min-height: 360px !important;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    margin-bottom: 7px !important;
}


/* --- Give 3-line product titles enough room --- */
.woocommerce ul.products li.product {
    min-height: 372px !important;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    min-height: 86px !important;
    height: 86px !important;
    max-height: 86px !important;
    line-height: 1.36 !important;
    margin-bottom: 10px !important;
    padding-bottom: 0 !important;
}

@media (max-width: 768px) {
    .woocommerce ul.products li.product .woocommerce-loop-product__title {
        min-height: 78px !important;
        height: 78px !important;
        max-height: 78px !important;
    }
}


/* --- Mobile catalog card height reset --- */
@media (max-width: 768px) {
    .woocommerce ul.products li.product {
        min-height: 300px !important;
        padding-bottom: 18px !important;
    }

    .woocommerce ul.products li.product img {
        height: 132px !important;
        margin-bottom: 8px !important;
    }

    .woocommerce ul.products li.product .woocommerce-loop-product__title {
        min-height: 68px !important;
        height: 68px !important;
        max-height: 68px !important;
        line-height: 1.28 !important;
        margin-bottom: 8px !important;
    }

    .woocommerce ul.products li.product .price,
    .woocommerce ul.products li.product .apple-price-block {
        min-height: 0 !important;
    }
}


/* --- Tighten mobile card bottom gap --- */
@media (max-width: 768px) {
    .woocommerce ul.products li.product {
        padding-bottom: 10px !important;
        min-height: 288px !important;
    }
}


/* --- Test catalog cart button with warranty beside price --- */
.woocommerce ul.products li.product .product-bottom-row {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    align-items: stretch !important;
    width: 100% !important;
}

.woocommerce ul.products li.product .apple-card-price-warranty-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 10px !important;
    align-items: end !important;
    width: 100% !important;
}

.woocommerce ul.products li.product .apple-card-warranty-note {
    color: #6e6e73 !important;
    font-family: 'Nunito', sans-serif !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    padding-bottom: 3px !important;
    text-align: right !important;
}

.woocommerce ul.products li.product a.button.apple-card-cart-button-test,
.woocommerce ul.products li.product a.button.add_to_cart_button.apple-card-cart-button-test,
.woocommerce ul.products li.product a.button.premiumstore-knopka-korzina-razdel.apple-card-cart-button-test {
    display: flex !important;
    width: 100% !important;
    min-width: 100% !important;
    height: 38px !important;
    line-height: 38px !important;
    border-radius: 10px !important;
    background: #1d1d1f !important;
    color: #ffffff !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-align: center !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 12px !important;
    margin: 0 !important;
}

@media (max-width: 768px) {
    .woocommerce ul.products li.product .apple-card-price-warranty-row {
        grid-template-columns: 1fr !important;
        gap: 4px !important;
    }

    .woocommerce ul.products li.product .apple-card-warranty-note {
        text-align: left !important;
        font-size: 10px !important;
        padding-bottom: 0 !important;
    }

    .woocommerce ul.products li.product a.button.apple-card-cart-button-test,
    .woocommerce ul.products li.product a.button.add_to_cart_button.apple-card-cart-button-test,
    .woocommerce ul.products li.product a.button.premiumstore-knopka-korzina-razdel.apple-card-cart-button-test {
        height: auto !important;
        min-height: 34px !important;
        line-height: 1.3 !important;
        font-size: 12px !important;
        padding: 6px 12px !important;
    }
}


/* --- Fix test cart button text and warranty layout --- */
.woocommerce ul.products li.product .apple-card-price-warranty-row {
    display: flex !important;
    flex-direction: column !important;
    gap: 3px !important;
    align-items: flex-start !important;
}

.woocommerce ul.products li.product .apple-card-warranty-note {
    width: 100% !important;
    text-align: left !important;
    white-space: normal !important;
    padding-bottom: 0 !important;
    font-size: 11px !important;
    line-height: 1.2 !important;
}

.woocommerce ul.products li.product .product-bottom-row {
    gap: 8px !important;
}

.woocommerce ul.products li.product a.button.apple-card-cart-button-test,
.woocommerce ul.products li.product a.button.add_to_cart_button.apple-card-cart-button-test,
.woocommerce ul.products li.product a.button.premiumstore-knopka-korzina-razdel.apple-card-cart-button-test {
    font-family: 'Nunito', sans-serif !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}


/* --- Premium cart modal test and softer product hover --- */
.woocommerce ul.products li.product {
    transform-origin: center center !important;
    transition: transform 180ms ease, background-color 180ms ease !important;
}

.woocommerce ul.products li.product:hover {
    transform: scale(1.015) !important;
    box-shadow: none !important;
}

.stepcamp-cart-modal-overlay {
    background: rgba(0, 0, 0, 0.22) !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
    transition: opacity 180ms ease !important;
}

.stepcamp-cart-modal-container {
    width: min(520px, calc(100vw - 32px)) !important;
    min-height: 420px !important;
    max-height: min(760px, calc(100vh - 40px)) !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate3d(-50%, -50%, 0) scale(0.985) !important;
    transform-origin: center center !important;
    background: #f5f5f7 !important;
    border: 1px solid rgba(255, 255, 255, 0.72) !important;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.16) !important;
    opacity: 0 !important;
    overflow: hidden !important;
    will-change: opacity, transform !important;
    transition: opacity 180ms ease, transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1) !important;
}

.stepcamp-cart-modal.active .stepcamp-cart-modal-container {
    transform: translate3d(-50%, -50%, 0) scale(1) !important;
    opacity: 1 !important;
}

.stepcamp-cart-modal-header {
    padding: 18px 22px !important;
    background: rgba(255, 255, 255, 0.92) !important;
}

.stepcamp-cart-modal-header h3 {
    font-size: 18px !important;
    letter-spacing: 0 !important;
}

.stepcamp-cart-modal-body {
    padding: 18px !important;
    min-height: 210px !important;
}

.cart-modal-item {
    display: grid !important;
    grid-template-columns: 76px minmax(0, 1fr) !important;
    gap: 14px !important;
    align-items: stretch !important;
    padding: 14px !important;
    margin-bottom: 12px !important;
    border-radius: 16px !important;
    box-shadow: none !important;
    border: 1px solid #e5e5ea !important;
}

.cart-modal-item-img {
    width: 76px !important;
    height: 76px !important;
    flex-basis: 76px !important;
    border-radius: 12px !important;
}

.cart-modal-item-details {
    min-width: 0 !important;
    padding-left: 0 !important;
    gap: 10px !important;
}

.cart-modal-item-title {
    font-size: 15px !important;
    line-height: 1.25 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

.cart-modal-item-bottom-row {
    margin-top: 0 !important;
}

.cart-modal-summary {
    padding: 18px 22px 22px !important;
    border-radius: 20px 20px 0 0 !important;
    box-shadow: none !important;
    border-top: 1px solid #e8e8ed !important;
}

.cart-modal-checkout-btn {
    border-radius: 12px !important;
    padding: 14px 18px !important;
    font-weight: 700 !important;
}

@media (max-width: 640px) {
    .stepcamp-cart-modal-container {
        width: calc(100vw - 20px) !important;
        min-height: 380px !important;
        max-height: calc(100vh - 24px) !important;
        border-radius: 22px !important;
    }

    .stepcamp-cart-modal-body {
        padding: 14px !important;
    }

    .cart-modal-item {
        grid-template-columns: 66px minmax(0, 1fr) !important;
        gap: 12px !important;
        padding: 12px !important;
    }

    .cart-modal-item-img {
        width: 66px !important;
        height: 66px !important;
        flex-basis: 66px !important;
    }
}


/* WooCommerce SVG Star Ratings 1-to-1 Styling */
.woocommerce .stepcamp-stars,
.stepcamp-stars.woocommerce-stars {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 3px !important;
    vertical-align: middle !important;
    margin: 4px 0 !important;
}

/* Star sizing inside catalog loop (product cards) */
.products .stepcamp-stars svg.star-icon,
.product-card .stepcamp-stars svg.star-icon,
.mobile-grid-item .stepcamp-stars svg.star-icon,
.store-subcategory-grid .stepcamp-stars svg.star-icon,
ul.products li.product .stepcamp-stars svg.star-icon {
    width: 14px !important;
    height: 14px !important;
}

/* Star sizing inside single product page summary */
.summary .stepcamp-stars svg.star-icon,
.single-product-summary .stepcamp-stars svg.star-icon,
.woocommerce-product-details__short-description .stepcamp-stars svg.star-icon {
    width: 18px !important;
    height: 18px !important;
}

/* Hide default WooCommerce star rating container if it is generated anywhere */
.woocommerce .star-rating,
.star-rating {
    display: none !important;
}

/* WooCommerce product rating alignment - Left-aligned on Single Product Page */
.woocommerce-product-rating,
.woocommerce div.product .woocommerce-product-rating {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important; /* Align left */
    text-align: left !important;
    margin: 8px 0 16px 0 !important;
    width: fit-content !important;
}

.woocommerce-product-rating .woocommerce-review-link {
    margin-left: 8px !important;
    font-size: 14px !important;
    color: #86868b !important;
    text-decoration: none !important;
}

.woocommerce-product-rating .woocommerce-review-link:hover {
    color: #0066cc !important;
    text-decoration: underline !important;
}

/* WooCommerce stars alignment - Left-aligned on Catalog Product Cards */
.products .stepcamp-stars,
.product-card .stepcamp-stars,
.mobile-grid-item .stepcamp-stars,
.store-subcategory-grid .stepcamp-stars,
ul.products li.product .stepcamp-stars {
    display: flex !important;
    justify-content: flex-start !important; /* Left-aligned under the text/image */
    margin-left: 0 !important;
    margin-right: auto !important;
    width: fit-content !important;
}
