/* =============================
   Global containers
   ============================= */
.container{max-width:1200px;margin:0 auto;padding:0 16px}
.container-full{width:100%}

/* 顶部公告条（不遮菜单） */
.woocommerce-store-notice, p.demo_store{
  position:relative;margin:0;padding:.6rem 1rem;text-align:center;
  background:#6f3cff;color:#fff;z-index:9999
}

/* =============================
   Hero / Banner
   ============================= */
.mly-hero{
  position:relative;min-height:66vh;display:grid;place-items:center;overflow:hidden;
  background:var(--mly-hero) center/cover no-repeat;border-radius:16px;margin:70px auto;max-width:1240px
}
.mly-hero__shade{position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.15),rgba(0,0,0,.45))}
.mly-hero__content{position:relative;text-align:center;color:#fff;padding:4rem 1rem}
.mly-hero__title{font-size:clamp(28px,4vw,48px);font-weight:800;margin:.2rem 0 1rem}
.mly-hero__subtitle{opacity:.95;margin:0 0 .8rem;font-size:clamp(14px,2vw,18px)}
.mly-hero__btn{display:inline-block;padding:.7rem 1.3rem;border-radius:999px;background:#fff;color:#111;text-decoration:none;font-weight:700}
.mly-hero__btn:hover{opacity:.92}

/* =============================
   Category pills
   ============================= */
.mly-cats{margin:16px auto 10px}
.mly-cats__list{display:flex;gap:.6rem;flex-wrap:wrap;list-style:none;padding:0;margin:0}
.mly-cat{
  display:inline-block;padding:.46rem .9rem;border:1px solid #e6e6e6;border-radius:999px;
  text-decoration:none;color:#333;background:#fff;transition:.15s
}
.mly-cat:hover{border-color:#111;color:#111}
.mly-cat.is-active{background:#111;color:#fff;border-color:#111}

/* =============================
   Toolbar (orderby/results)
   ============================= */
.mly-toolbar{
  margin:.25rem auto 1rem;
  display:flex;align-items:center;gap:14px;flex-wrap:wrap
}
.mly-toolbar .woocommerce-result-count{margin:0 !important;line-height:1}
.mly-toolbar .woocommerce-ordering{margin-left:auto !important}
.mly-toolbar .woocommerce-result-count,
.mly-toolbar .woocommerce-ordering{float:none !important}
.mly-toolbar .woocommerce-ordering select{
  appearance:none;border-radius:999px;padding:.45rem .9rem;border:1px solid #e6e6e6;background:#fff
}
@media (max-width:600px){
  .mly-toolbar{flex-direction:column;align-items:flex-start;gap:10px}
  .mly-toolbar .woocommerce-ordering{margin-left:0 !important}
}

/* =============================
   Product grid（用 CSS Grid）
   ============================= */
ul.products li.product{float:none !important;width:auto !important;margin:0 !important;clear:none !important}
ul.products{
  display:grid !important;grid-template-columns:repeat(4,minmax(0,1fr));
  gap:28px;list-style:none;padding:0
}
@media (max-width:1200px){ ul.products{grid-template-columns:repeat(3,minmax(0,1fr))} }
@media (max-width:900px){  ul.products{grid-template-columns:repeat(2,minmax(0,1fr))} }
@media (max-width:600px){  ul.products{grid-template-columns:1fr;gap:18px} }

/* 旧清浮动兼容：避免 ::before/::after 占格 */
ul.products::before, ul.products::after{content:none !important;display:none !important}

/* =============================
   Product card（卡片样式）
   ============================= */
ul.products li.product.mly-card{
  background:#f6f7f9;border-radius:20px;overflow:hidden;position:relative;
  box-shadow:0 1px 0 rgba(0,0,0,.02);padding:0 !important;border:none !important
}
/* 关掉主题注入的包裹链接，避免重复标题 */
ul.products li.product.mly-card a.woocommerce-LoopProduct-link{display:none}

.mly-thumb{display:block;aspect-ratio:4/3;overflow:hidden;background:#f0f1f3}
.mly-thumb img{width:100%;height:100%;object-fit:contain;transform:translateZ(0);transition:transform .25s}
.mly-card:hover .mly-thumb img{transform:scale(1.02)}

.mly-info{padding:18px 18px 20px}
.mly-title{font-size:16px;line-height:1.35;margin:0 0 6px}
.mly-title a{color:#222;text-decoration:none}
.mly-title a:hover{text-decoration:underline}
.mly-price{font-weight:700;margin-bottom:12px;color:#111}

/* 行为按钮（蓝色主按钮，强覆盖） */
.mly-card .mly-actions .button,
.mly-card .mly-actions a.button,
.mly-card .add_to_cart_button,
.mly-card .single_add_to_cart_button{
  display:block;width:100%;padding:.78rem 1rem;border-radius:12px;text-align:center;
  background:#2276ff !important;color:#fff !important;border:none !important;
  box-shadow:0 2px 0 rgba(0,0,0,.05);font-weight:700
}
.mly-card .added_to_cart{display:none !important}

/* 价格显示优化 */
.price del{opacity:.6;margin-right:6px}
.price ins{background:none}

/* =============================
   Pagination
   ============================= */
.woocommerce-pagination{display:flex;justify-content:center;margin:18px 0 6px}
.woocommerce-pagination .page-numbers{display:inline-flex;gap:8px}
.woocommerce-pagination .page-numbers li{list-style:none}
.woocommerce-pagination a,.woocommerce-pagination span{
  display:inline-flex;align-items:center;justify-content:center;min-width:36px;height:36px;
  padding:0 .6rem;border-radius:10px;border:1px solid #e6e6e6;text-decoration:none;color:#333
}
.woocommerce-pagination .current{background:#111;color:#fff;border-color:#111}

/* =============================
   Mobile fine-tuning
   ============================= */
@media (max-width:600px){
  .mly-info{padding:14px 14px 16px}
  .mly-title{font-size:15px}
  .mly-card .mly-actions .button{padding:.7rem 1rem;border-radius:10px}
  .mly-hero{border-radius:12px}
}
@media (max-width:360px){ .mly-title{font-size:14px} }

/* =============================
   Section title
   ============================= */
.mly-sec-title{
  font-size:clamp(26px,4.2vw,32px);
  font-weight:900;line-height:1.1;text-align:center;
  margin:60px 0 50px;letter-spacing:.2px;color:#0b0f17
}

/* =============================
   Benefits（图2：三栏，媒体对象布局）
   ============================= */
.mly-benefits{margin:0 auto 20px}
.mly-benefits__grid{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));
  gap:46px 72px;align-items:center;max-width:1280px;margin:0 auto;padding:10px 8px
}
/* 单项：左图标 + 右标题/说明；无背景 */
.mly-benefit{
  display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto auto;
  column-gap:10px;row-gap:1px;align-items:center;
  background:transparent;border:0;box-shadow:none;padding:0
}
/* 图标占左两行 */
.mly-benefit__icon{
  grid-column:1;grid-row:1 / span 2;
  width:76px;height:76px;display:flex;align-items:center;justify-content:center;
  background:transparent;border:0;box-shadow:none;border-radius:0
}
.mly-benefit__icon img,.mly-benefit__icon svg{width:72px;height:72px;max-width:72px;max-height:72px}
/* 占位图标（非必需） */
.mly-ic{width:34px;height:34px;border:2px solid #111;border-radius:8px}
.mly-ic-box::after{content:'';display:block;width:18px;height:10px;border:2px solid #111;border-top:none;margin:4px auto 0;border-radius:0 0 6px 6px}

/* 右上标题 */
.mly-benefit h3{
  grid-column:2;grid-row:1;margin:0;
  font-size:clamp(14px,2.1vw,19px);font-weight:500;line-height:1.25;color:#0b0f17
}
/* 右下小字（关键：不再跨 1/-1） */
.mly-benefit p{
  grid-column:2;grid-row:2;
  font-size:clamp(10px,1.4vw,14px);color:#475569;line-height:1.7
}

/* 响应式 */
@media (max-width:900px){
  .mly-benefits__grid{grid-template-columns:repeat(2,1fr);gap:36px 36px}
  .mly-benefit__icon{width:64px;height:64px}
  .mly-benefit__icon img,.mly-benefit__icon svg{width:60px;height:60px}
}
@media (max-width:600px){
  .mly-benefits__grid{grid-template-columns:1fr;gap:28px}
  .mly-sec-title{margin:36px 0 20px}
}

/* =============================
   Brand Intro（左文案 + 右两列链接）
   ============================= */
.mly-brandintro{
  margin:50px;
  display:grid;gap:24px;grid-template-columns:2fr 1fr 1fr;align-items:start
}
@media (max-width:900px){ .mly-brandintro{grid-template-columns:1fr} }

.mly-brandintro__left{padding:0;background:transparent;border:0;box-shadow:none}
.mly-brandintro__left h3{
  margin:0 0 12px;font-size:clamp(20px,2.4vw,26px);font-weight:900;color:#111827
}
.mly-brandintro__left p{margin:0;color:#374151;line-height:1.75;font-size:15.5px}

.mly-brandintro__right{
  grid-column:2 / span 2;display:grid;gap:24px;grid-template-columns:1fr 1fr
}
.mly-linkcol__title{margin:0 0 12px;font-size:16px;font-weight:600;color:#111827}
.mly-links{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.mly-links li{margin:0}
.mly-links a{
  display:inline-block;text-decoration:none;color:#111;letter-spacing:.1px;
  transition:color .15s ease, transform .15s ease
}
.mly-links a:hover{color:#3b82f6;transform:translateX(2px)}




/* 悬浮购物车按钮（右上角） */
.mly-cart-fab{
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 10010;
}
.mly-cart-fab__btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(0,0,0,.18);
  position: relative;
}
.mly-cart-fab__btn:hover{ background:#1f2937; }
.mly-cart-fab__ic{ display:block; }

.mly-cart-fab__badge{
  position: absolute; top: -6px; right: -6px;
  min-width: 20px; height: 20px; padding: 0 6px;
  background: #ef4444; color:#fff; font-size: 12px; line-height: 20px;
  border-radius: 999px; text-align:center;
  box-shadow: 0 2px 8px rgba(239,68,68,.5);
}

/* Toast 容器（右上角下移一点，避免遮住按钮） */
.mly-toast-wrap{
  position: fixed;
  top: 70px; right: 16px;
  z-index: 10011;
  display: grid;
  gap: 8px;
  max-width: min(86vw, 380px);
}
.mly-toast{
  background:#0b0f17;
  color:#fff;
  border-radius: 10px;
  padding: 10px 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  display:flex; align-items:center; gap:8px;
  animation: mly-toast-in .18s ease-out;
}
.mly-toast.is-hide{ animation: mly-toast-out .2s ease-in forwards; }
.mly-toast__msg{ font-size: 14px; line-height: 1.4; }
.mly-toast__link{
  color:#93c5fd; text-decoration:none; font-weight:700;
}
.mly-toast__link:hover{ text-decoration:underline; }
.mly-toast__close{
  margin-left:auto; background:transparent; color:#9ca3af; border:0;
  font-size:16px; line-height:1; cursor:pointer;
}
.mly-toast__close:hover{ color:#fff; }

@keyframes mly-toast-in{
  from{ transform: translateY(-6px); opacity:0; }
  to{ transform: translateY(0); opacity:1; }
}
@keyframes mly-toast-out{
  to{ transform: translateY(-6px); opacity:0; }
}

/* 移动端稍微缩小 */
@media (max-width: 480px){
  .mly-cart-fab{ top: 14px; right: 12px; }
  .mly-cart-fab__btn{ width: 42px; height: 42px; }
  .mly-toast-wrap{ top: 64px; right: 12px; }
}

