/* ======================================================
INDOTEX MARKETPLACE MAIN CSS
Author : Akub Saputra
====================================================== */

/* ======================================================
ROOT
====================================================== */

:root{

--primary:#ff5722;
--secondary:#111111;
--white:#ffffff;
--gray:#f5f5f5;
--text:#444444;
--border:#e5e5e5;
--radius:16px;
--shadow:0 10px 30px rgba(0,0,0,.06);

}

/* ======================================================
RESET
====================================================== */

*{
margin:0;
padding:0;
box-sizing:border-box;
}

html{
scroll-behavior:smooth;
}

body{
font-family:'Poppins',sans-serif;
background:#fff;
color:var(--text);
line-height:1.7;
overflow-x:hidden;
}

img{
max-width:100%;
height:auto;
display:block;
}

a{
text-decoration:none;
color:inherit;
transition:.3s;
}

ul{
list-style:none;
}

.container{
width:100%;
max-width:1300px;
margin:auto;
padding:0 20px;
}

/* ======================================================
PRELOADER
====================================================== */

#indotex-preloader{
position:fixed;
top:0;
left:0;
width:100%;
height:100%;
background:#fff;
z-index:99999;
display:flex;
align-items:center;
justify-content:center;
}

.loader{
width:60px;
height:60px;
border:5px solid #eee;
border-top:5px solid var(--primary);
border-radius:50%;
animation:spin 1s linear infinite;
}

@keyframes spin{
100%{
transform:rotate(360deg);
}
}

/* ======================================================
HEADER
====================================================== */

.main-header{
position:sticky;
top:0;
z-index:999;
background:#fff;
box-shadow:0 5px 20px rgba(0,0,0,.05);
}

.topbar{
background:var(--secondary);
padding:10px 0;
color:#fff;
font-size:14px;
}

.header-wrapper{
display:flex;
align-items:center;
justify-content:space-between;
padding:16px 0;
gap:20px;
}

.logo img{
max-height:55px;
width:auto;
}

/* ======================================================
MENU
====================================================== */

.main-menu ul{
display:flex;
align-items:center;
gap:25px;
}

.main-menu a{
font-weight:600;
font-size:15px;
color:#222;
}

.main-menu a:hover{
color:var(--primary);
}

/* ======================================================
HEADER ACTION
====================================================== */

.header-actions{
display:flex;
align-items:center;
gap:15px;
}

.search-btn,
.cart-btn,
.account-btn{
width:45px;
height:45px;
display:flex;
align-items:center;
justify-content:center;
border-radius:50%;
background:#f7f7f7;
font-size:18px;
position:relative;
}

.search-btn:hover,
.cart-btn:hover,
.account-btn:hover{
background:var(--primary);
color:#fff;
}

.indotex-cart-count{
position:absolute;
top:-5px;
right:-5px;
width:22px;
height:22px;
border-radius:50%;
background:red;
color:#fff;
font-size:12px;
display:flex;
align-items:center;
justify-content:center;
}

/* ======================================================
HERO
====================================================== */

.hero-banner{
padding:80px 0;
background:linear-gradient(
135deg,
#fff5f2,
#ffffff
);
overflow:hidden;
}

.hero-grid{
display:grid;
grid-template-columns:1fr 1fr;
align-items:center;
gap:50px;
}

.hero-content h1{
font-size:58px;
line-height:1.1;
margin:20px 0;
color:#111;
font-weight:800;
}

.hero-content p{
font-size:18px;
margin-bottom:30px;
color:#666;
max-width:550px;
}

.hero-badge{
display:inline-block;
padding:10px 18px;
background:#ffe4db;
color:var(--primary);
border-radius:50px;
font-size:14px;
font-weight:700;
}

.hero-buttons{
display:flex;
gap:15px;
flex-wrap:wrap;
margin-bottom:35px;
}

.shop-btn,
.buy-btn,
.buy-wa{
display:inline-flex;
align-items:center;
justify-content:center;
padding:15px 28px;
border-radius:12px;
font-weight:700;
font-size:15px;
transition:.3s;
}

.shop-btn,
.buy-btn{
background:var(--primary);
color:#fff;
}

.shop-btn:hover,
.buy-btn:hover{
background:#e64a19;
transform:translateY(-3px);
}

.buy-wa{
background:#25D366;
color:#fff;
}

.buy-wa:hover{
transform:translateY(-3px);
}

.hero-features{
display:flex;
gap:15px;
flex-wrap:wrap;
}

.hero-feature{
padding:12px 18px;
background:#fff;
border-radius:12px;
box-shadow:var(--shadow);
font-size:14px;
font-weight:600;
}

.hero-image img{
border-radius:25px;
box-shadow:0 20px 50px rgba(0,0,0,.1);
}

/* ======================================================
SECTION
====================================================== */

section{
padding:80px 0;
}

.section-header{
display:flex;
align-items:center;
justify-content:space-between;
gap:20px;
margin-bottom:40px;
}

.section-title{
font-size:38px;
font-weight:800;
color:#111;
margin-bottom:10px;
}

.section-subtitle{
color:#777;
font-size:16px;
}

.view-all-btn{
padding:12px 22px;
border-radius:10px;
background:#111;
color:#fff;
font-size:14px;
font-weight:600;
}

.view-all-btn:hover{
background:var(--primary);
}

/* ======================================================
CATEGORY
====================================================== */

.category-grid{
display:grid;
grid-template-columns:repeat(6,1fr);
gap:20px;
}

.category-card{
background:#fff;
border-radius:20px;
padding:30px 20px;
text-align:center;
box-shadow:var(--shadow);
transition:.3s;
border:1px solid #f1f1f1;
}

.category-card:hover{
transform:translateY(-8px);
}

.category-icon{
width:90px;
height:90px;
margin:auto;
margin-bottom:20px;
display:flex;
align-items:center;
justify-content:center;
background:#fff5f2;
border-radius:50%;
}

.category-icon img{
width:50px;
height:50px;
object-fit:contain;
}

.category-card h3{
font-size:18px;
margin-bottom:10px;
color:#111;
}

.category-card span{
font-size:14px;
color:var(--primary);
font-weight:600;
}

/* ======================================================
PRODUCT GRID
====================================================== */

.product-grid{
display:grid;
grid-template-columns:repeat(4,1fr);
gap:25px;
}

.product-card{
background:#fff;
border-radius:22px;
overflow:hidden;
position:relative;
box-shadow:var(--shadow);
transition:.3s;
border:1px solid #f1f1f1;
}

.product-card:hover{
transform:translateY(-8px);
}

.product-image{
overflow:hidden;
position:relative;
}

.product-image img{
width:100%;
aspect-ratio:1/1;
object-fit:cover;
transition:.5s;
}

.product-card:hover .product-image img{
transform:scale(1.08);
}

.discount-badge,
.new-badge{
position:absolute;
top:15px;
left:15px;
z-index:2;
padding:8px 12px;
border-radius:50px;
font-size:12px;
font-weight:700;
color:#fff;
}

.discount-badge{
background:red;
}

.new-badge{
background:#111;
left:auto;
right:15px;
}

.product-info{
padding:25px;
}

.product-category{
font-size:13px;
font-weight:600;
color:var(--primary);
margin-bottom:10px;
}

.product-title{
font-size:18px;
font-weight:700;
line-height:1.4;
margin-bottom:12px;
}

.product-title a:hover{
color:var(--primary);
}

.price{
font-size:22px;
font-weight:800;
color:var(--primary);
margin-bottom:12px;
}

.product-rating{
font-size:14px;
margin-bottom:10px;
}

.product-short-desc{
font-size:14px;
color:#666;
margin-bottom:15px;
}

.product-stock{
margin-bottom:18px;
font-size:14px;
font-weight:600;
}

.product-buttons{
display:flex;
gap:10px;
}

/* ======================================================
FLASH SALE TIMER
====================================================== */

.flash-sale-timer{
display:flex;
gap:15px;
margin-bottom:40px;
flex-wrap:wrap;
}

.timer-box{
background:#111;
color:#fff;
padding:20px;
border-radius:16px;
min-width:100px;
text-align:center;
}

.timer-box span{
display:block;
font-size:32px;
font-weight:800;
margin-bottom:5px;
}

/* ======================================================
BLOG
====================================================== */

.blog-grid{
display:grid;
grid-template-columns:repeat(3,1fr);
gap:30px;
}

.blog-card{
background:#fff;
border-radius:22px;
overflow:hidden;
box-shadow:var(--shadow);
transition:.3s;
}

.blog-card:hover{
transform:translateY(-8px);
}

.blog-image img{
width:100%;
height:260px;
object-fit:cover;
}

.blog-content{
padding:25px;
}

.blog-category{
display:inline-block;
padding:8px 15px;
background:#fff5f2;
color:var(--primary);
border-radius:50px;
font-size:12px;
font-weight:700;
margin-bottom:15px;
}

.blog-title{
font-size:22px;
line-height:1.4;
margin-bottom:15px;
}

.blog-title a:hover{
color:var(--primary);
}

.blog-meta{
display:flex;
gap:20px;
font-size:13px;
color:#777;
margin-bottom:15px;
}

.blog-excerpt{
font-size:15px;
color:#666;
margin-bottom:20px;
}

.read-more-btn{
font-weight:700;
color:var(--primary);
}

/* ======================================================
FOOTER
====================================================== */

.main-footer{
background:#111;
color:#fff;
padding-top:80px;
}

.footer-grid{
display:grid;
grid-template-columns:repeat(4,1fr);
gap:40px;
padding-bottom:50px;
}

.footer-widget h4{
font-size:20px;
margin-bottom:25px;
}

.footer-widget p,
.footer-widget li,
.footer-widget a{
color:#bbb;
font-size:15px;
margin-bottom:12px;
}

.footer-widget a:hover{
color:#fff;
}

.footer-bottom{
padding:25px 0;
border-top:1px solid rgba(255,255,255,.1);
text-align:center;
font-size:14px;
color:#aaa;
}

/* ======================================================
WOOCOMMERCE
====================================================== */

.woocommerce ul.products{
display:grid !important;
grid-template-columns:repeat(4,1fr);
gap:25px;
}

.woocommerce ul.products li.product{
width:100% !important;
margin:0 !important;
background:#fff;
border-radius:20px;
padding:20px;
box-shadow:var(--shadow);
}

.woocommerce span.onsale{
background:var(--primary) !important;
padding:10px 14px !important;
border-radius:50px !important;
}

.woocommerce button.button,
.woocommerce a.button{
background:var(--primary) !important;
color:#fff !important;
border-radius:10px !important;
padding:14px 22px !important;
font-weight:700 !important;
}

.woocommerce button.button:hover,
.woocommerce a.button:hover{
background:#111 !important;
}

/* ======================================================
ACCOUNT
====================================================== */

.indotex-account-header{
display:flex;
align-items:center;
gap:20px;
background:#fff;
padding:30px;
border-radius:20px;
box-shadow:var(--shadow);
margin-bottom:30px;
}

.account-avatar img{
border-radius:50%;
}

/* ======================================================
CHECKOUT
====================================================== */

.woocommerce-checkout form.checkout{
display:grid;
grid-template-columns:2fr 1fr;
gap:30px;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea{
padding:15px;
border-radius:12px;
border:1px solid #ddd;
}

/* ======================================================
FLOATING WHATSAPP
====================================================== */

.indotex-floating-wa{
position:fixed;
right:25px;
bottom:25px;
width:65px;
height:65px;
background:#25D366;
color:#fff;
border-radius:50%;
display:flex;
align-items:center;
justify-content:center;
font-size:32px;
z-index:999;
box-shadow:0 10px 30px rgba(0,0,0,.2);
animation:floatwa 2s infinite;
}

@keyframes floatwa{
0%{
transform:translateY(0);
}
50%{
transform:translateY(-8px);
}
100%{
transform:translateY(0);
}
}

/* ======================================================
SCROLLBAR
====================================================== */

::-webkit-scrollbar{
width:10px;
}

::-webkit-scrollbar-thumb{
background:var(--primary);
border-radius:20px;
}

::-webkit-scrollbar-track{
background:#f1f1f1;
}