.template-shop-modern {
    --shop-navy: #111d34;
    --shop-indigo: #4f46e5;
    --shop-gray: #64748b;
    --shop-soft: #f5f7fb;
    --shop-orange: #f59e0b;
    background: #fff;
}

.template-shop-modern .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.template-shop-modern .site-nav {
    position: sticky;
    top: 0;
    max-width: 1480px;
    height: auto;
    min-height: 78px;
    gap: 20px;
    border-bottom: 1px solid #e8ebf2;
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(15px);
}

.template-shop-modern .site-brand { flex: 0 0 auto; }
.template-shop-modern .site-brand strong { color: var(--shop-navy); white-space: nowrap; }
.template-shop-modern .site-brand span { background: var(--shop-navy); }
.template-shop-modern .site-product-search { display: flex; width: min(360px, 28vw); min-width: 210px; }
.template-shop-modern .site-product-search input {
    width: 100%;
    min-width: 0;
    height: 42px;
    padding: 0 16px;
    border: 1px solid #dfe3ec;
    border-radius: 10px 0 0 10px;
    outline: 0;
    background: var(--shop-soft);
    color: var(--shop-navy);
    font: inherit;
}
.template-shop-modern .site-product-search input:focus { border-color: var(--shop-indigo); box-shadow: 0 0 0 3px rgba(79,70,229,.12); }
.template-shop-modern .site-product-search button { height: 42px; padding: 0 14px; border: 0; border-radius: 0 10px 10px 0; background: var(--shop-navy); color: #fff; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.template-shop-modern .site-nav > nav { gap: clamp(11px, 1.25vw, 20px); font-size: 12px; }
.template-shop-modern .site-nav > nav a { white-space: nowrap; }
.template-shop-modern .site-nav .nav-contact { padding: 9px 13px; background: var(--shop-indigo); }
.template-shop-modern .site-nav .nav-catalog { padding: 8px 12px; border-radius: 9px; background: var(--shop-navy); color: #fff; }

.template-shop-modern .customer-hero {
    grid-template-columns: minmax(0,.92fr) minmax(420px,1.08fr);
    min-height: 610px;
    padding-top: 64px;
    padding-bottom: 64px;
    background: linear-gradient(135deg,#fff 0%,#f8f9fc 100%);
}
.template-shop-modern .customer-hero h1 { max-width: 640px; color: var(--shop-navy); font-size: clamp(48px,5.4vw,76px); letter-spacing: -3px; }
.template-shop-modern .customer-hero .hero-inner > p:not(.site-eyebrow) { color: var(--shop-gray); }
.template-shop-modern .customer-hero .site-eyebrow { color: var(--shop-indigo); }
.template-shop-modern .customer-hero .hero-media { max-width: 680px; aspect-ratio: 3/2; border: 0; border-radius: 28px; box-shadow: 0 30px 75px rgba(17,29,52,.14); }
.template-shop-modern .customer-hero .site-button { background: var(--shop-indigo); }

.shop-category-strip { max-width: 1280px; margin: auto; padding: 48px 24px 68px; scroll-margin-top: 100px; }
.shop-category-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 24px; }
.shop-category-heading span, .shop-promotion-intro > span { color: var(--shop-indigo); font-size: 11px; font-weight: 800; letter-spacing: 1.7px; text-transform: uppercase; }
.shop-category-heading h2, .shop-promotion-intro h2 { margin: 4px 0 0; color: var(--shop-navy); font-size: clamp(28px,3vw,42px); line-height: 1.2; }
.shop-category-heading > a { color: var(--shop-indigo); font-size: 13px; font-weight: 800; }
.shop-category-list { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px,1fr); gap: 12px; overflow-x: auto; padding-bottom: 12px; scroll-snap-type: x mandatory; }
.shop-category-list a { display: grid; min-height: 132px; align-content: center; gap: 5px; padding: 18px; border: 1px solid #e5e8f0; border-radius: 16px; background: #fff; scroll-snap-align: start; transition: border-color .2s ease, transform .2s ease; }
.shop-category-list a:hover { border-color: var(--shop-indigo); transform: translateY(-3px); }
.shop-category-list a > span { display: grid; width: 34px; height: 34px; place-items: center; margin-bottom: 5px; border-radius: 10px; background: #eef2ff; color: var(--shop-indigo); font-weight: 900; }
.shop-category-list strong { color: var(--shop-navy); }
.shop-category-list small { color: var(--shop-gray); }

.template-shop-modern .products-section { max-width: 1280px; padding-top: 76px; padding-bottom: 90px; }
.template-shop-modern .products-section .product-grid:not(.collection-row) { grid-template-columns: repeat(4,minmax(0,1fr)); }
.template-shop-modern .product-card { border-color: #e7eaf1; border-radius: 16px; box-shadow: none; transition: box-shadow .2s ease, transform .2s ease; }
.template-shop-modern .product-card:hover { box-shadow: 0 20px 45px rgba(17,29,52,.11); transform: translateY(-4px); }
.template-shop-modern .product-card-image { aspect-ratio: 1; background: #f7f7f6; }
.template-shop-modern .product-card-content { gap: 8px; padding: 16px; }
.template-shop-modern .product-card h2, .template-shop-modern .product-card h3 { color: var(--shop-navy); font-size: 17px; }
.template-shop-modern .product-price strong { color: var(--shop-indigo); }
.template-shop-modern .product-detail-link { background: var(--shop-navy); }

.shop-promotions { display: grid; grid-template-columns: minmax(260px,.75fr) minmax(0,1.25fr); gap: 48px; padding: 72px max(24px,calc((100% - 1232px)/2)); scroll-margin-top: 100px; background: var(--shop-navy); color: #fff; }
.shop-promotion-intro h2 { color: #fff; }
.shop-promotion-intro > p { max-width: 520px; color: #cbd5e1; }
.shop-promotion-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.shop-promotion-grid article { padding: 24px; border: 1px solid rgba(255,255,255,.13); border-radius: 16px; background: rgba(255,255,255,.06); }
.shop-promotion-grid b { color: #fbbf24; font-size: 11px; letter-spacing: 1.4px; }
.shop-promotion-grid h3 { margin: 20px 0 8px; font-size: 19px; }
.shop-promotion-grid p { margin: 0; color: #cbd5e1; font-size: 14px; }

.template-shop-modern .services-section, .template-shop-modern .features-section, .template-shop-modern .about-section, .template-shop-modern .review-section { max-width: 1280px; }
.template-shop-modern .services-section .service-grid { --section-columns: 4 !important; }
.template-shop-modern .services-section .service-image { display: none; }
.template-shop-modern .services-section .service-grid h3 { margin-top: 18px; }
.template-shop-modern .service-grid article, .template-shop-modern .feature-grid article { min-height: 0; border-color: #e7eaf1; box-shadow: none; }
.template-shop-modern .review-grid blockquote { border: 1px solid #e7eaf1; box-shadow: none; }
.template-shop-modern .review-grid blockquote::before { display: block; margin-bottom: 12px; color: var(--shop-indigo); content: "ข้อมูล Demo"; font-size: 11px; font-weight: 800; letter-spacing: 1px; }
.template-shop-modern .call-to-action-section { background: var(--shop-indigo) !important; }
.template-shop-modern.site-subpage .site-nav { max-width: none; padding-inline: max(24px,calc((100% - 1432px)/2)); }
.template-shop-modern.site-subpage .collection-archive, .template-shop-modern.site-subpage .product-detail { width: min(1280px,100%); }
.template-shop-modern .collection-empty { display: grid; justify-items: center; gap: 12px; padding: 60px 24px; border: 1px dashed #cbd5e1; border-radius: 16px; color: var(--shop-gray); text-align: center; }
.template-shop-modern .collection-empty strong { color: var(--shop-navy); font-size: 20px; }
.template-shop-modern .collection-empty a { color: var(--shop-indigo); font-weight: 800; }

@media (max-width: 1240px) {
    .template-shop-modern .site-nav > nav { display: none; }
    .template-shop-modern .mobile-site-menu { display: block; }
    .template-shop-modern .site-product-search { width: min(440px,45vw); }
    .shop-promotion-grid { grid-template-columns: 1fr; }
}

@media (max-width: 1024px) {
    .template-shop-modern .customer-hero { grid-template-columns: 1fr 1fr; min-height: 560px; }
    .template-shop-modern .customer-hero h1 { font-size: clamp(42px,5.6vw,58px); }
    .template-shop-modern .products-section .product-grid:not(.collection-row) { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .template-shop-modern .services-section .service-grid { --section-columns: 2 !important; }
    .shop-promotions { grid-template-columns: .8fr 1.2fr; }
}

@media (max-width: 768px) {
    .template-shop-modern .site-nav { flex-wrap: wrap; gap: 10px; padding-top: 11px; padding-bottom: 11px; }
    .template-shop-modern .site-brand strong { font-size: 15px; }
    .template-shop-modern .site-product-search { order: 3; width: 100%; }
    .template-shop-modern .customer-hero { grid-template-columns: 1fr; padding-top: 54px; text-align: left; }
    .template-shop-modern .customer-hero .hero-inner { margin: 0; }
    .template-shop-modern .customer-hero .hero-inner > p:not(.site-eyebrow) { margin-left: 0; }
    .template-shop-modern .customer-hero .hero-media { margin-top: 30px; }
    .template-shop-modern .products-section .product-grid:not(.collection-row) { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .shop-promotions { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .template-shop-modern .site-brand strong { max-width: 155px; overflow: hidden; text-overflow: ellipsis; }
    .template-shop-modern .customer-hero h1 { font-size: 40px; letter-spacing: -1.8px; }
    .shop-category-strip { padding-inline: 18px; }
    .shop-category-list { grid-auto-columns: 72%; }
    .template-shop-modern .products-section .product-grid:not(.collection-row) { gap: 12px; }
    .template-shop-modern .product-card-content { padding: 12px; }
    .template-shop-modern .product-card h2, .template-shop-modern .product-card h3 { font-size: 15px; }
    .template-shop-modern .product-card p, .template-shop-modern .product-card-inquiry { display: none; }
    .template-shop-modern .services-section .service-grid { --section-columns: 1 !important; }
}
