/*
Theme Name: Han Coffee
Description: Giao diện cửa hàng Hân Coffee cho WordPress.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: han-coffee
*/


:root{--sky:#67b9e8;--sky2:#dff4ff;--deep:#164b68;--ink:#183747;--muted:#637c89;--cream:#fffdf8;--line:#e3edf1;--coral:#ef9271;--shadow:0 18px 45px #205a7414}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--cream);color:var(--ink);font:15px/1.6 Arial,"Segoe UI",sans-serif;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}button,input{font:inherit}a{color:inherit;text-decoration:none}.wrap{max-width:1180px;margin:auto;padding:0 24px}.announcement{background:var(--deep);color:white;text-align:center;padding:8px;font-size:13px;letter-spacing:.03em}.header{position:sticky;top:0;z-index:10;background:#fffdf8ed;backdrop-filter:blur(12px);border-bottom:1px solid var(--line)}.nav{height:76px;display:flex;align-items:center;gap:30px}.brand{display:flex;align-items:center;gap:10px;margin-right:auto;color:var(--deep);font-weight:850;font-size:22px;letter-spacing:-.04em}.logo{width:40px;height:40px;border-radius:14px;background:var(--sky);display:grid;place-items:center;color:white;font-size:21px;box-shadow:0 8px 18px #67b9e84a}.navlinks{display:flex;gap:23px;align-items:center;color:#31566a;font-weight:650;font-size:14px}.navlinks a:hover{color:#1494d0}.cart{border:0;background:var(--deep);color:white;padding:11px 16px;border-radius:999px;cursor:pointer;font-weight:700}.hero{background:linear-gradient(110deg,#e5f6ff 0%,#d1edfb 52%,#b6e2f6 100%);position:relative;overflow:hidden}.hero .inner{min-height:480px;display:grid;grid-template-columns:1.05fr .95fr;align-items:center;gap:28px;padding-top:42px;padding-bottom:42px}.eyebrow{color:#168bc2;font-weight:800;text-transform:uppercase;letter-spacing:.14em;font-size:11px}.hero h1{font-family:Arial,"Segoe UI",sans-serif;font-size:clamp(42px,6vw,70px);line-height:1.03;letter-spacing:-.025em;color:#164b68;margin:14px 0 18px}.hero p{color:#466779;font-size:17px;max-width:480px}.actions{display:flex;gap:12px;margin-top:27px;flex-wrap:wrap}.btn{border:0;background:var(--deep);color:white;padding:13px 20px;border-radius:999px;font-weight:750;cursor:pointer;display:inline-flex;align-items:center;gap:8px}.btn.secondary{background:white;color:var(--deep);border:1px solid #c9e3ef}.hero-photo{height:370px;border-radius:48% 48% 20px 20px;overflow:hidden;box-shadow:var(--shadow);transform:rotate(2deg);position:relative}.hero-photo img{width:100%;height:100%;object-fit:cover}.hero-photo:after{content:'Rang mộc mỗi ngày';position:absolute;bottom:18px;left:18px;background:white;color:var(--deep);padding:9px 15px;border-radius:99px;font-weight:750;font-size:13px}.trust{display:grid;grid-template-columns:repeat(4,1fr);gap:1px;background:var(--line);border-block:1px solid var(--line)}.trust div{background:white;padding:17px 10px;text-align:center;color:#416273;font-size:13px;font-weight:650}.trust b{font-size:20px;display:block;margin-bottom:3px}.section{padding:74px 0}.section.soft{background:#f2faff}.section-head{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:26px}.section h2{font:700 clamp(30px,4vw,42px)/1.15 Arial,"Segoe UI",sans-serif;color:var(--deep);margin:8px 0}.section-head p{color:var(--muted);margin:7px 0 0}.categories{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:24px}.chip{border:1px solid #cfe5ef;background:white;color:#466879;border-radius:99px;padding:9px 15px;cursor:pointer;font-weight:700}.chip.active,.chip:hover{background:var(--deep);color:white;border-color:var(--deep)}.toolbar{display:flex;justify-content:space-between;gap:12px;margin-bottom:22px}.search{width:min(360px,100%);border:1px solid var(--line);border-radius:99px;padding:11px 16px;background:white;outline-color:var(--sky)}.count{font-size:13px;color:var(--muted);align-self:center}.grid{display:grid;grid-template-columns:repeat(4,1fr);gap:19px}.card{background:white;border:1px solid #edf1f2;border-radius:18px;overflow:hidden;box-shadow:0 8px 25px #17445d08;transition:.2s}.card:hover{transform:translateY(-4px);box-shadow:var(--shadow)}.product-img{height:210px;background:#eaf7fc;position:relative;overflow:hidden}.product-img img{width:100%;height:100%;object-fit:cover;transition:transform .4s}.card:hover .product-img img{transform:scale(1.05)}.badge{position:absolute;top:12px;left:12px;background:#fff;color:var(--deep);padding:5px 9px;border-radius:99px;font-size:11px;font-weight:800}.card-body{padding:16px}.sku{font-size:10px;letter-spacing:.1em;color:#89a2ae;font-weight:800}.card h3{font:700 18px/1.25 Arial,"Segoe UI",sans-serif;margin:7px 0 6px;color:var(--deep)}.desc{font-size:12px;color:var(--muted);min-height:39px;margin:0 0 11px}.price-row{display:flex;justify-content:space-between;align-items:center;gap:6px}.price{font-weight:850;color:#d47b4c}.add{border:0;background:#e4f5fc;color:#17658b;border-radius:50%;width:36px;height:36px;cursor:pointer;font-weight:900;font-size:20px}.add:hover{background:var(--sky);color:white}.story{display:grid;grid-template-columns:1fr 1fr;gap:55px;align-items:center}.story-img{height:390px;border-radius:22px;overflow:hidden}.story-img img{width:100%;height:100%;object-fit:cover}.story-copy p{color:#5d7783}.story-points{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:24px}.story-points div{background:white;border:1px solid var(--line);border-radius:14px;padding:14px;font-weight:700;color:var(--deep)}.story-points small{display:block;color:var(--muted);font-weight:450}.feature{background:var(--deep);color:white;border-radius:23px;padding:34px;display:grid;grid-template-columns:1fr auto;gap:24px;align-items:center}.feature h2{color:white;margin:0 0 8px}.feature p{color:#c6e3f0;margin:0}.feature .btn{background:white;color:var(--deep)}.contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:35px}.contact-box{background:white;border:1px solid var(--line);border-radius:18px;padding:24px}.contact-box h3{color:var(--deep);margin-top:0}.contact-box p{color:var(--muted)}.form{display:grid;gap:11px}.form input,.form textarea{width:100%;padding:12px 14px;border:1px solid var(--line);border-radius:10px;background:white}.form textarea{min-height:100px}.policy{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.policy article{padding:22px;background:white;border:1px solid var(--line);border-radius:16px}.policy h3{color:var(--deep);margin:3px 0}.policy p{color:var(--muted);font-size:14px}.marketing{background:#f1faff}.marketing-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.marketing-card{background:white;border:1px solid var(--line);border-radius:17px;padding:21px}.marketing-card h3{color:var(--deep);margin:5px 0}.marketing-card p,.marketing-card li{font-size:13px;color:var(--muted)}.marketing-card ul{padding-left:18px}.newsletter{background:linear-gradient(120deg,#cceeff,#eefaff);padding:40px 0}.newsletter-inner{display:flex;align-items:center;justify-content:space-between;gap:20px}.newsletter h2{font:700 29px Arial,"Segoe UI",sans-serif;color:var(--deep);margin:0}.newsletter p{margin:5px 0;color:#557282}.newsletter form{display:flex;gap:8px;max-width:440px;width:100%}.newsletter input{min-width:0;flex:1;border:0;border-radius:99px;padding:12px 16px}footer{background:#143f58;color:#d8edf6;padding:42px 0 22px}.footer-grid{display:grid;grid-template-columns:1.3fr 1fr 1fr;gap:35px}.footer-grid h3,.footer-grid h4{color:white}.footer-grid p,.footer-grid a{color:#b2d1de;font-size:13px}.footer-links{display:grid;gap:7px}.copyright{border-top:1px solid #ffffff25;margin-top:28px;padding-top:16px;font-size:12px;color:#9dbdcb}.toast{position:fixed;bottom:22px;left:50%;transform:translate(-50%,150%);background:#173f56;color:white;padding:12px 18px;border-radius:99px;transition:.25s;z-index:30;box-shadow:var(--shadow)}.toast.show{transform:translate(-50%,0)}.mobile-menu{display:none}.empty{grid-column:1/-1;text-align:center;padding:40px;color:var(--muted)}@media(max-width:900px){.grid{grid-template-columns:repeat(3,1fr)}.navlinks{gap:13px}.hero .inner{min-height:420px}.marketing-grid{grid-template-columns:1fr 1fr}}@media(max-width:680px){.wrap{padding:0 17px}.nav{height:66px;gap:10px}.navlinks{display:none;position:absolute;left:0;right:0;top:66px;padding:17px 22px;background:white;border-bottom:1px solid var(--line);flex-direction:column;align-items:flex-start}.navlinks.open{display:flex}.mobile-menu{display:block;border:0;background:white;font-size:22px;color:var(--deep)}.cart{padding:10px 12px}.brand{font-size:19px}.hero .inner{grid-template-columns:1fr;padding-top:44px}.hero-photo{height:260px;max-width:420px;width:100%;justify-self:center}.trust{grid-template-columns:repeat(2,1fr)}.section{padding:54px 0}.section-head{display:block}.grid{grid-template-columns:repeat(2,1fr);gap:11px}.product-img{height:155px}.card-body{padding:12px}.card h3{font-size:16px}.desc{font-size:11px}.toolbar{flex-direction:column}.story,.contact-grid{grid-template-columns:1fr;gap:24px}.story-img{height:270px}.policy,.marketing-grid{grid-template-columns:1fr}.feature{grid-template-columns:1fr;padding:25px}.newsletter-inner{display:block}.newsletter form{margin-top:18px}.footer-grid{grid-template-columns:1fr 1fr}.footer-grid>div:first-child{grid-column:1/-1}}@media(max-width:390px){.grid{grid-template-columns:1fr 1fr}.product-img{height:130px}.footer-grid{grid-template-columns:1fr}}

.cart-dialog{border:0;padding:0;width:min(560px,calc(100% - 24px));max-height:min(86vh,760px);border-radius:22px;box-shadow:0 24px 80px #102e3b40;color:var(--ink)}
.cart-dialog::backdrop{background:#102d3dcc;backdrop-filter:blur(3px)}
.cart-panel{padding:24px;display:flex;flex-direction:column;max-height:86vh}
.cart-header{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);padding-bottom:14px}
.cart-header h2{font:700 30px Arial,"Segoe UI",sans-serif;color:var(--deep);margin:6px 0 0}
.close-cart{border:0;background:#edf8fc;color:var(--deep);width:40px;height:40px;border-radius:50%;font-size:26px;cursor:pointer}
.cart-contents{overflow:auto;flex:1}
.cart-item{display:flex;gap:14px;padding:16px 0;border-bottom:1px solid var(--line)}
.cart-item>img{width:88px;height:88px;object-fit:cover;border-radius:13px;background:var(--sky2)}
.cart-item-info{flex:1}.cart-item-info h3{font:700 18px Arial,"Segoe UI",sans-serif;color:var(--deep);margin:3px 0}.cart-item-info>strong{color:#d47b4c}
.quantity{display:flex;align-items:center;gap:11px;margin-top:8px}.quantity button{border:1px solid var(--line);background:white;border-radius:8px;width:30px;height:30px;cursor:pointer;color:var(--deep);font-weight:800}.quantity .remove-item{border:0;width:auto;margin-left:auto;color:#a9524c;font-weight:650}
.cart-summary{border-top:1px solid var(--line);padding-top:15px}.cart-summary>div{display:flex;justify-content:space-between;font-size:18px}.cart-summary strong{color:var(--deep)}.cart-summary p{font-size:12px;color:var(--muted);margin:5px 0 14px}.checkout{width:100%;justify-content:center}
.cart-empty{text-align:center;padding:28px 12px;color:var(--muted)}.cart-empty>span{font-size:40px}.cart-empty h3{color:var(--deep);margin:4px}


/* Hero image refresh */
.hero-photo{height:360px;width:100%;max-width:520px;justify-self:end;border-radius:28px;overflow:hidden;box-shadow:0 24px 56px #164b6826;transform:none;border:1px solid #ffffffa8}
.hero-photo img{width:100%;height:100%;object-fit:cover;object-position:center 54%;display:block}
.hero-photo:before{content:"";position:absolute;inset:48% 0 0;background:linear-gradient(180deg,transparent,#102f3b42);pointer-events:none}
.hero-photo:after{bottom:18px;left:18px;background:#fff;color:var(--deep);padding:9px 15px;border:1px solid #ffffffb8;box-shadow:0 6px 20px #102f3b24;border-radius:999px;font-size:13px}
@media(max-width:680px){.hero-photo{height:260px;max-width:460px;justify-self:center;border-radius:22px}}
/* Full-width fading hero image carousel */
.hero{position:relative;isolation:isolate;overflow:hidden;background:#dff4ff;min-height:610px}
.hero-background{position:absolute;inset:0;z-index:-2;overflow:hidden}
.hero-slide{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 46%;opacity:0;transform:scale(1.025);transition:opacity 1.2s ease,transform 6s ease}
.hero-slide.active{opacity:1;transform:scale(1)}
.hero:after{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(90deg,#dff4ff 0%,#dff4fff2 32%,#dff4ff9c 58%,#dff4ff24 100%),linear-gradient(0deg,#fffdf8 0%,#fffdf800 32%)}
.hero .inner{position:relative;z-index:1;display:block;min-height:610px;padding-top:112px;padding-bottom:120px}
.hero-copy{max-width:590px}
.hero h1{max-width:600px}
.hero p{max-width:500px}
.hero-controls{position:absolute;right:24px;bottom:52px;display:flex;align-items:center;gap:10px;padding:8px 12px;background:#fffdf8d9;border:1px solid #ffffffc9;border-radius:999px;box-shadow:0 10px 28px #164b6818;backdrop-filter:blur(8px)}
.hero-controls>button{display:grid;place-items:center;width:32px;height:32px;border:0;border-radius:50%;background:var(--deep);color:white;font-size:22px;line-height:1;cursor:pointer}
.hero-dots{display:flex;align-items:center;gap:7px;padding:0 3px}
.hero-dots button{width:8px;height:8px;padding:0;border:0;border-radius:50%;background:#9fb7c2;cursor:pointer;transition:all .2s}
.hero-dots button.active{width:22px;border-radius:99px;background:var(--sky)}
.hero-caption{padding-left:5px;color:var(--deep);font-size:12px;font-weight:700;white-space:nowrap}
@media(max-width:680px){.hero{min-height:610px}.hero:after{background:linear-gradient(90deg,#dff4ffed,#dff4ffb5),linear-gradient(0deg,#fffdf8 0%,#fffdf800 38%)}.hero .inner{min-height:610px;padding-top:75px;padding-bottom:115px}.hero-background{inset:0}.hero-slide{object-position:58% center}.hero-controls{right:17px;bottom:30px;left:17px;justify-content:center}.hero-caption{display:none}}
@media(prefers-reduced-motion:reduce){.hero-slide{transition:none}}
/* Refined brand mark */
.brand .logo{width:44px;height:44px;flex:0 0 44px;border-radius:50%;background:transparent;box-shadow:none;object-fit:contain}
/* Keep carousel above the hero background and below its text */
.hero-background{z-index:0}
.hero:after{z-index:1}
.hero .inner{z-index:2}
.form .btn{justify-self:start;width:auto;padding:10px 18px;border-radius:12px;font-size:14px;min-height:42px;box-shadow:0 6px 16px #164b6818;transition:transform .18s ease,background-color .18s ease,box-shadow .18s ease}
.form .btn:hover{background:#1d5d7d;transform:translateY(-1px);box-shadow:0 9px 20px #164b6826}
.form .btn:focus-visible{outline:3px solid #8bd5f4;outline-offset:3px}.checkout-form{display:grid;gap:12px;padding-top:18px}.checkout-form label{display:grid;gap:6px;color:#466879;font-size:13px;font-weight:700}.checkout-form input,.checkout-form textarea{width:100%;border:1px solid var(--line);border-radius:10px;background:white;padding:11px 13px;color:var(--deep);font:inherit;outline-color:var(--sky)}.checkout-form textarea{min-height:70px;resize:vertical}.checkout-message{margin:0;min-height:0;color:#aa463b;font-size:13px}.checkout-form .checkout{margin-top:4px}
