/*
Theme Name: Indotex Shoes Marketplace
Theme URI: https://solsepatu.my.id
Author: Akub Saputra
Author URI: https://wa.me/6283120410474
Description: Premium WooCommerce Marketplace Shoes Theme
Version: 3.0
Text Domain: indotex-shoes
*/

*{
margin:0;
padding:0;
box-sizing:border-box;
}

html{
scroll-behavior:smooth;
}

body{
font-family:'Poppins',sans-serif;
background:#f5f5f5;
color:#222;
overflow-x:hidden;
line-height:1.6;
}

a{
text-decoration:none;
transition:.3s;
}

ul{
list-style:none;
}

img{
max-width:100%;
height:auto;
display:block;
}

.container{
width:95%;
max-width:1350px;
margin:auto;
}

/* =========================
TOPBAR
========================= */

.topbar{
background:#111;
padding:8px 0;
font-size:13px;
}

.topbar-flex{
display:flex;
justify-content:space-between;
align-items:center;
flex-wrap:wrap;
gap:10px;
}

.topbar a{
color:#fff;
margin-right:18px;
font-weight:500;
}

.topbar a:hover{
color:#ffccbc;
}

/* =========================
HEADER
========================= */

.main-header{
background:#ff5722;
padding:12px 0;
position:sticky;
top:0;
z-index:999;
box-shadow:0 2px 10px rgba(0,0,0,.08);
}

.header-flex{
display:flex;
align-items:center;
justify-content:space-between;
gap:20px;
flex-wrap:nowrap;
}

/* LOGO */

.logo{
max-width:260px;
flex-shrink:0;
display:flex;
align-items:center;
}

.logo img{
max-height:70px;
width:auto;
object-fit:contain;
display:block;
}

.logo h1{
font-size:30px;
font-weight:800;
color:#fff;
white-space:nowrap;
line-height:1;
}

/* SEARCH */

.search-box{
flex:1;
max-width:650px;
}

.search-box form{
display:flex;
align-items:center;
background:#fff;
border-radius:6px;
overflow:hidden;
height:48px;
}

.search-box input{
flex:1;
height:48px;
padding:0 18px;
border:none;
outline:none;
font-size:15px;
background:#fff;
}

.search-box button{
width:60px;
height:48px;
background:#111;
color:#fff;
border:none;
cursor:pointer;
font-size:18px;
}

/* ICONS */

.header-icons{
display:flex;
align-items:center;
gap:18px;
flex-shrink:0;
}

.header-icons a{
color:#fff;
font-size:22px;
position:relative;
}

.header-icons a:hover{
transform:translateY(-2px);
}

.cart-count{
position:absolute;
top:-8px;
right:-10px;
width:18px;
height:18px;
border-radius:50%;
background:#fff;
color:#ff5722;
font-size:11px;
display:flex;
align-items:center;
justify-content:center;
font-weight:700;
}

/* =========================
CATEGORY MENU
========================= */

.category-menu{
background:#fff;
border-bottom:1px solid #eee;
}

.main-menu{
display:flex;
align-items:center;
justify-content:center;
flex-wrap:wrap;
gap:35px;
padding:14px 0;
}

.main-menu li{
position:relative;
}

.main-menu li a{
font-size:15px;
font-weight:600;
color:#222;
text-transform:uppercase;
}

.main-menu li a:hover{
color:#ff5722;
}

/* =========================
HERO
========================= */

.hero-banner{
background:linear-gradient(135deg,#ff5722,#ff784e);
padding:70px 20px;
text-align:center;
color:#fff;
}

.hero-banner h1{
font-size:58px;
font-weight:800;
margin-bottom:15px;
line-height:1.1;
}

.hero-banner p{
font-size:18px;
margin-bottom:30px;
}

.hero-buttons{
display:flex;
justify-content:center;
gap:15px;
flex-wrap:wrap;
}

.shop-btn{
display:inline-block;
background:#111;
color:#fff;
padding:14px 35px;
border-radius:50px;
font-weight:700;
font-size:15px;
}

.shop-btn:hover{
background:#fff;
color:#111;
}

/* =========================
SECTION
========================= */

.products-section,
.category-section,
.flash-sale{
padding:50px 0;
}

.section-title{
font-size:42px;
font-weight:800;
margin-bottom:35px;
color:#222;
}

/* =========================
CATEGORY GRID
========================= */

.category-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
gap:25px;
}

.category-card{
background:#fff;
padding:30px 20px;
border-radius:16px;
text-align:center;
transition:.3s;
border:1px solid #eee;
}

.category-card:hover{
transform:translateY(-5px);
box-shadow:0 15px 30px rgba(0,0,0,.08);
}

.category-card img{
width:70px;
height:70px;
object-fit:contain;
margin:auto;
margin-bottom:15px;
}

.category-card h3{
font-size:22px;
font-weight:700;
color:#111;
}

/* =========================
PRODUCT GRID
========================= */

.product-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
gap:28px;
}

/* =========================
PRODUCT CARD
========================= */

.product-card{
background:#fff;
border-radius:16px;
overflow:hidden;
transition:.3s;
position:relative;
border:1px solid #eee;
}

.product-card:hover{
transform:translateY(-6px);
box-shadow:0 18px 35px rgba(0,0,0,.1);
}

.product-image{
overflow:hidden;
background:#fff;
}

.product-image img{
width:100%;
height:260px;
object-fit:cover;
transition:.4s;
}

.product-card:hover img{
transform:scale(1.05);
}

/* DISCOUNT */

.discount{
position:absolute;
top:12px;
left:12px;
background:red;
color:#fff;
padding:6px 10px;
font-size:12px;
font-weight:700;
border-radius:6px;
z-index:5;
}

/* PRODUCT INFO */

.product-info{
padding:18px;
}

.product-title{
font-size:16px;
font-weight:600;
line-height:1.5;
margin-bottom:10px;
height:50px;
overflow:hidden;
}

.product-title a{
color:#222;
}

.product-title a:hover{
color:#ff5722;
}

.price{
font-size:24px;
font-weight:800;
color:#ff5722;
margin-bottom:10px;
}

.rating{
font-size:14px;
margin-bottom:10px;
color:#ffb400;
}

.shipping{
font-size:13px;
font-weight:600;
color:#00a859;
margin-bottom:15px;
}

/* BUTTON */

.buy-btn,
.buy-wa{
display:block;
width:100%;
padding:12px;
border-radius:8px;
text-align:center;
font-weight:700;
font-size:14px;
margin-top:10px;
}

.buy-btn{
background:#ff5722;
color:#fff;
}

.buy-btn:hover{
background:#111;
}

.buy-wa{
background:#25D366;
color:#fff;
}

.buy-wa:hover{
background:#128C7E;
}

/* =========================
SHOP LAYOUT
========================= */

.shop-layout{
display:grid;
grid-template-columns:280px 1fr;
gap:30px;
padding:50px 0;
}

.shop-sidebar{
background:#fff;
padding:25px;
border-radius:16px;
height:max-content;
border:1px solid #eee;
}

.shop-sidebar h3{
font-size:22px;
margin-bottom:20px;
}

.shop-sidebar ul li{
margin-bottom:12px;
}

.shop-sidebar ul li a{
color:#444;
font-weight:500;
}

.shop-sidebar ul li a:hover{
color:#ff5722;
}

/* =========================
FOOTER
========================= */

.footer{
background:#fff;
padding:70px 0 30px;
margin-top:70px;
border-top:1px solid #eee;
}

.footer-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
gap:40px;
}

.footer h4{
font-size:20px;
margin-bottom:20px;
color:#111;
}

.footer a{
display:block;
margin-bottom:12px;
color:#666;
font-size:14px;
}

.footer a:hover{
color:#ff5722;
}

.footer-payment{
display:flex;
flex-wrap:wrap;
gap:10px;
margin-bottom:20px;
}

.footer-payment span{
background:#f5f5f5;
padding:8px 12px;
border-radius:6px;
font-size:13px;
font-weight:600;
}

.footer-bottom{
margin-top:50px;
padding-top:25px;
border-top:1px solid #eee;
}

.footer-bottom-flex{
display:flex;
justify-content:space-between;
align-items:center;
flex-wrap:wrap;
gap:15px;
}

.copyright{
font-size:14px;
color:#777;
}

.footer-links{
display:flex;
gap:20px;
}

.footer-links a{
margin:0;
}

/* =========================
FLOATING WHATSAPP
========================= */

.floating-whatsapp{
position:fixed;
bottom:25px;
right:25px;
width:60px;
height:60px;
border-radius:50%;
background:#25D366;
color:#fff;
display:flex;
align-items:center;
justify-content:center;
font-size:28px;
z-index:999;
box-shadow:0 10px 25px rgba(0,0,0,.2);
}

/* =========================
BACK TO TOP
========================= */

#backToTop{
position:fixed;
bottom:100px;
right:25px;
width:50px;
height:50px;
border:none;
border-radius:50%;
background:#111;
color:#fff;
font-size:20px;
cursor:pointer;
display:none;
z-index:999;
}

/* =========================
WOOCOMMERCE
========================= */

.woocommerce ul.products li.product{
background:#fff;
padding:15px;
border-radius:16px;
border:1px solid #eee;
transition:.3s;
}

.woocommerce ul.products li.product:hover{
transform:translateY(-5px);
box-shadow:0 15px 30px rgba(0,0,0,.08);
}

.woocommerce span.onsale{
background:red !important;
border-radius:6px;
padding:5px 10px;
font-weight:700;
}

.woocommerce a.button{
background:#ff5722;
color:#fff;
border-radius:8px;
padding:12px 20px;
font-weight:700;
}

.woocommerce a.button:hover{
background:#111;
}

/* =========================
RESPONSIVE
========================= */

@media(max-width:991px){

.header-flex{
flex-wrap:wrap;
justify-content:center;
}

.logo{
max-width:100%;
justify-content:center;
}

.logo img{
max-height:60px;
}

.search-box{
width:100%;
max-width:100%;
}

.header-icons{
width:100%;
justify-content:center;
margin-top:10px;
}

.shop-layout{
grid-template-columns:1fr;
}

.hero-banner h1{
font-size:42px;
}

.section-title{
font-size:34px;
}

}

@media(max-width:600px){

.topbar-flex{
justify-content:center;
text-align:center;
}

.main-header{
padding:10px 0;
}

.logo img{
max-height:50px;
}

.search-box form{
height:42px;
}

.search-box input{
height:42px;
font-size:14px;
}

.search-box button{
height:42px;
width:50px;
}

.main-menu{
gap:20px;
padding:12px 0;
}

.main-menu li a{
font-size:13px;
}

.hero-banner{
padding:60px 20px;
}

.hero-banner h1{
font-size:30px;
}

.hero-banner p{
font-size:15px;
}

.section-title{
font-size:28px;
}

.category-grid{
grid-template-columns:repeat(2,1fr);
}

.product-grid{
grid-template-columns:repeat(2,1fr);
gap:16px;
}

.product-image img{
height:180px;
}

.price{
font-size:18px;
}

.product-title{
font-size:14px;
height:42px;
}

.footer{
text-align:center;
}

.footer-bottom-flex{
justify-content:center;
}

}

/* =====================================
CUSTOM CATEGORY WIDGET
===================================== */

.custom-category-widget{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
gap:25px;
}

.custom-category-widget .widget{
background:#fff;
padding:30px 20px;
border-radius:16px;
text-align:center;
border:1px solid #eee;
transition:.3s;
overflow:hidden;
}

.custom-category-widget .widget:hover{
transform:translateY(-5px);
box-shadow:0 15px 30px rgba(0,0,0,.08);
}

.custom-category-widget figure{
margin:0;
}

.custom-category-widget img{
width:70px;
height:70px;
object-fit:contain;
display:block;
margin:auto;
margin-bottom:15px;
}

.custom-category-widget h2,
.custom-category-widget h3,
.custom-category-widget .widget-title{
font-size:22px;
font-weight:700;
color:#111;
margin-top:10px;
line-height:1.3;
}

.custom-category-widget p{
margin:0;
}

.custom-category-widget a{
color:#111;
display:block;
}

.custom-category-widget a:hover{
color:#ff5722;
}