/*
Theme Name: Toweb QR Menü
Author: Toweb
Description: QR menü, masa QR kodu, sepet, sipariş, mutfak ve garson yönetimini kendi içinde barındıran bağımsız mobil uyumlu WordPress restoran teması.
Version: 2.4.0
Requires at least: 5.8
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: toweb-qr-menu
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: food-and-drink, one-column, custom-logo, custom-menu, responsive-layout
*/

:root{
  --hanqr-accent:#111111;
  --hanqr-accent-2:#f4b942;
  --hanqr-bg:#f7f7f5;
  --hanqr-surface:#ffffff;
  --hanqr-text:#171717;
  --hanqr-muted:#6d6d6d;
  --hanqr-border:#e9e9e6;
  --hanqr-radius:7px;
  --hanqr-shadow:0 12px 32px rgba(17,17,17,.07);
  --hanqr-container:1450px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--hanqr-bg);color:var(--hanqr-text);font-family:Poppins,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-weight:400;-webkit-font-smoothing:antialiased}
a{color:inherit;text-decoration:none}
img{max-width:100%;height:auto}
button,input,textarea,select{font:inherit}
.hanqr-container{width:min(var(--hanqr-container),calc(100% - 40px));margin-inline:auto}

.hanqr-site-header{position:sticky;top:0;z-index:900;background:rgba(255,255,255,.96);border-bottom:1px solid var(--hanqr-border);backdrop-filter:saturate(140%) blur(12px)}
.hanqr-header-inner{min-height:76px;display:flex;align-items:center;gap:28px}
.hanqr-brand{display:flex;align-items:center;gap:12px;min-width:0}
.hanqr-brand img{display:block;max-width:180px;max-height:48px;width:auto;height:auto;object-fit:contain}
.hanqr-brand-mark{width:42px;height:42px;border-radius:7px;background:var(--hanqr-accent);color:#fff;display:grid;place-items:center;font-weight:600}
.hanqr-brand-copy{display:flex;flex-direction:column;line-height:1.15;min-width:0}
.hanqr-brand-copy strong{font-size:15px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:230px}
.hanqr-brand-copy small{font-size:10px;color:var(--hanqr-muted);letter-spacing:.12em;margin-top:4px}
.hanqr-nav{margin-left:auto;display:flex;align-items:center;gap:8px}
.hanqr-nav a{padding:10px 12px;border-radius:7px;font-size:13px;font-weight:500;color:#3d3d3d}
.hanqr-nav a:hover,.hanqr-nav .current-menu-item>a{background:#f2f2ef;color:#111}
.hanqr-header-cta{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:0 15px;border-radius:7px;background:var(--hanqr-accent);color:#fff;font-size:12px;font-weight:600;white-space:nowrap}
.hanqr-mobile-toggle{display:none;margin-left:auto;width:42px;height:42px;border:1px solid var(--hanqr-border);border-radius:7px;background:#fff;align-items:center;justify-content:center;cursor:pointer}
.hanqr-mobile-toggle span,.hanqr-mobile-toggle span:before,.hanqr-mobile-toggle span:after{content:"";display:block;width:18px;height:2px;background:#111;position:relative;transition:.2s}
.hanqr-mobile-toggle span:before{position:absolute;top:-6px}
.hanqr-mobile-toggle span:after{position:absolute;top:6px}

.hanqr-mobile-drawer{position:fixed;inset:0;z-index:1200;pointer-events:none;visibility:hidden}
.hanqr-mobile-drawer.is-open{visibility:visible;pointer-events:auto}
.hanqr-drawer-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.42);opacity:0;transition:.22s}
.hanqr-mobile-drawer.is-open .hanqr-drawer-backdrop{opacity:1}
.hanqr-drawer-panel{position:absolute;top:0;right:0;width:min(88vw,380px);height:100%;background:#fff;padding:22px;transform:translateX(100%);transition:.24s ease;display:flex;flex-direction:column;gap:22px;overflow:auto}
.hanqr-mobile-drawer.is-open .hanqr-drawer-panel{transform:none}
.hanqr-drawer-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-bottom:16px;border-bottom:1px solid var(--hanqr-border)}
.hanqr-drawer-close{width:38px;height:38px;border:1px solid var(--hanqr-border);border-radius:7px;background:#fff;font-size:22px;cursor:pointer}
.hanqr-drawer-nav{display:flex;flex-direction:column;gap:5px}
.hanqr-drawer-nav a{display:flex;padding:13px 2px;border-bottom:1px solid #f0f0ed;font-size:14px;font-weight:500}

.hanqr-main{min-height:60vh}
.hanqr-page-shell{width:min(1200px,calc(100% - 40px));margin:42px auto;background:#fff;border:1px solid var(--hanqr-border);border-radius:7px;padding:38px;box-shadow:var(--hanqr-shadow)}
.hanqr-page-shell h1{font-size:clamp(28px,4vw,48px);font-weight:600;letter-spacing:-.035em;margin:0 0 24px}
.hanqr-entry{font-size:15px;line-height:1.8;color:#333}
.hanqr-entry h2,.hanqr-entry h3{font-weight:600;color:#111}

.hanqr-fallback{width:min(720px,calc(100% - 40px));margin:72px auto;padding:34px;background:#fff;border:1px solid var(--hanqr-border);border-radius:7px;text-align:center;box-shadow:var(--hanqr-shadow)}
.hanqr-fallback-badge{display:inline-flex;padding:6px 10px;border-radius:99px;background:#f4f4f1;font-size:11px;font-weight:600;margin-bottom:14px}
.hanqr-fallback h1{font-size:30px;line-height:1.2;margin:0 0 12px}
.hanqr-fallback p{margin:0;color:var(--hanqr-muted);font-size:14px;line-height:1.7}

.hanqr-site-footer{border-top:1px solid var(--hanqr-border);background:#fff;margin-top:50px}
.hanqr-footer-inner{min-height:82px;display:flex;align-items:center;justify-content:space-between;gap:20px;color:var(--hanqr-muted);font-size:12px}
.hanqr-footer-links{display:flex;gap:15px;flex-wrap:wrap}

body.toweb-qr-system-page,body.toweb-qr-product-detail{background:#fff}
body.toweb-qr-system-page .hanqr-main,body.toweb-qr-product-detail .hanqr-main{min-height:100vh}
body.toweb-qr-system-page .entry-content,body.toweb-qr-product-detail .entry-content{margin:0;padding:0}
body.toweb-qr-system-page .hanqr-site-header,body.toweb-qr-system-page .hanqr-site-footer,body.toweb-qr-product-detail .hanqr-site-header{display:none!important}

@media (max-width:980px){
  .hanqr-container{width:min(100% - 28px,var(--hanqr-container))}
  .hanqr-nav,.hanqr-header-cta{display:none}
  .hanqr-mobile-toggle{display:flex}
  .hanqr-header-inner{min-height:66px}
  .hanqr-brand img{max-height:42px;max-width:155px}
  .hanqr-page-shell{width:min(100% - 24px,1200px);margin:24px auto;padding:24px}
}
@media (max-width:640px){
  .hanqr-container{width:calc(100% - 22px)}
  .hanqr-brand-copy strong{max-width:180px}
  .hanqr-page-shell{width:calc(100% - 18px);padding:20px;margin:14px auto}
  .hanqr-footer-inner{padding:20px 0;min-height:0;flex-direction:column;align-items:flex-start}
}
