/*
Theme Name: Usta Nalburiye
Theme URI: https://example.com
Author: Usta Nalburiye
Description: Nalbur / hırdavat e-ticaret sitesi için endüstriyel-atölye temalı özel WordPress + WooCommerce teması.
Version: 1.0
Text Domain: usta-nalburiye
Requires PHP: 7.4
*/

:root{
  --steel:#23262A;
  --steel-2:#2E3237;
  --paper:#EDE8DC;
  --paper-2:#E3DCC9;
  --yellow:#F2B705;
  --yellow-ink:#4A3600;
  --rust:#B0492D;
  --rust-ink:#3D190D;
  --ink:#1C1B19;
  --muted:#6B6B62;
  --line:#C9C1AC;
}

*{box-sizing:border-box;}
body{
  font-family:'Work Sans', sans-serif;
  background:var(--paper);
  color:var(--ink);
  margin:0;
}
a{color:inherit; text-decoration:none;}
img{max-width:100%; display:block;}
.display, h1, h2, h3{font-family:'Oswald', sans-serif; text-transform:uppercase; letter-spacing:0.02em;}
.mono{font-family:'IBM Plex Mono', monospace;}
.wrap{max-width:1120px; margin:0 auto; padding:0 24px;}
.screen-reader-text{position:absolute; left:-9999px;}

/* ---------- Utility bar ---------- */
.un-utility{background:var(--steel); color:#C9CBCE; font-size:12.5px;}
.un-utility .wrap{display:flex; justify-content:space-between; align-items:center; height:36px;}
.un-utility .badge{background:var(--yellow); color:var(--yellow-ink); font-weight:600; padding:2px 8px; font-size:11px;}

/* ---------- Header ---------- */
.site-header{background:var(--steel-2); border-bottom:4px solid var(--yellow);}
.site-header .wrap{display:flex; align-items:center; gap:32px; height:88px; flex-wrap:wrap;}
.site-branding{display:flex; align-items:center; gap:12px;}
.logo-mark{width:46px; height:46px; background:var(--yellow); display:flex; align-items:center; justify-content:center; transform:rotate(-3deg); flex-shrink:0;}
.logo-mark span{font-family:'Oswald'; font-weight:700; font-size:20px; color:var(--yellow-ink); transform:rotate(3deg);}
.site-title{color:#F4F1E8; font-size:20px; line-height:1; margin:0;}
.site-title a{color:#F4F1E8;}
.site-description{color:#B9B6A8; font-size:11px; letter-spacing:0.15em; margin-top:2px;}

.un-search{flex:1; display:flex; height:44px; border:1.5px solid #464A4F; min-width:200px;}
.un-search input[type="search"]{flex:1; border:0; background:#1B1D20; color:#E8E5D9; padding:0 16px; font-size:14px; font-family:'Work Sans';}
.un-search input::placeholder{color:#7A7C77;}
.un-search button{width:52px; background:var(--yellow); border:0; color:var(--yellow-ink); font-size:18px; cursor:pointer;}

.un-head-actions{display:flex; gap:24px; align-items:center; color:#EDE9DC; font-size:12px;}
.un-head-actions a{display:flex; align-items:center; gap:6px;}
.un-cart-count{background:var(--rust); color:#fff; border-radius:50%; width:16px; height:16px; font-size:10px; display:inline-flex; align-items:center; justify-content:center;}

/* ---------- Nav ---------- */
.main-navigation{background:var(--steel); border-bottom:1px solid #3A3D41;}
.main-navigation ul{list-style:none; margin:0; padding:0; display:flex; overflow-x:auto;}
.main-navigation li a{display:block; padding:13px 18px; font-size:13.5px; font-weight:500; color:#D6D3C6; white-space:nowrap; border-right:1px solid #34373B;}
.main-navigation li.current-menu-item a{background:var(--rust); color:#fff; font-weight:600;}

/* ---------- Hero (front page) ---------- */
.un-hero{padding:64px 0 56px; border-bottom:1px solid var(--line);}
.un-hero .hero-grid{display:grid; grid-template-columns:1.15fr 0.85fr; gap:48px; align-items:center;}
.un-eyebrow{display:inline-block; background:var(--ink); color:var(--yellow); font-family:'IBM Plex Mono'; font-size:11.5px; letter-spacing:0.08em; padding:4px 10px; margin-bottom:18px;}
.un-hero h1{font-size:48px; line-height:1.05; margin:0 0 20px;}
.un-hero h1 em{font-style:normal; color:var(--rust);}
.un-hero p{font-size:16px; color:#4A483F; max-width:440px; line-height:1.6; margin-bottom:28px;}
.un-hero-ctas{display:flex; gap:14px;}

.btn{display:inline-block; padding:14px 26px; font-weight:600; font-size:14px; cursor:pointer; border:2px solid var(--ink); font-family:'Work Sans';}
.btn-primary{background:var(--yellow); color:var(--yellow-ink); border-color:var(--yellow);}
.btn-ghost{background:transparent; color:var(--ink);}

/* ---------- Sections / categories ---------- */
.un-section{padding:56px 0;}
.un-section-head{display:flex; justify-content:space-between; align-items:baseline; margin-bottom:26px; border-bottom:2px solid var(--ink); padding-bottom:12px;}
.un-section-head h2{font-size:24px; margin:0;}
.un-cat-grid{display:grid; grid-template-columns:repeat(6,1fr); gap:14px;}
.un-cat{border:1.5px solid var(--ink); background:#F6F2E6; padding:20px 14px; text-align:center;}
.un-cat:hover{background:var(--yellow);}
.un-cat .ic{width:36px; height:36px; margin:0 auto 12px; border:1.5px solid var(--ink); border-radius:50%; display:flex; align-items:center; justify-content:center; font-family:'Oswald'; font-weight:600; font-size:15px;}
.un-cat .cname{font-size:12.5px; font-weight:600; line-height:1.3;}

/* ---------- WooCommerce product grid (shop + front page) ---------- */
.woocommerce ul.products{display:grid; grid-template-columns:repeat(4,1fr); gap:20px; list-style:none; margin:0; padding:0;}
.woocommerce ul.products li.product{background:#F6F2E6; border:1.5px solid var(--ink); padding:0; position:relative;}
.woocommerce ul.products li.product a img{height:150px; object-fit:cover; border-bottom:1.5px solid var(--ink); background:var(--paper-2);}
.woocommerce ul.products li.product .woocommerce-loop-product__title{font-size:14.5px; font-weight:600; padding:14px 16px 4px; line-height:1.3;}
.woocommerce ul.products li.product .price{font-family:'IBM Plex Mono'; font-size:17px; font-weight:600; color:var(--rust); padding:0 16px;}
.woocommerce ul.products li.product .price del{color:var(--muted); font-size:13px;}
.woocommerce ul.products li.product .button{display:block; margin:12px 16px 16px; background:var(--ink); color:var(--yellow); border:none; padding:9px; text-align:center; font-size:13px; font-weight:600;}
.woocommerce span.onsale{position:absolute; top:8px; left:-1.5px; background:var(--rust); color:#fff; font-size:10px; font-weight:600; padding:3px 8px; letter-spacing:0.04em; border-radius:0;}

.woocommerce nav.woocommerce-pagination ul{border:none; display:flex; gap:8px;}
.woocommerce nav.woocommerce-pagination ul li{border:none;}
.woocommerce nav.woocommerce-pagination ul li a, .woocommerce nav.woocommerce-pagination ul li span{border:1.5px solid var(--ink); font-family:'IBM Plex Mono'; font-size:13px; padding:6px 12px;}
.woocommerce nav.woocommerce-pagination ul li span.current{background:var(--ink); color:var(--yellow);}

/* ---------- Single product ---------- */
.woocommerce div.product{padding:32px 0 56px;}
.woocommerce div.product div.images img{border:1.5px solid var(--ink);}
.woocommerce div.product .product_title{font-size:28px; margin:10px 0;}
.woocommerce div.product p.price, .woocommerce div.product span.price{font-family:'IBM Plex Mono'; font-size:28px; color:var(--rust); font-weight:600;}
.woocommerce div.product form.cart{border:1.5px solid var(--ink); background:#F6F2E6; padding:18px 20px; margin:20px 0;}
.woocommerce div.product .quantity input.qty{height:44px; border:1.5px solid var(--ink); font-family:'IBM Plex Mono';}
.woocommerce div.product .single_add_to_cart_button{background:var(--yellow); color:var(--yellow-ink); border:2px solid var(--yellow); font-weight:600; padding:12px 28px;}
.woocommerce div.product .woocommerce-tabs ul.tabs{border-bottom:2px solid var(--ink); padding:0; list-style:none; display:flex;}
.woocommerce div.product .woocommerce-tabs ul.tabs li{margin:0;}
.woocommerce div.product .woocommerce-tabs ul.tabs li a{font-family:'Oswald'; font-size:13.5px; padding:12px 22px; display:block;}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a{background:var(--ink); color:var(--yellow);}
.woocommerce table.shop_attributes{font-size:13.5px;}
.woocommerce table.shop_attributes th{color:var(--muted); font-family:'IBM Plex Mono'; font-size:12px; font-weight:400;}

/* ---------- Cart / checkout ---------- */
.woocommerce table.shop_table{border:1.5px solid var(--ink); border-collapse:collapse;}
.woocommerce table.shop_table th{background:var(--ink); color:var(--yellow); font-family:'Oswald'; font-size:12px; letter-spacing:0.04em; padding:10px;}
.woocommerce table.shop_table td{border-top:1px solid var(--line); padding:12px 10px;}
.woocommerce-cart-form .product-price, .woocommerce-cart-form .product-subtotal{font-family:'IBM Plex Mono'; color:var(--rust); font-weight:600;}
.woocommerce .cart-collaterals .cart_totals{border:1.5px solid var(--ink); background:#F6F2E6; padding:20px;}
.woocommerce #coupon_code{border:1.5px solid var(--ink); height:40px; padding:0 10px;}
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button{background:var(--yellow); color:var(--yellow-ink); border:2px solid var(--yellow); font-weight:600; padding:12px 20px;}
.woocommerce a.checkout-button{display:block; text-align:center;}

/* ---------- Notices ---------- */
.woocommerce-message, .woocommerce-info{border-top-color:var(--yellow); background:#F6F2E6;}
.woocommerce-error{border-top-color:var(--rust);}

/* ---------- Trust bar ---------- */
.un-trust{background:var(--steel); padding:32px 0;}
.un-trust .trust-grid{display:grid; grid-template-columns:repeat(4,1fr); gap:20px;}
.un-trust-item{display:flex; gap:12px; align-items:flex-start;}
.un-stamp{width:38px; height:38px; border:2px solid var(--yellow); border-radius:50%; flex-shrink:0; display:flex; align-items:center; justify-content:center; color:var(--yellow); font-family:'Oswald'; font-weight:600;}
.un-trust-item h4{color:#F4F1E8; font-size:13.5px; margin:0 0 4px;}
.un-trust-item p{color:#9C9E98; font-size:12px; line-height:1.5; margin:0;}

/* ---------- Footer ---------- */
.site-footer{background:var(--steel); padding:48px 0 24px; color:#9C9E98;}
.footer-grid{display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:32px; padding-bottom:32px; border-bottom:1px solid #3A3D41;}
.footer-grid h5{color:#F4F1E8; font-size:13px; letter-spacing:0.05em; margin:0 0 14px; text-transform:uppercase; font-family:'Oswald'; font-weight:500;}
.footer-grid p, .footer-grid a{display:block; font-size:12.5px; line-height:2; color:#9C9E98;}
.footer-bottom{padding-top:18px; display:flex; justify-content:space-between; font-size:11.5px; font-family:'IBM Plex Mono'; color:#6E706B;}

/* ---------- Responsive ---------- */
@media (max-width:900px){
  .un-hero .hero-grid{grid-template-columns:1fr;}
  .un-cat-grid{grid-template-columns:repeat(3,1fr);}
  .woocommerce ul.products{grid-template-columns:repeat(2,1fr);}
  .un-trust .trust-grid{grid-template-columns:1fr 1fr;}
  .footer-grid{grid-template-columns:1fr 1fr;}
}
