/*
Theme Name: SpooHubs Complete
Author: SpooHubs
Description: Complete mobile-first WooCommerce theme with automatically connected shopping buttons.
Version: 2.1.0
Text Domain: spoohubs
*/

/* =========================================================
   ROOT / RESET
   ========================================================= */

:root{
    --b:#1283f4;
    --bd:#e7edf5;
    --ink:#101828;
    --muted:#667085;
    --bg:#f6f9fd;
    --r:18px;
    --shadow:0 8px 28px rgba(16,24,40,.07);
}

*,
*::before,
*::after{
    box-sizing:border-box;
}

html,
body{
    width:100%;
    max-width:100%;
    margin:0;
    padding:0;
}

body{
    color:var(--ink);
    font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;
    background:#fff;
}

a{
    text-decoration:none;
    color:inherit;
}

img{
    max-width:100%;
    height:auto;
}


/* =========================================================
   GLOBAL CONTAINER
   ========================================================= */

.wrap{
    width:min(1200px,calc(100% - 28px));
    margin-left:auto;
    margin-right:auto;
}


/* =========================================================
   TOP BAR
   ========================================================= */

.top{
    width:100%;
    background:#eaf6ff;
    color:#075fc8;
    text-align:center;
    padding:8px;
    font-size:12px;
    font-weight:800;
}


/* =========================================================
   HEADER
   ========================================================= */

.header{
    position:sticky;
    top:0;
    z-index:99;
    width:100%;
    background:rgba(255,255,255,.96);
    backdrop-filter:blur(12px);
    border-bottom:1px solid var(--bd);
}

.head{
    min-height:68px;
    display:flex;
    align-items:center;
    gap:16px;
}

.logo{
    font-size:25px;
    font-weight:950;
    color:var(--b);
    letter-spacing:-1.5px;
    white-space:nowrap;
}

.logo span{
    color:var(--ink);
}

.search{
    flex:1;
    min-width:0;
    display:flex;
    background:#f5f8fc;
    border:1px solid var(--bd);
    border-radius:13px;
    overflow:hidden;
}

.search input{
    flex:1;
    min-width:0;
    border:0;
    outline:0;
    background:transparent;
    padding:13px;
}

.search button{
    flex:0 0 52px;
    border:0;
    background:var(--b);
    color:#fff;
    width:52px;
    font-size:19px;
}

.actions{
    display:flex;
    gap:5px;
    flex-shrink:0;
}

.action{
    padding:10px;
    border-radius:12px;
    font-weight:800;
    font-size:13px;
}

.action:hover{
    background:#f2f7ff;
}


/* =========================================================
   NAVIGATION
   ========================================================= */

.nav{
    width:100%;
    border-top:1px solid #f1f4f8;
}

.navin{
    display:flex;
    gap:25px;
    overflow:auto;
    white-space:nowrap;
    padding:10px 0;
    font-size:13px;
    font-weight:800;
}


/* =========================================================
   HERO
   ========================================================= */

.hero{
    margin:22px 0;
    border-radius:24px;
    background:linear-gradient(115deg,#eaf7ff,#cfeaff);
    overflow:hidden;
}

.hero-in{
    min-height:400px;
    padding:48px;
    display:grid;
    grid-template-columns:1fr 1fr;
    align-items:center;
}

.pill{
    display:inline-block;
    background:#fff;
    color:#0869d8;
    border-radius:99px;
    padding:7px 12px;
    font-size:12px;
    font-weight:900;
}

.hero h1{
    font-size:clamp(38px,5vw,62px);
    line-height:1;
    letter-spacing:-3px;
    margin:18px 0 14px;
}

.hero h1 b{
    color:var(--b);
}

.hero p{
    color:#526071;
    max-width:550px;
}

.buttons{
    display:flex;
    gap:10px;
    margin-top:23px;
}

.btn{
    display:inline-flex;
    justify-content:center;
    align-items:center;
    padding:12px 18px;
    border-radius:12px;
    font-weight:900;
    border:1px solid var(--bd);
    background:#fff;
}

.primary{
    background:var(--b);
    color:#fff;
    border-color:var(--b);
}

.hero-art{
    min-height:290px;
    border-radius:22px;
    background:
        radial-gradient(circle,#fff 0 15%,transparent 16%),
        linear-gradient(135deg,#9bd8ff,#effaff);
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:105px;
}


/* =========================================================
   SECTIONS
   ========================================================= */

.section{
    padding:18px 0 30px;
}

.section-head{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:15px;
}

.section h2{
    font-size:24px;
    margin:0;
    letter-spacing:-.6px;
}

.more{
    color:var(--b);
    font-weight:900;
    font-size:13px;
}


/* =========================================================
   CATEGORIES
   ========================================================= */

.cats{
    display:grid;
    grid-template-columns:repeat(8,minmax(0,1fr));
    gap:11px;
}

.cat{
    border:1px solid var(--bd);
    border-radius:16px;
    padding:13px 7px;
    text-align:center;
    font-size:12px;
    font-weight:900;
    background:#fff;
    box-shadow:0 3px 12px rgba(16,24,40,.03);
}

.cat i{
    font-style:normal;
    display:flex;
    align-items:center;
    justify-content:center;
    width:55px;
    height:55px;
    margin:0 auto 8px;
    border-radius:15px;
    background:#edf7ff;
    font-size:26px;
}


/* =========================================================
   DEALS
   ========================================================= */

.deals{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:13px;
}

.deal{
    padding:20px;
    border-radius:18px;
    font-weight:900;
    min-height:115px;
}

.deal small{
    display:block;
    color:#536273;
    margin-top:6px;
}

.deal:nth-child(1){
    background:#eaf9e8;
}

.deal:nth-child(2){
    background:#fff4d8;
}

.deal:nth-child(3){
    background:#e9f1ff;
}


/* =========================================================
   CUSTOM SPOO HUBS PRODUCT GRID
   ========================================================= */

.products{
    width:100%;
    max-width:100%;
    display:grid;
    grid-template-columns:repeat(5,minmax(0,1fr));
    gap:13px;
}

.sp-product{
    width:100%;
    min-width:0;
    max-width:none;
    border:1px solid var(--bd);
    border-radius:18px;
    padding:10px;
    background:#fff;
    transition:.2s;
    position:relative;
    overflow:hidden;
}

.sp-product:hover{
    transform:translateY(-3px);
    box-shadow:var(--shadow);
}

.sp-product img{
    display:block;
    width:100%;
    max-width:100%;
    aspect-ratio:1 / 1;
    object-fit:contain;
    border-radius:13px;
    background:#f8fafc;
}

.sp-product h2,
.sp-product h3{
    width:100%;
    font-size:14px;
    line-height:1.3;
    margin:9px 2px 5px;
}

.rating{
    font-size:11px;
    margin:5px 2px;
    color:#805f00;
}

.price{
    font-weight:950;
}

.old{
    text-decoration:line-through;
    color:#98a2b3;
    font-size:12px;
    margin-left:4px;
    font-weight:500;
}

.sp-product .button{
    display:block !important;
    text-align:center !important;
    width:100% !important;
    max-width:100% !important;
    background:var(--b) !important;
    color:#fff !important;
    border:0 !important;
    border-radius:10px !important;
    padding:10px !important;
    margin-top:9px !important;
    font-weight:900 !important;
}

.spoo-saving-text{
    display:block;
    width:100%;
    margin-top:5px;
    font-size:12px;
    font-weight:800;
}


/* =========================================================
   WHY SPOO HUBS
   ========================================================= */

.why{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:12px;
}

.why div{
    border:1px solid var(--bd);
    border-radius:16px;
    padding:18px;
}

.why strong{
    display:block;
    margin:7px 0;
}

.why span{
    font-size:12px;
    color:var(--muted);
}


/* =========================================================
   FOOTER
   ========================================================= */

.footer{
    width:100%;
    margin-top:35px;
    background:#0c1726;
    color:#c9d6e4;
}

.foot{
    display:grid;
    grid-template-columns:1.5fr 1fr 1fr 1fr;
    gap:28px;
    padding:42px 0;
}

.foot h3{
    color:#fff;
    margin-top:0;
}

.foot a{
    display:block;
    color:#b5c4d5;
    font-size:13px;
    margin:8px 0;
}

.copy{
    border-top:1px solid rgba(255,255,255,.1);
    padding:15px 0;
    font-size:12px;
}


/* =========================================================
   MOBILE BOTTOM NAV
   ========================================================= */

.bottom{
    display:none;
}


/* =========================================================
   WOOCOMMERCE — COMPLETE WIDTH FIX
   ========================================================= */

/*
   IMPORTANT:
   header.php already opens <main>
   footer.php already closes </main>
*/


.spoo-wc-main{
    display:block;
    width:100%;
    max-width:none;
    min-width:0;
    margin:0;
    padding:0;
}

.spoo-wc-container{
    display:block;
    width:100%;
    max-width:1500px;
    min-width:0;
    margin:0 auto;
    padding:18px 20px 30px;
}

.spoo-wc-container .woocommerce{
    display:block;
    width:100%;
    max-width:none;
    min-width:0;
    margin:0;
    padding:0;
}


/* =========================================================
   WOOCOMMERCE SHOP / CATEGORY PRODUCT GRID
   ========================================================= */

.woocommerce ul.products{
    display:grid !important;

    width:100% !important;
    max-width:none !important;
    min-width:0 !important;

    grid-template-columns:repeat(5,minmax(0,1fr)) !important;

    gap:13px !important;

    margin:0 !important;
    padding:0 !important;

    float:none !important;

    box-sizing:border-box !important;
}


/* Individual WooCommerce product */

.woocommerce ul.products li.product{
    display:block !important;

    width:100% !important;
    max-width:none !important;
    min-width:0 !important;

    margin:0 !important;
    padding:10px !important;

    float:none !important;

    position:relative;

    box-sizing:border-box !important;
}


/* =========================================================
   THE IMPORTANT PART:
   WOOCOMMERCE LOOP LINK MUST BE INSIDE THE CARD
   AND MUST OCCUPY FULL CARD WIDTH
   ========================================================= */

.woocommerce ul.products li.product > a.woocommerce-LoopProduct-link,
.woocommerce ul.products li.product > a.woocommerce-loop-product__link{
    display:block !important;

    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;

    margin:0 !important;
    padding:0 !important;

    float:none !important;

    box-sizing:border-box !important;
}


/* Product image */

.woocommerce ul.products li.product > a.woocommerce-LoopProduct-link img,
.woocommerce ul.products li.product > a.woocommerce-loop-product__link img{
    display:block !important;

    width:100% !important;
    max-width:100% !important;

    height:auto !important;

    aspect-ratio:1 / 1 !important;

    object-fit:contain !important;

    margin:0 0 8px 0 !important;

    box-sizing:border-box !important;
}


/* Product title */

.woocommerce ul.products li.product > a.woocommerce-LoopProduct-link h2,
.woocommerce ul.products li.product > a.woocommerce-LoopProduct-link h3,
.woocommerce ul.products li.product > a.woocommerce-loop-product__link h2,
.woocommerce ul.products li.product > a.woocommerce-loop-product__link h3{
    display:block !important;

    width:100% !important;
    max-width:100% !important;

    margin:9px 0 5px !important;

    line-height:1.3;

    box-sizing:border-box !important;
}


/* Rating */

.woocommerce ul.products li.product .rating{
    display:block !important;
    width:100% !important;
}


/* Price */

.woocommerce ul.products li.product .price{
    display:block !important;
    width:100% !important;
}


/* Saving text */

.woocommerce ul.products li.product .spoo-saving-text{
    display:block !important;
    width:100% !important;
}


/* Add to cart */

.woocommerce ul.products li.product > .button,
.woocommerce ul.products li.product > a.button{
    display:block !important;

    width:100% !important;
    max-width:100% !important;

    margin:9px 0 0 !important;

    box-sizing:border-box !important;
}


/* =========================================================
   REMOVE OLD WOOCOMMERCE FLOAT BEHAVIOUR
   ========================================================= */

.woocommerce ul.products::before,
.woocommerce ul.products::after{
    display:none !important;
    content:none !important;
}

.woocommerce ul.products li.product::before,
.woocommerce ul.products li.product::after{
    display:none !important;
    content:none !important;
}


/* =========================================================
   WOOCOMMERCE CONTENT AREA
   ========================================================= */

.spoo-wc-container .woocommerce-result-count{
    margin-top:0;
}

.spoo-wc-container .woocommerce-ordering{
    margin-bottom:20px;
}


/* =========================================================
   SINGLE PRODUCT PAGE
   ========================================================= */

.spoo-wc-container div.product{
    display:block;

    width:100% !important;
    max-width:none !important;
    min-width:0;

    margin:0 !important;
    padding:0 !important;

    box-sizing:border-box;
}


/* Single product columns */

.spoo-wc-container div.product div.images,
.spoo-wc-container div.product div.summary{
    box-sizing:border-box;
}


/*
   Desktop single product:
   image and information side-by-side
*/

@media (min-width:768px){

    .spoo-wc-container div.product div.images{
        width:48% !important;
        max-width:none !important;
        margin-right:4% !important;
        float:left !important;
    }

    .spoo-wc-container div.product div.summary{
        width:48% !important;
        max-width:none !important;
        margin-right:0 !important;
        float:right !important;
    }

    .spoo-wc-container div.product::after{
        content:"";
        display:table;
        clear:both;
    }

}


/* =========================================================
   WOOCOMMERCE NOTICES
   ========================================================= */

.woocommerce-message,
.woocommerce-info,
.woocommerce-error{
    border-radius:12px;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width:1024px){

    .spoo-wc-container{
        width:100%;
        max-width:100%;
        padding-left:14px;
        padding-right:14px;
    }

    .woocommerce ul.products{
        grid-template-columns:repeat(3,minmax(0,1fr)) !important;
    }

}


/* =========================================================
   GENERAL 900PX
   ========================================================= */

@media (max-width:900px){

    .cats{
        grid-template-columns:repeat(4,minmax(0,1fr));
    }

    .products{
        grid-template-columns:repeat(3,minmax(0,1fr));
    }

    .woocommerce ul.products{
        grid-template-columns:repeat(3,minmax(0,1fr)) !important;
    }

    .why{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

    .foot{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width:640px){

    html,
    body{
        width:100%;
        max-width:100%;
        overflow-x:hidden;
    }

    body{
        padding-bottom:64px;
    }

    .wrap{
        width:calc(100% - 16px);
        max-width:none;
    }

    .head{
        min-height:58px;
        flex-wrap:wrap;
        padding:7px 0;
        gap:7px;
    }

    .logo{
        font-size:21px;
    }

    .search{
        order:3;
        flex-basis:100%;
        height:42px;
    }

    .action.hide{
        display:none;
    }

    .nav{
        display:none;
    }

    .hero{
        margin-top:12px;
        border-radius:18px;
    }

    .hero-in{
        grid-template-columns:1fr;
        padding:27px 19px;
    }

    .hero h1{
        font-size:38px;
        letter-spacing:-2px;
    }

    .hero-art{
        min-height:175px;
        margin-top:18px;
        font-size:70px;
    }

    .cats{
        grid-template-columns:repeat(4,minmax(0,1fr));
        gap:7px;
    }

    .cat{
        padding:9px 3px;
    }

    .cat i{
        width:44px;
        height:44px;
        font-size:20px;
    }

    .deals{
        grid-template-columns:1fr;
    }

    .products{
        grid-template-columns:repeat(2,minmax(0,1fr));
        gap:8px;
    }

    .woocommerce ul.products{
        width:100% !important;
        grid-template-columns:repeat(2,minmax(0,1fr)) !important;
        gap:8px !important;
    }

    .woocommerce ul.products li.product{
        width:100% !important;
        padding:8px !important;
        border-radius:14px;
    }

    .sp-product{
        padding:8px;
        border-radius:14px;
    }

    .sp-product h2,
    .sp-product h3{
        font-size:12px;
    }

    .why{
        grid-template-columns:1fr 1fr;
    }

    .foot{
        grid-template-columns:1fr 1fr;
        gap:17px;
        padding:30px 0;
    }

    .bottom{
        display:flex;
        position:fixed;
        z-index:100;
        bottom:0;
        left:0;
        right:0;
        width:100%;
        height:63px;
        background:#fff;
        border-top:1px solid var(--bd);
        justify-content:space-around;
        align-items:center;
    }

    .bottom a{
        text-align:center;
        font-size:10px;
        font-weight:900;
    }

    .bottom b{
        display:block;
        font-size:19px;
    }

    /* Single product mobile */

    .spoo-wc-container div.product div.images,
    .spoo-wc-container div.product div.summary{
        width:100% !important;
        max-width:100% !important;
        float:none !important;
        margin:0 0 25px 0 !important;
    }

}


/* =========================================================
   EXTRA SAFETY — PREVENT WIDTH COLLAPSE
   ========================================================= */

.spoo-wc-container *,
.spoo-wc-container *::before,
.spoo-wc-container *::after{
    max-width:100%;
}

.spoo-wc-container ul.products,
.spoo-wc-container ul.products li.product,
.spoo-wc-container ul.products li.product > a{
    min-width:0 !important;
}
/* FINAL SPOO HUBS DEALS GRID FIX */

#spoo-real-deals{
    display:grid !important;
    grid-template-columns:repeat(5,minmax(0,1fr)) !important;
    width:100% !important;
    max-width:100% !important;
    margin:0 !important;
    padding:0 !important;
    gap:13px !important;
}

#spoo-real-deals > li.product{
    display:block !important;
    width:100% !important;
    max-width:none !important;
    min-width:0 !important;
    margin:0 !important;
    padding:10px !important;
    float:none !important;
}

#spoo-real-deals > li.product > a.woocommerce-LoopProduct-link{
    display:block !important;
    width:100% !important;
}

#spoo-real-deals > li.product > a.woocommerce-LoopProduct-link img{
    display:block !important;
    width:100% !important;
    height:auto !important;
    margin:0 0 8px !important;
}

@media(max-width:900px){
    #spoo-real-deals{
        grid-template-columns:repeat(3,minmax(0,1fr)) !important;
    }
}

@media(max-width:640px){
    #spoo-real-deals{
        grid-template-columns:repeat(2,minmax(0,1fr)) !important;
        gap:8px !important;
    }
}

/* =========================================================
   SPOO HUBS — REMOVE WOOCOMMERCE EMPTY GRID CARD
   FIXES ALL SHOP / CATEGORY / DEALS PAGES
   ========================================================= */

.woocommerce ul.products::before,
.woocommerce ul.products::after,
ul.products::before,
ul.products::after {
    content: none !important;
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

/* OUT OF STOCK — RUBBER STAMP OVER PRODUCT IMAGE */
.spoo-product-image-wrap{
    position:relative;
    display:block;
    line-height:0;
    overflow:hidden;
    border-radius:inherit;
}
.spoo-product-image-wrap img{
    display:block;
    width:100%;
}
.spoo-out-of-stock-badge{
    position:absolute;
    left:50%;
    top:50%;
    z-index:5;
    display:flex;
    align-items:center;
    justify-content:center;
    width:76%;
    min-width:150px;
    height:52px;
    padding:0 12px;
    border:4px solid #c51616;
    border-radius:10px;
    background:rgba(255,255,255,.94);
    color:#c51616;
    font-family:Arial,Helvetica,sans-serif;
    font-size:clamp(15px,2vw,21px);
    font-weight:1000;
    letter-spacing:1.5px;
    line-height:1;
    text-align:center;
    text-transform:uppercase;
    white-space:nowrap;
    box-shadow:0 1px 0 rgba(197,22,22,.25),0 4px 10px rgba(0,0,0,.12);
    transform:translate(-50%,-50%) rotate(-13deg);
}
.spoo-out-of-stock-badge::before{
    content:"";
    position:absolute;
    inset:5px;
    border:2px dashed rgba(197,22,22,.75);
    border-radius:6px;
    pointer-events:none;
}
.spoo-out-of-stock-badge::after{
    content:"";
    position:absolute;
    inset:-4px;
    border:2px solid rgba(197,22,22,.45);
    border-radius:12px;
    transform:rotate(1deg);
    pointer-events:none;
}
.spoo-product-image-wrap::after{
    content:"";
    position:absolute;
    inset:0;
    background:rgba(255,255,255,.16);
    z-index:2;
    pointer-events:none;
}
@media(max-width:640px){
    .spoo-out-of-stock-badge{
        min-width:0;
        width:82%;
        height:44px;
        border-width:3px;
        font-size:14px;
        letter-spacing:1px;
    }
}