/*
Theme Name: grano Child
Description: This is a child theme of grano, generated by Rdt WP.
Author: Road-Themes
Template: grano
Version: 2.0.0
*/

/* ==========================================================================
   Header Logo & Spacing Optimization
   ========================================================================== */

/* Reduce header vertical padding for a sleek, compact look */
.main-header-content {
    padding: 10px 0 !important;
}

.main-header-content > .row {
    align-items: center !important;
}

/* Logo sizing */
.custom-logo,
.custom-logo-link img,
#_desktop_logo_ img,
.header-logo img,
.col-logo img {
    max-height: 65px !important;
    width: auto !important;
    max-width: 140px !important;
    object-fit: contain !important;
    display: inline-block !important;
    vertical-align: middle !important;
}

/* Mobile logo sizing */
.custom-logo-mobile img,
#_mobile_logo_ img {
    max-height: 48px !important;
    width: auto !important;
    object-fit: contain !important;
}

/* Hamburger button next to logo */
.button-show-menu {
    border-color: #c80100 !important;
    color: #c80100 !important;
    border-radius: 6px !important;
}

.button-show-menu:hover,
.button-show-menu.open {
    background-color: #c80100 !important;
    color: #ffffff !important;
}

/* ==========================================================================
   FiboSearch Search Bar & Icon Alignment Fix
   ========================================================================== */

.dgwt-wcas-search-wrapp {
    max-width: 600px !important;
    margin: 0 auto !important;
}

/* Ensure placeholder text starts AFTER the search icon without any overlapping */
.dgwt-wcas-sf-wrapp input[type="search"].dgwt-wcas-search-input {
    border-radius: 25px !important;
    border: 2px solid #e0e0e0 !important;
    padding-left: 48px !important;
    padding-right: 20px !important;
    height: 44px !important;
    font-size: 14px !important;
    background-color: #f7f7f7 !important;
    transition: all 0.2s ease !important;
}

.dgwt-wcas-sf-wrapp input[type="search"].dgwt-wcas-search-input:focus {
    border-color: #c80100 !important;
    background-color: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(200, 1, 0, 0.15) !important;
}

/* Magnifier icon positioning */
.dgwt-wcas-style-pirx .dgwt-wcas-sf-wrapp button.dgwt-wcas-search-submit {
    left: 16px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    line-height: 1 !important;
    cursor: pointer !important;
    z-index: 2 !important;
}

.dgwt-wcas-style-pirx .dgwt-wcas-sf-wrapp button.dgwt-wcas-search-submit svg {
    display: block !important;
}

.dgwt-wcas-style-pirx .dgwt-wcas-sf-wrapp button.dgwt-wcas-search-submit svg path {
    fill: #555555 !important;
    transition: fill 0.2s ease !important;
}

.dgwt-wcas-search-focused .dgwt-wcas-style-pirx .dgwt-wcas-sf-wrapp button.dgwt-wcas-search-submit svg path {
    fill: #c80100 !important;
}

/* ==========================================================================
   Red Navigation Bar with All-White Menu Text
   ========================================================================== */

/* Header navbar solid brand red */
.top-menu.menu-background {
    background-color: #c80100 !important;
    background: #c80100 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12) !important;
}

/* All menu links: Pure White & Bold */
#_desktop_menu_ .primary-menu-wrapper ul.primary-menu > li > a {
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    letter-spacing: 0.5px !important;
    padding: 14px 16px !important;
    transition: all 0.2s ease-in-out !important;
    position: relative;
    opacity: 1 !important;
}

/* Dropdown arrow next to items (e.g. MEN) */
#_desktop_menu_ .primary-menu-wrapper ul.primary-menu > li > a:after,
#_desktop_menu_ .primary-menu-wrapper ul.primary-menu > li.menu-item-has-children > a:after {
    color: #ffffff !important;
}

/* Hover and active menu states */
#_desktop_menu_ .primary-menu-wrapper ul.primary-menu > li:hover > a,
#_desktop_menu_ .primary-menu-wrapper ul.primary-menu > li.current-menu-item > a,
#_desktop_menu_ .primary-menu-wrapper ul.primary-menu > li.current-menu-ancestor > a {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.18) !important;
    border-radius: 4px !important;
}

/* Dropdown sub-menu appearance */
#_desktop_menu_ .primary-menu-wrapper ul.primary-menu ul.sub-menu {
    background-color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15) !important;
    border-radius: 4px !important;
}

#_desktop_menu_ .primary-menu-wrapper ul.primary-menu ul.sub-menu li a {
    color: #222222 !important;
    font-weight: 500 !important;
    padding: 10px 20px !important;
}

#_desktop_menu_ .primary-menu-wrapper ul.primary-menu ul.sub-menu li:hover > a,
#_desktop_menu_ .primary-menu-wrapper ul.primary-menu ul.sub-menu li.current-menu-item > a {
    color: #c80100 !important;
    background-color: #f8f8f8 !important;
}

/* Contact Details ("Call Us") in Navbar - Pure White */
#_desktop_header_contact_ {
    color: #ffffff !important;
}

#_desktop_header_contact_ .header-contact .icon:before {
    color: #ffffff !important;
    font-size: 2.2rem !important;
}

#_desktop_header_contact_ .header-contact .content label {
    color: rgba(255, 255, 255, 0.85) !important;
}

#_desktop_header_contact_ .header-contact .content p {
    color: #ffffff !important;
    font-weight: 800 !important;
    letter-spacing: 0.3px !important;
}

/* ==========================================================================
   Header Action Icons & Badges
   ========================================================================== */

.col-header-icon a {
    color: #222222 !important;
    transition: color 0.2s ease !important;
}

.col-header-icon a:hover {
    color: #c80100 !important;
}

/* Cart & Wishlist count badges */
.header-cart .cart-count,
.header-wishlist .wishlist-count,
#_desktop_wishlist_ .count,
#_desktop_cart_ .count {
    background-color: #c80100 !important;
    color: #ffffff !important;
    font-weight: bold !important;
}

/* Primary buttons */
.button, 
button.button, 
input.button,
.woocommerce #respond input#submit, 
.woocommerce a.button, 
.woocommerce button.button, 
.woocommerce input.button {
    background-color: #c80100 !important;
    border-color: #c80100 !important;
    color: #ffffff !important;
}

.woocommerce a.button:hover, 
.woocommerce button.button:hover,
.button:hover {
    background-color: #a60000 !important;
    border-color: #a60000 !important;
}

.topbar-header {
    display: none !important;
}

/* ==========================================================================
   Modern Swiper Hero Slider (Fast, Touch Friendly, Aspect Ratio 1400/600)
   ========================================================================== */

.see-craft-hero-slider {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative !important;
    overflow: hidden !important;
}

.see-craft-hero-slider .elementor-widget-container,
.see-craft-hero-slider .elementor-image-carousel-wrapper,
.see-craft-hero-slider .elementor-image-carousel,
.see-craft-hero-slider .swiper,
.see-craft-hero-slider .swiper-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.see-craft-hero-slider .swiper-slide {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    margin: 0 !important;
}

.see-craft-hero-slider .swiper-slide a {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    cursor: pointer !important;
    margin: 0 !important;
    padding: 0 !important;
}

.see-craft-hero-slider .swiper-slide img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    margin: 0 auto !important;
    aspect-ratio: 1400 / 600 !important;
    object-fit: cover !important;
}

/* Modern Frosted-Glass Pill Pagination */
.see-craft-hero-slider .swiper-pagination-bullets,
.see-craft-hero-slider .elementor-swiper-pagination {
    position: absolute !important;
    bottom: 22px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 6px 14px !important;
    background: rgba(0, 0, 0, 0.3) !important;
    backdrop-filter: blur(6px) !important;
    -webkit-backdrop-filter: blur(6px) !important;
    border-radius: 30px !important;
    z-index: 10 !important;
}

.see-craft-hero-slider .swiper-pagination-bullet {
    width: 10px !important;
    height: 10px !important;
    border-radius: 5px !important;
    background: rgba(255, 255, 255, 0.7) !important;
    opacity: 1 !important;
    margin: 0 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    cursor: pointer !important;
    border: none !important;
    outline: none !important;
}

.see-craft-hero-slider .swiper-pagination-bullet:hover {
    background: #ffffff !important;
}

/* Active dot expands to sleek red pill */
.see-craft-hero-slider .swiper-pagination-bullet-active {
    width: 28px !important;
    background: #c80100 !important;
    box-shadow: 0 0 10px rgba(200, 1, 0, 0.7) !important;
}

/* Mobile Responsive Optimization */
@media (max-width: 767px) {
    .see-craft-hero-slider .swiper-pagination-bullets,
    .see-craft-hero-slider .elementor-swiper-pagination {
        bottom: 8px !important;
        padding: 4px 10px !important;
        gap: 5px !important;
        background: rgba(0, 0, 0, 0.35) !important;
    }

    .see-craft-hero-slider .swiper-pagination-bullet {
        width: 7px !important;
        height: 7px !important;
    }

    .see-craft-hero-slider .swiper-pagination-bullet-active {
        width: 18px !important;
    }

    .see-craft-hero-slider .swiper-slide img {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 1400 / 600 !important;
        object-fit: cover !important;
    }

    .elementor-element-987ee15 {
        margin-bottom: 15px !important;
    }
}

/* Hide empty Elementor sections to prevent blank gaps */
.elementor-section:empty,
.elementor-section.elementor-element-5e197a2 {
    display: none !important;
}

/* --- SEECRAFT NAVIGATION & MEGA MENU --- */

/* 1. Sleek Dark Navbar matching reference design */
.desktop-header .top-menu,
.desktop-header .top-menu.menu-background,
.desktop-header .top-menu.has-sticky {
    background: #141414 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12) !important;
}

/* 2. Menu Links - Clean, evenly spaced, no ugly box */
#_desktop_menu_ .primary-menu-wrapper ul.primary-menu > li {
    margin: 0 !important;
}

#_desktop_menu_ .primary-menu-wrapper ul.primary-menu > li > a {
    color: #ffffff !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    letter-spacing: 0.3px !important;
    padding: 13px 16px !important;
    transition: color 0.2s ease, opacity 0.2s ease !important;
    position: relative !important;
    opacity: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    text-transform: capitalize !important;
    background: transparent !important;
    border-radius: 0 !important;
}

/* Remove ugly active background box on Home or any current item */
#_desktop_menu_ .primary-menu-wrapper ul.primary-menu > li.current-menu-item > a,
#_desktop_menu_ .primary-menu-wrapper ul.primary-menu > li.current_page_item > a,
#_desktop_menu_ .primary-menu-wrapper ul.primary-menu > li.active > a,
#_desktop_menu_ .primary-menu-wrapper ul.primary-menu > li:hover > a {
    background: transparent !important;
    color: #ffffff !important;
    opacity: 1 !important;
}

#_desktop_menu_ .primary-menu-wrapper ul.primary-menu > li:not(.menu-item-sale):hover > a {
    color: #f1f5f9 !important;
    opacity: 0.85 !important;
}

/* 3. Dropdown Arrow / Chevron - Subtle modern ⌵ */
#_desktop_menu_ .primary-menu-wrapper ul.primary-menu > li.menu-item-has-children > a::after {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    border-right: 2px solid #ffffff;
    border-bottom: 2px solid #ffffff;
    transform: rotate(45deg);
    margin-top: -3px;
    margin-left: 3px;
    transition: transform 0.25s ease;
    opacity: 0.75;
}

#_desktop_menu_ .primary-menu-wrapper ul.primary-menu > li.menu-item-has-children:hover > a::after {
    transform: rotate(-135deg);
    margin-top: 3px;
}

/* Hide theme's default duplicate arrows */
#_desktop_menu_ .primary-menu-wrapper ul.primary-menu > li > a > .mm-has-children,
#_desktop_menu_ .primary-menu-wrapper ul.primary-menu > li > a > .navbar-toggler {
    display: none !important;
}

/* 4. Sale Item - Exactly as reference: Pure Red Text */
#_desktop_menu_ .primary-menu-wrapper ul.primary-menu > li.menu-item-sale > a {
    color: #ff3344 !important;
    background: transparent !important;
}

#_desktop_menu_ .primary-menu-wrapper ul.primary-menu > li.menu-item-sale > a .menu_title {
    color: #ff3344 !important;
    font-weight: 700 !important;
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    text-transform: capitalize !important;
    font-size: 14px !important;
    transition: color 0.2s ease !important;
}

#_desktop_menu_ .primary-menu-wrapper ul.primary-menu > li.menu-item-sale:hover > a .menu_title {
    color: #ff5252 !important;
    background: transparent !important;
}

/* 5. Contact Text on Right */
.desktop-header .header-contact .content p,
.desktop-header .header-contact i {
    color: #ffffff !important;
}

/* 6. Desktop Mega Menu Dropdown Container */
@media (min-width: 992px) {
    #_desktop_menu_ li.menu-backpacks > .flyout-submenu,
    #_desktop_menu_ li.menu-school-bags > .flyout-submenu {
        display: none !important;
    }

    #_desktop_menu_ li.menu-backpacks,
    #_desktop_menu_ li.menu-school-bags {
        position: relative !important;
    }

    .seecraft-mega-menu {
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        background: #ffffff !important;
        border-radius: 16px !important;
        box-shadow: 0 24px 54px -12px rgba(0, 0, 0, 0.2), 0 0 1px rgba(0, 0, 0, 0.1) !important;
        border: 1px solid rgba(0, 0, 0, 0.08) !important;
        padding: 24px 28px !important;
        opacity: 0 !important;
        visibility: hidden !important;
        transform: translateY(12px) !important;
        pointer-events: none !important;
        transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1), transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.28s !important;
        z-index: 99999 !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }

    .seecraft-mega-backpacks {
        width: 820px !important;
        max-width: 90vw !important;
    }

    .seecraft-mega-school-bags {
        width: 580px !important;
        max-width: 90vw !important;
    }

    #_desktop_menu_ li.menu-backpacks:hover > .seecraft-mega-menu,
    #_desktop_menu_ li.menu-school-bags:hover > .seecraft-mega-menu {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0) !important;
        pointer-events: auto !important;
        display: block !important;
    }

    .seecraft-mega-inner {
        width: 100% !important;
    }

    .seecraft-mega-header {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        margin-bottom: 18px !important;
        padding-bottom: 12px !important;
        border-bottom: 1px solid #edf2f7 !important;
    }

    .seecraft-mega-heading {
        font-size: 13px !important;
        font-weight: 700 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.8px !important;
        color: #64748b !important;
    }

    .seecraft-shop-all-header-link {
        font-size: 13px !important;
        font-weight: 600 !important;
        color: #d32f2f !important;
        text-decoration: none !important;
        transition: color 0.2s ease !important;
    }

    .seecraft-shop-all-header-link:hover {
        color: #b71c1c !important;
        text-decoration: underline !important;
    }

    .seecraft-mega-grid {
        display: grid !important;
        gap: 18px !important;
        width: 100% !important;
        max-width: 100% !important;
        flex: none !important;
        box-sizing: border-box !important;
    }

    .seecraft-grid-3 {
        grid-template-columns: repeat(3, 1fr) !important;
    }

    .seecraft-grid-2 {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .seecraft-card {
        display: flex !important;
        flex-direction: column !important;
        background: #ffffff !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 12px !important;
        overflow: hidden !important;
        text-decoration: none !important;
        transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .seecraft-card:hover {
        transform: translateY(-5px) !important;
        box-shadow: 0 12px 28px -6px rgba(0, 0, 0, 0.12), 0 0 1px rgba(0, 0, 0, 0.08) !important;
        border-color: #cbd5e1 !important;
    }

    .seecraft-card-img-wrap {
        height: 165px !important;
        background: #f8fafc !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        position: relative !important;
        overflow: hidden !important;
        padding: 12px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .seecraft-card-img-wrap img {
        max-height: 140px !important;
        width: auto !important;
        max-width: 100% !important;
        object-fit: contain !important;
        transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
    }

    .seecraft-card:hover .seecraft-card-img-wrap img {
        transform: scale(1.08) !important;
    }

    .seecraft-badge {
        position: absolute !important;
        top: 8px !important;
        left: 8px !important;
        background: rgba(15, 23, 42, 0.75) !important;
        color: #ffffff !important;
        font-size: 10px !important;
        font-weight: 600 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
        padding: 3px 8px !important;
        border-radius: 4px !important;
        backdrop-filter: blur(4px) !important;
        z-index: 2 !important;
    }

    .seecraft-card-body {
        padding: 14px 16px !important;
        background: #ffffff !important;
        border-top: 1px solid #f1f5f9 !important;
        text-align: left !important;
        flex-grow: 1 !important;
    }

    .seecraft-title {
        font-size: 14px !important;
        font-weight: 700 !important;
        color: #1e293b !important;
        margin: 0 0 4px 0 !important;
        transition: color 0.2s ease !important;
        line-height: 1.3 !important;
    }

    .seecraft-card:hover .seecraft-title {
        color: #d32f2f !important;
    }

    .seecraft-action {
        font-size: 12px !important;
        font-weight: 600 !important;
        color: #d32f2f !important;
        transition: transform 0.2s ease !important;
        display: inline-block !important;
    }

    .seecraft-card:hover .seecraft-action {
        transform: translateX(4px) !important;
    }

    .seecraft-mega-footer {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        margin-top: 20px !important;
        padding-top: 16px !important;
        border-top: 1px solid #edf2f7 !important;
        width: 100% !important;
    }

    .seecraft-footer-note {
        font-size: 12px !important;
        color: #64748b !important;
        font-weight: 500 !important;
    }

    .seecraft-shop-all-pill {
        display: inline-flex !important;
        align-items: center !important;
        gap: 8px !important;
        background: #d32f2f !important;
        color: #ffffff !important;
        font-size: 13px !important;
        font-weight: 600 !important;
        padding: 8px 20px !important;
        border-radius: 30px !important;
        text-decoration: none !important;
        transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease !important;
        box-shadow: 0 4px 14px rgba(211, 47, 47, 0.28) !important;
    }

    .seecraft-shop-all-pill:hover {
        background: #b71c1c !important;
        transform: translateX(3px) !important;
        box-shadow: 0 6px 18px rgba(211, 47, 47, 0.38) !important;
    }
}

/* 7. Mobile Menu Styling */
@media (max-width: 991px) {
    .seecraft-mega-menu {
        display: none !important;
    }
    
    #_mobile_menu_ .menu-item-sale > a {
        color: #ff3344 !important;
        font-weight: 700 !important;
    }
}


/* --- SEECRAFT BANNER TO CATEGORY SPACING FIX --- */
.elementor-section.elementor-element-987ee15 {
    margin-bottom: 0 !important;
}

.elementor-section.elementor-element-seecraft_cat_grid_sec {
    margin-top: 0 !important;
    margin-bottom: 10px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

#cc-seecraft-categories {
    --cc-pt: 10px !important;
    --cc-pb: 14px !important;
    --cc-heading-mb: 14px !important;
}

@media screen and (min-width: 750px) {
    #cc-seecraft-categories {
        --cc-pt: 12px !important;
        --cc-pb: 18px !important;
        --cc-heading-mb: 16px !important;
    }
    #cc-seecraft-categories .cc__inner {
        max-width: 97% !important;
        padding-left: 14px !important;
        padding-right: 14px !important;
    }
}

@media screen and (min-width: 1440px) {
    #cc-seecraft-categories .cc__inner {
        max-width: 1580px !important;
    }
}
