/*
Theme Name: GINYOU Kadence
Template: kadence
Version: 2.0
Description: Premium e-commerce design — GINYOU Global
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ============================================================
   GINYOU DESIGN SYSTEM v2.0
   Brand: #e63946 (CTA Red) | #1a1a2e (Dark) | #c9a96e (Gold)
   ============================================================ */

/* ── 1. GLOBAL RESET & TYPOGRAPHY ── */
*, *::before, *::after { box-sizing: border-box; }

html body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    font-size: 16px !important;
    line-height: 1.6 !important;
    color: #1a1a1a !important;
    background: #f8f9fa !important;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    font-weight: 700 !important;
    letter-spacing: -0.02em !important;
    line-height: 1.2 !important;
    color: #1a1a2e !important;
}

h1 { font-weight: 800 !important; }
h2 { font-weight: 700 !important; }

a { color: inherit !important; text-decoration: none !important; }
a:hover { text-decoration: none !important; }

img { max-width: 100%; height: auto; display: block; }

/* ── 2. ANNOUNCEMENT BAR ── */
#ginyou-announcement {
    background: #e63946 !important;
    color: #fff !important;
    text-align: center !important;
    padding: 10px 16px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    letter-spacing: 0.3px !important;
    font-family: 'Inter', sans-serif !important;
}

/* ── 3. HEADER ── */
html body .site-header,
html body .site-main-header-wrap,
html body #masthead,
html body .site-header-section,
html body .site-header-row-container {
    background: #1a1a2e !important;
}

/* Logo text */
html body .site-header .site-title a,
html body .site-header .site-branding a,
html body header .site-title a {
    color: #ffffff !important;
    font-weight: 800 !important;
    font-size: 20px !important;
}

/* Nav links */
html body .site-header nav a,
html body .site-header .menu-item a,
html body .primary-navigation .menu-item > a,
html body .main-navigation a,
html body .nav-link {
    color: rgba(255,255,255,0.88) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    transition: color 0.2s !important;
}
html body .site-header nav a:hover,
html body .main-navigation a:hover {
    color: #e63946 !important;
}

/* Mobile hamburger */
html body .menu-toggle,
html body .mobile-toggle {
    color: #ffffff !important;
}

/* ── 4. PRODUCT CARDS ── */
html body ul.products li.product,
html body ul.products li.entry.product {
    background: #ffffff !important;
    border-radius: 12px !important;
    border: 1px solid #eeeeee !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06) !important;
    overflow: hidden !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
    padding: 0 !important;
}
html body ul.products li.product:hover,
html body ul.products li.entry.product:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12) !important;
}

/* Product image — uniform height */
html body ul.products li.product .woocommerce-loop-image-link img,
html body ul.products li.entry .woocommerce-loop-image-link img,
html body ul.products li.entry .woocommerce-LoopProduct-link img,
html body .products li img {
    height: 220px !important;
    width: 100% !important;
    object-fit: contain !important;
    background: #f8f9fa !important;
    padding: 16px !important;
    display: block !important;
}

/* img lazy placeholder */
img[loading="lazy"] {
    background: #f0f0f0;
    min-height: 100px;
}

/* Product details area */
html body .woocommerce ul.products li.product .product-details,
html body ul.products li.entry .product-details {
    padding: 12px 16px 0 !important;
    background: #fff !important;
}

/* Product title */
html body ul.products li.product h2.woocommerce-loop-product__title,
html body ul.products li.entry h2.woocommerce-loop-product__title,
html body .products h2.woocommerce-loop-product__title {
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    color: #1a1a2e !important;
    margin-bottom: 8px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    min-height: 54px !important;
}

/* Price */
html body .woocommerce ul.products li.product .price,
html body ul.products li.entry .price,
html body .products .price,
html body ul.products li.product .price .woocommerce-Price-amount {
    color: #e63946 !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    margin-bottom: 8px !important;
}

/* Add to Cart button */
html body ul.products li.product .product-action-wrap,
html body ul.products li.entry .product-action-wrap,
html body ul.products.woo-archive-action-on-hover li.entry .product-action-wrap,
html body .woo-archive-action-on-hover .product-action-wrap {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    position: relative !important;
    display: block !important;
    padding: 8px 0 0 !important;
}

html body ul.products .button,
html body ul.products .add_to_cart_button,
html body ul.products li.product .product-action-wrap a.button,
html body ul.products li.entry .product-action-wrap a.button,
html body .products .button,
html body .products .add_to_cart_button,
html body .products a.button,
html body ul.products li .product-action-wrap a,
html body .woocommerce .products .add_to_cart_button,
html body .product-action-wrap .button {
    background: #e63946 !important;
    background-color: #e63946 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 0 0 12px 12px !important;
    padding: 12px 16px !important;
    font-weight: 700 !important;
    font-size: 12px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    text-decoration: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    transition: background 0.2s ease !important;
}
html body ul.products .button:hover,
html body ul.products .add_to_cart_button:hover,
html body .products .button:hover,
html body .products .add_to_cart_button:hover {
    background: #c1121f !important;
    background-color: #c1121f !important;
    color: #fff !important;
}

/* Hide product excerpt in cards */
html body ul.products li.entry .product-excerpt,
html body .products li .product-excerpt { display: none !important; }

/* ── 5. SINGLE PRODUCT PAGE ── */
html body.single-product .woocommerce-product-gallery {
    border-radius: 12px !important;
    overflow: hidden !important;
    width: 50% !important;
    float: left !important;
}
html body.single-product div.product .summary,
html body.single-product .entry-summary {
    width: 46% !important;
    float: right !important;
    padding-left: 32px !important;
}

html body.single-product .product_title,
html body.single-product h1.product_title {
    font-size: clamp(24px, 4vw, 36px) !important;
    font-weight: 800 !important;
    color: #1a1a2e !important;
}

html body.single-product div.product p.price {
    font-size: 28px !important;
    color: #e63946 !important;
    font-weight: 800 !important;
}

html body.single-product form.cart .single_add_to_cart_button,
html body.single-product .single_add_to_cart_button {
    background: #e63946 !important;
    color: #ffffff !important;
    padding: 16px 32px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
    border: none !important;
    cursor: pointer !important;
    min-width: 200px !important;
    width: 100% !important;
    box-shadow: 0 4px 14px rgba(230,57,70,0.35) !important;
    transition: background 0.2s, transform 0.1s !important;
}
html body.single-product .single_add_to_cart_button:hover {
    background: #c1121f !important;
    transform: translateY(-1px) !important;
}

/* Gallery visible */
html body .woocommerce-product-gallery { opacity: 1 !important; visibility: visible !important; }
html body .woocommerce-product-gallery__image { display: block !important; }

/* ── 6. CART & CHECKOUT ── */
.wc-block-cart__submit-button,
.wc-block-components-checkout-place-order-button,
html body .woocommerce .checkout-button,
html body .woocommerce a.checkout-button {
    background: #e63946 !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    padding: 15px 24px !important;
    border-radius: 8px !important;
    border: none !important;
    font-size: 16px !important;
    letter-spacing: 0.3px !important;
    box-shadow: 0 4px 14px rgba(230,57,70,0.3) !important;
    cursor: pointer !important;
    transition: background 0.2s !important;
}
.wc-block-cart__submit-button:hover,
.wc-block-components-checkout-place-order-button:hover {
    background: #c1121f !important;
}

/* ── 7. WOOCOMMERCE FORMS ── */
.woocommerce-form input,
.woocommerce input[type="text"],
.woocommerce input[type="email"],
.woocommerce input[type="tel"],
.woocommerce input[type="password"],
.woocommerce input[type="number"],
.woocommerce textarea,
.woocommerce select {
    border: 1px solid #dddddd !important;
    border-radius: 8px !important;
    padding: 12px 16px !important;
    font-size: 15px !important;
    font-family: 'Inter', sans-serif !important;
    transition: border-color 0.2s ease !important;
    outline: none !important;
}
.woocommerce input:focus,
.woocommerce textarea:focus,
.woocommerce select:focus {
    border-color: #e63946 !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(230,57,70,0.1) !important;
}

/* ── 8. GLOBAL BUTTON TRANSITIONS ── */
.button, button, input[type="submit"], a.button {
    transition: all 0.2s ease !important;
}

/* General site buttons */
html body a.button:not(.add_to_cart_button):not(.single_add_to_cart_button),
html body button.button,
html body input[type="submit"] {
    background: #e63946 !important;
    color: #fff !important;
    border-radius: 6px !important;
    border: none !important;
}

/* ── 9. FOOTER ── */
html body .site-footer,
html body #colophon,
html body footer {
    background: #1a1a2e !important;
    color: #cccccc !important;
    padding: 40px 0 20px !important;
}

html body .site-footer a,
html body #colophon a,
html body footer a {
    color: #c9a96e !important;
    transition: color 0.2s !important;
}
html body .site-footer a:hover { color: #e8c98d !important; }

/* Hide "Powered by WordPress / Kadence" credit */
html body .footer-credit,
html body .site-info .sep,
html body .site-info a[href*="kadence"],
html body .site-info a[href*="wordpress"] {
    display: none !important;
}

/* ── 10. CATEGORY PAGE (hide default title, hero via PHP) ── */
html body .woocommerce-products-header,
html body h1.entry-title.woocommerce-products-header__title.page-title,
html body .entry-hero.product-archive-hero-section,
html body h1.entry-title.product-archive-title {
    display: none !important;
}

/* Category hero (output by PHP hook) */
.ginyou-category-hero {
    background: #1a1a2e;
    color: #ffffff;
    padding: 60px 24px;
    text-align: center;
    width: 100%;
    margin-bottom: 40px;
}
.ginyou-category-hero h1 {
    font-size: clamp(28px, 5vw, 48px) !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    letter-spacing: -0.02em !important;
    margin-bottom: 12px !important;
}
.ginyou-category-hero p.cat-desc {
    font-size: 16px;
    color: rgba(255,255,255,0.75);
    max-width: 560px;
    margin: 0 auto 16px;
    line-height: 1.6;
}
.ginyou-category-hero .cat-count {
    display: inline-block;
    background: #e63946;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 4px 14px;
    border-radius: 20px;
    letter-spacing: 0.3px;
}

/* ── 11. RESPONSIVE ── */
@media (max-width: 768px) {
    html body ul.products.columns-4,
    html body ul.products.columns-3 {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    html body.single-product .woocommerce-product-gallery,
    html body.single-product div.product .summary,
    html body.single-product .entry-summary {
        width: 100% !important;
        float: none !important;
        padding-left: 0 !important;
        margin-top: 24px !important;
    }

    html body .woocommerce-product-gallery {
        max-width: 100% !important;
        float: none !important;
    }
}

@media (max-width: 480px) {
    html body ul.products.columns-4,
    html body ul.products.columns-3,
    html body ul.products.columns-2 {
        grid-template-columns: 1fr 1fr !important;
    }

    html body ul.products li.product .woocommerce-loop-image-link img,
    html body ul.products li.entry .woocommerce-loop-image-link img {
        height: 160px !important;
    }
}

/* === LOGO TRANSPARENT FIX === */
.custom-logo-link img, .site-branding img, header img.custom-logo {
  mix-blend-mode: normal !important;
  background: transparent !important;
  max-height: 60px !important;
  width: auto !important;
  display: block !important;
}
/* 更新favicon和head引用到透明版 */

/* ================================================
   GINYOU Mobile-First Responsive v2
   ================================================ */

/* === iPhone (<=480px) === */
@media (max-width: 480px) {

  .site-header .container, .site-header-row-container-inner {
    padding: 0 12px !important;
  }
  .custom-logo-link img, .site-branding img {
    max-height: 44px !important;
    width: auto !important;
  }
  .main-navigation { display: none; }

  #ginyou-announcement, div[style*="background:#e63946"] {
    font-size: 11px !important;
    padding: 8px 12px !important;
    line-height: 1.4 !important;
  }

  .ginyou-hero { padding: 40px 16px 32px !important; }
  .ginyou-hero h1 { font-size: 28px !important; line-height: 1.2 !important; }
  .ginyou-hero p { font-size: 14px !important; }
  .ginyou-hero-buttons { flex-direction: column !important; gap: 10px !important; }
  .ginyou-hero-buttons a { width: 100% !important; text-align: center !important; padding: 14px !important; }

  .ginyou-trust-bar { grid-template-columns: repeat(2, 1fr) !important; gap: 8px !important; padding: 16px !important; }
  .ginyou-trust-item { padding: 12px 8px !important; font-size: 11px !important; }
  .ginyou-trust-item svg { width: 24px !important; height: 24px !important; }

  .ginyou-categories-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 10px !important; padding: 0 12px !important; }
  .ginyou-cat-card { min-height: 120px !important; padding: 16px 12px !important; }
  .ginyou-cat-card h3 { font-size: 14px !important; }
  .ginyou-cat-count { font-size: 11px !important; }
  .ginyou-cat-link { font-size: 12px !important; padding: 6px 12px !important; }

  ul.products.columns-4,
  ul.products.columns-3,
  ul.products { 
    grid-template-columns: repeat(2, 1fr) !important;
    display: grid !important;
    gap: 10px !important;
    padding: 0 10px !important;
  }
  ul.products li.product { margin: 0 !important; }
  ul.products li.product img { height: 160px !important; }
  .woocommerce-loop-product__title { font-size: 11px !important; line-height: 1.3 !important; }
  ul.products li.product .price { font-size: 14px !important; }
  ul.products .button { font-size: 10px !important; padding: 9px 6px !important; }

  .ginyou-bestsellers-grid { 
    grid-template-columns: repeat(2, 1fr) !important; 
    gap: 10px !important;
    padding: 0 10px !important;
  }
  .ginyou-bs-card img { height: 140px !important; }
  .ginyou-bs-card h3 { font-size: 12px !important; }

  .ginyou-why-grid { 
    grid-template-columns: 1fr !important; 
    gap: 16px !important;
    padding: 0 16px !important;
  }

  .ginyou-email-bar { padding: 32px 16px !important; }
  .ginyou-email-bar h2 { font-size: 20px !important; }
  .ginyou-email-form { flex-direction: column !important; max-width: 100% !important; }
  .ginyou-email-form input { width: 100% !important; border-radius: 8px !important; }
  .ginyou-email-form button { width: 100% !important; border-radius: 8px !important; margin-top: 8px !important; }

  .single-product .woocommerce-product-gallery,
  .single-product div.product .woocommerce-product-gallery { 
    float: none !important; 
    width: 100% !important; 
    max-width: 100% !important;
  }
  .single-product div.product .entry-summary {
    float: none !important;
    width: 100% !important;
    padding: 16px !important;
    margin: 0 !important;
  }
  .single-product .product_title { font-size: 22px !important; }
  .single-product .single_add_to_cart_button { width: 100% !important; }

  .wc-block-cart { padding: 0 12px !important; }
  .wc-block-cart__main { flex-direction: column !important; }

  .woocommerce-billing-fields .form-row-first,
  .woocommerce-billing-fields .form-row-last {
    width: 100% !important; float: none !important;
  }

  .woocommerce-MyAccount-navigation { width: 100% !important; float: none !important; margin-bottom: 20px !important; }
  .woocommerce-MyAccount-content { width: 100% !important; float: none !important; }

  .ginyou-category-hero { padding: 32px 16px !important; }
  .ginyou-category-hero h1 { font-size: 24px !important; }

  .site-footer { text-align: center !important; }
  .site-footer .container { flex-direction: column !important; }
}

/* === iPad / Tablet (481px - 1024px) === */
@media (min-width: 481px) and (max-width: 1024px) {

  .ginyou-hero { padding: 60px 32px 48px !important; }
  .ginyou-hero h1 { font-size: 40px !important; }

  .ginyou-trust-bar { grid-template-columns: repeat(4, 1fr) !important; }

  .ginyou-categories-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 16px !important; }

  ul.products.columns-4 { 
    grid-template-columns: repeat(3, 1fr) !important; 
  }

  .ginyou-bestsellers-grid { grid-template-columns: repeat(2, 1fr) !important; }

  .single-product div.product .woocommerce-product-gallery { width: 50% !important; }
  .single-product div.product .entry-summary { width: 46% !important; padding-left: 24px !important; }
}

/* === Header Logo全局修复 === */
.site-branding, .custom-logo-link {
  display: flex !important;
  align-items: center !important;
}
.custom-logo-link img {
  mix-blend-mode: screen !important;
  max-height: 56px !important;
  width: auto !important;
}

/* === 强制隐藏 WordPress Theme by === */
.footer-credit,
.powered-by,
.site-info a[href*="kadence"],
.site-info a[href*="wordpress"] {
  display: none !important;
  visibility: hidden !important;
}
p:has(a[href*="kadencewp"]) { display: none !important; }

/* === LOGO 深色背景可见性修复 === */
/* Logo加白色光晕，在深蓝header上清晰可见 */
.site-header .custom-logo-link img,
.site-header .site-branding img {
  filter: drop-shadow(0 0 6px rgba(255,255,255,0.8)) 
          drop-shadow(0 0 2px rgba(255,255,255,1)) !important;
  max-height: 58px !important;
  width: auto !important;
}

/* === HEADER 方案：白色背景让深色LOGO可见 === */
.site-header,
.site-main-header-wrap,
.site-header-row-container,
.site-header-row-container-inner,
.header-navigation-wrap {
  background: #ffffff !important;
  background-color: #ffffff !important;
  border-bottom: 3px solid #e63946 !important;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08) !important;
}

/* 导航链接改为深色（在白色背景上） */
.main-navigation a,
.nav--toggle-sub a,
.kadence-nav a,
header nav a,
.site-header a:not(.custom-logo-link) {
  color: #1a1a2e !important;
  font-weight: 600 !important;
}
.main-navigation a:hover,
header nav a:hover { color: #e63946 !important; }

/* Logo去掉白色发光（现在白色背景不需要） */
.site-header .custom-logo-link img,
.site-header .site-branding img {
  filter: none !important;
  max-height: 56px !important;
  width: auto !important;
}

/* 汉堡菜单图标在白色背景上用深色 */
.menu-toggle-icon, .menu-toggle,
button.menu-toggle { color: #1a1a2e !important; }

/* ================================================
   GINYOU Mobile-First Responsive v2
   ================================================ */

/* === iPhone (<=480px) === */
@media (max-width: 480px) {

  .site-header .container, .site-header-row-container-inner {
    padding: 0 12px !important;
  }
  .custom-logo-link img, .site-branding img {
    max-height: 44px !important;
    width: auto !important;
  }
  .main-navigation { display: none; }

  #ginyou-announcement, div[style*="background:#e63946"] {
    font-size: 11px !important;
    padding: 8px 12px !important;
    line-height: 1.4 !important;
  }

  .ginyou-hero { padding: 40px 16px 32px !important; }
  .ginyou-hero h1 { font-size: 28px !important; line-height: 1.2 !important; }
  .ginyou-hero p { font-size: 14px !important; }
  .ginyou-hero-buttons { flex-direction: column !important; gap: 10px !important; }
  .ginyou-hero-buttons a { width: 100% !important; text-align: center !important; padding: 14px !important; }

  .ginyou-trust-bar { grid-template-columns: repeat(2, 1fr) !important; gap: 8px !important; padding: 16px !important; }
  .ginyou-trust-item { padding: 12px 8px !important; font-size: 11px !important; }
  .ginyou-trust-item svg { width: 24px !important; height: 24px !important; }

  .ginyou-categories-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 10px !important; padding: 0 12px !important; }
  .ginyou-cat-card { min-height: 120px !important; padding: 16px 12px !important; }
  .ginyou-cat-card h3 { font-size: 14px !important; }
  .ginyou-cat-count { font-size: 11px !important; }
  .ginyou-cat-link { font-size: 12px !important; padding: 6px 12px !important; }

  ul.products.columns-4,
  ul.products.columns-3,
  ul.products { 
    grid-template-columns: repeat(2, 1fr) !important;
    display: grid !important;
    gap: 10px !important;
    padding: 0 10px !important;
  }
  ul.products li.product { margin: 0 !important; }
  ul.products li.product img { height: 160px !important; }
  .woocommerce-loop-product__title { font-size: 11px !important; line-height: 1.3 !important; }
  ul.products li.product .price { font-size: 14px !important; }
  ul.products .button { font-size: 10px !important; padding: 9px 6px !important; }

  .ginyou-bestsellers-grid { 
    grid-template-columns: repeat(2, 1fr) !important; 
    gap: 10px !important;
    padding: 0 10px !important;
  }
  .ginyou-bs-card img { height: 140px !important; }
  .ginyou-bs-card h3 { font-size: 12px !important; }

  .ginyou-why-grid { 
    grid-template-columns: 1fr !important; 
    gap: 16px !important;
    padding: 0 16px !important;
  }

  .ginyou-email-bar { padding: 32px 16px !important; }
  .ginyou-email-bar h2 { font-size: 20px !important; }
  .ginyou-email-form { flex-direction: column !important; max-width: 100% !important; }
  .ginyou-email-form input { width: 100% !important; border-radius: 8px !important; }
  .ginyou-email-form button { width: 100% !important; border-radius: 8px !important; margin-top: 8px !important; }

  .single-product .woocommerce-product-gallery,
  .single-product div.product .woocommerce-product-gallery { 
    float: none !important; 
    width: 100% !important; 
    max-width: 100% !important;
  }
  .single-product div.product .entry-summary {
    float: none !important;
    width: 100% !important;
    padding: 16px !important;
    margin: 0 !important;
  }
  .single-product .product_title { font-size: 22px !important; }
  .single-product .single_add_to_cart_button { width: 100% !important; }

  .wc-block-cart { padding: 0 12px !important; }
  .wc-block-cart__main { flex-direction: column !important; }

  .woocommerce-billing-fields .form-row-first,
  .woocommerce-billing-fields .form-row-last {
    width: 100% !important; float: none !important;
  }

  .woocommerce-MyAccount-navigation { width: 100% !important; float: none !important; margin-bottom: 20px !important; }
  .woocommerce-MyAccount-content { width: 100% !important; float: none !important; }

  .ginyou-category-hero { padding: 32px 16px !important; }
  .ginyou-category-hero h1 { font-size: 24px !important; }

  .site-footer { text-align: center !important; }
  .site-footer .container { flex-direction: column !important; }
}

/* === iPad / Tablet (481px - 1024px) === */
@media (min-width: 481px) and (max-width: 1024px) {

  .ginyou-hero { padding: 60px 32px 48px !important; }
  .ginyou-hero h1 { font-size: 40px !important; }

  .ginyou-trust-bar { grid-template-columns: repeat(4, 1fr) !important; }

  .ginyou-categories-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 16px !important; }

  ul.products.columns-4 { 
    grid-template-columns: repeat(3, 1fr) !important; 
  }

  .ginyou-bestsellers-grid { grid-template-columns: repeat(2, 1fr) !important; }

  .single-product div.product .woocommerce-product-gallery { width: 50% !important; }
  .single-product div.product .entry-summary { width: 46% !important; padding-left: 24px !important; }
}

/* === Header Logo全局修复 === */
.site-branding, .custom-logo-link {
  display: flex !important;
  align-items: center !important;
}
.custom-logo-link img {
  mix-blend-mode: screen !important;
  max-height: 56px !important;
  width: auto !important;
}

/* === 强制隐藏 WordPress Theme by === */
.footer-credit,
.powered-by,
.site-info a[href*="kadence"],
.site-info a[href*="wordpress"] {
  display: none !important;
  visibility: hidden !important;
}
p:has(a[href*="kadencewp"]) { display: none !important; }

/* Best Sellers 图片修复 */
.gy-product-img-wrap img, .gy-product-card img {
  width: 100% !important;
  height: 200px !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
}
.gy-product-img-wrap {
  background: #f8f9fa !important;
  min-height: 200px !important;
}


/* ============================================
   GINYOU HEADER - CLEAN REBUILD
   ============================================ */

/* 强制所有header元素白色背景，无例外 */
#masthead,
#masthead *,
.site-header,
.site-header-wrap,
.site-header-inner-wrap,
.site-header-upper-wrap,
.site-main-header-wrap,
.site-header-row-container,
.site-header-row-container-inner,
.site-main-header-inner-wrap,
.site-header-section,
.site-header-item,
html body .site-main-header-wrap {
  background: #ffffff !important;
  background-color: #ffffff !important;
}

/* Header底部红色accent线 */
#masthead { border-bottom: 3px solid #e63946 !important; box-shadow: 0 2px 8px rgba(0,0,0,0.06) !important; }

/* Logo */
.site-branding .brand img, .custom-logo { max-height: 54px !important; width: auto !important; display: block !important; }

/* 导航链接深色 */
.main-navigation .primary-menu-container > ul > li.menu-item > a,
.main-navigation a, nav a, .header-navigation a {
  color: #1a1a2e !important;
  font-weight: 600 !important;
  font-size: 14px !important;
}
.main-navigation a:hover, .header-navigation a:hover { color: #e63946 !important; }

/* 汉堡菜单 */
.menu-toggle-open, .mobile-toggle-open-container .menu-toggle-open { color: #1a1a2e !important; }

/* 网站标题（如果logo不显示时的文字fallback）*/
.site-title a { color: #1a1a2e !important; font-weight: 800 !important; }

.woocommerce-products-header .page-title.archive-title { display: none !important; }

/* Prevent nav wrapping with 6 items */
.primary-navigation ul,
.main-navigation ul,
header nav ul {
  flex-wrap: nowrap !important;
  white-space: nowrap !important;
}
html body .site-header nav a,
html body .site-header .menu-item a,
html body .primary-navigation .menu-item > a {
  font-size: 13px !important;
}

/* Prevent logo text wrapping */
.site-title,
.custom-logo-link,
.header-logo-link,
.site-branding {
  white-space: nowrap !important;
}
