/*
Theme Name: Nooni Child
Theme URI: https://demo.theme-sky.com/nooni/
Author: Theme Sky Team
Author URI: http://theme-sky.com/
Description: A Premium and Responsive WordPress theme, designed for E-Commerce websites
Template: nooni
Version: 1.0.0
License: GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Tags: two-columns, left-sidebar, custom-background, custom-colors, custom-header, custom-menu, editor-style, featured-images, microformats, post-formats, rtl-language-support, sticky-post, threaded-comments, translation-ready
Text Domain: nooni-child
*/

/* ═══════════════════════════════════════════════════════════════
   &LESS BAGS - CHILD THEME CUSTOM CSS
   ═══════════════════════════════════════════════════════════════

   TABLE OF CONTENTS
   -----------------
   0. CUSTOM FONTS (Bon Vivant family)
   1. GLOBAL STYLES (scroll behavior, utilities)
   2. HEADER & NAVIGATION (desktop + mobile)
   3. WOOCOMMERCE - SHOP PAGE (filters, grid)
   4. WOOCOMMERCE - PRODUCT PAGE (gallery, variations, summary)
   5. WOOCOMMERCE - CART PAGE
   6. BAG BY ME - COMPETITION FORM
   6.1 BLOG POST CONTENT - LIST STYLING
   7. PAGE-SPECIFIC OVERRIDES
   8. IMAGE QUALITY (gallery uses full images via PHP filter)

   Originally migrated from:
   - WordPress Customizer Additional CSS
   - Theme Options Custom Code (Redux)

═══════════════════════════════════════════════════════════════ */


/* ═══════════════════════════════════════════════════════════════
   0. CUSTOM FONTS - Bon Vivant Family
   Registered via functions.php (andless_register_custom_fonts)
   at priority 10000 to override parent theme's dynamic CSS.
   See functions.php for @font-face declarations.
   ═══════════════════════════════════════════════════════════════ */


/* ═══════════════════════════════════════════════════════════════
   1. GLOBAL STYLES
   ═══════════════════════════════════════════════════════════════ */

/* Smooth scroll with sticky header offset */
:root {
    --header-offset: 90px;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-offset);
}

#about-section {
    scroll-margin-top: var(--header-offset);
}

/* Prevent horizontal scroll */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

/* Responsive visibility utilities */
.andless-desktop-only {
    display: block !important;
}
.andless-mobile-only {
    display: none !important;
}

@media (max-width: 768px) {
    :root {
        --header-offset: 120px;
    }

    .andless-desktop-only {
        display: none !important;
    }
    .andless-mobile-only {
        display: block !important;
    }
}


/* ═══════════════════════════════════════════════════════════════
   2. HEADER & NAVIGATION
   ═══════════════════════════════════════════════════════════════ */

/* Hide hamburger menu on desktop */
@media (min-width: 768px) {
    .ts-sidebar-menu-icon .icon,
    .icon-menu-sticky-header .icon {
        display: none;
    }
}

/* Menu gap adjustments for medium desktops
   NOTE: Two rules from original locations combined:
   - 1024-1279px: 18px (from Customizer)
   - 1280-1440px: 19px (from Theme Options) */
@media only screen and (min-width: 1024px) and (max-width: 1279px) {
    .ts-header .ts-menu nav > ul,
    .ts-header nav > ul.menu {
        gap: 18px !important;
    }
}

@media only screen and (min-width: 1280px) and (max-width: 1440px) {
    .ts-header .ts-menu nav > ul,
    .ts-header nav > ul.menu {
        gap: 19px;
    }
}

/* Submenu positioning fixes */
@media only screen and (min-width: 1200px) {
    .ts-header nav > ul.menu li ul.sub-menu:after {
        top: 30px;
    }

    .ts-header nav > ul.menu li.ts-megamenu-fullwidth ul.sub-menu {
        padding: 44px 0 44px;
    }
}

/* Marquee animation for store notices */
@keyframes marquee-wide {
    0% { text-indent: 100vw; }
    100% { text-indent: -100%; }
}

/* Mobile header - complete rewrite */
@media (max-width: 767px) {
    .hidden-phone { display: none !important; }
    .visible-phone { display: block !important; }

    .header-store-notice,
    .woocommerce-store-notice {
        overflow: hidden;
        white-space: nowrap;
        animation: marquee-wide 20s linear infinite;
        font-size: 14px;
        padding: 8px 0;
    }

    .mobile-header-layout {
        display: flex !important;
        align-items: center;
        padding: 16px 10px;
        min-height: 60px;
        width: 100%;
        box-sizing: border-box;
        position: relative;
    }

    .mobile-header-left {
        display: flex;
        align-items: center;
        gap: 18px;
        position: absolute;
        left: 12px;
        z-index: 2;
    }

    .mobile-header-right {
        display: flex;
        align-items: center;
        gap: 2px;
        position: absolute;
        right: 10px;
        z-index: 2;
    }

    .mobile-header-center {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        z-index: 1;
    }

    .mobile-header-center .logo img.mobile-logo,
    .mobile-header-center .logo img.sticky-logo {
        display: none !important;
    }

    .mobile-header-center .logo img.normal-logo {
        max-height: 32px !important;
        width: auto !important;
        display: block !important;
        max-width: 150px;
    }

    .mobile-menu-icon,
    .mobile-search,
    .mobile-wishlist,
    .mobile-cart {
        padding: 2px;
        border-radius: 3px;
        cursor: pointer;
        min-width: 28px;
        min-height: 28px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .ts-header .container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
    }

    .mobile-header-left,
    .mobile-header-right {
        min-width: 0;
        flex-shrink: 0;
    }

    .mobile-header-center {
        min-width: 0;
        overflow: hidden;
    }
}

/* Very small mobile */
@media (max-width: 400px) {
    .mobile-header-left { gap: 2px; }
    .mobile-header-right { gap: 1px; }

    .mobile-menu-icon,
    .mobile-search,
    .mobile-wishlist,
    .mobile-cart {
        padding: 1px;
        min-width: 26px;
        min-height: 26px;
    }

    .mobile-header-center .logo img.normal-logo {
        max-height: 28px !important;
        max-width: 130px;
    }
}

/* Desktop - hide mobile elements */
@media (min-width: 768px) {
    .visible-phone { display: none !important; }
    .mobile-header-layout { display: none !important; }

    .header-store-notice,
    .woocommerce-store-notice {
        overflow: hidden;
        white-space: nowrap;
        animation: marquee-wide 25s linear infinite;
        padding: 8px 0;
        font-size: 14px;
    }
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .header-store-notice,
    .woocommerce-store-notice {
        animation: none !important;
        text-indent: 0 !important;
    }
}


/* ═══════════════════════════════════════════════════════════════
   3. WOOCOMMERCE - SHOP PAGE
   ═══════════════════════════════════════════════════════════════ */

.filter-widget-area-button,
.gridlist-toggle {
    display: none !important;
}

/* Hide "Select options" / "Read more" button on all product cards */
.loop-add-to-cart,
.product-group-button > div.loop-add-to-cart,
.thumbnail-wrapper .product-group-button > div.loop-add-to-cart {
    display: none !important;
}


/* ═══════════════════════════════════════════════════════════════
   4. WOOCOMMERCE - PRODUCT PAGE
   ═══════════════════════════════════════════════════════════════ */

/* Product gallery plugin */
.rtwpvg-images {
    max-width: 45%;
    width: 100% !important;
    float: none;
}

/* Flexbox order for gallery and summary */
.rtwpvg-images.rtwpvg-images-thumbnail-columns-4.rtwpvg-has-product-thumbnail.rtwpvg-total-images-1.rtwpvg-has-gallery-images {
    order: 1;
}

.summary.entry-summary {
    order: 2;
}

/* Hide elements */
.short-description {
    display: none !important;
}

#main footer .meta-wrapper .product-categories {
    display: none !important;
}

/* Hide variation reset button */
.woocommerce div.product form.cart .reset_variations {
    display: none !important;
}

/* KickFlip configurator list styling */
li.mczrPropsListItem {
    list-style-type: none;
}


/* ═══════════════════════════════════════════════════════════════
   4.1 ADMIN - VARIATION GALLERY
   ═══════════════════════════════════════════════════════════════ */

.andless-variation-gallery-row {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.andless-variation-gallery-images {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 10px 0;
    padding: 0;
    list-style: none;
}

.andless-gallery-image {
    position: relative;
    width: 60px;
    height: 60px;
    border: 1px solid #ddd;
    border-radius: 3px;
    overflow: hidden;
    cursor: move;
}

.andless-gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.andless-remove-gallery-image {
    position: absolute;
    top: 0;
    right: 0;
    width: 20px;
    height: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    text-decoration: none;
    text-align: center;
    line-height: 18px;
    font-size: 14px;
    border-radius: 0 0 0 3px;
}

.andless-remove-gallery-image:hover {
    background: #c00;
    color: #fff;
}

.andless-gallery-placeholder {
    width: 60px;
    height: 60px;
    border: 2px dashed #ccc;
    border-radius: 3px;
}


/* ═══════════════════════════════════════════════════════════════
   4.2 PRODUCT GALLERY - NAVIGATION ARROWS
   ═══════════════════════════════════════════════════════════════ */

/* Hide scrollbar on thumbnails */
.woocommerce div.product div.images .flex-control-thumbs {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.woocommerce div.product div.images .flex-control-thumbs::-webkit-scrollbar {
    display: none;
}

/* --- VERTICAL THUMBNAIL ARROWS (up/down) --- */
button.andless-thumb-nav {
    /* Complete reset to override parent theme */
    all: unset !important;
    box-sizing: border-box !important;

    /* Positioning */
    position: absolute !important;
    left: 0 !important;
    width: 100px !important;
    height: 24px !important;
    z-index: 15 !important;

    /* Appearance */
    background: rgba(0, 0, 0, 0.5) !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;

    /* Layout */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;

    /* Interaction */
    cursor: pointer !important;
    opacity: 0.5;
    transition: all 0.3s !important;
}

button.andless-thumb-prev { top: 0 !important; }

button.andless-thumb-nav:hover,
button.andless-thumb-nav:focus {
    background: rgba(0, 0, 0, 0.9) !important;
    opacity: 1;
    outline: none !important;
    box-shadow: none !important;
}

button.andless-thumb-nav svg {
    width: 16px !important;
    height: 16px !important;
    stroke: #fff !important;
    fill: none !important;
}

button.andless-thumb-nav.hidden { display: none !important; }

button.andless-thumb-nav.disabled {
    opacity: 0.2 !important;
    cursor: default !important;
    pointer-events: none !important;
}

/* --- HORIZONTAL MAIN IMAGE ARROWS (left/right) --- */
button.andless-gallery-nav {
    /* Complete reset to override parent theme */
    all: unset !important;
    box-sizing: border-box !important;

    /* Positioning */
    position: absolute !important;
    z-index: 20 !important;
    width: 32px !important;
    height: 40px !important;
    top: 50% !important;
    margin-top: -20px !important;

    /* Appearance */
    background: rgba(0, 0, 0, 0.5) !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;

    /* Layout */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;

    /* Interaction */
    cursor: pointer !important;
    opacity: 0.5;
    transition: all 0.3s !important;
}

button.andless-gallery-prev { left: 0 !important; }
button.andless-gallery-next { right: 0 !important; }

button.andless-gallery-nav:hover,
button.andless-gallery-nav:focus {
    background: rgba(0, 0, 0, 0.9) !important;
    opacity: 1;
    outline: none !important;
    box-shadow: none !important;
}

button.andless-gallery-nav svg {
    width: 20px !important;
    height: 20px !important;
    stroke: #fff !important;
    fill: none !important;
}

button.andless-gallery-nav.hidden { display: none !important; }

/* Desktop - wider thumbnail arrows */
@media (min-width: 1200px) {
    button.andless-thumb-nav { width: 120px !important; }
}


/* ═══════════════════════════════════════════════════════════════
   4.3 PHOTOSWIPE LIGHTBOX - ARROW NAVIGATION
   ═══════════════════════════════════════════════════════════════ */

/* Ensure lightbox arrows are visible on touch devices (overrides PhotoSwipe default) */
.pswp--touch .pswp__button--arrow--left,
.pswp--touch .pswp__button--arrow--right {
    visibility: visible !important;
}

/* Arrow button styling - semi-transparent background */
.pswp__button--arrow--left,
.pswp__button--arrow--right {
    background-color: rgba(0, 0, 0, 0.4) !important;
    opacity: 0.9 !important;
    transition: opacity 0.2s, background-color 0.2s !important;
}

.pswp__button--arrow--left:hover,
.pswp__button--arrow--right:hover {
    background-color: rgba(0, 0, 0, 0.7) !important;
    opacity: 1 !important;
}

/* ═══════════════════════════════════════════════════════════════
   5. WOOCOMMERCE - CART PAGE
   ═══════════════════════════════════════════════════════════════ */

.woocommerce table.shop_table.woocommerce-cart-form__contents .product-price {
    display: none;
}


/* ═══════════════════════════════════════════════════════════════
   6. BAG BY ME - COMPETITION FORM
   ═══════════════════════════════════════════════════════════════ */

body.single-product.postid-11612 .andless-competition-form-section {
    width: 100%;
    max-width: 1200px;
    margin: 60px auto 80px;
    padding: 0 15px;
    clear: both;
}

body.single-product.postid-11612 .andless-competition-form-wrapper {
    background: #ffffff;
    padding: 50px 40px 40px;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e0e0e0;
    text-align: center;
}

body.single-product.postid-11612 .andless-competition-title {
    font-size: 28px;
    margin-bottom: 10px;
    color: #333;
}

body.single-product.postid-11612 .andless-competition-description {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
}

body.single-product.postid-11612 .andless-competition-form-section .wpforms-container {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    text-align: left;
}

body.single-product.postid-11612 .related.products {
    margin-top: 80px;
    clear: both;
}

@media (max-width: 768px) {
    body.single-product.postid-11612 .andless-competition-form-wrapper {
        padding: 30px 20px;
    }

    body.single-product.postid-11612 .andless-competition-form-section {
        margin: 40px auto 50px;
    }

    body.single-product.postid-11612 .andless-competition-title {
        font-size: 24px;
    }
}


/* ═══════════════════════════════════════════════════════════════
   6.1 BLOG POST CONTENT - LIST STYLING
   Ensures bullet points and numbered lists render in post content.
   Parent theme reset uses 'inside' positioning without indent,
   so bullets can appear invisible. This adds proper spacing.
   ═══════════════════════════════════════════════════════════════ */

/* Target both standard .entry-content and Elementor widget containers on blog posts */
body.single-post .entry-content ul,
body.single-post .elementor-widget-text-editor ul,
body.single-post .elementor-widget-container ul {
    list-style-type: disc !important;
    margin-left: 25px;
    margin-bottom: 20px;
    padding-left: 0;
}

body.single-post .entry-content ol,
body.single-post .elementor-widget-text-editor ol,
body.single-post .elementor-widget-container ol {
    list-style-type: decimal !important;
    margin-left: 25px;
    margin-bottom: 20px;
    padding-left: 0;
}

body.single-post .entry-content ul li,
body.single-post .elementor-widget-text-editor ul li,
body.single-post .elementor-widget-container ul li {
    list-style-type: disc !important;
    padding: 4px 0;
}

body.single-post .entry-content ol li,
body.single-post .elementor-widget-text-editor ol li,
body.single-post .elementor-widget-container ol li {
    list-style-type: decimal !important;
    padding: 4px 0;
}

body.single-post .entry-content ul ul li,
body.single-post .elementor-widget-text-editor ul ul li,
body.single-post .elementor-widget-container ul ul li {
    list-style-type: circle !important;
}

body.single-post .entry-content ul ul ul li,
body.single-post .elementor-widget-text-editor ul ul ul li,
body.single-post .elementor-widget-container ul ul ul li {
    list-style-type: square !important;
}


/* ═══════════════════════════════════════════════════════════════
   7. PAGE-SPECIFIC OVERRIDES
   ═══════════════════════════════════════════════════════════════ */

body.postid-6576 .breadcrumb-title-wrapper {
    display: none !important;
}

/* Contact Form 7 – remove success message frame */
.wpcf7-response-output {
    border: none !important;
    padding: 0 !important;
    margin: 20px 0 0 !important;
    background: transparent !important;
}


/* ═══════════════════════════════════════════════════════════════
   8. IMAGE QUALITY
   Gallery uses full-size images (PHP filter: woocommerce_gallery_image_size)
   Transform reset prevents potential sub-pixel rendering blur
   ═══════════════════════════════════════════════════════════════ */

.woocommerce div.product div.images .woocommerce-product-gallery__image img {
    transform: none !important;
}
