/* Kronotes - Custom CSS Overrides */

/* Global UI Adjustments */
.user-icon-wrapper {
    margin-right: 5px !important;
}

/* Global UI Adjustments */
.user-icon-wrapper {
    margin-right: 5px !important;
}

/* Hide native number input spinners globally */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
}
input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}



/* FOUC (Flash of Unstyled Content) Prevention */
#primary {
    animation: naylaFadeIn 0.6s ease-out forwards;
}

@keyframes naylaFadeIn {
    0% {
        opacity: 0;
    }

    50% {
        opacity: 0;
    }

    /* Hold hidden while JS builds DOM */
    100% {
        opacity: 1;
    }
}

/* Page content spacing after header */
.page-content {
    margin-top: 30px !important;
}

/* Back to Store link styling */
.text-h6 a {
    position: relative !important;
    z-index: 1 !important;
}

/* Adjusted Heading Sizes for Better Balance */
h1,
.text-h1 {
    font-size: 3rem !important;
    /* was 4rem+ originally, 3rem was the accepted fix */
}

h2,
.text-h2 {
    font-size: 2rem !important;
    /* was 2.5rem+ */
}

.md-title {
    font-size: 2rem !important;
}

.text-h3 {
    font-size: 1.75rem !important;
}

.text-h4 {
    font-size: 1.3rem !important;
}

.text-h5 {
    font-size: 1.1rem !important;
}

/* Page content spacing after header */
.page-content {
    margin-top: 30px !important;
}

/* Back to Store link styling */
.text-h6 a {
    position: relative !important;
    z-index: 1 !important;
}

/* Force Product Detail Buy Button to Always Top Layer and Never Clip Text */
#productDetails .nayla-button.fill,
#productContainer .nayla-button.fill {
    z-index: 999 !important;
    height: auto !important;
    min-height: 50px;
}

#productDetails .nayla-button.fill a,
#productContainer .nayla-button.fill a {
    white-space: normal !important;
    line-height: 1.4 !important;
    padding: 15px 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    height: auto !important;
    overflow: visible !important;
}



.text-h6 {
    font-size: 0.95rem !important;
    /* was 1.1rem+ */
}

/* Product name sizes */
.product-name {
    font-size: 1.3rem !important;
}

.product-price {
    font-size: 1.5rem !important;
}

/* Wider wrapper for more content space on product details only */
#productContainer .wrapper {
    max-width: 1400px !important;
    width: 90% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
}

/* Fix specific responsive wrapper issues on mobile/tablet */
@media (max-width: 900px) {
    /* Prevent subpage titles from overlapping with mobile header */
    body.subpage .page-content {
        padding-top: 70px !important;
    }

    /* Prevent homepage first section (Our Collection) from overlapping */
    .homepage-top-section {
        padding-top: 140px !important;
    }

    #productContainer .wrapper {
        width: 100% !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    /* Fix text-wrapper negative margins */
    .text-wrapper {
        padding-left: 20px !important;
        padding-right: 20px !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }

    .text-wrapper.align-center {
        margin-left: auto !important;
        margin-right: auto !important;
    }

    /* Ensure all grid columns stack full width to prevent squishing text on portrait tablets */
    [class*="c-col-"] {
        padding-left: 10px !important;
        padding-right: 10px !important;
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
        display: block !important;
    }

    /* Fix Footer visibility on mobile */
    .site-footer .hide-mobile,
    #footer .hide-mobile {
        display: block !important;
        margin-top: 25px;
        text-align: left !important;
    }

    .site-footer .hide-mobile ul.align-right {
        text-align: left !important;
    }

    .site-footer .hide-mobile p {
        text-align: left !important;
    }

    /* Center mobile header icons visually with the logo (unset margin hacks) */
    .mobile-actions {
        margin-top: 0 !important;
    }

    /* Force words to never break letter-by-letter aggressively on squished layouts */
    .has-anim-text,
    .md-title,
    .text-h2 {
        word-break: normal !important;
        overflow-wrap: normal !important;
    }
}

/* Reduce section spacing */
.section {
    padding: 60px 0 !important;
}

/* Mobile Menu Styles */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100dvh;
    background: #fff;
    z-index: 10001;
    transition: right 0.3s ease;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 999999 !important;
    /* Force highest z-index */
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    text-align: right;
}

.mobile-menu-close {
    font-size: 32px;
    color: #274433;
    cursor: pointer;
    line-height: 1;
}

.mobile-nav {
    padding: 20px;
}

.mobile-nav a {
    display: block;
    padding: 15px 0;
    color: #333;
    text-decoration: none;
    font-size: 16px;
    border-bottom: 1px solid #eee;
    transition: color 0.3s;
}

.mobile-nav a:hover {
    color: #274433;
}

.mobile-nav a.mobile-store-btn {
    margin-top: 20px;
    background: #274433;
    color: #fff;
    text-align: center;
    padding: 15px;
    border-radius: 4px;
    border-bottom: none;
    font-weight: 500;
}

.menu-overlay.active {
    display: block;
    z-index: 10000;
}

/* Mobile adjustments */
@media (max-width: 1024px) {

    h1,
    .text-h1 {
        font-size: 2.2rem !important;
    }

    h2,
    .text-h2 {
        font-size: 1.6rem !important;
    }

    .md-title {
        font-size: 1.5rem !important;
    }

    .section {
        padding: 40px 0 !important;
    }

    /* Hide desktop navigation on mobile */
    #site-navigation.classic {
        display: none !important;
    }

    /* Show menu toggle on mobile */
    .menu-toggle {
        display: block !important;
    }

    /* Mobile menu visibility */
    .hide-mobile {
        display: none !important;
    }

    /* Fix full-screen video cropping and pixelation */
    #animPin .nayla-video video.n-video {
        height: auto !important;
        width: 100% !important;
        object-fit: contain !important;
    }

    #animPin.section.fullscreen {
        height: auto !important;
        min-height: 50vh !important;
        display: flex;
        align-items: center;
        justify-content: center;
        padding-bottom: 50px !important;
    }
}

/* Desktop: hide menu toggle */
@media (min-width: 1025px) {
    .menu-toggle {
        display: none;
    }

    .hide-desktop {
        display: none !important;
    }

    .mobile-menu {
        display: none !important;
    }
}

/* --- GLOBAL IMAGE STANDARDIZATION --- */
/* Enforce strict resizing for all product contexts */
.product-card .single-image img,
.product-card>a>.single-image img,
.product-card img,
.cart-item img,
.related-product img,
.product-image-wrapper img,
.collection-item img {
    aspect-ratio: 3/4 !important;
    object-fit: cover !important;
    height: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
}

/* --- STORE GRID ALIGNMENT --- */
#productThumbnails {
    justify-content: center !important;
    display: flex !important;
    flex-wrap: wrap !important;
    margin: 0 auto !important;
    max-width: 1400px !important;
    width: 100% !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
}

/* Strip framework clearfixes that break flexbox centering on empty grids */
#productThumbnails::before,
#productThumbnails::after {
    display: none !important;
    content: none !important;
}

/* Prevent floating items from sticking to the left edge when grid is not full */
#productThumbnails>[class*="c-col-"] {
    float: none !important;
}

/* Ensure images are visible and sized correctly */
.product-card,
.product-item {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
}

.product-info {
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: 100% !important;
    max-height: none !important;
    height: auto !important;
    overflow: visible !important;
}

.single-image {
    width: 100% !important;
    position: relative !important;
    display: block !important;
    overflow: hidden !important;
}

/* Responsive Grid Adjustments */
@media (min-width: 1200px) {
    .c-col-4 {
        width: 33.33% !important;
        max-width: 33.33% !important;
        flex: 0 0 33.33% !important;
    }

    .c-col-3 {
        width: 25% !important;
        max-width: 25% !important;
        flex: 0 0 25% !important;
    }
}

/* --- HEADER FIXES --- */
/* Prevent menu items from wrapping */
.site-navigation .menu li {
    white-space: nowrap !important;
    margin: 0 15px !important;
    /* Increased spacing */
}

/* Fixed width for desktop STORE button to prevent text squishing */
.site-header .nayla-button.fill.button-sm {
    min-width: 90px !important;
    width: auto !important;
    flex-shrink: 0 !important;
    /* Prevent shrinking */
}

.site-header .nayla-button.fill.button-sm a {
    min-width: 70px !important;
    padding: 8px 20px !important;
    /* Add padding for better spacing */
    text-align: center !important;
    display: inline-block !important;
    white-space: nowrap !important;
    /* Prevent text wrapping */
    background-color: #274433 !important;
    color: #fff !important;
    border: none !important;
}

/* Reduce search input width to prevent collision with nav links */
#searchInput {
    width: 100px !important;
    /* Reduced from 140px */
    font-size: 12px !important;
}

/* Mobile Header Layout */
@media (max-width: 1024px) {
    .site-header {
        height: 70px !important;
        overflow: visible !important;
        background-color: #ffffff !important;
    }

    .site-header .header-wrapper {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 0 20px !important;
        height: 100% !important;
        position: relative !important;
        /* Enable absolute positioning for children */
    }

    /* Logo - Left */
    .site-header .site-branding {
        flex: 0 1 auto !important;
        width: auto !important;
        order: 1;
        min-width: 120px;
        /* Minimum width to prevent collapse */
        margin-right: auto !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        /* Explicitly align logo content */
        opacity: 1 !important;
        visibility: visible !important;
        z-index: 100 !important;
        height: 100% !important;
    }

    /* Force Logo Visibility based on Theme */
    body.light .site-header .dark-logo {
        display: block !important;
        width: 100% !important;
        height: auto !important;
    }

    body.light .site-header .light-logo {
        display: none !important;
    }

    body.dark .site-header .dark-logo {
        display: none !important;
    }

    body.dark .site-header .light-logo {
        display: block !important;
    }

    .site-header .site-branding img {
        max-width: 200px !important;
        /* Decreased width to prevent overlapping links on Android */
        max-height: 50px !important;
        /* Adjusted height */
        width: auto !important;
        height: auto !important;
        object-fit: contain;
        display: block !important;
    }

    /* Force Mobile Close Button Styles */
    .mobile-menu-close,
    .mobile-menu-close.material-icons {
        color: #274433 !important;
        opacity: 1 !important;
        z-index: 99999 !important;
        font-size: 32px !important;
        position: relative !important;
        display: inline-block !important;
        pointer-events: auto !important;
    }

    /* Left side wrapper (Logo container) */
    .site-header .c-col-4.sm-6 {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        width: auto !important;
        flex: 0 0 auto !important;
    }

    /* Right side wrapper (Icons container) */
    .site-header .c-col-5.sm-6,
    .site-header .c-col-3.sm-12 {
        display: flex !important;
        justify-content: flex-end !important;
        align-items: center !important;
        width: auto !important;
        flex: 1 1 auto !important;
    }

    /* Hide Search Input on Mobile */
    #searchInput,
    #searchResults {
        display: none !important;
    }

    /* Mobile Actions (Store/Cart) - Naturally spaced flex items */
    .mobile-actions {
        display: flex !important;
        align-items: center !important;
        gap: 15px !important;
        position: relative !important;
        right: auto !important;
        top: auto !important;
        transform: none !important;
        margin-right: 15px !important;
        z-index: 100 !important;
    }

    .mobile-actions a,
    .mobile-actions .cart-toggle {
        font-size: 14px !important;
        color: inherit !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        white-space: nowrap !important;
        line-height: 1 !important;
    }

    .menu-toggle {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 45px !important;
        height: 45px !important;
        position: relative !important;
        right: auto !important;
        top: auto !important;
        transform: none !important;
        z-index: 9999 !important;
        cursor: pointer !important;
        padding: 5px !important;
        background: transparent !important;
        border: none !important;
    }

    /* Ensure toggle lines don't block clicks and fit within 45px container */
    .menu-toggle .toggle-lines {
        width: 100% !important;
        margin-left: 0 !important;
        padding: 0 5px !important;
        pointer-events: none !important;
    }
    .menu-toggle .toggle-line {
        pointer-events: none !important;
    }

    /* Hide desktop nav AND desktop elements strictly */
    #site-navigation,
    .hide-mobile,
    [class*="c-col-"].hide-mobile {
        display: none !important;
    }
}

/* FIX: Unset max-width for collection page text wrappers to fill the column */
/* FIX: FORCE Unset max-width for collection page text wrappers to fill the column */

/* FIX: Prevent product details from clipping out of the window when text is long */
#productContainer,
#productContainer .wrapper,
#productContainer .c-col-5,
#productContainer .text-wrapper {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
}

#productContainer .c-col-5 {
    position: relative !important;
    /* Disabling sticky if any */
}

#productContainer .wrapper {
    align-items: flex-start !important;
    /* Prevents heights from matching if flex causes clip */
}

#productDetails .text-wrapper,
#productDetails .c-col-6 .text-wrapper,
div#productDetails .text-wrapper,
#productContainer .text-wrapper,
#productContainer .c-col-5 .text-wrapper {
    max-width: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

#productDetails .text-wrapper p,
#productDetails .text-wrapper h2,
#productContainer .text-wrapper p,
#productContainer .text-wrapper h2,
#productContainer p {
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* FIX: Ensure .align-center text containers are actually centered on the screen */
.text-wrapper.align-center {
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
    max-width: 800px;
    /* Keep readable max-width for centered text */
}

/* FIX: Balance info-boxes so the entire text group sits in the middle of grid columns */
.nayla-info-box {
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: 85% !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.nayla-info-box .info-box-content {
    max-width: 100% !important;
}

/* Link wrapping fix */
.site-navigation a {
    white-space: nowrap;
}

/* --- CART SIDEBAR STYLES (Keep existing) --- */
.cart-sidebar {
    position: fixed;
    right: -400px;
    top: 0;
    width: 400px;
    height: 100dvh;
    background: #fff;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 99999 !important;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

/* Ensure padding doesn't cause overflow */
.cart-sidebar * {
    box-sizing: border-box;
}

.cart-sidebar.active {
    right: 0;
}

.cart-sidebar-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-sidebar-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: #274433;
}

.close-cart {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #274433;
}

/* Global Cart List Classes */
.cart-items {
    padding: 20px;
    flex: 1;
    overflow-y: auto;
}

.cart-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    position: relative;
}

/* Fix Cart Button Interactability */
.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    z-index: 10;
}

.btn-minus,
.btn-plus,
.btn-delete {
    cursor: pointer !important;
    padding: 5px 10px;
    background: #f5f5f5;
    border-radius: 4px;
    user-select: none;
    pointer-events: auto !important;
}

.btn-delete {
    color: red;
    background: none;
}

#cartSidebar .cart-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
}

#cartSidebar .cart-item-details {
    flex: 1;
}

#cartSidebar .cart-item-details h4 {
    margin: 0 0 5px;
    font-size: 0.95rem;
}

#cartSidebar .cart-item-details .price {
    color: #274433;
    font-weight: 600;
}

.cart-sidebar-footer {
    padding: 20px;
    background: #f9f9f9;
    border-top: 1px solid #eee;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 1.1rem;
    font-weight: 600;
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99998 !important;
    display: none;
}

/* Fix Button Text Alignment */
.site-header .nayla-button,
.nayla-button a {
    display: inline-flex !important;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: auto !important;
}

.nayla-button a {
    padding-left: 2em !important;
    padding-right: 2em !important;
}

.cart-overlay.active {
    display: block;
}

@media (max-width: 768px) {
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
}

/* Animations for Cart Notification */
@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

/* FIX: Match Header Font Size to Homepage (0.9rem) */
#site-navigation .menu a {
    font-size: 0.9rem !important;
}

/* --- HYBRID FLUID HEADER PADDING FIX --- */
/* The template's style.css forces 25px padding on each list item. We override it here to prevent premature wrapping. */
@media (min-width: 901px) {

    /* Bypass rigid column percentages to maximize space */
    .site-header .header-wrapper {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        flex-wrap: wrap !important;
    }

    /* Left and Right columns only take the space they need */
    .site-header .header-wrapper>.c-col-3,
    .site-header .header-wrapper>.c-col-4 {
        width: auto !important;
        flex: 0 0 auto !important;
        max-width: none !important;
    }

    /* Center column takes all remaining available space to stretch the menu */
    .site-header .header-wrapper>.c-col-5 {
        width: auto !important;
        flex: 1 1 0% !important;
        min-width: 0 !important;
        max-width: none !important;
        display: flex !important;
        justify-content: center !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    #site-navigation {
        width: 100% !important;
    }

    #site-navigation .menu {
        display: flex !important;
        justify-content: center !important;
        flex-wrap: wrap !important;
    }

    .site-header #site-navigation.classic ul.main-menu>li {
        /* Fluid margins: small gap on tight screens, expands automatically on wide screens */
        margin: 0 clamp(4px, 1vw, 22px) !important;
        padding: 0 4px !important;
    }

    .site-header #site-navigation.classic ul.main-menu>li>a {
        padding-left: 0 !important;
        padding-right: 0 !important;
        display: inline-block !important;
        /* Font size inherits original typography setting */
    }

    /* Prevent branding from squishing down too far before the mobile breakpoint, eliminating the jump */
    .site-header .site-branding {
        min-width: 250px !important;
    }

    /* Subtle static logo reduction as requested ('bir tık küçülsün'), DO NOT cause responsive shrinking. */
    .site-header .site-branding img {
        transform: scale(0.92) !important;
        transform-origin: left center !important;
    }

    /* Cut down padding between Logo column and Menu column */
    .site-header .header-wrapper>.c-col-3 {
        padding-right: 15px !important;
    }

    /* Cut down padding between Menu column and Language/Action column */
    .site-header .header-wrapper>.c-col-4 {
        padding-left: 5px !important;
    }
}

/* Minimalist Order Tracking Timeline */
.kro-timeline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 600px;
    margin: 30px auto;
    position: relative;
    padding: 0 10px;
}

.kro-timeline::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    height: 1px;
    background: #e0e0e0;
    z-index: 1;
}

/* Animated Filled Line behind completed/active steps */
.kro-timeline::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    height: 1px;
    background: #274433;
    z-index: 1;
    width: var(--progress-width, 0%);
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
    transition-delay: 0.3s;
}

.kro-step {
    position: relative;
    z-index: 2;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #b0b0b0;
    flex: 1;
    opacity: 0;
    transform: translateY(10px);
    animation: kroSlideUp 0.5s forwards ease-out;
}

/* Staggered animation delays for steps */
.kro-step:nth-child(1) {
    animation-delay: 0.1s;
}

.kro-step:nth-child(2) {
    animation-delay: 0.2s;
}

.kro-step:nth-child(3) {
    animation-delay: 0.3s;
}

.kro-step:nth-child(4) {
    animation-delay: 0.4s;
}

.kro-step:nth-child(5) {
    animation-delay: 0.5s;
}

.kro-icon-box {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    border: 1px solid #e0e0e0;
    position: relative;
}

.kro-step.active,
.kro-step.completed {
    color: #274433;
}

.kro-step.active .kro-icon-box {
    background: #274433;
    color: #fff;
    border-color: #274433;
    box-shadow: 0 4px 12px rgba(39, 68, 51, 0.15);
}

/* Pulsing effect for the active state */
.kro-step.active .kro-icon-box::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    border: 1px solid #274433;
    animation: kroPulse 2s infinite cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
}

.kro-step.completed .kro-icon-box {
    background: #fff;
    color: #274433;
    border-color: #274433;
}

.kro-step .material-icons {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.kro-step.active .material-icons {
    transform: scale(1.1);
}

.kro-label {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

.kro-date {
    font-size: 9px;
    color: #999;
    margin-top: -4px;
}

/* Animations */
@keyframes kroSlideUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes kroPulse {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }

    50% {
        transform: scale(1.3);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 0;
    }
}

@media (max-width: 500px) {
    .kro-label {
        font-size: 9px;
        letter-spacing: 0;
    }

    .kro-icon-box {
        width: 32px;
        height: 32px;
    }

    .kro-step .material-icons {
        font-size: 16px;
    }

    .kro-timeline::before,
    .kro-timeline::after {
        top: 16px;
        left: 15px;
        right: 15px;
    }
}

/* ==========================================================
   CUSTOM MOBILE HEADER (COMPLETE OVERRIDE FOR <900px)
   ========================================================== */

/* Hide by default on Desktop */
.custom-mobile-header {
    display: none !important;
}

@media (max-width: 900px) {

    /* Hide the entire complicated desktop header architecture */
    .site-header .header-wrapper {
        display: none !important;
    }

    /* Show the new strictly-flexbox mobile header - Maximum Specificity */
    .site-header div.custom-mobile-header.hide-desktop,
    .site-header .custom-mobile-header,
    .custom-mobile-header {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 15px 20px !important;
        background-color: transparent !important;
        position: relative !important;
        z-index: 10000 !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }

    /* Left Side - Logo */
    .custom-mobile-left {
        display: flex !important;
        align-items: center !important;
        flex: 1 1 auto !important;
        /* Allow growing so search/hamburger don't squash it */
    }

    .custom-mobile-logo {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        flex-shrink: 1 !important; /* Allow shrinking if needed */
        width: auto !important;
        min-width: 0 !important; /* Removed fixed min-width to prevent overlap */
        max-width: 130px !important; /* Restrict max width */
    }

    .site-header .custom-mobile-header .custom-mobile-logo img,
    .site-header .custom-mobile-logo img,
    .custom-mobile-logo img {
        height: 35px !important;
        width: auto !important;
        max-width: 100% !important;
        object-fit: contain !important;
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        flex-shrink: 1 !important; /* Allow image to shrink */
        pointer-events: auto !important;
    }

    /* Light/Dark mode logo switching for custom header - High Specificity */
    .site-header.light .custom-mobile-header .custom-mobile-logo .dark-logo {
        display: none !important;
    }

    .site-header.light .custom-mobile-header .custom-mobile-logo .light-logo {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .site-header.dark .custom-mobile-header .custom-mobile-logo .dark-logo {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .site-header.dark .custom-mobile-header .custom-mobile-logo .light-logo {
        display: none !important;
    }

    /* Right Side - Actions & Hamburger */
    .custom-mobile-right {
        display: flex !important;
        align-items: center !important;
        gap: 15px !important;
        /* Perfect spacing between icons */
    }

    .custom-mobile-right > a,
    .custom-mobile-right > div {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        color: inherit !important;
        text-decoration: none !important;
        line-height: 1 !important;
    }

    .custom-mobile-store {
        font-size: 11px !important;
        font-weight: 600 !important;
        letter-spacing: 1px !important;
    }

    .custom-mobile-cart {
        position: relative !important;
        cursor: pointer !important;
    }

    .custom-mobile-hamburger {
        width: 35px !important;
        height: 35px !important;
        cursor: pointer !important;
        background: transparent !important;
        border: none !important;
        padding: 5px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }

    /* Override any Nayla theme overrides on the hamburger lines */
    .site-header .custom-mobile-hamburger .toggle-lines {
        width: 24px !important;
        height: 14px !important;
        position: relative !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        align-items: center !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .site-header .custom-mobile-hamburger .toggle-line {
        width: 100% !important;
        height: 2px !important;
        background-color: var(--mainColor, #274433) !important;
        transition: all 0.3s ease !important;
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
}

/* --- CRITICAL PRODUCT DETAIL FIXES (MARCH 2026 - REVISED) --- */
/* 1. Clearfix ONLY for the local wrapper so the grid doesn't collapse */
#productContainer .wrapper::after {
    content: "";
    display: table;
    clear: both;
}

/* 2. Remove overflow hiding and height limits ONLY on the text column */
#productContainer .c-col-5,
#productContainer .text-wrapper,
#productContainer .nayla-button.fill,
#productContainer .nayla-button.fill a {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
}

/* 3. Add explicit bottom padding so the button isn't flushed against the clip boundary */
#productContainer .text-wrapper {
    padding-bottom: 80px !important;
}

/* 4. Ensure button text wraps if needed instead of being cut */
#productContainer .nayla-button.fill a {
    white-space: normal !important;
    line-height: 1.4 !important;
    padding: 15px 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
}

/* 5. Fix mobile stacking */
@media (max-width: 900px) {
    #productContainer .wrapper {
        display: flex !important;
        flex-direction: column !important;
    }

    #productContainer .c-col-7,
    #productContainer .c-col-5 {
        width: 100% !important;
        float: none !important;
    }

    #galleryContainer {
        padding-right: 0 !important;
        margin-bottom: 30px !important;
    }
}

/* 6. Restore White Background (Overriding body.light grey) */
body.light #page {
    background-color: #ffffff !important;
}

/* --- OVERRIDE NAYLA CART PRODUCT LAYOUT --- */
.nayla-cart-product {
    display: flex !important;
    align-items: center;
    gap: 20px;
    width: 100% !important;
    padding: 20px 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    float: none !important;
}

.nayla-cart-product::after,
.nayla-cart-product::before {
    display: none !important;
}

.nayla-cart-product > div {
    float: none !important;
    width: auto !important;
    margin-bottom: 0 !important;
}

.nayla-cart-product .product-remove {
    flex: 0 0 30px;
    text-align: center;
}

.nayla-cart-product .product-image {
    flex: 0 0 80px;
}

.nayla-cart-product .product-image img {
    border-radius: 4px;
}

.nayla-cart-product .product-name {
    flex: 1;
    text-align: left !important;
}

.nayla-cart-product .product-name a {
    font-weight: 600;
    color: #274433;
    font-size: 1.1rem;
    text-decoration: none;
}

.nayla-cart-product .product-quantity {
    flex: 0 0 120px;
    text-align: center !important;
}

.nayla-cart-product .product-price {
    flex: 0 0 120px;
    text-align: right !important;
    font-weight: 600;
    color: #274433;
    font-size: 1.1rem;
}

/* Mobile Responsiveness for Cart Product */
@media (max-width: 768px) {
    .nayla-cart-product {
        flex-wrap: wrap;
        position: relative;
        align-items: flex-start;
        padding-top: 30px;
        gap: 15px;
    }
    
    .nayla-cart-product .product-remove {
        position: absolute;
        top: 30px;
        left: 0;
        text-align: left;
    }
    
    .nayla-cart-product .product-image {
        flex: 0 0 100px;
        margin-left: 25px;
    }
    
    .nayla-cart-product .product-image img {
        width: 100px !important;
        height: auto !important;
    }
    
    .nayla-cart-product .product-name {
        flex: 1;
        min-width: 120px;
    }
    
    .nayla-cart-product .product-quantity {
        flex: 1 1 100%;
        text-align: center !important;
        margin-top: 25px;
        margin-left: 0;
        display: flex;
        justify-content: center;
    }
    
    .nayla-cart-product .product-price {
        flex: 1 1 100%;
        text-align: center !important;
        margin-top: 15px;
        margin-left: 0;
        font-size: 1.4rem;
        padding-bottom: 20px;
        border-bottom: 1px solid #eee;
    }

    /* Cart Summary Layout Fix */
    .cart-totals {
        margin-top: 30px;
        width: 100% !important;
        float: none !important;
        min-width: unset !important;
    }
}
/* ==========================================================
   SMART USER DROPDOWN (HEADER)
   ========================================================== */
.user-dropdown-wrapper {
    position: relative;
    display: inline-block;
}

.user-dropdown-menu {
    position: absolute;
    top: 100%;
    right: -10px; /* Align slightly more to the right */
    width: 200px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999;
}

/* Show dropdown on hover */
.user-dropdown-wrapper:hover .user-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown-menu .dropdown-header {
    padding: 10px 20px;
    border-bottom: 1px solid #f5f5f5;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-dropdown-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: left;
}

.user-dropdown-menu ul li a {
    display: block;
    padding: 10px 20px;
    color: #555;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.user-dropdown-menu ul li a:hover {
    background: #f9f9f9;
    color: #274433;
}

/* Logged-in styling active state */
.user-icon-wrapper.is-logged-in .material-icons {
    color: #274433 !important;
}

/* FIX: Prevent scripts.js from permanently hiding dynamically loaded blog posts */
.is-post-page #page,
.is-post-page main,
.is-post-page .post-container {
    height: auto !important;
    overflow: visible !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

.is-post-page #primary {
    opacity: 1 !important;
    pointer-events: auto !important;
}
