/*
Theme Name: Army Patch
Theme URI: https://armypatchstore.com.tr
Author: Army Patch Store
Description: Army Patch Store için hafif, mobil öncelikli WooCommerce teması. Özel sipariş formu, yasal sayfalar, çerez onayı ve SEO/GEO yapılandırılmış veri içerir.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 8.1
Text Domain: armypatch
WC requires at least: 9.0
*/
:root{
  --olive-900:#1F2616;--olive-700:#38432A;--olive-500:#5B6B3F;
  --brass:#C29A2E;--brass-hi:#D8AE3C;--on-brass:#1F2616;
  --bg:#EEF0E8;--surface:#FFFFFF;--ink:#1C2114;--muted:#565D4C;--line:#D3D8C6;
  --ok:#3E7C3A;--err:#B3261E;--radius:8px;
  --head:Oswald,"Arial Narrow",sans-serif;--body:"Source Sans 3",system-ui,-apple-system,"Segoe UI",sans-serif;
}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-padding-top:80px}
body{margin:0;background:var(--bg);color:var(--ink);font:400 17px/1.6 var(--body)}
img{max-width:100%;height:auto;display:block}
a{color:inherit}
h1,h2,h3,h4{font-family:var(--head);line-height:1.15;margin:0 0 .5em;font-weight:600}
h1{font-size:clamp(30px,5vw,52px)}h2{font-size:clamp(24px,3.4vw,36px)}h3{font-size:20px}
:focus-visible{outline:3px solid var(--brass);outline-offset:2px}
.screen-reader-text{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(1px,1px,1px,1px)}
.skip-link:focus{position:fixed;top:8px;left:8px;z-index:100;background:var(--brass);color:var(--on-brass);padding:10px 14px;clip:auto;width:auto;height:auto}
.wrap{max-width:1200px;margin:0 auto;padding:0 16px}
.section{padding:48px 0}
.muted{color:var(--muted)}
.btn,.button,button.button,input.button,.wc-block-components-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:0 20px;border-radius:6px;border:2px solid transparent;font:700 16px/1 var(--body);text-decoration:none;cursor:pointer;background:var(--olive-700);color:#fff;transition:background .2s}
.btn:hover,.button:hover{background:var(--olive-900);color:#fff}
.btn-brass,.button.alt,.single_add_to_cart_button,.checkout-button,#place_order{background:var(--brass)!important;color:var(--on-brass)!important}
.btn-brass:hover,.button.alt:hover,.single_add_to_cart_button:hover{background:var(--brass-hi)!important}
.btn-ghost{background:transparent;border-color:currentColor;color:inherit}
input[type=text],input[type=email],input[type=tel],input[type=number],input[type=password],input[type=search],select,textarea{width:100%;min-height:48px;padding:10px 12px;border:1.5px solid var(--line);border-radius:6px;background:var(--surface);color:var(--ink);font:inherit}
textarea{min-height:110px}
label{font-weight:600}

/* Header */
.topbar{background:var(--olive-900);color:#C9CEBB;font-size:14px}
.topbar .wrap{display:flex;justify-content:space-between;gap:12px;min-height:34px;align-items:center}
.topbar a{text-decoration:none}
.site-header{position:sticky;top:0;z-index:50;background:var(--olive-700);color:#EDEFE3;box-shadow:0 2px 8px rgba(0,0,0,.15)}
.site-header .wrap{display:flex;align-items:center;gap:16px;min-height:64px}
.brand{display:flex;align-items:center;gap:10px;text-decoration:none;font:700 21px/1 var(--head);white-space:nowrap}
.brand img{width:40px;height:40px;border-radius:50%}
.brand .mark{width:38px;height:38px;border-radius:50%;background:var(--brass);color:var(--on-brass);display:grid;place-items:center;font-size:14px}
.header-search{flex:1;max-width:460px;margin-left:auto}
.header-search form{display:flex}
.header-search input{min-height:42px;border:0;border-radius:6px 0 0 6px}
.header-search button{min-height:42px;border:0;border-radius:0 6px 6px 0;background:var(--brass);color:var(--on-brass);padding:0 14px;cursor:pointer;font-weight:700}
.header-icons{display:flex;gap:4px}
.header-icons a{position:relative;width:44px;height:44px;display:grid;place-items:center;border-radius:6px;text-decoration:none}
.header-icons a:hover{background:rgba(255,255,255,.1)}
.header-icons svg{width:23px;height:23px}
.cart-count{position:absolute;top:3px;right:2px;min-width:18px;height:18px;border-radius:9px;background:var(--brass);color:var(--on-brass);font:700 11px/18px var(--body);text-align:center;padding:0 4px}
.main-nav{background:var(--olive-900)}
.main-nav ul{list-style:none;margin:0 auto;padding:0 16px;max-width:1200px;display:flex;gap:4px;overflow-x:auto;scrollbar-width:none}
.main-nav a{display:block;padding:12px 14px;color:#EDEFE3;text-decoration:none;white-space:nowrap;font-weight:600}
.main-nav a:hover,.main-nav .current-menu-item a{color:var(--brass)}
.menu-toggle{display:none}
@media(max-width:760px){
  .site-header .wrap{flex-wrap:wrap;padding-bottom:10px;gap:8px}
  .header-search{order:3;flex-basis:100%;max-width:none;margin:0}
  .header-icons{margin-left:auto}
  .topbar .hide-sm{display:none}
}

/* Home */
.home-hero{background:var(--olive-700);color:#EDEFE3;padding:32px 0}
.home-hero .wrap{display:grid;grid-template-columns:1.4fr 1fr;gap:24px;align-items:center}
.home-hero p{margin:0 0 18px;max-width:52ch;opacity:.9}
.hero-actions{display:flex;gap:10px;flex-wrap:wrap}
.hero-card{background:var(--olive-900);border-radius:var(--radius);padding:20px}
.hero-card h2{font-size:22px}
.hero-card ul{margin:0 0 16px;padding-left:18px}
@media(max-width:860px){.home-hero .wrap{grid-template-columns:1fr}}
.cat-chips{display:flex;gap:8px;overflow-x:auto;padding:16px 0;scrollbar-width:none}
.cat-chips a{flex:none;padding:10px 16px;border-radius:999px;background:var(--surface);border:1.5px solid var(--line);text-decoration:none;font-weight:600}
.cat-chips a:hover{border-color:var(--olive-500)}
.section-head{display:flex;justify-content:space-between;align-items:end;gap:12px;margin-bottom:16px}
.section-head a{font-weight:700}

/* Product grid (front + Woo) */
ul.products,.ap-grid{list-style:none;margin:0;padding:0;display:grid!important;grid-template-columns:repeat(4,1fr);gap:16px}
ul.products::before,ul.products::after{display:none!important}
ul.products li.product{width:auto!important;margin:0!important;float:none!important;background:var(--surface);border-radius:var(--radius);border:1px solid var(--line);padding:0 0 14px;display:flex;flex-direction:column;overflow:hidden}
ul.products li.product a img{margin:0 0 10px!important;aspect-ratio:1;object-fit:cover;width:100%}
ul.products li.product .woocommerce-loop-product__title{font:600 16px/1.3 var(--body)!important;padding:0 12px!important;margin:0 0 6px!important}
ul.products li.product .price{padding:0 12px;color:var(--ink)!important;font-weight:700;font-size:17px!important;display:block}
ul.products li.product .button{margin:auto 12px 0!important;min-height:42px;font-size:15px}
ul.products li.product .onsale{background:var(--brass);color:var(--on-brass);border-radius:4px;min-height:auto;line-height:1.6;padding:2px 8px;top:8px;left:8px;right:auto;margin:0}
@media(max-width:1000px){ul.products,.ap-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:700px){ul.products,.ap-grid{grid-template-columns:repeat(2,1fr);gap:10px}}

.custom-band{background:var(--olive-900);color:#EDEFE3;border-radius:var(--radius);padding:28px;display:grid;grid-template-columns:1.2fr 1fr;gap:24px;align-items:center}
.custom-band ol{margin:0;padding-left:20px}
@media(max-width:760px){.custom-band{grid-template-columns:1fr;padding:22px}}
.trust{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.trust div{background:var(--surface);border-radius:var(--radius);padding:18px;border:1px solid var(--line)}
.trust h3{font-size:18px;margin-bottom:4px}.trust p{margin:0;color:var(--muted);font-size:15px}
@media(max-width:860px){.trust{grid-template-columns:1fr 1fr}}
.faq details{border-bottom:1px solid var(--line);padding:14px 0}
.faq summary{cursor:pointer;font-weight:700;list-style:none;display:flex;justify-content:space-between;gap:12px}
.faq summary::after{content:"+";font:600 22px/1 var(--head)}
.faq details[open] summary::after{content:"–"}
.faq p{margin:8px 0 0;color:var(--muted)}

/* Content pages */
.page-wrap{max-width:860px;margin:0 auto;padding:36px 16px 56px}
.entry-content{background:var(--surface);border-radius:var(--radius);padding:28px;border:1px solid var(--line)}
.entry-content h2{font-size:24px;margin-top:1.4em}.entry-content h3{margin-top:1.2em}
.entry-content table{width:100%;border-collapse:collapse;display:block;overflow-x:auto}
.entry-content td,.entry-content th{border:1px solid var(--line);padding:8px 10px;text-align:left}
.legal-note{background:#FFF7DD;border-left:4px solid var(--brass);padding:12px 14px;border-radius:4px;font-size:15px}
@media(max-width:600px){.entry-content{padding:18px}}

/* WooCommerce */
.woocommerce-page .site-main{padding:28px 0 56px}
.woocommerce .woocommerce-breadcrumb{font-size:14px;color:var(--muted);margin-bottom:16px}
.woocommerce div.product .product_title{font-size:clamp(26px,4vw,38px)}
.woocommerce div.product p.price{color:var(--ink);font:700 28px/1.2 var(--head)}
.woocommerce div.product form.cart .quantity input{min-height:48px;width:80px}
.woocommerce div.product .woocommerce-tabs ul.tabs li{background:var(--bg)!important;border-color:var(--line)!important}
.woocommerce-message,.woocommerce-info{border-top-color:var(--olive-500)!important}
.woocommerce-error{border-top-color:var(--err)!important}
.woocommerce form .form-row input.input-text{min-height:48px}
.ap-consent-box{background:var(--bg);padding:14px;border-radius:6px;margin:14px 0;font-size:15px}
.ap-consent-box p{margin:0 0 8px}
@media(max-width:768px){.woocommerce div.product div.images,.woocommerce div.product div.summary{width:100%!important;float:none!important}}

/* Order timeline */
.ap-timeline{list-style:none;margin:16px 0 24px;padding:16px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius)}
.ap-timeline li{display:flex;gap:12px;align-items:center;padding:7px 0;color:var(--muted)}
.ap-timeline i{width:14px;height:14px;border-radius:50%;border:2px solid var(--line);flex:none}
.ap-timeline .done{color:var(--ink)}.ap-timeline .done i{background:var(--ok);border-color:var(--ok)}
.ap-timeline .now{color:var(--ink);font-weight:700}.ap-timeline .now i{background:var(--brass);border-color:var(--brass);box-shadow:0 0 0 5px rgba(194,154,46,.25)}

/* Custom order form */
.ap-form{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:24px}
.ap-form fieldset{border:0;padding:0;margin:0 0 22px}
.ap-form legend{font:600 20px/1.2 var(--head);margin-bottom:12px}
.ap-row{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-bottom:14px}
.ap-field{margin-bottom:14px}.ap-field label{display:block;margin-bottom:6px}
.ap-help{font-size:14px;color:var(--muted);margin:4px 0 0}
.ap-types{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}
.ap-types label{border:2px solid var(--line);border-radius:6px;padding:12px;cursor:pointer;font-weight:600;display:flex;flex-direction:column;gap:2px}
.ap-types label span{font-weight:400;font-size:14px;color:var(--muted)}
.ap-types input{position:absolute;opacity:0}
.ap-types label:has(input:checked){border-color:var(--brass);background:#FBF5E3}
.ap-types label:has(input:focus-visible){outline:3px solid var(--brass)}
.ap-summary{position:sticky;bottom:0;background:var(--olive-900);color:#EDEFE3;border-radius:var(--radius);padding:16px 18px;display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.ap-summary strong{font:700 28px/1 var(--head);color:var(--brass)}
.ap-error{color:var(--err);font-size:14px;margin-top:4px}
@media(max-width:700px){.ap-row,.ap-types{grid-template-columns:1fr 1fr}.ap-form{padding:16px}}
@media(max-width:420px){.ap-row{grid-template-columns:1fr}}

/* Footer */
.site-footer{background:var(--olive-900);color:#C9CEBB;padding:40px 0 90px;font-size:15px;margin-top:40px}
.site-footer .cols{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:24px}
.site-footer h2{font-size:17px;color:#EDEFE3}
.site-footer ul{list-style:none;margin:0;padding:0;line-height:2.1}
.site-footer a{text-decoration:none}.site-footer a:hover{color:var(--brass)}
.site-footer .legal{border-top:1px solid #323B26;margin-top:28px;padding-top:16px;display:flex;flex-wrap:wrap;justify-content:space-between;gap:10px}
.pay-logos{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
.pay-logos span{background:#2A3320;border-radius:4px;padding:4px 8px;font-size:13px}
@media(max-width:760px){.site-footer .cols{grid-template-columns:1fr 1fr}}

/* Mobile bottom bar + WhatsApp */
.wa-float{position:fixed;right:16px;bottom:calc(16px + env(safe-area-inset-bottom,0px));width:56px;height:56px;border-radius:50%;background:#25D366;color:#fff;display:grid;place-items:center;z-index:60;box-shadow:0 6px 18px rgba(0,0,0,.3)}
.wa-float svg{width:30px;height:30px}

/* Cookie consent */
.ap-cookie{position:fixed;left:12px;right:12px;bottom:calc(12px + env(safe-area-inset-bottom,0px));z-index:90;max-width:720px;margin:0 auto;background:var(--surface);color:var(--ink);border-radius:var(--radius);box-shadow:0 12px 40px rgba(0,0,0,.35);padding:18px;display:none}
.ap-cookie.show{display:block}
.ap-cookie p{margin:0 0 12px;font-size:15px}
.ap-cookie .row{display:flex;gap:8px;flex-wrap:wrap}
.ap-cookie .row .btn{flex:1;min-width:140px;min-height:44px;font-size:15px}
.ap-cookie .prefs{display:none;margin:0 0 12px;border-top:1px solid var(--line);padding-top:10px}
.ap-cookie.open .prefs{display:block}
.ap-cookie .prefs label{display:flex;gap:10px;align-items:flex-start;padding:6px 0;font-weight:400}
.ap-cookie .prefs input{width:20px;height:20px;margin-top:3px;flex:none}
@media (prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
