/*
Theme Name: ProductValy Tech Store
Theme URI: https://example.com/
Author: ProductValy
Description: Mobile-first WooCommerce electronics store theme inspired by the supplied Tech Jhuli screenshots. Includes editable hero banners, product sliders, categories, brands, reviews, custom footer and mobile navigation.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: productvaly-tech
*/

:root{
  --pv-blue:#075cf5;
  --pv-blue2:#0b72ff;
  --pv-dark:#061b53;
  --pv-soft:#f4f8ff;
  --pv-border:#dce8fb;
  --pv-text:#222936;
  --pv-muted:#777f8f;
  --pv-radius:16px;
  --pv-shadow:0 3px 15px rgba(20,70,150,.10);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:#fff;color:var(--pv-text);font-family:Arial,Helvetica,sans-serif;font-size:14px;line-height:1.5}
a{color:inherit;text-decoration:none}
img{max-width:100%;height:auto}
button,input,select,textarea{font:inherit}
.pv-container{width:min(1180px,calc(100% - 28px));margin:auto}
.pv-hide{display:none!important}

/* Header */
.pv-topline{height:4px;background:var(--pv-blue)}
.pv-header{background:#fff;position:sticky;top:0;z-index:50;box-shadow:0 2px 12px rgba(0,0,0,.05)}
.pv-header-row{min-height:68px;display:grid;grid-template-columns:44px 190px 1fr 44px;gap:12px;align-items:center}
.pv-menu-btn,.pv-cart-btn{border:0;background:#fff;width:42px;height:42px;border-radius:50%;cursor:pointer;position:relative}
.pv-menu-btn span,.pv-menu-btn span:before,.pv-menu-btn span:after{content:"";display:block;width:20px;height:2px;background:#30343b;position:absolute;left:11px;top:20px}
.pv-menu-btn span:before{left:0;top:-7px}.pv-menu-btn span:after{left:0;top:7px}
.pv-logo{font-weight:800;font-size:24px;color:#075cf5;display:flex;align-items:center;gap:7px;white-space:nowrap}
.pv-logo-mark{width:27px;height:27px;border:3px solid var(--pv-blue);border-right-color:transparent;transform:skew(-12deg);display:inline-block}
.pv-search{display:flex;align-items:center;border:1px solid #e3e7ef;background:#fafcff;border-radius:24px;height:44px;overflow:hidden}
.pv-search input{border:0;background:transparent;outline:0;padding:0 15px;flex:1;color:#555}
.pv-search button{border:0;background:transparent;width:48px;font-size:22px;color:#777;cursor:pointer}
.pv-cart-btn{font-size:22px}.pv-cart-count{position:absolute;right:0;top:0;background:var(--pv-blue);color:#fff;border-radius:50%;font-size:10px;min-width:18px;height:18px;display:grid;place-items:center}
.pv-header-mobile-search{display:none;padding-bottom:10px}

/* Drawer */
.pv-overlay{position:fixed;inset:0;background:rgba(0,0,0,.45);z-index:90;display:none}
.pv-overlay.open{display:block}
.pv-drawer{position:fixed;top:0;left:0;bottom:0;width:min(420px,88vw);background:#fff;z-index:100;transform:translateX(-105%);transition:.25s;overflow:auto;box-shadow:8px 0 30px rgba(0,0,0,.12)}
.pv-drawer.open{transform:none}
.pv-drawer-search{padding:18px;border-bottom:1px solid #eee}
.pv-tabs{display:grid;grid-template-columns:1fr 1fr;border-bottom:1px solid #ddd}
.pv-tab{padding:18px;text-align:center;border:0;background:#fff;font-weight:600;color:#888;border-bottom:3px solid transparent;cursor:pointer}
.pv-tab.active{color:#222;border-bottom-color:var(--pv-blue)}
.pv-drawer-panel{display:none}.pv-drawer-panel.active{display:block}
.pv-menu-list a,.pv-cat-row{display:flex;align-items:center;justify-content:space-between;padding:19px 25px;border-bottom:1px solid #eee;font-weight:600}
.pv-cat-row{cursor:pointer}.pv-subcats{display:none;background:#fafcff}.pv-subcats.open{display:block}.pv-subcats a{display:block;padding:13px 35px;border-bottom:1px solid #edf0f5;color:#555}

/* Hero */
.pv-hero{margin:15px auto 12px;border-radius:16px;overflow:hidden;position:relative;background:#eaf2ff;box-shadow:var(--pv-shadow)}
.pv-slide{display:none;position:relative}.pv-slide.active{display:block}
.pv-slide img{display:block;width:100%;aspect-ratio:16/5;object-fit:cover}
.pv-placeholder{aspect-ratio:16/5;display:grid;place-items:center;background:linear-gradient(135deg,#e9f2ff,#bdd6ff);color:#075cf5;font-size:clamp(22px,4vw,42px);font-weight:800;text-align:center;padding:20px}
.pv-dots{position:absolute;bottom:10px;left:0;right:0;display:flex;justify-content:center;gap:7px}
.pv-dot{width:8px;height:8px;border-radius:50%;background:#fff8;border:1px solid #fff;cursor:pointer}.pv-dot.active{background:#fff}

/* Feature chips */
.pv-features{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:10px 0 22px}
.pv-feature{min-height:58px;border:1px solid var(--pv-border);border-radius:14px;background:#fff;display:flex;align-items:center;justify-content:center;gap:8px;font-weight:600;color:#444;box-shadow:var(--pv-shadow)}
.pv-feature-icon{width:30px;height:30px;border-radius:10px;background:#eaf2ff;display:grid;place-items:center;color:var(--pv-blue);font-size:17px}

/* Sections */
.pv-section{margin:24px 0}
.pv-section-head{display:flex;align-items:center;justify-content:center;margin-bottom:14px}
.pv-section-title{background:linear-gradient(180deg,#3181ff,#0b61ef);color:#fff;padding:8px 26px;border-radius:22px;font-size:15px;font-weight:800;box-shadow:0 4px 12px #0b61ef40;position:relative}
.pv-section-title:after{content:"";position:absolute;left:20px;right:20px;bottom:-5px;height:5px;background:#dceaff;border-radius:50%;z-index:-1}
.pv-seeall{font-size:12px;color:var(--pv-blue);font-weight:700;border:1px solid #78a9ff;border-radius:18px;padding:5px 12px;white-space:nowrap}

/* Slider */
.pv-slider-wrap{position:relative}
.pv-products{display:flex;gap:12px;overflow:hidden;scroll-behavior:smooth;padding:3px 2px}
.pv-product{flex:0 0 calc((100% - 36px)/4);min-width:0;border:1px solid #e2e9f5;border-radius:14px;background:#fff;padding:9px;box-shadow:var(--pv-shadow);position:relative}
.pv-product-badge{position:absolute;left:8px;top:8px;background:#20242a;color:#fff;border-radius:12px;padding:2px 6px;font-size:10px}
.pv-product-img{aspect-ratio:1/1;display:grid;place-items:center;overflow:hidden;border-radius:10px;background:#fafcff}
.pv-product-img img{width:100%;height:100%;object-fit:contain}
.pv-demo-img{font-size:48px;color:#b8c8e6}
.pv-product-name{font-size:13px;font-weight:600;margin:8px 2px 5px;min-height:38px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.pv-price{font-weight:800;color:#222}.pv-old{font-size:11px;color:#999;text-decoration:line-through;margin-right:4px}.pv-current{color:#075cf5}
.pv-add{width:100%;border:0;background:var(--pv-blue);color:#fff;border-radius:18px;padding:8px 5px;font-size:12px;font-weight:700;margin-top:7px;cursor:pointer}
.pv-slider-btn{position:absolute;top:50%;transform:translateY(-50%);width:30px;height:40px;border:0;border-radius:14px;background:var(--pv-blue);color:#fff;z-index:2;cursor:pointer;box-shadow:0 3px 10px #0b61ef55}
.pv-prev{left:-8px}.pv-next{right:-8px}

/* Categories */
.pv-category-grid{display:grid;grid-template-columns:repeat(8,1fr);gap:10px}
.pv-category{border:1px solid #e2e9f5;border-radius:12px;padding:10px 6px;text-align:center;background:#fff;min-height:105px;box-shadow:var(--pv-shadow)}
.pv-category img{width:52px;height:52px;object-fit:contain;display:block;margin:0 auto 5px}.pv-category-icon{font-size:33px;height:52px;display:grid;place-items:center}
.pv-category span{font-size:11px;font-weight:600;display:block}
.pv-tabs-row{display:flex;gap:7px;overflow:auto;margin-bottom:12px;padding-bottom:3px}
.pv-pill{border:1px solid #dce6f7;border-radius:20px;padding:7px 14px;background:#fff;white-space:nowrap;cursor:pointer;font-size:12px;font-weight:600}
.pv-pill.active{background:var(--pv-blue);color:#fff;border-color:var(--pv-blue)}

/* Brands */
.pv-brands{display:grid;grid-template-columns:repeat(8,1fr);gap:10px}
.pv-brand{height:62px;border:1px solid #e1e7f2;border-radius:10px;background:#fff;display:grid;place-items:center;padding:8px;box-shadow:var(--pv-shadow)}
.pv-brand img{max-height:45px;object-fit:contain}.pv-brand-text{font-weight:800;color:#555}

/* Reviews / videos */
.pv-video-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
.pv-video{background:#111;border-radius:14px;overflow:hidden;aspect-ratio:9/13;position:relative}
.pv-video img{width:100%;height:100%;object-fit:cover;opacity:.8}
.pv-play{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:48px;height:48px;border-radius:50%;background:#fff;color:var(--pv-blue);display:grid;place-items:center;font-size:20px}
.pv-channel{display:flex;align-items:center;justify-content:space-between;background:#111;color:#fff;border-radius:14px;padding:12px;margin-bottom:10px}
.pv-subscribe{background:#e80042;color:#fff;border:0;border-radius:8px;padding:7px 12px;font-weight:700}

/* Footer */
.pv-footer{margin-top:35px;background:linear-gradient(135deg,#062c83,#074fe7);color:#fff;padding:38px 0 18px}
.pv-footer-grid{display:grid;grid-template-columns:1.6fr 1fr 1fr 1.4fr;gap:30px}
.pv-footer h4{margin:0 0 13px;font-size:13px}.pv-footer p{color:#e5edff;font-size:12px}
.pv-footer-links{display:grid;gap:7px;font-size:12px;color:#edf3ff}.pv-social{display:flex;gap:9px;margin:12px 0}.pv-social a{width:30px;height:30px;border-radius:50%;background:#fff2;display:grid;place-items:center}
.pv-copyright{text-align:center;border-top:1px solid #ffffff25;margin-top:25px;padding-top:12px;font-size:11px;color:#dbe7ff}

/* Bottom mobile nav */
.pv-bottom-nav{display:none}

/* Woo */
.woocommerce .site-main,.woocommerce-page .site-main{padding:20px 0}
.woocommerce ul.products{display:grid!important;grid-template-columns:repeat(4,1fr);gap:14px}
.woocommerce ul.products li.product{width:auto!important;float:none!important;margin:0!important;border:1px solid #e2e9f5;border-radius:14px;padding:10px!important;box-shadow:var(--pv-shadow)}
.woocommerce ul.products li.product img{border-radius:10px}
.woocommerce a.button,.woocommerce button.button,.woocommerce input.button{background:var(--pv-blue);color:#fff;border-radius:20px}
.woocommerce span.onsale{background:#20242a}
.woocommerce div.product{background:#fff;border:1px solid #e2e9f5;border-radius:16px;padding:15px}
.woocommerce div.product div.images img{border-radius:14px}
.woocommerce div.product .price{color:var(--pv-blue);font-weight:800}
.woocommerce div.product form.cart .button{background:var(--pv-blue);border-radius:20px}
.woocommerce .quantity .qty{border-radius:18px;border:1px solid #ddd;padding:8px}
.pv-breadcrumb{font-size:12px;color:#7a8391;margin:12px 0}

/* Mobile */
@media(max-width:900px){
  .pv-container{width:min(100% - 18px,680px)}
  .pv-header-row{grid-template-columns:36px 1fr 42px;gap:7px;min-height:58px}
  .pv-logo{justify-content:center;font-size:20px}.pv-logo-mark{width:22px;height:22px}
  .pv-search{display:none}.pv-header-mobile-search{display:block}
  .pv-header-mobile-search .pv-search{display:flex;height:38px}
  .pv-features{grid-template-columns:repeat(4,1fr);gap:6px}.pv-feature{min-height:52px;font-size:9px;flex-direction:column;gap:2px}
  .pv-feature-icon{width:25px;height:25px;font-size:13px}
  .pv-slide img,.pv-placeholder{aspect-ratio:2.15/1}
  .pv-product{flex-basis:calc((100% - 12px)/2)}
  .pv-category-grid{grid-template-columns:repeat(4,1fr)}
  .pv-brands{grid-template-columns:repeat(4,1fr)}
  .pv-video-grid{grid-template-columns:repeat(3,1fr)}
  .pv-footer-grid{grid-template-columns:1fr 1fr;gap:20px}
  .pv-footer-about{grid-column:1/-1}
  .pv-bottom-nav{display:grid;position:fixed;bottom:0;left:0;right:0;background:#fff;z-index:70;border-top:1px solid #ddd;grid-template-columns:repeat(4,1fr);box-shadow:0 -2px 10px rgba(0,0,0,.07)}
  .pv-bottom-nav a{font-size:10px;text-align:center;padding:7px 2px;color:#555}.pv-bottom-nav i{display:block;font-size:18px;font-style:normal}
  body{padding-bottom:58px}
  .woocommerce ul.products{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:480px){
  .pv-container{width:calc(100% - 14px)}
  .pv-logo{font-size:18px}.pv-header-row{grid-template-columns:32px 1fr 38px}
  .pv-category{min-height:94px;padding:8px 3px}.pv-category img{width:45px;height:45px}
  .pv-product{padding:7px}.pv-product-name{font-size:11px;min-height:34px}.pv-add{font-size:11px}
  .pv-video-grid{grid-template-columns:repeat(3,1fr);gap:7px}
  .pv-footer-grid{grid-template-columns:1fr 1fr}.pv-footer{padding-bottom:15px}
}

/* FINAL PRODUCTION REFINEMENTS */
.pv-product{transition:transform .18s ease,box-shadow .18s ease}
.pv-product:hover{transform:translateY(-2px);box-shadow:0 7px 22px rgba(20,70,150,.14)}
.pv-add{display:block;text-align:center;text-decoration:none}
.woocommerce table.shop_table{border-radius:12px;overflow:hidden;border-color:#e2e9f5}
.woocommerce form.checkout_coupon,.woocommerce form.login,.woocommerce form.register{border:1px solid #e2e9f5;border-radius:14px}
.woocommerce-checkout #payment{border-radius:14px}

/* Mobile bottom navigation */
.pv-mobile-bottom-nav{display:none}
@media(max-width:900px){
  body{padding-bottom:70px}
  .pv-mobile-bottom-nav{
    position:fixed;
    left:0;right:0;bottom:0;
    z-index:99999;
    height:64px;
    display:grid;
    grid-template-columns:repeat(4,1fr);
    background:#fff;
    border-top:1px solid #e5eaf2;
    box-shadow:0 -4px 18px rgba(0,0,0,.08);
    padding-bottom:env(safe-area-inset-bottom);
  }
  .pv-mobile-bottom-nav a{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:3px;
    color:#273247;
    text-decoration:none;
    font-size:11px;
    font-weight:700;
    line-height:1.1;
    -webkit-tap-highlight-color:transparent;
  }
  .pv-mobile-bottom-nav a:active{background:#f3f6fb}
  .pv-mbn-icon{
    display:flex;
    align-items:center;
    justify-content:center;
    width:24px;height:24px;
    font-size:20px;
    line-height:1;
  }
}
@media(min-width:901px){
  .pv-mobile-bottom-nav{display:none!important}
}
