/*
Theme Name: AutoPolc
Theme URI: https://autopolc.hu/
Author: AutoPolc
Description: Egyedi WooCommerce katalógus téma az AutoPolc.hu számára.
Version: 0.1.0
Text Domain: autopolc
Requires at least: 6.5
Requires PHP: 8.1
*/

:root{
  --ap-yellow:#f7b500;
  --ap-yellow-dark:#dfa000;
  --ap-dark:#0d1720;
  --ap-dark-2:#13232f;
  --ap-text:#17212b;
  --ap-muted:#6b7680;
  --ap-line:#e6ebef;
  --ap-bg:#f5f7f9;
  --ap-white:#fff;
  --ap-success:#168a44;
  --ap-radius:18px;
  --ap-shadow:0 12px 32px rgba(15,29,42,.08);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  color:var(--ap-text);
  background:var(--ap-bg);
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  line-height:1.5;
}
a{color:inherit;text-decoration:none}
img{max-width:100%;height:auto}
button,input{font:inherit}

.ap-container{
  width:min(1440px,calc(100% - 40px));
  margin-inline:auto;
}

.ap-topbar{
  background:#0b1620;
  color:#d8e0e6;
  font-size:13px;
}
.ap-topbar__inner{
  min-height:38px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
}
.ap-topbar__items{display:flex;gap:24px;flex-wrap:wrap}
.ap-topbar strong{color:#fff;font-weight:700}

.ap-header{
  background:#fff;
  border-bottom:1px solid var(--ap-line);
  position:sticky;
  top:0;
  z-index:999;
}
.ap-header__main{
  display:grid;
  grid-template-columns:220px minmax(320px,1fr) auto;
  gap:26px;
  align-items:center;
  min-height:92px;
}
.ap-logo{
  display:flex;
  flex-direction:column;
  line-height:1;
}
.ap-logo__word{
  font-weight:900;
  font-size:36px;
  letter-spacing:-1.8px;
  font-style:italic;
}
.ap-logo__word span{color:var(--ap-yellow)}
.ap-logo__tag{
  color:var(--ap-muted);
  font-size:11px;
  margin-top:7px;
  font-weight:700;
  letter-spacing:.2px;
}
.ap-search{
  display:flex;
  border:1px solid #dce3e9;
  border-radius:14px;
  overflow:hidden;
  background:#f7f9fa;
  min-height:50px;
}
.ap-search input{
  width:100%;
  border:0;
  outline:0;
  background:transparent;
  padding:0 18px;
}
.ap-search button{
  border:0;
  background:var(--ap-yellow);
  font-weight:800;
  padding:0 24px;
  cursor:pointer;
}
.ap-search button:hover{background:var(--ap-yellow-dark)}
.ap-header__actions{
  display:flex;
  gap:10px;
}
.ap-icon-link{
  min-width:72px;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:4px;
  font-size:12px;
  font-weight:700;
}
.ap-icon-circle{
  width:34px;height:34px;border-radius:50%;
  background:#f1f4f6;
  display:grid;place-items:center;
  font-size:16px;
}

.ap-nav{
  background:var(--ap-dark);
  color:#fff;
}
.ap-nav__inner{
  display:flex;
  align-items:center;
  overflow:auto;
  scrollbar-width:none;
}
.ap-nav__inner::-webkit-scrollbar{display:none}
.ap-nav a{
  display:flex;
  align-items:center;
  white-space:nowrap;
  min-height:50px;
  padding:0 18px;
  font-size:14px;
  font-weight:750;
}
.ap-nav a:hover{background:#182a37}
.ap-nav .ap-nav__all{
  background:var(--ap-yellow);
  color:#101820;
  padding-inline:22px;
}
.ap-nav .ap-nav__all:hover{background:var(--ap-yellow-dark)}

.ap-hero{
  background:
    radial-gradient(circle at 78% 42%, rgba(247,181,0,.12), transparent 22%),
    linear-gradient(115deg,#071019 0%,#0e1d28 55%,#182d3a 100%);
  color:#fff;
  min-height:460px;
  display:flex;
  align-items:center;
  overflow:hidden;
  position:relative;
}
.ap-hero:after{
  content:"";
  position:absolute;
  right:-120px;
  top:50%;
  transform:translateY(-50%) rotate(-10deg);
  width:620px;
  height:280px;
  border-radius:50% 10% 40% 10%;
  border:2px solid rgba(255,255,255,.08);
  box-shadow:
    0 0 0 40px rgba(255,255,255,.018),
    0 0 0 90px rgba(255,255,255,.012);
}
.ap-hero__inner{
  position:relative;
  z-index:2;
  display:grid;
  grid-template-columns:1.05fr .95fr;
  align-items:center;
  gap:60px;
  padding-block:58px;
}
.ap-kicker{
  color:#ffd24a;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:1.6px;
  font-size:12px;
}
.ap-hero h1{
  font-size:clamp(42px,5vw,72px);
  line-height:.98;
  margin:14px 0 18px;
  letter-spacing:-2.8px;
}
.ap-hero h1 span{color:var(--ap-yellow)}
.ap-hero p{
  color:#c8d2da;
  font-size:18px;
  max-width:660px;
  margin:0 0 28px;
}
.ap-cta-row{display:flex;gap:12px;flex-wrap:wrap}
.ap-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:48px;
  padding:0 22px;
  border-radius:12px;
  font-weight:850;
  border:1px solid transparent;
  cursor:pointer;
}
.ap-btn--primary{background:var(--ap-yellow);color:#101820}
.ap-btn--primary:hover{background:var(--ap-yellow-dark)}
.ap-btn--ghost{border-color:rgba(255,255,255,.32);color:#fff}
.ap-btn--ghost:hover{background:rgba(255,255,255,.08)}
.ap-hero__visual{
  min-height:300px;
  display:flex;
  align-items:flex-end;
  justify-content:center;
  position:relative;
}
.ap-car-shape{
  width:min(520px,100%);
  aspect-ratio:1.8/1;
  border-radius:55% 45% 16% 18% / 54% 52% 22% 24%;
  background:
    radial-gradient(circle at 20% 68%, #fff 0 4%, #a7caff 5% 7%, transparent 8%),
    radial-gradient(circle at 80% 68%, #fff 0 4%, #a7caff 5% 7%, transparent 8%),
    linear-gradient(145deg,#384957,#14212b 48%,#05090d 100%);
  box-shadow:0 30px 80px rgba(0,0,0,.5);
  position:relative;
}
.ap-car-shape:before{
  content:"";
  position:absolute;
  inset:12% 18% 45% 18%;
  border-radius:50% 50% 15% 15%;
  background:linear-gradient(145deg,#6d8393,#14222c 70%);
  border:1px solid rgba(255,255,255,.15);
}
.ap-car-shape:after{
  content:"";
  position:absolute;
  left:11%;right:11%;bottom:-8px;height:20%;
  background:rgba(0,0,0,.45);
  filter:blur(16px);
  border-radius:50%;
  z-index:-1;
}
.ap-hero__meta{
  position:absolute;
  right:0;
  bottom:0;
  background:rgba(8,16,23,.84);
  border:1px solid rgba(255,255,255,.1);
  border-radius:14px;
  padding:16px 18px;
  backdrop-filter:blur(8px);
}
.ap-hero__meta strong{display:block;font-size:18px}
.ap-hero__meta span{color:#aab8c2;font-size:12px}

.ap-benefits{
  background:#0f202b;
  color:#fff;
  border-top:1px solid rgba(255,255,255,.06);
}
.ap-benefits__grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:0;
}
.ap-benefit{
  padding:20px 22px;
  border-right:1px solid rgba(255,255,255,.08);
}
.ap-benefit:last-child{border-right:0}
.ap-benefit strong{display:block;font-size:14px}
.ap-benefit span{font-size:12px;color:#9fb0bc}

.ap-section{padding:54px 0}
.ap-section--white{background:#fff}
.ap-section-title{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:20px;
  margin-bottom:24px;
}
.ap-section-title h2{
  margin:0;
  font-size:34px;
  letter-spacing:-1.3px;
}
.ap-section-title p{margin:6px 0 0;color:var(--ap-muted)}

.ap-categories{
  display:grid;
  grid-template-columns:repeat(8,1fr);
  gap:12px;
}
.ap-category-card{
  min-height:128px;
  background:#fff;
  border:1px solid var(--ap-line);
  border-radius:16px;
  padding:18px 12px;
  text-align:center;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:10px;
  box-shadow:0 6px 18px rgba(13,23,32,.04);
  transition:.18s ease;
}
.ap-category-card:hover{
  transform:translateY(-3px);
  border-color:#f0c04d;
  box-shadow:var(--ap-shadow);
}
.ap-category-card__icon{
  width:46px;height:46px;border-radius:13px;
  background:#f4f6f8;
  display:grid;place-items:center;
  font-size:24px;
}
.ap-category-card strong{font-size:13px}

.ap-brand-strip{
  background:var(--ap-dark);
  color:#fff;
  border-radius:20px;
  padding:22px 26px;
  display:flex;
  align-items:center;
  gap:34px;
  overflow:auto;
}
.ap-brand-strip__title{min-width:150px}
.ap-brand-strip__title strong{display:block}
.ap-brand-strip__title span{font-size:12px;color:#8fa2ae}
.ap-brand{
  white-space:nowrap;
  font-size:22px;
  font-weight:900;
  letter-spacing:-.7px;
  color:#e9eef2;
}

.ap-product-grid,
.woocommerce ul.products{
  display:grid !important;
  grid-template-columns:repeat(4,minmax(0,1fr)) !important;
  gap:18px !important;
  margin:0 !important;
}
.ap-product-card,
.woocommerce ul.products li.product{
  width:auto !important;
  margin:0 !important;
  float:none !important;
  background:#fff;
  border:1px solid var(--ap-line);
  border-radius:18px;
  padding:14px;
  box-shadow:0 7px 24px rgba(13,23,32,.04);
  position:relative;
  transition:.18s ease;
}
.ap-product-card:hover,
.woocommerce ul.products li.product:hover{
  transform:translateY(-3px);
  box-shadow:var(--ap-shadow);
}
.woocommerce ul.products li.product a img{
  border-radius:13px;
  aspect-ratio:1/1;
  object-fit:contain;
  background:#fff;
  margin-bottom:12px !important;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title{
  font-size:15px !important;
  line-height:1.35;
  color:var(--ap-text);
  padding:0 !important;
  min-height:40px;
}
.woocommerce ul.products li.product .price{
  color:#111820 !important;
  font-size:20px !important;
  font-weight:900 !important;
  margin-top:10px !important;
}
.woocommerce ul.products li.product .button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button{
  width:100%;
  min-height:44px;
  display:flex !important;
  align-items:center;
  justify-content:center;
  background:var(--ap-yellow) !important;
  color:#101820 !important;
  border-radius:11px !important;
  font-weight:850 !important;
  padding:10px 14px !important;
  margin-top:12px !important;
}
.woocommerce ul.products li.product .button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover{
  background:var(--ap-yellow-dark) !important;
}
.ap-source-badge{
  position:absolute;
  left:14px;
  top:14px;
  z-index:2;
  border-radius:999px;
  padding:5px 9px;
  font-size:10px;
  font-weight:900;
  background:#142331;
  color:#fff;
}
.ap-source-badge--dt{background:#1767dc}
.ap-source-badge--bcf{background:#e6263f}
.ap-stock{
  font-size:12px;
  color:var(--ap-success);
  font-weight:800;
  margin-top:7px;
}

.ap-footer{
  background:#0c1720;
  color:#dce4e9;
  margin-top:60px;
}
.ap-footer__grid{
  display:grid;
  grid-template-columns:1.3fr repeat(3,1fr);
  gap:44px;
  padding:54px 0 40px;
}
.ap-footer h3{color:#fff;margin-top:0}
.ap-footer p,.ap-footer a{color:#9eb0bc;font-size:14px}
.ap-footer a:hover{color:#fff}
.ap-footer__bottom{
  border-top:1px solid rgba(255,255,255,.08);
  min-height:64px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  color:#81939f;
  font-size:12px;
}

.woocommerce .woocommerce-breadcrumb{
  margin:22px 0 !important;
  color:var(--ap-muted) !important;
}
.woocommerce div.product{
  background:#fff;
  border-radius:22px;
  padding:26px;
  box-shadow:var(--ap-shadow);
}
.woocommerce div.product div.images img{
  border-radius:16px;
}
.woocommerce div.product .product_title{
  font-size:36px;
  line-height:1.08;
  letter-spacing:-1px;
}
.woocommerce div.product p.price,
.woocommerce div.product span.price{
  color:#111820 !important;
  font-size:30px !important;
  font-weight:900;
}

.ap-mobile-toggle{display:none}

@media (max-width:1100px){
  .ap-header__main{grid-template-columns:180px 1fr auto}
  .ap-header__actions .ap-icon-link:nth-child(n+2){display:none}
  .ap-categories{grid-template-columns:repeat(4,1fr)}
  .ap-product-grid,.woocommerce ul.products{grid-template-columns:repeat(3,1fr)!important}
  .ap-footer__grid{grid-template-columns:1fr 1fr}
}
@media (max-width:780px){
  .ap-container{width:min(100% - 24px,1440px)}
  .ap-topbar{display:none}
  .ap-header{position:sticky}
  .ap-header__main{
    min-height:auto;
    padding:14px 0;
    grid-template-columns:1fr auto;
    gap:12px;
  }
  .ap-logo__word{font-size:28px}
  .ap-logo__tag{display:none}
  .ap-search{grid-column:1/-1;grid-row:2}
  .ap-header__actions{grid-column:2;grid-row:1}
  .ap-nav__inner a{min-height:46px;padding:0 14px}
  .ap-hero{min-height:auto}
  .ap-hero__inner{grid-template-columns:1fr;padding-block:46px}
  .ap-hero__visual{min-height:210px}
  .ap-hero h1{font-size:46px}
  .ap-hero p{font-size:16px}
  .ap-benefits__grid{grid-template-columns:1fr 1fr}
  .ap-benefit:nth-child(2){border-right:0}
  .ap-benefit:nth-child(-n+2){border-bottom:1px solid rgba(255,255,255,.08)}
  .ap-categories{grid-template-columns:repeat(3,1fr)}
  .ap-product-grid,.woocommerce ul.products{grid-template-columns:repeat(2,1fr)!important}
  .ap-section{padding:38px 0}
  .ap-section-title h2{font-size:28px}
  .ap-footer__grid{grid-template-columns:1fr}
}
@media (max-width:520px){
  .ap-header__actions{display:none}
  .ap-header__main{grid-template-columns:1fr}
  .ap-search{grid-row:auto}
  .ap-search button{padding:0 16px}
  .ap-hero__inner{gap:32px}
  .ap-hero h1{font-size:39px;letter-spacing:-1.5px}
  .ap-hero__visual{min-height:160px}
  .ap-hero__meta{position:relative;margin-top:16px}
  .ap-benefits__grid{grid-template-columns:1fr}
  .ap-benefit{border-right:0;border-bottom:1px solid rgba(255,255,255,.08)}
  .ap-categories{grid-template-columns:repeat(2,1fr)}
  .ap-product-grid,.woocommerce ul.products{grid-template-columns:1fr 1fr!important;gap:10px!important}
  .woocommerce ul.products li.product{padding:10px}
  .woocommerce ul.products li.product .woocommerce-loop-product__title{font-size:13px!important}
  .woocommerce ul.products li.product .price{font-size:17px!important}
  .woocommerce ul.products li.product .button{font-size:12px;padding:8px!important}
  .ap-footer__bottom{align-items:flex-start;flex-direction:column;padding:20px 0}
}
