/* Korea Anaheim ai_theme shop-home only. Does not alter normal category listing. */
.ai-shop-home {
  box-sizing:border-box; width:100% !important;
  max-width:1440px !important; margin:0 auto !important;
  transform:none !important; padding:42px 0 90px !important;
  color:#17384c; font-family:inherit;
}
.ai-shop-home, .ai-shop-home * {box-sizing:border-box}
.ai-shop-home a {text-decoration:none}
.ai-shop-home-intro {padding:0 0 22px;border-bottom:1px solid #d8e3e9;margin-bottom:22px}
.ai-shop-home-intro h1 {margin:0 0 10px;font-size:clamp(24px,2.3vw,32px);line-height:1.3;color:#112f43;font-weight:750}
.ai-shop-home-intro p,.ai-shop-home-heading p {margin:0;color:#6d8491;font-size:14px;line-height:1.6}
.ai-shop-home-nav {display:flex;flex-wrap:wrap;gap:8px;margin:0 0 42px}
.ai-shop-home-nav a {padding:11px 15px;background:#fff;border:1px solid #d8e3e9;color:#17384c;font-size:13px;font-weight:700}
.ai-shop-home-nav a:hover,.ai-shop-home-nav a:focus-visible {background:#173e55;color:#fff}
.ai-shop-home-section {margin:0 0 68px;scroll-margin-top:90px}
.ai-shop-home-heading {display:flex;justify-content:space-between;align-items:flex-end;gap:12px;border-bottom:1px solid #d8e3e9;padding:0 0 18px;margin:0 0 24px}
.ai-shop-home-heading h2 {margin:0 0 9px;font-size:clamp(21px,2vw,28px);font-weight:750;color:#112f43}
.ai-shop-home-empty {padding:34px 15px;background:#f4f8fa;border:1px solid #d8e3e9;text-align:center;color:#6d8491}
/* Important: legacy Youngcart .sct_li floats / list widths must not drive these cards. */
.ai-shop-home ul.ai-shop-home-products {display:grid !important;grid-template-columns:repeat(4,minmax(0,1fr)) !important;gap:22px !important;list-style:none !important;padding:0 !important;margin:0 !important;width:100% !important;max-width:none !important;clear:both}
.ai-shop-home ul.ai-shop-home-products::before,.ai-shop-home ul.ai-shop-home-products::after {content:none !important;display:none !important}
.ai-shop-home ul.ai-shop-home-products > li.ai-shop-item {display:block !important;float:none !important;clear:none !important;position:static;width:auto !important;min-width:0 !important;max-width:none !important;height:auto !important;margin:0 !important;padding:0 !important;text-align:left !important;border:0 !important;overflow:visible !important}
.ai-shop-home .ai-shop-card {display:flex !important;flex-direction:column !important;min-width:0;width:100%;height:100%;background:#fff;border:1px solid #d8e3e9;overflow:hidden}
.ai-shop-home .ai-shop-thumb {display:block !important;position:relative !important;width:100% !important;height:auto !important;aspect-ratio:1/1;margin:0 !important;padding:0 !important;overflow:hidden;background:#f3f7f9}
.ai-shop-home .ai-shop-thumb > a {display:flex !important;align-items:center;justify-content:center;width:100%;height:100%;overflow:hidden}
.ai-shop-home .ai-shop-thumb img {display:block !important;position:static !important;width:100% !important;height:100% !important;max-width:100% !important;max-height:100% !important;object-fit:contain !important;margin:0 !important;padding:0 !important;border:0 !important}
.ai-shop-home .ai-shop-body {display:flex !important;flex-direction:column !important;flex:1;gap:0;min-width:0;width:100%;padding:18px !important;text-align:left !important}
.ai-shop-home .ai-shop-title {display:block !important;min-width:0;overflow-wrap:anywhere;word-break:keep-all;font-weight:750;font-size:clamp(15px,1.15vw,18px);line-height:1.5;color:#123246;margin:0 0 9px !important}
.ai-shop-home .ai-shop-desc {min-height:2.9em;margin:0 0 15px !important;color:#6f8290;font-size:13px;line-height:1.55;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.ai-shop-home .ai-shop-price {margin-top:auto !important;display:flex;flex-direction:column;align-items:flex-start;gap:4px;padding-top:4px;padding-bottom:16px;line-height:1.35}
.ai-shop-home .ai-shop-price-origin {color:#97a6b2;font-size:12px;text-decoration:line-through}
.ai-shop-home .ai-shop-price-current {font-weight:800;color:#133c52;font-size:clamp(16px,1.2vw,19px);overflow-wrap:anywhere}
.ai-shop-home .ai-shop-actions {display:grid !important;grid-template-columns:1fr 1fr;gap:8px;width:100%;margin-top:auto}
.ai-shop-home .ai-shop-btn {display:flex !important;justify-content:center;align-items:center;min-width:0;min-height:42px;padding:9px 5px !important;font-size:12px;font-weight:700;text-align:center;line-height:1.4;border-radius:0 !important}
.ai-shop-home .ai-shop-btn-primary {background:#173e55;color:#fff !important;border:1px solid #173e55}
.ai-shop-home .ai-shop-btn-outline {background:#fff;color:#173e55 !important;border:1px solid #173e55}
.ai-shop-home .ai-custom-badge {position:absolute !important;top:10px;display:flex !important;align-items:center;justify-content:center;z-index:4;width:66px;min-height:66px;padding:7px;text-align:center;line-height:1.25;font-size:12px;font-weight:700;overflow-wrap:anywhere;pointer-events:none;border-radius:0}
.ai-shop-home .ai-custom-badge.is-left {left:10px}.ai-shop-home .ai-custom-badge.is-right {right:10px}
@media(max-width:1080px){.ai-shop-home ul.ai-shop-home-products{grid-template-columns:repeat(3,minmax(0,1fr)) !important;gap:16px !important}}
@media(max-width:780px){.ai-shop-home {width:100% !important;padding:24px 0 60px !important}.ai-shop-home ul.ai-shop-home-products{grid-template-columns:repeat(2,minmax(0,1fr)) !important;gap:12px !important}.ai-shop-home .ai-shop-body{padding:12px !important}.ai-shop-home .ai-shop-actions{gap:5px}.ai-shop-home .ai-shop-btn{font-size:11px;padding:8px 2px !important}}
@media(max-width:440px){.ai-shop-home ul.ai-shop-home-products{grid-template-columns:1fr !important}.ai-shop-home .ai-custom-badge{width:56px;min-height:56px;font-size:11px}.ai-shop-home .ai-shop-body{padding:15px !important}}

/* v4: mobile shop landing only -- remove inherited desktop container width/offset. */
@media (max-width: 780px) {
  #ai-content.ai-home { width:100% !important; max-width:100% !important; min-width:0 !important; overflow-x:clip; }
  #ai-content.ai-home > #container.ai-container {
    display:block !important; float:none !important; position:relative !important;
    left:auto !important; right:auto !important; transform:none !important;
    box-sizing:border-box !important; width:calc(100% - 32px) !important;
    max-width:calc(100% - 32px) !important; min-width:0 !important;
    margin:0 auto !important; padding:0 !important;
  }
  #ai-content.ai-home #container.ai-container > .ai-shop-home {
    width:100% !important; max-width:100% !important; min-width:0 !important;
    margin:0 auto !important; padding-left:0 !important; padding-right:0 !important;
    left:auto !important; right:auto !important; transform:none !important;
  }
  .ai-shop-home .ai-shop-home-intro, .ai-shop-home .ai-shop-home-section,
  .ai-shop-home .ai-shop-home-heading, .ai-shop-home .ai-shop-home-nav {
    width:100%; max-width:100%; min-width:0; box-sizing:border-box;
  }
  .ai-shop-home ul.ai-shop-home-products {width:100% !important; min-width:0 !important;}
}
@media (max-width: 440px) {
  .ai-shop-home .ai-shop-home-nav a {max-width:100%;white-space:normal;overflow-wrap:anywhere;}
  .ai-shop-home .ai-shop-card {min-width:0;}
}
