/*
Theme Name: YuLongPack
Theme URI: https://yulongpack.com
Author: YuLongPack
Author URI: https://yulongpack.com
Description: Custom B2B wholesale theme for a disposable plastic cups manufacturer. Showcases PP/PET cups & lids with custom logo printing, targeting coffee shops, milk tea shops and distributors. Built from SEO keyword research; mobile responsive, lightweight, no external dependencies.
Version: 2.2.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: yulongpack
Tags: e-commerce, custom-logo, two-columns, right-sidebar, blog, news, responsive, translation-ready
*/

/* =========================================================
   1. Design Tokens
   ========================================================= */
:root{
  --primary:#0f766e;        /* deep teal - main brand */
  --primary-dark:#115e59;
  --primary-light:#ccfbf1;
  --accent:#f59e0b;         /* amber - CTA highlight */
  --dark:#0f172a;           /* slate-900 */
  --slate:#1e293b;
  --muted:#64748b;
  --line:#e2e8f0;
  --bg-light:#f1f5f9;
  --bg-soft:#f8fafc;
  --white:#ffffff;
  --radius:12px;
  --shadow:0 10px 30px rgba(15,23,42,.08);
  --maxw:1180px;
}

/* =========================================================
   2. Base / Reset
   ========================================================= */
*,*::before,*::after{box-sizing:border-box;}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%;}
body{
  margin:0;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"PingFang SC","Microsoft YaHei",sans-serif;
  font-size:17px;line-height:1.7;color:var(--slate);
  background:var(--white);
}
img{max-width:100%;height:auto;display:block;}
a{color:var(--primary);text-decoration:none;transition:color .2s ease;}
a:hover{color:var(--primary-dark);}
h1,h2,h3,h4,h5,h6{margin:0 0 .5em;line-height:1.25;color:var(--dark);font-weight:700;}
p{margin:0 0 1em;}
ul,ol{margin:0 0 1em;padding-left:1.4em;}

.container{max-width:var(--maxw);margin:0 auto;padding:0 20px;}

/* =========================================================
   3. Buttons
   ========================================================= */
.btn{
  display:inline-block;padding:13px 26px;border-radius:999px;
  font-size:16px;font-weight:600;line-height:1;text-align:center;
  border:2px solid transparent;cursor:pointer;transition:all .2s ease;
}
.btn-lg{padding:16px 34px;font-size:17px;}
.btn-primary{background:var(--primary);color:#fff;}
.btn-primary:hover{background:var(--primary-dark);color:#fff;}
.btn-outline{background:transparent;border-color:#fff;color:#fff;}
.btn-outline:hover{background:#fff;color:var(--dark);}
.btn-accent{background:var(--accent);color:#fff;}
.btn-accent:hover{background:#d97706;color:#fff;}

/* =========================================================
   4. Header / Nav
   ========================================================= */
.site-header{
  position:sticky;top:0;z-index:100;
  background:rgba(255,255,255,.96);backdrop-filter:blur(6px);
  border-bottom:1px solid var(--line);
}
.header-inner{display:flex;align-items:center;justify-content:space-between;gap:24px;min-height:74px;}
.site-branding .site-title{margin:0;font-size:24px;font-weight:800;}
.site-branding .site-title a{color:var(--dark);}
.site-branding .site-description{margin:0;font-size:13px;color:var(--muted);}
.main-navigation ul{list-style:none;display:flex;gap:6px;margin:0;padding:0;}
.main-navigation li{position:relative;}
.main-navigation a{display:block;padding:10px 14px;font-weight:500;color:var(--slate);border-radius:8px;}
.main-navigation a:hover{color:var(--primary);background:var(--bg-light);}
.main-navigation .current-menu-item > a{color:var(--primary);}

/* Dropdown submenus - use WP native classes for reliability */
.main-navigation .sub-menu{
  display:none !important;
  position:absolute;
  top:100%;
  left:0;
  min-width:220px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:10px;
  box-shadow:0 12px 32px rgba(15,23,42,.12);
  padding:8px 0;
  margin:0;
  list-style:none;
  flex-direction:column;
  gap:0;
  z-index:200;
}
.main-navigation .menu-item-has-children:hover > .sub-menu,
.main-navigation .menu-item-has-children:focus-within > .sub-menu{
  display:flex !important;
}
.main-navigation .sub-menu li{
  display:block;
  width:100%;
  float:none;
}
.main-navigation .sub-menu a{
  display:block;
  padding:10px 18px;
  border-radius:0;
  white-space:nowrap;
  font-size:15px;
  float:none;
}
.main-navigation .sub-menu a:hover{
  background:var(--bg-light);
  color:var(--primary);
}
/* Third-level dropdowns fly out to the right */
.main-navigation .sub-menu .sub-menu{
  top:0;
  left:100%;
}

.header-cta{flex-shrink:0;padding:11px 22px;}

.menu-toggle{display:none;flex-direction:column;justify-content:center;gap:5px;width:44px;height:44px;padding:10px;background:none;border:1px solid var(--line);border-radius:8px;cursor:pointer;}
.menu-toggle span{display:block;height:2px;width:100%;background:var(--dark);border-radius:2px;}

/* =========================================================
   5. Sections
   ========================================================= */
.section{padding:84px 0;}
.section-light{background:var(--bg-soft);}
.section-dark{background:var(--dark);color:#cbd5e1;}
.section-dark h2{color:#fff;}
.section-head{max-width:720px;margin:0 auto 48px;text-align:center;}
.section-head h2{font-size:34px;margin-bottom:14px;}
.section-head p{color:var(--muted);font-size:18px;}
.section-kicker,.hero-kicker{text-transform:uppercase;letter-spacing:.12em;font-weight:700;font-size:13px;color:var(--accent);margin-bottom:12px;}
.section-cta{text-align:center;margin-top:40px;}

/* =========================================================
   6. Hero
   ========================================================= */
.hero{
  position:relative;overflow:hidden;color:#fff;
  background:linear-gradient(135deg,#0f172a 0%,#134e4a 55%,#0f766e 100%);
}
.hero-has-bg{background-size:cover;background-position:center;background-repeat:no-repeat;}
.hero-overlay{
  position:absolute;inset:0;
  background:linear-gradient(135deg,rgba(15,23,42,.82) 0%,rgba(19,78,74,.72) 55%,rgba(15,118,110,.62) 100%);
  z-index:1;
}
.hero-inner{position:relative;z-index:2;max-width:860px;padding:110px 20px 130px;text-align:center;}
.hero-kicker{color:#5eead4;}
.hero-title{color:#fff;font-size:52px;line-height:1.15;margin:0 0 18px;}
.hero-sub{font-size:20px;color:#cbd5e1;max-width:680px;margin:0 auto 34px;}
.hero-actions{display:flex;gap:14px;justify-content:center;flex-wrap:wrap;}

/* =========================================================
   7. Trust bar
   ========================================================= */
.trust-bar{background:var(--primary);}
.trust-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;padding:26px 20px;text-align:center;}
.trust-item strong{display:block;font-size:22px;color:#fff;font-weight:800;}
.trust-item span{color:#99f6e4;font-size:14px;}

/* =========================================================
   8. Products
   ========================================================= */
.product-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:26px;}
.product-card{
  background:#fff;border:1px solid var(--line);border-radius:var(--radius);
  padding:28px;box-shadow:var(--shadow);transition:transform .2s ease,box-shadow .2s ease;
  display:flex;flex-direction:column;
}
.product-card:hover{transform:translateY(-4px);box-shadow:0 18px 40px rgba(15,23,42,.12);}
.product-thumb{border-radius:10px;overflow:hidden;margin-bottom:18px;background:var(--bg-light);aspect-ratio:4/3;display:flex;align-items:center;justify-content:center;color:var(--muted);font-size:14px;}
.product-card .product-title{font-size:20px;margin-bottom:8px;}
.product-card .product-title a{color:var(--dark);}
.product-card p{color:var(--muted);font-size:15px;flex:1;}
.product-card .product-more{font-weight:600;}

/* =========================================================
   8b. Product detail page
   ========================================================= */
.breadcrumb{
  font-size:14px;color:var(--muted);margin-bottom:24px;
}
.breadcrumb a{color:var(--muted);}
.breadcrumb a:hover{color:var(--primary);}
.breadcrumb span{margin:0 6px;}

.product-detail-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:48px;
  margin-bottom:56px;
}
.product-main-image{
  border-radius:var(--radius);
  overflow:hidden;
  background:var(--bg-soft);
  border:1px solid var(--line);
}
.product-main-image img{width:100%;height:auto;}
.product-placeholder{
  display:flex;align-items:center;justify-content:center;
  aspect-ratio:1/1;color:var(--muted);font-size:16px;
}
.product-detail-title{
  font-size:34px;
  margin-bottom:16px;
  line-height:1.2;
}
.product-detail-excerpt{
  font-size:17px;
  color:var(--muted);
  margin-bottom:28px;
}
.product-actions{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  margin-bottom:36px;
}
.btn-whatsapp{
  background:#25D366;
  color:#fff;
  display:inline-flex;
  align-items:center;
  gap:10px;
}
.btn-whatsapp:hover{
  background:#1ebe5b;
  color:#fff;
}
.btn-outline-dark{
  background:transparent;
  border-color:var(--dark);
  color:var(--dark);
}
.btn-outline-dark:hover{
  background:var(--dark);
  color:#fff;
}
.product-highlights h3{
  font-size:18px;
  margin-bottom:12px;
}
.product-highlights .check-list li{
  font-size:15px;
  padding:6px 0 6px 30px;
}
.product-detail-content{
  border-top:1px solid var(--line);
  padding-top:40px;
  margin-bottom:56px;
}
.product-detail-content h2{
  font-size:26px;
  margin-bottom:18px;
}
.related-products{
  border-top:1px solid var(--line);
  padding-top:48px;
}
.related-title{
  font-size:26px;
  margin-bottom:28px;
  text-align:center;
}

@media (max-width:768px){
  .product-detail-grid{
    grid-template-columns:1fr;
    gap:28px;
  }
  .product-detail-title{font-size:26px;}
}

/* =========================================================
   9. Custom branding section
   ========================================================= */
.custom-inner{display:grid;grid-template-columns:1.1fr .9fr;gap:60px;align-items:center;}
.check-list{list-style:none;padding:0;margin:0 0 28px;}
.check-list li{position:relative;padding:8px 0 8px 34px;font-size:17px;}
.check-list li::before{
  content:"";position:absolute;left:0;top:12px;width:20px;height:20px;border-radius:50%;
  background:var(--primary-light);
  background-image:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="%230f766e"><path fill-rule="evenodd" d="M16.7 5.3a1 1 0 0 1 0 1.4l-8 8a1 1 0 0 1-1.4 0l-4-4a1 1 0 1 1 1.4-1.4L8 12.6l7.3-7.3a1 1 0 0 1 1.4 0z" clip-rule="evenodd"/></svg>');
  background-size:20px 20px;background-position:center;background-repeat:no-repeat;
}
.custom-visual{
  border-radius:var(--radius);background:linear-gradient(160deg,#134e4a,#0f766e);
  color:#fff;min-height:360px;display:flex;align-items:center;justify-content:center;
  box-shadow:var(--shadow);
}
.cup-placeholder{font-size:20px;font-weight:700;letter-spacing:.05em;opacity:.9;}
.custom-branding-img{
  display:block;width:100%;height:100%;min-height:360px;
  object-fit:cover;border-radius:var(--radius);
}

/* =========================================================
   10. Factory strip
   ========================================================= */
.factory-inner{max-width:760px;text-align:center;margin:0 auto;}
.factory-inner h2{font-size:34px;margin-bottom:14px;}
.factory-inner p{font-size:18px;color:#cbd5e1;margin-bottom:30px;}

/* =========================================================
   11. Blog cards
   ========================================================= */
.blog-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:26px;}
.post-card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow);}
.post-card a img{width:100%;aspect-ratio:16/9;object-fit:cover;}
.post-card .post-title{font-size:18px;padding:18px 20px 0;}
.post-card .post-title a{color:var(--dark);}
.post-meta{color:var(--muted);font-size:13px;padding:0 20px;margin:6px 0;}
.post-card p{padding:0 20px 20px;font-size:15px;color:var(--muted);}

/* =========================================================
   12. Page / Blog layout
   ========================================================= */
.content-area{padding:64px 0;}
.page-header{margin-bottom:36px;}
.page-header .entry-title{font-size:38px;}
.entry-content{max-width:780px;}
.entry-content img{border-radius:10px;margin:1em 0;}
.alignwide{max-width:var(--maxw);margin-left:auto;margin-right:auto;}
.single-article,.archive-intro{margin-bottom:36px;}
.archive-intro h1{font-size:34px;}

/* =========================================================
   13. Footer
   ========================================================= */
.site-footer{background:#0f172a;color:#94a3b8;font-size:15px;}
.footer-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr 1.2fr;gap:40px;padding:64px 20px 40px;}
.footer-col h4{color:#fff;font-size:16px;margin-bottom:16px;}
.footer-col ul{list-style:none;padding:0;margin:0;}
.footer-col ul li{margin-bottom:10px;}
.footer-col a{color:#94a3b8;}
.footer-col a:hover{color:#5eead4;}
.footer-bottom{border-top:1px solid #1e293b;padding:20px 0;text-align:center;font-size:14px;color:#64748b;}
.footer-bottom p{margin:0;}

/* =========================================================
   14. Contact / CTA block
   ========================================================= */
.cta-band{background:linear-gradient(135deg,#0f766e,#134e4a);color:#fff;text-align:center;padding:80px 20px;}
.cta-band h2{color:#fff;font-size:34px;}
.cta-band p{font-size:18px;color:#ccfbf1;max-width:640px;margin:0 auto 30px;}

/* =========================================================
   15. Accessibility & helpers
   ========================================================= */
.screen-reader-text{border:0;clip:rect(1px,1px,1px,1px);clip-path:inset(50%);height:1px;width:1px;margin:-1px;overflow:hidden;padding:0;position:absolute !important;word-wrap:normal !important;}
.skip-link{position:absolute;left:-9999px;top:0;z-index:9999;background:#fff;padding:10px 16px;}
.skip-link:focus{left:0;color:var(--dark);}

/* =========================================================
   17. Floating WhatsApp button
   ========================================================= */
.whatsapp-float{
  position:fixed;
  bottom:28px;
  right:28px;
  width:64px;
  height:64px;
  z-index:9999;
  display:block;
  text-align:center;
  line-height:64px;
  transition:transform .2s ease;
  animation:wa-pulse 2.2s infinite;
}
.whatsapp-float:hover{
  transform:scale(1.12);
}
.whatsapp-float img{
  display:inline-block;
  vertical-align:middle;
  max-width:64px;
  max-height:64px;
  width:auto;
  height:auto;
}
@keyframes wa-pulse{
  0%{transform:scale(1);}
  50%{transform:scale(1.07);}
  100%{transform:scale(1);}
}
@media (max-width:768px){
  .whatsapp-float{width:56px;height:56px;bottom:20px;right:20px;line-height:56px;}
  .whatsapp-float img{max-width:56px;max-height:56px;}
}

/* =========================================================
   16. Responsive
   ========================================================= */
@media (max-width:1024px){
  .product-grid,.blog-grid{grid-template-columns:repeat(2,1fr);}
  .custom-inner{grid-template-columns:1fr;gap:40px;}
  .footer-grid{grid-template-columns:1fr 1fr;}
}
@media (max-width:768px){
  body{font-size:16px;}
  .hero-title{font-size:36px;}
  .hero-inner{padding:80px 20px 96px;}
  .section{padding:60px 0;}
  .section-head h2{font-size:28px;}
  .trust-grid{grid-template-columns:repeat(2,1fr);gap:16px;}
  .product-grid,.blog-grid{grid-template-columns:1fr;}
  .footer-grid{grid-template-columns:1fr;gap:28px;}
  .header-cta{display:none;}

  /* mobile menu */
  .menu-toggle{display:flex;}
  .main-navigation{position:fixed;top:74px;left:0;right:0;background:#fff;border-bottom:1px solid var(--line);box-shadow:var(--shadow);max-height:0;overflow:hidden;transition:max-height .3s ease;}
  .main-navigation.open{max-height:70vh;overflow-y:auto;}
  .main-navigation ul{flex-direction:column;padding:12px 16px;}
  .main-navigation a{padding:12px 8px;font-size:17px;}
  /* mobile: expand submenus inline */
  .main-navigation ul ul{
    display:flex;position:static;min-width:0;
    box-shadow:none;border:none;border-radius:0;
    padding:4px 0 4px 18px;
  }
  .main-navigation ul ul a{font-size:15px;padding:8px;}
}
