/*
Theme Name: Dang Khoa eSIM Travel
Theme URI: https://dangkhoa.shop
Author: dangkhoa.shop
Description: Travel-themed WooCommerce theme for selling eSIM data plans. Boarding-pass product cards, destination tiles, Pexels photo import. Auto-creates pages, menu, 10 products and 6 blog posts.
Version: 2.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: esim-shop
*/
:root{--night:#0b2239;--blue:#1565a8;--coral:#ff6a3d;--sun:#ffc84a;--mist:#eef6fa;--line:#d6e3ea;--mute:#566b7a;--white:#fff}
*{box-sizing:border-box}
body{margin:0;font-family:"Figtree",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;color:var(--night);background:var(--mist);line-height:1.65;font-size:17px}
h1,h2,h3,h4{font-family:"Fraunces",Georgia,serif;line-height:1.12;margin:0 0 .5em;font-weight:700;letter-spacing:-.01em}
h1{font-size:clamp(2.4rem,5.4vw,4.2rem)}h2{font-size:clamp(1.8rem,3.2vw,2.5rem)}h3{font-size:1.25rem}
a{color:var(--blue)}img{max-width:100%;height:auto;display:block}
.wrap{width:min(1200px,92%);margin:0 auto}
a:focus-visible,button:focus-visible,input:focus-visible,summary:focus-visible{outline:3px solid var(--coral);outline-offset:2px}
/* header */
.site-header{background:var(--white);border-bottom:1px solid var(--line);position:sticky;top:0;z-index:60}
.site-header .wrap{display:flex;align-items:center;justify-content:space-between;gap:22px;padding:14px 0;flex-wrap:wrap}
.brand{display:flex;align-items:center;gap:10px;font-family:"Fraunces",serif;font-weight:700;font-size:1.4rem;color:var(--night);text-decoration:none}
.brand svg{width:30px;height:30px}
.nav ul{list-style:none;display:flex;gap:26px;margin:0;padding:0;flex-wrap:wrap}
.nav a{color:var(--night);text-decoration:none;font-weight:600}
.nav a:hover,.nav .current-menu-item>a{color:var(--coral)}
.cart-link{display:inline-flex;gap:8px;align-items:center;background:var(--night);color:#fff;text-decoration:none;padding:9px 16px;border-radius:999px;font-weight:600;font-size:.95rem}
.cart-link b{background:var(--sun);color:var(--night);border-radius:999px;padding:0 8px;font-size:.85rem}
.btn,.woocommerce a.button,.woocommerce button.button,.woocommerce #respond input#submit,.woocommerce a.button.alt,.woocommerce button.button.alt,.woocommerce button.button.alt.disabled{display:inline-block;background:var(--coral);color:var(--night);padding:13px 26px;border-radius:999px;font-weight:700;text-decoration:none;border:0;cursor:pointer;font-size:1rem;line-height:1.2}
.btn:hover,.woocommerce a.button:hover,.woocommerce button.button:hover,.woocommerce a.button.alt:hover,.woocommerce button.button.alt:hover{background:#ff8460;color:var(--night)}
.btn.ghost{background:transparent;color:#fff;border:2px solid rgba(255,255,255,.7)}
.btn.ghost:hover{background:rgba(255,255,255,.15);color:#fff}
/* hero */
.hero{position:relative;color:#fff;background:var(--night) center/cover no-repeat;isolation:isolate}
.hero:before{content:"";position:absolute;inset:0;background:linear-gradient(100deg,rgba(11,34,57,.88) 0%,rgba(11,34,57,.55) 55%,rgba(11,34,57,.15) 100%);z-index:-1}
.hero .wrap{display:grid;grid-template-columns:1.2fr .8fr;gap:50px;align-items:center;padding:110px 0 120px}
.hero p.lead{font-size:1.25rem;max-width:32em;color:#e4eef5}
.hero .actions{display:flex;gap:14px;margin-top:28px;flex-wrap:wrap}
.picker{background:var(--white);color:var(--night);border-radius:18px;padding:26px;box-shadow:0 20px 50px rgba(0,0,0,.28)}
.picker h2{font-size:1.4rem;margin-bottom:6px}
.picker p{margin:0 0 16px;color:var(--mute);font-size:.95rem}
.chips{display:flex;flex-wrap:wrap;gap:10px}
.chips a{display:inline-block;padding:9px 16px;border:1.5px solid var(--line);border-radius:999px;color:var(--night);text-decoration:none;font-weight:600;font-size:.95rem;background:var(--mist)}
.chips a:hover{border-color:var(--coral);background:#fff4ef}
.credit{position:absolute;right:14px;bottom:10px;font-size:.75rem;color:#cfe0ec}
/* sections */
section.block{padding:78px 0}
.block.white{background:var(--white)}
.head{display:flex;justify-content:space-between;align-items:end;margin-bottom:34px;gap:20px;flex-wrap:wrap}
.head p{margin:0;color:var(--mute);max-width:34em}
.dest{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}
.dest a{position:relative;display:block;border-radius:16px;overflow:hidden;aspect-ratio:3/4;color:#fff;text-decoration:none;background:var(--night)}
.dest img{width:100%;height:100%;object-fit:cover}
.dest span{position:absolute;inset:auto 0 0 0;padding:60px 18px 18px;background:linear-gradient(transparent,rgba(11,34,57,.88));font-family:"Fraunces",serif;font-size:1.4rem;font-weight:700}
.dest small{display:block;font-family:"Figtree",sans-serif;font-size:.9rem;font-weight:500;color:#d6e6f0}
.benefits{display:grid;grid-template-columns:repeat(4,1fr);gap:28px}
.benefits svg{width:38px;height:38px;color:var(--coral);margin-bottom:10px}
.benefits p{color:var(--mute);margin:0}
.steps{display:grid;grid-template-columns:repeat(3,1fr);gap:0;counter-reset:s;position:relative}
.steps div{padding:0 30px 0 0}
.steps div:before{counter-increment:s;content:counter(s);display:grid;place-items:center;width:46px;height:46px;border-radius:50%;background:var(--sun);font-family:"Fraunces",serif;font-weight:700;font-size:1.3rem;margin-bottom:14px}
.steps p{color:var(--mute)}
.posts{display:grid;grid-template-columns:repeat(3,1fr);gap:28px}
.post-card{background:var(--white);border-radius:16px;overflow:hidden;display:flex;flex-direction:column;border:1px solid var(--line)}
.post-card img{width:100%;aspect-ratio:16/10;object-fit:cover}
.post-card .in{padding:20px 22px 24px}
.post-card h3 a{color:var(--night);text-decoration:none}
.post-card h3 a:hover{color:var(--coral)}
.post-card small{color:var(--mute)}
.cta{position:relative;isolation:isolate;color:#fff;text-align:center;padding:90px 0;background:var(--night) center/cover}
.cta:before{content:"";position:absolute;inset:0;background:rgba(11,34,57,.78);z-index:-1}
.cta p{max-width:36em;margin:0 auto 26px;color:#dce9f2}
/* inner pages */
.page-head{background:var(--night) center/cover;color:#fff;padding:64px 0;position:relative;isolation:isolate}
.page-head:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(11,34,57,.92),rgba(11,34,57,.6));z-index:-1}
.page-head p{color:#d3e2ee;margin:0;max-width:40em}
.content{padding:56px 0}
.entry{max-width:800px}
.entry img{border-radius:14px}
.split{display:grid;grid-template-columns:1fr 1fr;gap:48px;align-items:center}
.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;margin:26px 0}
.cards div{background:var(--white);border:1px solid var(--line);border-radius:14px;padding:22px}
.cards h3{color:var(--blue)}
details{background:var(--white);border:1px solid var(--line);border-radius:12px;padding:14px 20px;margin-bottom:12px}
summary{cursor:pointer;font-weight:700}
details[open] summary{margin-bottom:8px}
/* footer */
.site-footer{background:var(--night);color:#b9cddb;padding:52px 0 26px}
.site-footer .wrap{display:grid;grid-template-columns:2fr 1fr 1.2fr;gap:36px}
.site-footer a{color:#e6f0f7}
.site-footer h4{color:#fff;font-size:1.05rem}
.site-footer ul{list-style:none;margin:0;padding:0}
.copy{text-align:center;margin-top:34px;font-size:.88rem;width:min(1200px,92%);margin-inline:auto;border-top:1px solid #1e3c58;padding-top:20px;display:block!important}
/* WooCommerce: grid + boarding pass */
.woocommerce ul.products,ul.products{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:24px;margin:0;padding:0;list-style:none}
.woocommerce ul.products:before,.woocommerce ul.products:after{display:none!important}
.woocommerce ul.products li.product{float:none!important;width:auto!important;margin:0!important;background:var(--white);border-radius:16px;overflow:hidden;padding:0 0 18px;text-align:left;display:flex;flex-direction:column;border:1px solid var(--line);position:relative}
.woocommerce ul.products li.product a.woocommerce-LoopProduct-link{display:block;flex:1}
.woocommerce ul.products li.product a img{margin:0 0 14px;aspect-ratio:4/3;object-fit:cover;width:100%}
.woocommerce ul.products li.product .woocommerce-loop-product__title{padding:0 18px;font-family:"Fraunces",serif;font-size:1.1rem;line-height:1.25}
.woocommerce ul.products li.product .price{display:block;padding:4px 18px 0;color:var(--blue);font-weight:800;font-size:1.15rem}
.esim-spec{display:flex;justify-content:space-between;gap:8px;margin:16px 0 0;padding:14px 18px 0;border-top:2px dashed var(--line);position:relative;font-size:.85rem;color:var(--mute)}
.esim-spec:before,.esim-spec:after{content:"";position:absolute;top:-11px;width:20px;height:20px;border-radius:50%;background:var(--mist)}
.esim-spec:before{left:-10px}.esim-spec:after{right:-10px}
.esim-spec b{display:block;color:var(--night);font-size:1rem}
.woocommerce ul.products li.product .button{margin:14px 18px 0;text-align:center}
.block.white .woocommerce ul.products li.product .esim-spec:before,.block.white .woocommerce ul.products li.product .esim-spec:after{background:var(--white)}
.woocommerce span.onsale{background:var(--sun);color:var(--night)}
.woocommerce div.product p.price,.woocommerce div.product span.price{color:var(--blue);font-weight:800}
.esim-table{width:100%;border-collapse:collapse;margin:18px 0;background:var(--white);border:1px solid var(--line);border-radius:12px;overflow:hidden}
.esim-table th,.esim-table td{padding:10px 14px;text-align:left;border-bottom:1px solid var(--line);font-size:.96rem}
.esim-table th{width:36%;color:var(--mute);font-weight:600}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active{border-bottom-color:var(--coral)}
.woocommerce div.product div.images img{border-radius:14px}
.woocommerce-tabs .panel h3{margin-top:1.4em}
@media(max-width:900px){.hero .wrap,.split,.benefits,.steps,.posts,.cards,.dest,.site-footer .wrap{grid-template-columns:1fr 1fr}.hero .wrap{grid-template-columns:1fr;padding:70px 0}.steps{grid-template-columns:1fr;gap:26px}}
@media(max-width:560px){.benefits,.posts,.cards,.dest,.site-footer .wrap{grid-template-columns:1fr}}
@media(prefers-reduced-motion:no-preference){.btn,.chips a{transition:background .15s,border-color .15s}}
