/*
Theme Name: DTFood OCOP
Theme URI: https://dtfood.asia/
Author: DTFood / Ánh Tuyết
Description: Giao diện WordPress giới thiệu và bán sản phẩm OCOP, thực phẩm truyền thống của 3FOOD – Cửa hàng Tạp hóa Ánh Tuyết.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: dtfood-ocop
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: food-and-drink, e-commerce, custom-logo, featured-images, responsive-layout
*/


    :root {
      --green:#6e8f18;
      --green-dark:#3f5f0e;
      --green-soft:#eff4df;
      --orange:#f39416;
      --orange-dark:#c96c0a;
      --cream:#fff9ee;
      --paper:#fffdf8;
      --ink:#2c291f;
      --muted:#716c60;
      --brown:#5c351d;
      --line:rgba(44,41,31,.12);
      --shadow:0 20px 60px rgba(59,42,18,.12);
      --radius:26px;
      --max:1180px;
    }
    *{box-sizing:border-box}
    html{scroll-behavior:smooth;scroll-padding-top:90px}
    body{margin:0;background:var(--paper);color:var(--ink);font-family:Inter,"Segoe UI",Arial,sans-serif;line-height:1.65}
    img{display:block;max-width:100%}
    a{color:inherit;text-decoration:none}
    button,input,textarea,select{font:inherit}
    .container{width:min(var(--max),calc(100% - 32px));margin-inline:auto}
    .eyebrow{display:inline-flex;align-items:center;gap:8px;font-size:.78rem;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:var(--green-dark)}
    .eyebrow::before{content:"";width:34px;height:2px;background:var(--orange);border-radius:2px}
    h1,h2,h3{font-family:Georgia,"Times New Roman",serif;line-height:1.15;margin:0 0 16px}
    h1{font-size:clamp(2.65rem,6vw,5.35rem);letter-spacing:-.045em}
    h2{font-size:clamp(2rem,4vw,3.45rem);letter-spacing:-.03em}
    h3{font-size:1.45rem}
    p{margin:0 0 18px;color:var(--muted)}
    .btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:50px;padding:0 22px;border-radius:999px;border:1px solid transparent;font-weight:800;cursor:pointer;transition:.25s ease}
    .btn:hover{transform:translateY(-2px)}
    .btn-primary{background:var(--orange);color:white;box-shadow:0 12px 28px rgba(243,148,22,.26)}
    .btn-primary:hover{background:var(--orange-dark)}
    .btn-outline{border-color:rgba(255,255,255,.45);color:white;background:rgba(255,255,255,.08);backdrop-filter:blur(10px)}
    .btn-light{background:white;color:var(--green-dark);box-shadow:var(--shadow)}
    .icon{width:20px;height:20px;display:inline-block}

    .topbar{background:var(--green-dark);color:white;font-size:.86rem}
    .topbar .container{display:flex;justify-content:space-between;align-items:center;gap:18px;min-height:38px}
    .topbar-links{display:flex;gap:22px;align-items:center}
    .topbar a:hover{color:#ffe1ad}

    header{position:sticky;top:0;z-index:50;background:rgba(255,253,248,.93);backdrop-filter:blur(16px);border-bottom:1px solid var(--line)}
    .nav{display:flex;align-items:center;justify-content:space-between;min-height:78px;gap:24px}
    .brand{display:flex;align-items:center;gap:12px;flex:none}
    .brand img{width:150px;height:58px;object-fit:contain;mix-blend-mode:multiply}
    .brand-note{font-size:.72rem;line-height:1.25;color:var(--muted);border-left:1px solid var(--line);padding-left:12px}
    .menu{display:flex;align-items:center;gap:6px;list-style:none;margin:0;padding:0}
    .menu a{display:block;padding:10px 12px;border-radius:12px;font-weight:700;font-size:.92rem}
    .menu a:hover,.menu a.active{background:var(--green-soft);color:var(--green-dark)}
    .menu-toggle{display:none;width:44px;height:44px;border:0;background:var(--green-soft);border-radius:12px;cursor:pointer;color:var(--green-dark)}

    .hero{position:relative;min-height:720px;display:grid;align-items:center;overflow:hidden;background:#1f230f;color:white}
    .hero::before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(23,28,10,.97) 0%,rgba(23,28,10,.86) 43%,rgba(23,28,10,.18) 74%,rgba(23,28,10,.04) 100%);z-index:1}
    .hero-bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 64%;filter:saturate(.95) contrast(1.03)}
    .hero-pattern{position:absolute;inset:0;z-index:2;opacity:.13;background-image:radial-gradient(circle at 10% 20%,#fff 0 1px,transparent 1px),radial-gradient(circle at 70% 60%,#fff 0 1px,transparent 1px);background-size:28px 28px,36px 36px}
    .hero .container{position:relative;z-index:3;padding-block:96px}
    .hero-content{max-width:690px}
    .hero .eyebrow{color:#dce9af}
    .hero h1 span{color:#ffb344}
    .hero p{font-size:1.12rem;max-width:610px;color:rgba(255,255,255,.78)}
    .hero-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:30px}
    .hero-meta{display:flex;flex-wrap:wrap;gap:12px 28px;margin-top:48px;padding-top:24px;border-top:1px solid rgba(255,255,255,.22)}
    .hero-meta b{display:block;font-size:1.15rem;color:white}
    .hero-meta span{font-size:.82rem;color:rgba(255,255,255,.64)}
    .floating-card{position:absolute;right:5vw;bottom:46px;z-index:4;width:min(340px,32vw);padding:20px 22px;border:1px solid rgba(255,255,255,.22);background:rgba(255,255,255,.12);backdrop-filter:blur(15px);border-radius:22px;box-shadow:0 20px 50px rgba(0,0,0,.25)}
    .floating-card strong{font-family:Georgia,serif;font-size:1.25rem}
    .floating-card p{font-size:.88rem;margin:5px 0 0;color:rgba(255,255,255,.7)}

    .trust-strip{position:relative;z-index:5;margin-top:-34px}
    .trust-grid{display:grid;grid-template-columns:repeat(4,1fr);background:white;border-radius:22px;box-shadow:var(--shadow);overflow:hidden}
    .trust-item{padding:24px;display:flex;gap:14px;align-items:center;border-right:1px solid var(--line)}
    .trust-item:last-child{border-right:0}
    .trust-icon{width:46px;height:46px;border-radius:14px;display:grid;place-items:center;background:var(--green-soft);color:var(--green-dark);font-size:1.3rem;flex:none}
    .trust-item b{display:block;font-size:.95rem}
    .trust-item span{font-size:.78rem;color:var(--muted)}

    section{padding:96px 0}
    .section-head{display:flex;justify-content:space-between;align-items:end;gap:30px;margin-bottom:42px}
    .section-head > div:first-child{max-width:720px}
    .section-head p{max-width:520px}

    .products{background:linear-gradient(180deg,var(--paper),var(--cream))}
    .product-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
    .product-card{background:white;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;box-shadow:0 14px 38px rgba(59,42,18,.07);transition:.3s ease}
    .product-card:hover{transform:translateY(-8px);box-shadow:var(--shadow)}
    .product-image{height:315px;position:relative;overflow:hidden;background:#e7edd4}
    .product-image img{width:100%;height:100%;object-fit:cover;transition:.5s ease}
    .product-card:hover .product-image img{transform:scale(1.04)}
    .tag{position:absolute;left:18px;top:18px;padding:7px 12px;border-radius:999px;background:rgba(255,255,255,.9);backdrop-filter:blur(10px);font-size:.76rem;font-weight:900;color:var(--green-dark)}
    .giocay-visual{height:100%;display:grid;place-items:center;background:radial-gradient(circle at 30% 20%,#fbf4d6,transparent 38%),linear-gradient(145deg,#e8efd0,#b9cb72)}
    .giocay-wrap{width:240px;height:130px;border-radius:90px 36px 36px 90px;background:linear-gradient(180deg,#f8e7ba,#dec58d);border:10px solid #4f7717;box-shadow:0 28px 50px rgba(57,78,14,.25);position:relative;transform:rotate(-8deg)}
    .giocay-wrap::before,.giocay-wrap::after{content:"";position:absolute;top:-14px;bottom:-14px;width:40px;background:#5f8a1d;border-radius:50%}
    .giocay-wrap::before{left:-10px}.giocay-wrap::after{right:-10px}
    .giocay-line{position:absolute;left:42px;right:42px;top:50%;height:5px;background:rgba(79,119,23,.4);box-shadow:0 -26px rgba(79,119,23,.25),0 26px rgba(79,119,23,.25)}
    .product-body{padding:24px}
    .product-title-row{display:flex;justify-content:space-between;gap:12px;align-items:start}
    .product-card h3{margin-bottom:8px}
    .product-price{font-weight:900;color:var(--orange-dark);white-space:nowrap}
    .product-body p{font-size:.92rem;min-height:72px}
    .product-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:16px;border-top:1px solid var(--line)}
    .mini-link{font-weight:800;color:var(--green-dark);cursor:pointer;background:none;border:0;padding:0}
    .mini-link:hover{color:var(--orange-dark)}

    .story-grid{display:grid;grid-template-columns:1.05fr .95fr;gap:70px;align-items:center}
    .story-media{position:relative;min-height:570px}
    .story-photo-main{position:absolute;inset:0 90px 45px 0;border-radius:34px;overflow:hidden;box-shadow:var(--shadow)}
    .story-photo-main img{width:100%;height:100%;object-fit:cover}
    .story-card{position:absolute;right:0;bottom:0;width:250px;padding:24px;border-radius:24px;background:var(--green-dark);color:white;box-shadow:var(--shadow)}
    .story-card p{color:rgba(255,255,255,.72);font-size:.9rem;margin:8px 0 0}
    .story-stat{font-family:Georgia,serif;font-size:2rem;color:#ffc15b}
    .check-list{display:grid;gap:14px;margin:28px 0}
    .check{display:flex;gap:12px;align-items:flex-start}
    .check i{width:24px;height:24px;border-radius:50%;display:grid;place-items:center;background:var(--green-soft);color:var(--green-dark);font-style:normal;font-weight:900;flex:none;margin-top:2px}
    .check b{display:block;margin-bottom:2px}
    .check span{font-size:.9rem;color:var(--muted)}

    .quality{background:var(--green-dark);color:white;position:relative;overflow:hidden}
    .quality::after{content:"";position:absolute;width:550px;height:550px;border:120px solid rgba(255,255,255,.05);border-radius:50%;right:-240px;top:-220px}
    .quality .eyebrow{color:#dce9af}
    .quality h2{color:white}
    .quality p{color:rgba(255,255,255,.68)}
    .quality-grid{position:relative;z-index:2;display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-top:42px}
    .quality-card{padding:28px 24px;border-radius:22px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.14);backdrop-filter:blur(8px)}
    .quality-card .num{font-family:Georgia,serif;color:#ffc15b;font-size:2.2rem;line-height:1}
    .quality-card h3{font-family:inherit;font-size:1.05rem;margin:18px 0 8px}
    .quality-card p{font-size:.87rem;margin:0}
    .ocop-note{margin-top:30px;padding:18px 20px;border:1px dashed rgba(255,255,255,.32);border-radius:16px;color:rgba(255,255,255,.76);font-size:.9rem}

    .activity-grid{display:grid;grid-template-columns:1.25fr .75fr;grid-template-rows:280px 280px;gap:18px}
    .activity-card{position:relative;overflow:hidden;border-radius:24px;min-height:220px}
    .activity-card:first-child{grid-row:span 2}
    .activity-card img{width:100%;height:100%;object-fit:cover;transition:.5s ease}
    .activity-card:hover img{transform:scale(1.045)}
    .activity-overlay{position:absolute;inset:auto 0 0;padding:55px 22px 20px;background:linear-gradient(transparent,rgba(18,18,13,.85));color:white}
    .activity-overlay b{display:block;font-family:Georgia,serif;font-size:1.2rem}
    .activity-overlay span{font-size:.82rem;color:rgba(255,255,255,.72)}

    .journal{background:var(--cream)}
    .journal-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
    .journal-card{background:white;border-radius:22px;border:1px solid var(--line);overflow:hidden}
    .journal-thumb{height:190px;display:grid;place-items:center;font-size:3.2rem;background:linear-gradient(135deg,#f4e3bd,#fff7df)}
    .journal-card:nth-child(2) .journal-thumb{background:linear-gradient(135deg,#dfe9bd,#f7fae9)}
    .journal-card:nth-child(3) .journal-thumb{background:linear-gradient(135deg,#f5d2bf,#fff0e6)}
    .journal-body{padding:22px}
    .journal-body small{color:var(--green-dark);font-weight:900;text-transform:uppercase;letter-spacing:.08em}
    .journal-body h3{font-size:1.2rem;margin:10px 0}
    .journal-body p{font-size:.87rem;margin-bottom:0}

    .order{padding-top:0}
    .order-wrap{display:grid;grid-template-columns:.9fr 1.1fr;overflow:hidden;border-radius:34px;background:#2e3514;box-shadow:var(--shadow)}
    .order-copy{padding:54px;color:white;background:linear-gradient(145deg,#425614,#26300f)}
    .order-copy h2{color:white}
    .order-copy p{color:rgba(255,255,255,.72)}
    .contact-list{display:grid;gap:14px;margin-top:28px}
    .contact-row{display:flex;gap:12px;align-items:flex-start}
    .contact-row i{width:36px;height:36px;border-radius:10px;display:grid;place-items:center;background:rgba(255,255,255,.1);font-style:normal}
    .contact-row b{display:block}
    .contact-row span{font-size:.87rem;color:rgba(255,255,255,.65)}
    .order-form{background:white;padding:48px}
    .form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
    label{display:block;font-size:.82rem;font-weight:800;margin-bottom:7px}
    input,select,textarea{width:100%;border:1px solid var(--line);border-radius:13px;padding:13px 14px;background:#fffefb;color:var(--ink);outline:none;transition:.2s}
    input:focus,select:focus,textarea:focus{border-color:var(--green);box-shadow:0 0 0 4px rgba(110,143,24,.1)}
    textarea{min-height:112px;resize:vertical}
    .full{grid-column:1/-1}
    .form-note{font-size:.78rem;color:var(--muted);margin:12px 0 0}

    footer{background:#1d210e;color:white;padding:58px 0 26px}
    .footer-grid{display:grid;grid-template-columns:1.25fr .75fr .75fr 1fr;gap:34px}
    .footer-logo{width:170px;background:white;border-radius:12px;padding:8px;margin-bottom:16px}
    footer p,footer li,footer a{color:rgba(255,255,255,.64);font-size:.86rem}
    footer h4{margin:0 0 14px;font-size:.92rem;color:white}
    footer ul{list-style:none;margin:0;padding:0;display:grid;gap:9px}
    footer a:hover{color:#ffc15b}
    .copyright{margin-top:38px;padding-top:22px;border-top:1px solid rgba(255,255,255,.1);display:flex;justify-content:space-between;gap:20px;color:rgba(255,255,255,.48);font-size:.78rem}

    .mobile-actions{display:none;position:fixed;left:10px;right:10px;bottom:10px;z-index:80;grid-template-columns:repeat(3,1fr);background:white;border-radius:18px;padding:8px;box-shadow:0 10px 35px rgba(0,0,0,.2)}
    .mobile-actions a{display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:.72rem;font-weight:800;min-height:50px;border-radius:12px}
    .mobile-actions a:nth-child(2){background:var(--green-soft);color:var(--green-dark)}
    .mobile-actions a:nth-child(3){background:var(--orange);color:white}

    .modal{position:fixed;inset:0;z-index:100;display:none;place-items:center;padding:20px;background:rgba(19,19,12,.72);backdrop-filter:blur(8px)}
    .modal.open{display:grid}
    .modal-box{width:min(760px,100%);max-height:90vh;overflow:auto;background:white;border-radius:28px;position:relative;box-shadow:0 30px 80px rgba(0,0,0,.35)}
    .modal-close{position:absolute;right:16px;top:16px;width:42px;height:42px;border:0;border-radius:50%;background:white;box-shadow:0 5px 18px rgba(0,0,0,.15);font-size:1.3rem;cursor:pointer;z-index:2}
    .modal-grid{display:grid;grid-template-columns:1fr 1fr}
    .modal-media{min-height:420px;background:var(--green-soft)}
    .modal-media img{width:100%;height:100%;object-fit:cover}
    .modal-content{padding:40px}
    .modal-content ul{padding-left:18px;color:var(--muted)}

    @media(max-width:980px){
      .menu{position:fixed;left:16px;right:16px;top:88px;display:none;flex-direction:column;align-items:stretch;padding:12px;background:white;border-radius:18px;box-shadow:var(--shadow);border:1px solid var(--line)}
      .menu.open{display:flex}.menu-toggle{display:grid;place-items:center}
      .nav>.btn{display:none}.brand-note{display:none}
      .floating-card{display:none}
      .hero{min-height:680px}.hero::before{background:linear-gradient(90deg,rgba(23,28,10,.96),rgba(23,28,10,.74) 70%,rgba(23,28,10,.45))}
      .trust-grid{grid-template-columns:1fr 1fr}.trust-item:nth-child(2){border-right:0}.trust-item:nth-child(-n+2){border-bottom:1px solid var(--line)}
      .product-grid,.quality-grid,.journal-grid{grid-template-columns:1fr 1fr}.product-card:last-child,.journal-card:last-child{grid-column:1/-1}
      .story-grid{grid-template-columns:1fr;gap:45px}.story-media{min-height:520px}
      .order-wrap{grid-template-columns:1fr}.footer-grid{grid-template-columns:1fr 1fr}
    }
    @media(max-width:680px){
      body{padding-bottom:76px}
      .topbar .container{justify-content:center}.topbar-links span:last-child{display:none}
      .brand img{width:122px;height:50px}.nav{min-height:68px}
      .hero{min-height:720px}.hero .container{padding-block:78px 110px}
      .hero-actions .btn{width:100%}
      .hero-meta{display:grid;grid-template-columns:1fr 1fr}
      .trust-strip{margin-top:-48px}.trust-grid{grid-template-columns:1fr}.trust-item{border-right:0!important;border-bottom:1px solid var(--line)!important}.trust-item:last-child{border-bottom:0!important}
      section{padding:72px 0}.section-head{display:block;margin-bottom:30px}.section-head .btn{margin-top:10px}
      .product-grid,.quality-grid,.journal-grid{grid-template-columns:1fr}.product-card:last-child,.journal-card:last-child{grid-column:auto}
      .product-image{height:280px}
      .story-media{min-height:470px}.story-photo-main{inset:0 30px 65px 0}.story-card{width:220px}
      .quality-grid{gap:12px}
      .activity-grid{grid-template-columns:1fr;grid-template-rows:none}.activity-card:first-child{grid-row:auto}.activity-card{height:260px}
      .order-copy,.order-form{padding:34px 24px}.form-grid{grid-template-columns:1fr}.full{grid-column:auto}
      .footer-grid{grid-template-columns:1fr}.copyright{flex-direction:column}
      .mobile-actions{display:grid}
      .modal-grid{grid-template-columns:1fr}.modal-media{min-height:280px}.modal-content{padding:28px 22px}
    }
    @media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
  
/* WordPress content templates */
.admin-bar header{top:32px}
.site-page{padding:78px 0 110px;min-height:60vh;background:var(--paper)}
.page-banner{padding:74px 0;background:linear-gradient(135deg,var(--green-dark),#6e8f18);color:#fff}
.page-banner h1{font-size:clamp(2.25rem,5vw,4.25rem);margin-bottom:10px}
.page-banner p{color:rgba(255,255,255,.75);max-width:720px}
.content-card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);padding:clamp(24px,5vw,54px)}
.entry-content{font-size:1.03rem}
.entry-content h2,.entry-content h3,.entry-content h4{margin-top:1.8em}
.entry-content ul,.entry-content ol{padding-left:1.3em}
.entry-content a{color:var(--green-dark);text-decoration:underline;text-underline-offset:3px}
.entry-content img{border-radius:18px;height:auto}
.post-list{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.post-card{background:#fff;border:1px solid var(--line);border-radius:22px;overflow:hidden;box-shadow:0 14px 38px rgba(59,42,18,.07)}
.post-card__image{aspect-ratio:16/10;background:var(--green-soft);overflow:hidden}
.post-card__image img{width:100%;height:100%;object-fit:cover}
.post-card__body{padding:24px}
.post-card__meta{font-size:.78rem;color:var(--green-dark);font-weight:800;text-transform:uppercase;letter-spacing:.06em}
.pagination{margin-top:40px}
.nav-links{display:flex;gap:8px;flex-wrap:wrap}
.page-numbers{padding:9px 14px;border-radius:10px;background:#fff;border:1px solid var(--line)}
.page-numbers.current{background:var(--green-dark);color:#fff}
.wp-caption{max-width:100%}
.alignwide{max-width:1180px;margin-left:auto;margin-right:auto}
.alignfull{width:100vw;margin-left:calc(50% - 50vw)}
.screen-reader-text{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:782px){.admin-bar header{top:46px}}
@media(max-width:900px){.post-list{grid-template-columns:1fr 1fr}}
@media(max-width:620px){.post-list{grid-template-columns:1fr}.site-page{padding-top:52px}.content-card{border-radius:18px}}
