@charset "UTF-8";

/*
Theme Name: Sumilux Child
Theme URI: https://sumilux.risingbamboo.com/
Description: Child theme for Sumilux. Use this theme for safe customizations that will be preserved when the parent theme is updated.
Author: Rising Bamboo
Author URI: https://risingbamboo.com
Template: sumilux
Version: 1.2.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sumilux-child
Tags: e-commerce, custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, custom-header, rtl-language-support, theme-options, block-styles
*/

/* ==========================================================================
   Sumilux Child Theme
   ==========================================================================

   Add your custom styles below.
   These styles will be loaded after the parent theme styles.

   ========================================================================== */

/* ==========================================================================
   Product Page: Short Description as Subtitle
   ========================================================================== */

/* Title - bigger and more prominent, aligned with subtitle */
.single-product .product-summary .product_title {
    padding: 0 !important;
    margin: 0 !important;
    font-size: 2rem !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
}

@media (min-width: 768px) {
    .single-product .product-summary .product_title {
        font-size: 2.5rem !important;
    }
}

@media (min-width: 1024px) {
    .single-product .product-summary .product_title {
        font-size: 3rem !important;
    }
}

/* Short description styled as subtitle with beautiful fade gradient - aligned with title */
.single-product .product-summary .short-description-subtitle {
    margin: 0 !important;
    padding: 10px 0 10px 0 !important;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    opacity: 0;
    animation: fadeInGradient 1.2s ease-out forwards;
    animation-delay: 0.3s;
    overflow: hidden;
    width: 100%;
}

/* Beautiful gradient background with accent color #dec970 that fades in from emptiness */
.single-product .product-summary .short-description-subtitle::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(222, 201, 112, 0.08) 20%,
        rgba(222, 201, 112, 0.15) 40%,
        rgba(222, 201, 112, 0.22) 50%,
        rgba(222, 201, 112, 0.15) 60%,
        rgba(222, 201, 112, 0.08) 80%,
        transparent 100%
    );
    z-index: -1;
    animation: slideGradientIn 2.5s ease-out forwards;
    animation-delay: 0.3s;
    border-radius: 4px;
}

.single-product .product-summary .short-description-subtitle p {
    margin: 0 !important;
    position: relative;
    z-index: 1;
    padding: 0;
    flex: 1;
}

/* Signature image on the right side of subtitle - inline with text */
.single-product .product-summary .short-description-subtitle::after {
    content: '';
    position: relative;
    width: 150px;
    height: 40px;
    background-image: url('https://kraitofficial.com/wp-content/uploads/2025/12/signature.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center center;
    z-index: 2;
    opacity: 0;
    animation: fadeInSignature 1.5s ease-out forwards;
    animation-delay: 0.8s;
    flex-shrink: 0;
}

/* Fade in animation for text */
@keyframes fadeInGradient {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Slide gradient animation - gradient fade-in from empty state */
@keyframes slideGradientIn {
    0% {
        opacity: 0;
    }
    50% {
        opacity: 0.9;
    }
    100% {
        opacity: 0.7;
    }
}

/* Signature fade in animation */
@keyframes fadeInSignature {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ==========================================================================
   Product Page: Long Description below Short Description
   ========================================================================== */

/* Long description styling - appears right after short description gradient */
.single-product .product-summary .product-long-description {
    margin-top: 20px !important;
    margin-bottom: 0 !important;
    padding-top: 20px !important;
    padding-bottom: 0 !important;
    border-top: 1px solid rgba(222, 201, 112, 0.2);
}

.single-product .product-summary .product-long-description p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.single-product .product-summary .product-long-description p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   Product Page: Price Styling
   ========================================================================== */

/* Price - add spacing from description and make it bigger/bolder */
.single-product .product-summary .price,
.single-product .product-summary .price ins,
.single-product .product-summary .price .woocommerce-Price-amount {
    margin-top: 20px !important;
    margin-bottom: 15px !important;
    font-size: 1.75rem !important;
    font-weight: 700 !important;
}

@media (min-width: 768px) {
    .single-product .product-summary .price,
    .single-product .product-summary .price ins,
    .single-product .product-summary .price .woocommerce-Price-amount {
        font-size: 2rem !important;
    }
}

/* ==========================================================================
   Shop Hero Section
   ========================================================================== */

.krait-shop-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-bottom: 30px;
}

.krait-shop-hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    pointer-events: none;
}

.krait-shop-hero__content {
    position: relative;
    z-index: 2;
    padding: 40px 20px;
    width: 100%;
}

.krait-shop-hero__breadcrumbs {
    margin-bottom: 10px;
    font-size: 0.875rem;
    opacity: 0.9;
}

.krait-shop-hero__breadcrumbs a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.krait-shop-hero__breadcrumbs a:hover {
    opacity: 0.7;
}

.krait-breadcrumb__sep {
    margin: 0 8px;
    opacity: 0.6;
}

.krait-shop-hero__title {
    margin: 0 0 10px 0;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.krait-shop-hero__subtitle {
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .krait-shop-hero__title {
        font-size: 1.75rem;
    }

    .krait-shop-hero__subtitle {
        font-size: 0.875rem;
    }
}

/* Force white text color for shop hero */
.krait-shop-hero__title,
.krait-shop-hero__subtitle,
.krait-shop-hero__breadcrumbs,
.krait-shop-hero__breadcrumbs a,
.krait-shop-hero__breadcrumbs .krait-breadcrumb,
.krait-shop-hero__breadcrumbs .krait-breadcrumb a {
    color: inherit !important;
}

.krait-shop-hero__content * {
    color: inherit;
}

/* Override any theme breadcrumb styles */
.krait-shop-hero .woocommerce-breadcrumb,
.krait-shop-hero .woocommerce-breadcrumb a,
.krait-shop-hero nav.krait-breadcrumb,
.krait-shop-hero nav.krait-breadcrumb a {
    color: inherit !important;
}

/* Shop hero title less bold */
.krait-shop-hero__title {
    font-weight: 700 !important;
}

/* Product title and price bolder */
.single-product .product-summary .product_title {
    font-weight: 800 !important;
}

.single-product .product-summary .price,
.single-product .product-summary .price ins,
.single-product .product-summary .price .woocommerce-Price-amount {
    font-weight: 800 !important;
}

/* Add 'incl. VAT' after price */
.single-product .product-summary .price::after {
    content: 'incl. VAT';
    display: inline-block;
    margin-left: 8px;
    margin-right: 8px;
    font-size: 0.7rem;
    font-weight: 400;
    opacity: 0.7;
    vertical-align: middle;
}

/* ==========================================================================
   Font Weight Adjustments (200 less bold)
   ========================================================================== */

/* Product title - from 800 to 700 */
.single-product .product-summary .product_title {
    font-weight: 700 !important;
}

/* Product price - from 800 to 700 */
.single-product .product-summary .price,
.single-product .product-summary .price ins,
.single-product .product-summary .price .woocommerce-Price-amount {
    font-weight: 700 !important;
}

/* Product tabs - less bold */
.woocommerce-tabs ul.tabs li a,
.woocommerce-tabs .wc-tabs li a,
.product-single__tabs .nav-tabs li a,
.product-single__tabs ul.tabs li a {
    font-weight: 500 !important;
}

.woocommerce-tabs ul.tabs li.active a,
.woocommerce-tabs .wc-tabs li.active a,
.product-single__tabs .nav-tabs li.active a,
.product-single__tabs ul.tabs li.active a {
    font-weight: 700 !important;
}


/* ===== Product Gallery Fallback (when Slick not initialized) ===== */
.krait-product-single-image-default .krait-slick-product-gallery:not(.slick-initialized) {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow: hidden !important;
}

.krait-product-single-image-default .krait-slick-product-gallery:not(.slick-initialized) .krait-slick-product-gallery__image {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
}

.krait-product-single-image-default .krait-slick-product-thumb:not(.slick-initialized) {
    display: flex !important;
    overflow: hidden !important;
}

/* Ensure images are not pixelated */
.krait-slick-product-gallery img,
.krait-slick-product-thumb img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* ===== Thumbnail Slider Arrows ===== */
.krait-product-thumbs .krait-slick-product-thumb .slick-arrow {
    display: block !important;
    position: absolute;
    z-index: 10;
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #ddd;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}

.krait-product-thumbs .krait-slick-product-thumb .slick-arrow:hover {
    background: var(--krait-general-primary-color);
    border-color: var(--krait-general-primary-color);
    color: white;
}

/* Vertical mode arrows (left/right thumbnail position) */
.krait-product-thumbs .krait-slick-product-thumb.slick-vertical .slick-prev {
    top: -15px;
    left: 50%;
    transform: translateX(-50%) rotate(90deg);
}

.krait-product-thumbs .krait-slick-product-thumb.slick-vertical .slick-next {
    bottom: -15px;
    top: auto;
    left: 50%;
    transform: translateX(-50%) rotate(90deg);
}

/* Horizontal mode arrows (top/bottom thumbnail position) */
.krait-product-thumbs .krait-slick-product-thumb:not(.slick-vertical) .slick-prev {
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
}

.krait-product-thumbs .krait-slick-product-thumb:not(.slick-vertical) .slick-next {
    right: -15px;
    top: 50%;
    transform: translateY(-50%);
}

/* ==========================================================================
   FIX: Gallery thumbnails for 768px-1500px range
   Problem: Thumbnails stretch to full width and stack vertically
   Solution: Force mobile-like layout (gallery on top, horizontal thumbs below)
   ========================================================================== */

@media screen and (min-width: 768px) and (max-width: 1500px) {
    /* Force block layout instead of flex - thumbnails go below */
    .krait-product-single-image-default .product-single__sticky {
        display: block !important;
        overflow: visible !important;
    }

    /* Main gallery - full width */
    .krait-product-single-image-default #krait-gallery-lightbox {
        width: 100% !important;
    }

    /* Thumbnails container - full width, below gallery */
    .krait-product-single-image-default .krait-product-thumbs {
        width: 100% !important;
        max-width: 100% !important;
        padding-top: 15px !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* Force Slick to horizontal mode - override vertical */
    .krait-product-single-image-default .krait-slick-product-thumb.slick-vertical .slick-list {
        height: auto !important;
        max-height: 120px !important;
    }

    .krait-product-single-image-default .krait-slick-product-thumb.slick-vertical .slick-track {
        display: flex !important;
        flex-direction: row !important;
        transform: translate3d(0, 0, 0) !important;
        top: 0 !important;
        width: max-content !important;
    }

    .krait-product-single-image-default .krait-slick-product-thumb.slick-vertical .slick-slide {
        height: auto !important;
        width: 90px !important;
        min-width: 90px !important;
        border: none !important;
    }

    .krait-product-single-image-default .krait-slick-product-thumb .item {
        width: 80px !important;
        max-width: 80px !important;
        padding: 0 5px !important;
    }

    .krait-product-single-image-default .krait-slick-product-thumb .item .thumbnail {
        width: 80px !important;
        height: 80px !important;
    }

    .krait-product-single-image-default .krait-slick-product-thumb .item img {
        width: 80px !important;
        height: 80px !important;
        object-fit: cover !important;
    }

    /* Hide vertical arrows, show horizontal if needed */
    .krait-product-single-image-default .krait-slick-product-thumb.slick-vertical .slick-arrow {
        display: none !important;
    }
}

/* ===== Catalog Product Card Color Swatches (Inline with Category) ===== */
.item-product .title-category {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.catalog-swatches {
    display: flex;
    gap: 3px;
    flex-wrap: nowrap;
    align-items: center;
}

.catalog-swatches .catalog-swatch {
    display: inline-block;
    padding: 1px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    border: 1px solid #ddd;
    transition: border-color 0.2s ease;
}

.catalog-swatches .catalog-swatch:hover {
    border-color: #333;
}

.catalog-swatches .catalog-swatch span {
    display: block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.1);
}

/* Mobile - slightly smaller */
@media (max-width: 767px) {
    .catalog-swatches .catalog-swatch span {
        width: 10px;
        height: 10px;
    }
}

/* ===== Elementor Widget Color Swatches ===== */
.elementor-swatches-row {
    margin-top: 4px;
    margin-bottom: 8px;
}

.elementor-swatches-row .catalog-swatches {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    align-items: center;
}

.elementor-swatches-row .catalog-swatch {
    display: inline-block;
    padding: 2px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    border: 1px solid #ddd;
    transition: border-color 0.2s ease;
}

.elementor-swatches-row .catalog-swatch:hover {
    border-color: #333;
}

.elementor-swatches-row .catalog-swatch span {
    display: block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.1);
}

@media (max-width: 767px) {
    .elementor-swatches-row .catalog-swatch span {
        width: 12px;
        height: 12px;
    }
}
.pace .pace-progress {
    background: #DEC970 !important;
}

/* ===== Mobile Shop Page - Reduce Spacing After Page Title ===== */
@media (max-width: 1023px) {
    /* Reduce main wrapper top padding on mobile */
    .krait-product-catalog {
        padding-top: 20px !important;
    }
    
    /* Remove huge margin on Filter By heading */
    h2.sidebar-filter {
        margin-top: 15px !important;
        margin-bottom: 10px !important;
    }
    
    /* Reduce padding on filter wrapper */
    .krait-shop-filter-left,
    .krait-shop-filter-right,
    .krait-shop-filter-top,
    [class*="krait-shop-filter-"] {
        padding-top: 15px !important;
    }
    
    /* Reduce category-top-bar margin */
    .category-top-bar {
        margin-bottom: 15px !important;
    }
}

/* Extra small screens */
@media (max-width: 767px) {
    .krait-product-catalog {
        padding-top: 15px !important;
        padding-bottom: 30px !important;
    }
    
    h2.sidebar-filter {
        margin-top: 10px !important;
        font-size: 1rem !important;
    }
}


/* ===== Hide Search in Sidebar Canvas Menu (already in header) ===== */
@media (max-width: 1023px) {
    /* Hide the search form inside sidebar canvas menu, not header */
    .search_desktop {
        display: none !important;
    }
}

/* ===== Hide Call/Email in Mobile Sidebar Menu ===== */
.mobile_bottom > .flex:not(.social_content) {
    display: none !important;
}


/* ===== Mobile Sidebar Menu Fixes ===== */

/* Fix 1: Allow submenus to expand (changed overflow-x from hidden to visible) */
#mobile_menu {
    overflow-x: visible !important;
    overflow-y: auto !important;
    padding-bottom: 100px !important;
    /* Hide scrollbar */
    -ms-overflow-style: none !important;
    scrollbar-width: none !important;
}

#mobile_menu::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
}

/* Fix 2: Increase visible menu area - since search is hidden, use that space */
@media (max-width: 767px) {
    #mobile_menu .krait-main-navigation {
        height: calc(100% - 80px) !important;
        min-height: 70vh !important;
    }
    
    /* Also reduce top offset since search is hidden */
    .search_desktop + .krait-main-navigation {
        height: calc(100% - 80px) !important;
    }
}

/* Fix 3: Extra space on very small phones */
@media (max-width: 400px) {
    #mobile_menu {
        padding-bottom: 140px !important;
    }
}

/* Fix 4: Mobile header - larger icons and better spacing */
@media (max-width: 767px) {
    /* More padding from screen edges */
    .header-mobile {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    
    /* Scale up ALL header icons 1.3x for easier tapping */
    .header-mobile .toggle-megamenu,
    .header-mobile .search-mobile,
    .header-mobile .krait-mini-cart,
    .header-mobile .krait-wishlist {
        transform: scale(1.15);
        transform-origin: center center;
    }
    
    /* Add some spacing between scaled icons */
    .header-mobile .menu-mobile {
        margin-right: 5px;
    }
    
    .header-mobile .header-mobile-right > * {
        margin-left: 5px;
    }
}

/* Ensure mobile menu has no gap from header */
@media (max-width: 767px) {
    #mobile_menu {
        top: 60px !important;
        margin-top: 0 !important;
        padding-top: 20px !important;
    }
    
    /* If header is taller due to scaling, adjust */
    #mobile_menu.active {
        box-shadow: 0 0 20px rgba(0,0,0,0.1);
    }
}


/* Ensure mobile_bottom with social icons is fully visible */
#mobile_menu .mobile_bottom {
    padding-bottom: 20px !important;
    margin-bottom: 20px !important;
}

#mobile_menu .mobile_bottom .social_content {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
}


/* ===== Hide Mobile Sidebar on Desktop ===== */
/* Prevent mobile menu from being visible on large screens */
@media (min-width: 1024px) {
    #mobile_menu {
        display: none !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }
    
    /* Also hide the mobile menu logo header */
    #mobile_menu .mobile-menu-logo-header {
        display: none !important;
    }
}

/* ===== Mobile Header Shadow - More Subtle ===== */
@media (max-width: 1023px) {
    .header-mobile,
    .krait-header .header-mobile,
    header .header-mobile {
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04) !important;
    }
    
    /* Override any harsh sticky header shadow on mobile */
    .krait-header-sticky.header-stuck,
    .header-stuck .header-mobile {
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) !important;
    }
}
