/*
Theme Name: Green Bakery
Theme URI: https://tiembanhgreen.com
Author: Green Bakery
Description: Giao diện tiệm bánh kem Green Bakery – bánh kem giảm ngọt, thiết kế theo yêu cầu. Mẫu bánh, bảng giá theo size, form đặt bánh, bản đồ, nút gọi/Zalo.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: greenbakery
*/

:root{
  --gb-bg:#FBF8EE;
  --gb-cream:#FFFDF7;
  --gb-brown:#4A3426;
  --gb-ink:#2B211B;
  --gb-muted:#5C4A3C;
  --gb-avocado:#4F6B2A;
  --gb-avocado-dark:#3E5420;
  --gb-avocado-tag:#C9D98A;
  --gb-avocado-light:#E3EBB0;
  --gb-avocado-soft:#F1F5DC;
  --gb-price:#8A5A1E;
  --gb-line:rgba(74,52,38,.13);
  --gb-radius:20px;
  --gb-shadow:0 6px 24px rgba(43,33,27,.08);
  --gb-head:'Playfair Display',Georgia,serif;
  --gb-body:'Be Vietnam Pro',system-ui,-apple-system,'Segoe UI',sans-serif;
}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--gb-bg);color:var(--gb-ink);font-family:var(--gb-body);font-size:16px;line-height:1.65;-webkit-font-smoothing:antialiased}
img{max-width:100%;height:auto;display:block}
a{color:var(--gb-avocado-dark)}
a:hover{color:var(--gb-brown)}
h1,h2,h3,h4{color:var(--gb-brown);line-height:1.2;margin:0 0 .5em}
h1,h2{font-family:var(--gb-head)}
p{margin:0 0 1em}
.screen-reader-text{position:absolute!important;clip:rect(1px,1px,1px,1px);width:1px;height:1px;overflow:hidden}
.skip-link:focus{position:fixed;top:8px;left:8px;z-index:999;background:#fff;padding:10px 16px;clip:auto;width:auto;height:auto}
.gb-wrap{max-width:1160px;margin:0 auto;padding:0 20px}
.gb-section{padding:56px 0}
.gb-section--soft{background:var(--gb-avocado-soft)}
.gb-section__head{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:flex-end;gap:12px;margin-bottom:28px}
.gb-section__head h2{margin:0;font-size:clamp(28px,4vw,38px)}
.gb-section__head p{margin:6px 0 0;color:var(--gb-muted)}

/* Buttons */
.gb-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:46px;padding:12px 24px;border-radius:999px;font-weight:600;text-decoration:none;border:2px solid transparent;cursor:pointer;font:inherit;font-weight:600;line-height:1.2;transition:background .15s,color .15s,transform .15s}
.gb-btn--primary{background:var(--gb-avocado);color:#fff}
.gb-btn--primary:hover{background:var(--gb-avocado-dark);color:#fff}
.gb-btn--ghost{border-color:var(--gb-brown);color:var(--gb-brown);background:transparent}
.gb-btn--ghost:hover{background:var(--gb-brown);color:#fff}
.gb-btn--block{width:100%}
.gb-tag{display:inline-block;background:var(--gb-avocado-tag);color:var(--gb-avocado-dark);font-weight:600;font-size:13px;padding:3px 11px;border-radius:999px;text-decoration:none}

/* Top bar + header */
.gb-topbar{background:var(--gb-brown);color:#FAF6EF;font-size:14px}
.gb-topbar .gb-wrap{display:flex;flex-wrap:wrap;justify-content:center;gap:4px 26px;padding-top:7px;padding-bottom:7px}
.gb-topbar a{color:#FAF6EF;text-decoration:none}
.gb-header{background:var(--gb-bg);border-bottom:1px solid var(--gb-line);position:sticky;top:0;z-index:50}
.gb-header .gb-wrap{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-top:10px;padding-bottom:10px}
.gb-brand{display:flex;align-items:center;gap:12px;text-decoration:none}
.gb-brand img{width:60px;height:60px;border-radius:50%;background:#fff}
.gb-brand span{font-family:var(--gb-head);font-weight:700;font-size:25px;color:var(--gb-brown);white-space:nowrap}
.gb-nav ul{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:4px 22px}
.gb-nav a{color:var(--gb-brown);text-decoration:none;font-weight:500;padding:6px 0;border-bottom:2px solid transparent}
.gb-nav a:hover,.gb-nav .current-menu-item>a,.gb-nav .current_page_item>a{border-color:var(--gb-avocado)}
.gb-menu-toggle{display:none;background:none;border:0;min-width:44px;min-height:44px;color:var(--gb-brown);cursor:pointer}
@media (max-width:900px){
  .gb-menu-toggle{display:inline-flex;align-items:center;justify-content:center}
  .gb-header .gb-wrap{flex-wrap:wrap}
  .gb-nav{display:none;width:100%;order:3}
  .gb-nav.is-open{display:block}
  .gb-nav ul{flex-direction:column;gap:0;padding:6px 0 10px}
  .gb-nav a{display:block;padding:11px 4px;border-bottom:1px solid var(--gb-line)}
  .gb-header__cta{display:none}
  .gb-brand span{font-size:21px}
  .gb-brand img{width:50px;height:50px}
}

/* Hero */
.gb-hero{background:var(--gb-avocado-light)}
.gb-hero .gb-wrap{display:flex;flex-wrap:wrap;align-items:center;gap:44px;padding-top:60px;padding-bottom:60px}
.gb-hero__text{flex:1 1 420px;min-width:0}
.gb-hero__text h1{font-size:clamp(34px,5.2vw,54px);margin:16px 0 16px}
.gb-hero__text p{font-size:18px;color:#4F3E30;max-width:560px}
.gb-hero__actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:22px}
.gb-hero__img{flex:1 1 360px;min-width:0;display:flex;justify-content:center}
.gb-hero__img img{width:100%;max-width:470px;aspect-ratio:1;object-fit:cover;border-radius:28px;box-shadow:0 20px 50px rgba(43,33,27,.18)}

/* Features */
.gb-features{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:20px}
.gb-feature{background:var(--gb-avocado-soft);border-radius:var(--gb-radius);padding:24px}
.gb-feature svg{width:32px;height:32px;stroke:var(--gb-brown)}
.gb-feature h3{font-size:19px;margin:10px 0 6px}
.gb-feature p{margin:0;color:var(--gb-muted)}

/* Cake cards */
.gb-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:24px}
.gb-card{background:#fff;border-radius:var(--gb-radius);overflow:hidden;box-shadow:var(--gb-shadow);display:flex;flex-direction:column}
.gb-card__img{position:relative;display:block;background:var(--gb-avocado-soft);cursor:zoom-in;border:0;padding:0;width:100%}
.gb-card__img img{width:100%;aspect-ratio:1;object-fit:cover}
.gb-card__badge{position:absolute;top:12px;left:12px;background:var(--gb-avocado);color:#fff;font-size:12px;font-weight:600;padding:4px 10px;border-radius:999px}
.gb-card__body{padding:16px 18px 20px;display:flex;flex-direction:column;gap:7px;flex:1}
.gb-card__title{font-size:18px;margin:0;font-family:var(--gb-body);font-weight:700}
.gb-card__title a{color:var(--gb-ink);text-decoration:none}
.gb-card__price{color:var(--gb-price);font-weight:700;margin:0}
.gb-card__sizes{font-size:14px;color:var(--gb-muted);margin:0}
.gb-card .gb-btn{margin-top:auto}

/* Filters */
.gb-filters{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:26px}
.gb-filters a{display:inline-flex;align-items:center;min-height:42px;padding:8px 18px;border-radius:999px;border:1.5px solid var(--gb-line);text-decoration:none;color:var(--gb-brown);font-weight:500;background:#fff}
.gb-filters a.is-active,.gb-filters a:hover{background:var(--gb-brown);border-color:var(--gb-brown);color:#fff}

/* Price table */
.gb-table-wrap{overflow-x:auto;background:#fff;border-radius:16px;box-shadow:var(--gb-shadow)}
.gb-table{width:100%;border-collapse:collapse;font-size:16px}
.gb-table th{background:var(--gb-brown);color:#FAF6EF;text-align:left;padding:12px 18px;font-weight:600}
.gb-table td{padding:12px 18px;border-bottom:1px solid #EFE7DA}
.gb-table tr:last-child td{border-bottom:0}
.gb-table td.gb-num,.gb-table th.gb-num{text-align:right}
.gb-table .gb-price{color:var(--gb-price);font-weight:700}
.gb-note{font-size:14px;color:var(--gb-muted);margin-top:12px}

/* Steps */
.gb-two{display:flex;flex-wrap:wrap;gap:40px}
.gb-two>*{flex:1 1 380px;min-width:0}
.gb-steps{display:flex;flex-direction:column;gap:18px;list-style:none;margin:0;padding:0}
.gb-steps li{display:flex;gap:16px;align-items:flex-start}
.gb-steps b.num{flex:0 0 44px;height:44px;border-radius:50%;background:var(--gb-avocado);color:#fff;display:flex;align-items:center;justify-content:center;font-size:18px}
.gb-steps strong{display:block;color:var(--gb-ink)}
.gb-steps span{color:var(--gb-muted)}

/* About + map */
.gb-about img{border-radius:var(--gb-radius);aspect-ratio:4/3;object-fit:cover;width:100%}
.gb-contact-list{list-style:none;margin:0 0 18px;padding:0;display:flex;flex-direction:column;gap:10px}
.gb-contact-list li{display:flex;gap:10px;align-items:flex-start}
.gb-contact-list svg{flex:0 0 22px;width:22px;height:22px;stroke:var(--gb-avocado);margin-top:2px}
.gb-map{border:0;width:100%;min-height:340px;border-radius:var(--gb-radius);background:#eee}

/* Single cake */
.gb-single{display:flex;flex-wrap:wrap;gap:40px;align-items:flex-start}
.gb-single__img{flex:1 1 420px;min-width:0}
.gb-single__img img{border-radius:var(--gb-radius);width:100%;aspect-ratio:1;object-fit:cover;cursor:zoom-in}
.gb-single__info{flex:1 1 360px;min-width:0}
.gb-single__info h1{font-size:clamp(28px,4vw,40px)}
.gb-breadcrumb{font-size:14px;color:var(--gb-muted);margin-bottom:18px}
.gb-breadcrumb a{color:var(--gb-muted)}

/* Forms */
.gb-form{background:#fff;border-radius:var(--gb-radius);box-shadow:var(--gb-shadow);padding:28px}
.gb-form__grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px 20px}
.gb-field{display:flex;flex-direction:column;gap:6px}
.gb-field--full{grid-column:1/-1}
.gb-field label{font-weight:600;font-size:15px}
.gb-field label .req{color:#A1361F}
.gb-field input,.gb-field select,.gb-field textarea{font:inherit;padding:11px 14px;border:1.5px solid #D9CFC0;border-radius:12px;background:#FFFDF9;color:var(--gb-ink);min-height:46px;width:100%}
.gb-field input:focus,.gb-field select:focus,.gb-field textarea:focus{outline:3px solid var(--gb-avocado-tag);border-color:var(--gb-avocado)}
.gb-field small{color:var(--gb-muted)}
.gb-radio{display:flex;flex-wrap:wrap;gap:10px}
.gb-radio label{display:flex;gap:8px;align-items:center;font-weight:500;border:1.5px solid #D9CFC0;border-radius:12px;padding:10px 14px;cursor:pointer;min-height:46px}
.gb-radio input{width:auto;min-height:0;accent-color:var(--gb-avocado)}
.gb-hp{position:absolute;left:-9999px}
.gb-alert{padding:16px 20px;border-radius:14px;margin-bottom:22px}
.gb-alert--ok{background:var(--gb-avocado-soft);border:1.5px solid var(--gb-avocado)}
.gb-alert--err{background:#FBEAE6;border:1.5px solid #C0583E}
.gb-picked{display:flex;gap:14px;align-items:center;background:var(--gb-avocado-soft);border-radius:14px;padding:10px;margin-bottom:18px}
.gb-picked img{width:72px;height:72px;border-radius:10px;object-fit:cover}

/* Content pages / blog */
.gb-page-head{background:var(--gb-avocado-light);padding:42px 0}
.gb-page-head h1{margin:0;font-size:clamp(30px,4.5vw,44px)}
.gb-page-head p{margin:8px 0 0;color:#4F3E30}
.gb-content{max-width:780px}
.gb-content img{border-radius:14px}
.gb-posts{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:24px}
.gb-post{background:#fff;border-radius:var(--gb-radius);overflow:hidden;box-shadow:var(--gb-shadow)}
.gb-post img{aspect-ratio:16/10;object-fit:cover;width:100%}
.gb-post__body{padding:18px 20px 22px}
.gb-post__body h2{font-family:var(--gb-body);font-size:19px;margin:6px 0 8px}
.gb-post__body h2 a{color:var(--gb-ink);text-decoration:none}
.gb-post__meta{font-size:13px;color:var(--gb-muted)}
.gb-pagination{margin-top:32px;display:flex;gap:8px;flex-wrap:wrap}
.gb-pagination .page-numbers{display:inline-flex;min-width:44px;min-height:44px;align-items:center;justify-content:center;border-radius:999px;background:#fff;border:1.5px solid var(--gb-line);text-decoration:none;color:var(--gb-brown);padding:0 14px}
.gb-pagination .current{background:var(--gb-brown);color:#fff}

/* Footer */
.gb-footer{background:var(--gb-brown);color:#FAF6EF;margin-top:0}
.gb-footer a{color:#FAF6EF}
.gb-footer .gb-wrap{display:flex;flex-wrap:wrap;gap:32px;justify-content:space-between;padding-top:48px;padding-bottom:30px}
.gb-footer h3{color:#FAF6EF;font-size:17px;font-family:var(--gb-body)}
.gb-footer ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
.gb-footer__brand{display:flex;align-items:center;gap:12px;margin-bottom:12px}
.gb-footer__brand img{width:56px;height:56px;border-radius:50%;background:#fff}
.gb-footer__brand span{font-family:var(--gb-head);font-size:23px;font-weight:700}
.gb-footer__bottom{border-top:1px solid rgba(250,246,239,.2);text-align:center;font-size:13px;padding:14px 20px;opacity:.85}

/* Floating contact */
.gb-float{position:fixed;right:16px;bottom:18px;z-index:60;display:flex;flex-direction:column;gap:10px}
.gb-float a{width:54px;height:54px;border-radius:50%;display:flex;align-items:center;justify-content:center;box-shadow:0 6px 18px rgba(0,0,0,.22);color:#fff;font-weight:700;font-size:13px;text-decoration:none}
.gb-float .zalo{background:#0068FF}
.gb-float .call{background:var(--gb-avocado)}
.gb-float svg{width:24px;height:24px;stroke:#fff}

/* Lightbox */
.gb-lightbox{position:fixed;inset:0;background:rgba(20,14,10,.86);z-index:100;display:none;align-items:center;justify-content:center;padding:20px}
.gb-lightbox.is-open{display:flex}
.gb-lightbox img{max-width:min(92vw,900px);max-height:86vh;border-radius:14px;object-fit:contain}
.gb-lightbox button{position:absolute;top:14px;right:14px;width:48px;height:48px;border-radius:50%;border:0;background:#fff;color:var(--gb-ink);font-size:26px;cursor:pointer}
.gb-lightbox p{position:absolute;bottom:16px;left:0;right:0;text-align:center;color:#fff;margin:0;font-weight:600}
