/* Shubhlabhik Creations - Responsive Frontend */
:root{
    --primary:#6F4E37;
    --secondary:#A67B5B;
    --accent:#D9B08C;
    --cream:#FBF7F3;
    --white:#fff;
    --text:#2f241e;
    --muted:#77675d;
    --border:#eaded5;
    --shadow:0 12px 35px rgba(111,78,55,.10);
}
*,
*::before,
*::after{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{margin:0;font-family:'Poppins',Arial,sans-serif;color:var(--text);background:var(--cream);line-height:1.6;overflow-x:hidden}
img{max-width:100%;height:auto}
button,input,textarea,select{font:inherit}
button{touch-action:manipulation}
a{text-decoration:none;color:inherit}
.container{width:min(1180px,calc(100% - 32px));margin-inline:auto}

.site-header{background:rgba(255,255,255,.97);border-bottom:1px solid var(--border);position:sticky;top:0;z-index:20;backdrop-filter:blur(10px)}
.header-inner{min-height:76px;display:flex;align-items:center;justify-content:space-between;gap:16px}
.brand{display:flex;align-items:center;gap:12px;min-width:0}
.brand-mark{width:44px;height:44px;flex:0 0 44px;border-radius:12px;display:grid;place-items:center;background:var(--primary);color:#fff;font-weight:700}
.brand strong{display:block;font-size:16px;color:var(--primary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.brand small{display:block;font-size:11px;color:var(--muted)}
.admin-link{border:1px solid var(--primary);color:var(--primary);padding:9px 15px;border-radius:10px;font-size:13px;font-weight:600;white-space:nowrap}
.admin-link:hover{background:var(--primary);color:#fff}

.hero{padding:clamp(48px,8vw,82px) 0;background:linear-gradient(135deg,#6F4E37 0%,#8a654c 55%,#A67B5B 100%);color:#fff}
.eyebrow,.section-kicker{font-size:11px;letter-spacing:2px;font-weight:700}
.hero h1{font-size:clamp(32px,6vw,58px);line-height:1.15;margin:12px 0}
.hero p{max-width:650px;margin:0;color:#f6eee9;font-size:clamp(13px,2vw,16px)}

.catalog{padding:clamp(38px,6vw,58px) 0 clamp(50px,7vw,75px)}
.section-heading{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:22px}
.section-heading h2{margin:5px 0 0;font-size:clamp(24px,3vw,30px)}
.product-count{font-size:13px;color:var(--muted);white-space:nowrap}

.category-tabs-wrap{display:flex;align-items:center;gap:8px;margin-bottom:28px;min-width:0}
.category-tabs{display:flex;gap:10px;overflow-x:auto;scroll-behavior:smooth;scrollbar-width:none;flex:1;min-width:0;padding:4px}
.category-tabs::-webkit-scrollbar{display:none}
.category-tab{flex:0 0 auto;border:1px solid var(--border);background:#fff;color:var(--primary);padding:10px 17px;border-radius:999px;font:600 13px Poppins,Arial;cursor:pointer;transition:.2s;white-space:nowrap}
.category-tab:hover,.category-tab.active{background:var(--primary);color:#fff;border-color:var(--primary)}
.tab-arrow{flex:0 0 38px;width:38px;height:38px;border:1px solid var(--border);background:#fff;color:var(--primary);border-radius:50%;cursor:pointer}
.tab-arrow:active{transform:scale(.96)}

.products-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:22px}
.product-card{min-width:0;background:#fff;border:1px solid var(--border);border-radius:18px;overflow:hidden;box-shadow:var(--shadow);transition:transform .25s ease,box-shadow .25s ease}
.product-card:hover{transform:translateY(-5px);box-shadow:0 18px 45px rgba(111,78,55,.15)}
.product-image{aspect-ratio:1/1;position:relative;background:#f3e9e2;overflow:hidden}
.product-image img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .35s ease}
.product-card:hover .product-image img{transform:scale(1.04)}
.image-placeholder{height:100%;display:grid;place-items:center;background:linear-gradient(135deg,#ead8ca,#f8eee7)}
.image-placeholder span{width:68px;height:68px;border-radius:20px;display:grid;place-items:center;background:var(--primary);color:#fff;font-size:20px;font-weight:700}
.product-category{position:absolute;top:12px;left:12px;right:auto;max-width:calc(100% - 24px);background:rgba(255,255,255,.93);color:var(--primary);padding:6px 10px;border-radius:999px;font-size:10px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.product-body{padding:18px}
.product-body h3{margin:0 0 7px;font-size:17px;overflow-wrap:anywhere}
.product-body p{margin:0 0 16px;color:var(--muted);font-size:12px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.product-footer{display:flex;align-items:center;justify-content:space-between;gap:10px}
.product-footer strong{color:var(--primary);font-size:18px;white-space:nowrap}
.enquiry-btn{background:var(--accent);color:var(--primary);padding:8px 12px;border-radius:9px;font-size:11px;font-weight:700;text-align:center;white-space:nowrap}
.empty-state{text-align:center;background:#fff;border:1px dashed var(--accent);padding:50px 20px;border-radius:18px;color:var(--muted)}

.site-footer{background:#2f241e;color:#eee;padding-top:45px}
.footer-grid{display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:35px;padding-bottom:35px}
.footer-grid h3,.footer-grid h4{color:#fff;margin-top:0}
.footer-grid p{font-size:12px;color:#d8ccc5}
.footer-grid a{color:#f0d3bc;overflow-wrap:anywhere}
.copyright{border-top:1px solid rgba(255,255,255,.1);padding:16px;text-align:center;color:#bcaea5;font-size:11px}
[hidden]{display:none!important}

@media (max-width:1100px){
    .container{width:min(960px,calc(100% - 28px))}
    .products-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
}
@media (max-width:820px){
    .header-inner{min-height:70px}
    .products-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
    .footer-grid{grid-template-columns:1fr 1fr;gap:25px}
    .footer-grid>div:first-child{grid-column:1/-1}
}
@media (max-width:600px){
    .container{width:calc(100% - 24px)}
    .header-inner{gap:10px}
    .brand{gap:9px;min-width:0}
    .brand-mark{width:39px;height:39px;flex-basis:39px;border-radius:10px}
    .brand strong{font-size:13px}
    .brand small{font-size:9px}
    .admin-link{padding:8px 10px;font-size:10px}
    .hero{padding:48px 0}
    .hero h1{font-size:clamp(30px,9vw,40px)}
    .catalog{padding-top:38px}
    .section-heading{align-items:flex-start;flex-direction:column;gap:5px}
    .product-count{font-size:11px}
    .category-tabs-wrap{margin-bottom:22px}
    .tab-arrow{display:none}
    .category-tabs{padding:3px 1px}
    .category-tab{padding:9px 14px;font-size:11px}
    .products-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
    .product-body{padding:12px}
    .product-body h3{font-size:13px;line-height:1.4}
    .product-body p{font-size:10px;line-height:1.55;margin-bottom:12px}
    .product-footer{align-items:flex-start;flex-direction:column;gap:8px}
    .product-footer strong{font-size:15px}
    .enquiry-btn{width:100%;padding:8px;font-size:10px}
    .product-category{top:8px;left:8px;max-width:calc(100% - 16px);font-size:8px;padding:5px 8px}
    .footer-grid{grid-template-columns:1fr;gap:20px}
    .footer-grid>div:first-child{grid-column:auto}
    .site-footer{padding-top:35px}
}
@media (max-width:380px){
    .brand small{display:none}
    .admin-link{font-size:9px;padding:7px 8px}
    .products-grid{gap:9px}
    .product-body{padding:10px}
    .product-body h3{font-size:12px}
    .product-body p{font-size:9px}
    .product-footer strong{font-size:14px}
}
@media (prefers-reduced-motion:reduce){
    *,*::before,*::after{scroll-behavior:auto!important;transition:none!important}
}
