/*
Theme Name: Premium Tyres
Theme URI: http://localhost/wordpress/
Author: Custom Development
Description: Premium tyre shop WordPress theme with WooCommerce integration.
Version: 2.1.0
Text Domain: premium-tyres
*/

:root {
  --red:#d71920;
  --red-dark:#b61017;
  --black:#0d0f11;
  --graphite:#15181c;
  --ink:#17191c;
  --muted:#70757c;
  --line:#e6e8eb;
  --soft:#f6f7f8;
  --white:#fff;
  --max:1240px;
  --radius:18px;
  --shadow:0 18px 55px rgba(13,15,17,.10);
  --shadow-sm:0 8px 28px rgba(13,15,17,.07);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--white);color:var(--ink);font-family:Inter,Arial,sans-serif;line-height:1.6;-webkit-font-smoothing:antialiased}
body.admin-bar .site-header{top:32px}
img{display:block;max-width:100%;height:auto}
a{color:inherit;text-decoration:none}
button,input,select{font:inherit}
button{cursor:pointer}
.container{width:min(calc(100% - 40px),var(--max));margin-inline:auto}

h1,h2,h3,h4{margin:0;color:var(--ink);font-family:"Space Grotesk",Inter,Arial,sans-serif;line-height:1.1}
.section{padding:96px 0}
.section-head{margin-bottom:42px}
.section-head.center{text-align:center}
.section-label{display:inline-block;margin-bottom:12px;color:var(--red);font-size:12px;font-weight:800;letter-spacing:1.7px;text-transform:uppercase}
.section-title{font-size:clamp(34px,4.2vw,56px);letter-spacing:-1.7px}
.section-copy{max-width:680px;margin:16px 0 0;color:var(--muted);font-size:17px}
.section-head.center .section-copy{margin-inline:auto}

.site-header{position:sticky;top:0;z-index:999;background:rgba(255,255,255,.97);border-bottom:1px solid var(--line);backdrop-filter:blur(12px)}
.header-inner{min-height:80px;display:flex;align-items:center;justify-content:space-between;gap:28px}
.brand-logo{font:800 23px/1 "Space Grotesk",Inter,sans-serif;letter-spacing:-.8px;white-space:nowrap}
.brand-logo span{color:var(--red)}
.main-nav{display:flex;align-items:center}
.main-nav ul{list-style:none;display:flex;align-items:center;gap:28px;margin:0;padding:0}
.main-nav a{font-size:14px;font-weight:700;color:#34383d;transition:.2s ease}
.main-nav a:hover{color:var(--red)}
.header-actions{display:flex;align-items:center;gap:10px}
.cart-link,.menu-toggle{width:44px;height:44px;display:grid;place-items:center;border:1px solid var(--line);border-radius:12px;background:#fff}
.cart-link{position:relative;font-size:18px}
.cart-count{position:absolute;top:-5px;right:-5px;min-width:19px;height:19px;padding:0 4px;border-radius:999px;background:var(--red);color:#fff;font-size:10px;font-weight:800;display:grid;place-items:center}
.menu-toggle{display:none;font-size:20px}

.btn{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:0 21px;border:1px solid transparent;border-radius:11px;font-size:14px;font-weight:800;transition:.22s ease}
.btn-primary{color:#fff;background:var(--red)}
.btn-primary:hover{background:var(--red-dark);transform:translateY(-1px)}
.btn-dark{color:#fff;background:var(--black)}
.btn-dark:hover{background:#252a2f;transform:translateY(-1px)}
.btn-light{color:var(--black);background:#fff}
.btn-light:hover{background:#f2f2f2}
.btn-outline{color:var(--black);background:#fff;border-color:#cfd3d7}
.btn-outline:hover{color:#fff;background:var(--black);border-color:var(--black)}

.hero{background:var(--black);color:#fff;overflow:hidden}
.hero-grid{min-height:650px;display:grid;grid-template-columns:1.02fr .98fr;align-items:center;gap:64px;padding:76px 0}
.hero .eyebrow{margin-bottom:20px;color:#a9afb6;font-size:12px;font-weight:800;letter-spacing:1.9px;text-transform:uppercase}
.hero h1{color:#fff;font-size:clamp(48px,6vw,78px);letter-spacing:-3px}
.hero h1 span{color:var(--red)}
.hero p{max-width:620px;margin:22px 0 0;color:#bfc3c8;font-size:18px}
.hero-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:30px}
.hero-visual{position:relative;min-height:465px;border:1px solid rgba(255,255,255,.08);border-radius:24px;background:radial-gradient(circle at 60% 40%,rgba(215,25,32,.22),transparent 52%),#16191d;display:grid;place-items:center;overflow:hidden}
.hero-visual:before{content:"";position:absolute;inset:12% 15%;border:1px solid rgba(255,255,255,.05);border-radius:50%}
.hero-visual img{position:relative;z-index:2;width:min(76%,430px)}
.hero-badge{position:absolute;left:22px;bottom:22px;padding:10px 14px;border-radius:999px;border:1px solid rgba(255,255,255,.12);background:rgba(0,0,0,.36);color:#d9dde2;font-size:11px;font-weight:800;letter-spacing:.9px;text-transform:uppercase;z-index:3}

.finder-section{position:relative;margin-top:-52px;z-index:20}
.finder-card{padding:28px;border:1px solid var(--line);border-radius:20px;background:#fff;box-shadow:var(--shadow)}
.finder-top{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:22px}
.finder-top h2{font-size:28px;letter-spacing:-.8px}
.finder-top p{margin:7px 0 0;color:var(--muted);font-size:14px}
.finder-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr)) auto;gap:14px;align-items:end}
.field{display:flex;flex-direction:column;gap:7px;min-width:0}
.field label{font-size:11px;font-weight:800;letter-spacing:.8px;text-transform:uppercase;color:#5d6268}
.field select,.field input{width:100%;height:50px;padding:0 14px;border:1px solid #d7dade;border-radius:11px;background:#fff;color:#1d2125;outline:none}
.field select:focus,.field input:focus{border-color:var(--red);box-shadow:0 0 0 3px rgba(215,25,32,.08)}
.finder-grid .btn{height:50px;white-space:nowrap}

.result-section{padding-top:92px}
.result-summary{display:flex;align-items:end;justify-content:space-between;gap:16px;margin-bottom:28px}
.result-summary .section-head{margin:0}
.result-count{font-size:13px;color:var(--muted);font-weight:700}
.products-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}
.product-card{display:flex;flex-direction:column;min-width:0;border:1px solid var(--line);border-radius:18px;overflow:hidden;background:#fff;transition:.22s ease}
.product-card:hover{transform:translateY(-5px);box-shadow:var(--shadow-sm);border-color:#d4d7da}
.product-image{aspect-ratio:1/1;background:var(--soft);display:grid;place-items:center;padding:25px}
.product-image img{width:100%;height:100%;object-fit:contain}
.product-content{display:flex;flex-direction:column;flex:1;padding:21px}
.product-brand{margin-bottom:6px;color:var(--red);font-size:11px;font-weight:900;letter-spacing:1px;text-transform:uppercase}
.product-title{font-size:21px;letter-spacing:-.5px}
.product-title a:hover{color:var(--red)}
.product-spec{margin-top:7px;color:var(--muted);font-size:13px}
.product-meta{display:flex;flex-wrap:wrap;gap:7px;margin-top:12px}
.product-meta span{padding:5px 8px;border-radius:999px;background:#f1f2f3;color:#555b61;font-size:10px;font-weight:800}
.product-bottom{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:auto;padding-top:20px}
.product-price{font-size:18px;font-weight:900}
.product-price del{opacity:.55;font-size:12px;margin-right:3px}
.product-action .btn{min-height:42px;padding-inline:14px}
.no-results{padding:52px 26px;border:1px dashed #cfd3d7;border-radius:18px;text-align:center;background:#fafbfb}
.no-results h3{font-size:26px}
.no-results p{max-width:540px;margin:12px auto 22px;color:var(--muted)}
.result-clear{display:inline-block;margin-top:18px;color:var(--red);font-weight:800;font-size:13px}

.alt-section{background:var(--soft)}
.brand-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));border-top:1px solid var(--line);border-left:1px solid var(--line)}
.brand-item{min-height:112px;display:grid;place-items:center;padding:18px;border-right:1px solid var(--line);border-bottom:1px solid var(--line);background:#fff;color:#4b5056;font:700 17px/1 "Space Grotesk",Inter,sans-serif;transition:.2s ease}
.brand-item:hover{color:var(--red);background:#fcfcfc}

.features-grid,.services-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}
.feature,.service{border:1px solid var(--line);border-radius:18px;padding:28px;background:#fff}
.feature-number,.service-number{margin-bottom:25px;color:var(--red);font-size:12px;font-weight:900;letter-spacing:1.2px}
.feature h3,.service h3{font-size:22px}
.feature p,.service p{margin:10px 0 0;color:var(--muted);font-size:14px}
.services-section{background:var(--black)}
.services-section .section-title{color:#fff}
.services-section .section-copy{color:#9da2a8}
.services-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.service{min-height:220px;background:#15181c;border-color:#272c31}
.service h3{color:#fff}
.service p{color:#989ea5}

.cta-section{padding:82px 0}
.cta-box{display:flex;align-items:center;justify-content:space-between;gap:30px;padding:48px;border-radius:20px;background:var(--red)}
.cta-box h2{color:#fff;font-size:clamp(30px,4vw,48px);letter-spacing:-1.4px}
.cta-box p{max-width:620px;margin:12px 0 0;color:rgba(255,255,255,.78)}

.site-footer{background:#0b0d0f;color:#94999f}
.footer-main{display:grid;grid-template-columns:1.45fr repeat(3,1fr);gap:40px;padding:68px 0}
.footer-logo{display:inline-block;margin-bottom:15px;color:#fff;font:800 24px/1 "Space Grotesk",Inter,sans-serif}
.footer-logo span{color:var(--red)}
.footer-brand p{max-width:330px;margin:0;font-size:14px}
.footer-col h3{margin:0 0 17px;color:#fff;font:800 12px/1 "Space Grotesk",Inter,sans-serif;letter-spacing:1px;text-transform:uppercase}
.footer-col ul{list-style:none;margin:0;padding:0}
.footer-col li+li{margin-top:9px}
.footer-col a{font-size:13px;transition:.2s ease}
.footer-col a:hover{color:#fff}
.footer-bottom{padding:20px 0;border-top:1px solid #202328;font-size:12px}

/* WooCommerce pages */
.woocommerce-page .site-main,.woocommerce .site-main{padding:70px 0}
.woocommerce .site-main> .container{width:min(calc(100% - 40px),var(--max))}
.woocommerce .woocommerce-breadcrumb{margin:0 0 20px;color:var(--muted);font-size:13px}
.woocommerce ul.products{margin:0!important;display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}
.woocommerce ul.products li.product{width:auto!important;float:none!important;margin:0!important;display:flex;flex-direction:column;padding:0!important;border:1px solid var(--line);border-radius:18px;overflow:hidden;background:#fff}
.woocommerce ul.products li.product a img{margin:0!important;width:100%;aspect-ratio:1/1;object-fit:contain;background:var(--soft);padding:22px}
.woocommerce ul.products li.product .woocommerce-loop-product__title{padding:0 20px;font-size:20px}
.woocommerce ul.products li.product .price{padding:0 20px;color:var(--ink)}
.woocommerce ul.products li.product .button{margin:18px 20px 20px!important;text-align:center}
.woocommerce a.button,.woocommerce button.button,.woocommerce input.button,.woocommerce #respond input#submit{border-radius:10px;background:var(--black);color:#fff;font-weight:800}
.woocommerce a.button:hover,.woocommerce button.button:hover,.woocommerce input.button:hover{background:var(--red);color:#fff}
.woocommerce-message,.woocommerce-info,.woocommerce-error{border-top-color:var(--red)}
.woocommerce .quantity .qty{height:44px;border:1px solid #d7dade;border-radius:9px}
.woocommerce form.checkout,.woocommerce-cart-form,.woocommerce form.login,.woocommerce form.register,.woocommerce form.woocommerce-form-coupon{border-radius:18px}

/* Keep old Elementor theme-builder header/footer from being injected alongside this theme. */
body.premium-tyres-site .elementor-location-header,
body.premium-tyres-site .elementor-location-footer{display:none!important}

@media(max-width:1100px){
  .products-grid,.woocommerce ul.products{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .features-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .brand-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .hero-grid{grid-template-columns:1fr .9fr;gap:36px}
  .finder-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .finder-grid .btn{width:100%}
  .footer-main{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:820px){
  .container{width:min(calc(100% - 30px),var(--max))}
  .main-nav{display:none;position:absolute;left:15px;right:15px;top:calc(100% + 8px);padding:18px;background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow)}
  .main-nav.is-open{display:block}
  .main-nav ul{flex-direction:column;align-items:flex-start;gap:16px}
  .menu-toggle{display:grid}
  .header-actions .header-cta{display:none}
  .hero-grid{grid-template-columns:1fr;padding:68px 0 110px}
  .hero-visual{min-height:360px}
  .cta-box{align-items:flex-start;flex-direction:column;padding:38px 30px}
}
@media(max-width:560px){
  .section{padding:72px 0}
  .finder-section{margin-top:-36px}
  .finder-card{padding:20px}
  .finder-grid,.products-grid,.woocommerce ul.products,.features-grid,.services-grid,.footer-main{grid-template-columns:1fr!important}
  .brand-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .hero h1{font-size:47px;letter-spacing:-2px}
  .hero-actions{flex-direction:column}
  .hero-actions .btn{width:100%}
  .result-summary{align-items:flex-start;flex-direction:column}
  .product-bottom{align-items:stretch;flex-direction:column}
  .product-action .btn{width:100%}
  .hero-visual{min-height:320px}
}

/* Finder result mode: keep the result view intentionally focused. */
body.premium-tyres-finder-results .finder-section-results {
  margin-top: 0;
  padding-top: 42px;
}
body.premium-tyres-finder-results .finder-results-only {
  padding-top: 52px;
}
body.premium-tyres-finder-results .site-footer {
  margin-top: 20px;
}
body.premium-tyres-finder-results .elementor,
body.premium-tyres-finder-results .elementor-location-header,
body.premium-tyres-finder-results .elementor-location-footer,
body.premium-tyres-finder-results .elementor-popup-modal {
  display: none !important;
}


/* =========================================================
   STEP 5 — Dedicated /shop/ layout
   ========================================================= */
.shop-page{padding:72px 0 96px;background:#fff}
.shop-layout{display:grid;grid-template-columns:280px minmax(0,1fr);gap:42px;align-items:start}
.shop-sidebar{position:sticky;top:102px;padding:24px;border:1px solid var(--line);border-radius:18px;background:#fff;box-shadow:var(--shadow-sm)}
.shop-sidebar-head{padding-bottom:18px;margin-bottom:18px;border-bottom:1px solid var(--line)}
.shop-sidebar-head h2{font-size:25px;letter-spacing:-.7px}
.shop-filter-group{margin-bottom:18px}
.shop-filter-group>label{display:block;margin-bottom:7px;font-size:12px;font-weight:800;color:#34383d;text-transform:uppercase;letter-spacing:.8px}
.shop-filter-group input,.shop-filter-group select{width:100%;height:46px;padding:0 12px;border:1px solid #d8dce0;border-radius:10px;background:#fff;color:var(--ink);outline:none}
.shop-filter-group input:focus,.shop-filter-group select:focus{border-color:var(--red);box-shadow:0 0 0 3px rgba(215,25,32,.08)}
.price-fields{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.shop-filter-actions{display:grid;gap:9px;margin-top:22px}
.shop-filter-actions .btn{width:100%}
.shop-results{min-width:0}
.shop-results-head{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:34px}
.shop-results-head .section-copy{margin-top:10px}
.shop-result-count{white-space:nowrap;padding:9px 13px;border:1px solid var(--line);border-radius:999px;font-size:12px;font-weight:800;color:#4b5056}
.shop-results .products-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.shop-pagination{margin-top:36px}
.shop-pagination ul{display:flex;justify-content:center;gap:8px;list-style:none;margin:0;padding:0;flex-wrap:wrap}
.shop-pagination a,.shop-pagination span{min-width:40px;height:40px;padding:0 12px;display:grid;place-items:center;border:1px solid var(--line);border-radius:10px;font-size:13px;font-weight:800}
.shop-pagination .current{background:var(--red);border-color:var(--red);color:#fff}
.shop-no-results{text-align:center}
@media (max-width:1050px){
  .shop-layout{grid-template-columns:240px minmax(0,1fr);gap:28px}
  .shop-results .products-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:760px){
  .shop-page{padding:42px 0 64px}
  .shop-layout{grid-template-columns:1fr}
  .shop-sidebar{position:static}
  .shop-results-head{align-items:start;flex-direction:column}
  .shop-result-count{align-self:flex-start}
  .shop-results .products-grid{grid-template-columns:1fr}
}
