/*
Theme Name: Flatsome Child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

/*************** ADD CUSTOM CSS HERE.   ***************/


@media only screen and (max-width: 48em) {
/*************** ADD MOBILE ONLY CSS HERE  ***************/


}

/* ═══ P2: 竞品参考样式 ═══ */
/* ============================================
   SCN Flatsome Child Theme — Green Jersey Store
   Competitor: camisetasfutbolspainnn.es
   ============================================ */

/* --- Global Color Overrides --- */
:root {
  --scn-green: #48a648;
  --scn-green-dark: #3a8f3a;
  --scn-green-darker: #2d7a2d;
  --scn-sale-red: #e53935;
}

/* --- Topbar --- */
.header-top {
  font-size: 13px;
  letter-spacing: 0.5px;
  font-weight: 700;
}

/* --- Sale Badge (green circle with %) --- */
.badge-container .badge-inner,
.onsale {
  background-color: var(--scn-green) !important;
  color: #fff !important;
  border-radius: 50% !important;
  width: 48px;
  height: 48px;
  line-height: 48px;
  font-size: 13px;
  font-weight: 700;
  padding: 0;
  text-align: center;
}

/* --- Product Card Styling --- */
.product-small {
  margin-bottom: 20px;
}
.product-small .box-image {
  border-radius: 0;
  overflow: hidden;
  background: #fff;
}
.product-small .box-text {
  padding: 10px 5px;
  text-align: center;
}
.product-small .box-text .category {
  font-size: 11px;
  text-transform: uppercase;
  color: #999;
  letter-spacing: 0.5px;
  margin-bottom: 3px;
}
.product-small .box-text .product-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  color: #333;
  margin-bottom: 5px;
}
.product-small .box-text .price {
  font-size: 14px;
}
.product-small .box-text .price del {
  color: #999;
  font-size: 12px;
}
.product-small .box-text .price ins {
  color: var(--scn-sale-red);
  font-weight: 700;
  text-decoration: none;
}

/* No hover shadow on cards (competitor style) */
.product-small:hover .box-image {
  box-shadow: none;
}

/* --- Wishlist Heart Icon --- */
.wishlist-icon .yith-wcwl-add-to-wishlist {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
}
.wishlist-icon .yith-wcwl-add-to-wishlist a {
  background: rgba(255,255,255,0.85);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- Category Sidebar --- */
.shop-sidebar .widget_product_categories ul li a {
  font-size: 14px;
  color: #333;
  padding: 6px 0;
  display: block;
  border-bottom: 1px solid #f0f0f0;
}
.shop-sidebar .widget_product_categories ul li a:hover {
  color: var(--scn-green);
}
.shop-sidebar .widget_product_categories ul.children {
  padding-left: 15px;
}
.shop-sidebar .widget_product_categories ul.children li a {
  font-size: 13px;
  color: #555;
}

/* --- Product Page --- */
.product-info .product_title {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
  color: #222;
  margin-bottom: 12px;
}
.product-info .price {
  font-size: 20px;
  margin-bottom: 15px;
}
.product-info .price del {
  color: #999;
  font-size: 16px;
}
.product-info .price ins {
  color: var(--scn-sale-red);
  font-weight: 700;
  font-size: 22px;
  text-decoration: none;
}

/* Size selector as radio buttons (WAPF or variation style) */
.product-info .variations td.value {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.product-info .variations td.value label {
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 8px 14px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}
.product-info .variations td.value label:hover,
.product-info .variations td.value input:checked + label {
  border-color: var(--scn-green);
  background: #f0faf0;
}

/* --- Breadcrumb --- */
.breadcrumbs {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #999;
}
.breadcrumbs a {
  color: #999;
}
.breadcrumbs a:hover {
  color: var(--scn-green);
}

/* --- Buttons (green) --- */
.button.primary,
.button.alt,
.button.checkout,
button.single_add_to_cart_button,
.wc-proceed-to-checkout .button {
  background-color: var(--scn-green) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 4px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 12px 28px;
  transition: background 0.2s;
}
.button.primary:hover,
.button.alt:hover,
button.single_add_to_cart_button:hover,
.wc-proceed-to-checkout .button:hover {
  background-color: var(--scn-green-dark) !important;
}

/* --- Cart Progress Steps --- */
.cart-steps {
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 300;
  color: #ccc;
}
.cart-steps .current {
  color: #222;
  font-weight: 700;
}

/* --- Footer --- */
.footer-wrapper {
  font-size: 14px;
}
.footer-wrapper .widget-title {
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(255,255,255,0.3);
}
.footer-wrapper a {
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  line-height: 2;
}
.footer-wrapper a:hover {
  color: #fff;
}

/* Payment icons row */
.payment-icons {
  padding: 15px 0;
}
.payment-icons i {
  font-size: 28px;
  margin: 0 6px;
  opacity: 0.8;
}

/* --- Gallery thumbnails horizontal --- */
.product-thumbnails {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.product-thumbnails img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border: 1px solid #eee;
  cursor: pointer;
  transition: border-color 0.2s;
}
.product-thumbnails img:hover,
.product-thumbnails img.active {
  border-color: var(--scn-green);
}

/* --- Links green on hover --- */
a:hover {
  color: var(--scn-green);
}

/* --- Mobile Overrides --- */
@media (max-width: 849px) {
  /* Mobile header compact */
  .header-main {
    padding: 8px 0;
  }
  
  /* 2-col product grid */
  .products .product-small {
    width: 50% !important;
  }
  
  /* Bigger tap targets for size selectors */
  .product-info .variations td.value label {
    padding: 10px 16px;
    font-size: 14px;
    min-width: 44px;
    text-align: center;
  }
  
  /* Full-width add to cart button */
  button.single_add_to_cart_button {
    width: 100%;
    padding: 14px 20px;
    font-size: 16px;
  }
  
  /* Product title smaller on mobile */
  .product-info .product_title {
    font-size: 20px;
  }
  
  /* Category filter button styling */
  .shop-sidebar-toggle {
    background: var(--scn-green);
    color: #fff;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 600;
  }
  
  /* Footer single column on mobile */
  .footer-wrapper .col {
    margin-bottom: 25px;
  }
}

/* ═══ P2: 竞品参考样式 ═══ */
/* P2: competitor-style refinements */
:root {
  --ptdh-green: #48a648;
  --ptdh-green-dark: #3a8f3a;
  --ptdh-red: #e34b3f;
  --ptdh-text: #4b4b4b;
  --ptdh-muted: #8d8d8d;
  --ptdh-line: #ececec;
}

.header-top {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.header-main {
  border-bottom: 1px solid var(--ptdh-line);
  box-shadow: none;
}

.header-bottom {
  background: var(--ptdh-green);
}

.header-bottom .nav > li > a {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.searchform .search-field {
  border: 1px solid var(--ptdh-line);
  min-height: 40px;
}

.searchform .submit-button {
  background: var(--ptdh-green);
  border-color: var(--ptdh-green);
  color: #fff;
}

/* Archive cards: compact and centered */
.products .product-small {
  margin-bottom: 24px;
}

.products .product-small .box {
  background: #fff;
  border: 0;
  box-shadow: none;
}

.products .product-small .box-image {
  margin-bottom: 12px;
}

.products .product-small .box-text {
  padding: 0 6px 10px;
  text-align: center;
}

.ptdh-loop-cat,
.products .product-small .category {
  color: var(--ptdh-muted);
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.products .product-small .name,
.products .product-small .product-title {
  color: var(--ptdh-text);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}

.products .price del,
.single-product .summary .price del {
  color: #9b9b9b;
  opacity: 1;
}

.products .price ins,
.products .price ins .woocommerce-Price-amount,
.single-product .summary .price ins,
.single-product .summary .price ins .woocommerce-Price-amount {
  color: var(--ptdh-red);
  text-decoration: none;
}

.badge-container .onsale,
.onsale {
  align-items: center;
  background: var(--ptdh-green) !important;
  border-radius: 999px !important;
  display: inline-flex;
  height: 54px;
  justify-content: center;
  line-height: 1;
  min-width: 54px;
  padding: 0 8px;
  font-size: 16px;
  font-weight: 700;
}

.yith-wcwl-add-to-wishlist a,
.wishlist-icon a {
  background: rgba(255,255,255,.92);
  border: 1px solid #dedede;
  border-radius: 999px;
  box-shadow: none;
}

/* Category / shop layout */
.shop-sidebar .widget_product_categories ul li a {
  border-bottom: 1px solid var(--ptdh-line);
  color: var(--ptdh-text);
  display: block;
  font-weight: 600;
  padding: 10px 0;
}

.shop-sidebar .widget_product_categories ul li a:hover {
  color: var(--ptdh-green);
}

.woocommerce-ordering select {
  background: #63b96c;
  border: 0;
  border-radius: 999px;
  color: #fff;
  font-weight: 600;
  height: 46px;
  padding: 0 42px 0 16px;
}

/* Single product */
.single-product .product-main {
  align-items: flex-start;
}

.single-product .product-info .product_title {
  color: #4a4a4a;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.28;
}

.single-product .product-info .price {
  margin: 10px 0 16px;
}

.single-product .variations_form .label label,
.single-product .wapf-field-label {
  color: #333;
  font-weight: 700;
}

.single-product .variations_form .value label,
.single-product .wapf-radios label {
  display: block;
  margin-bottom: 8px;
}

.single_add_to_cart_button,
.button.checkout,
.wc-proceed-to-checkout .button {
  background: var(--ptdh-green) !important;
  border-color: var(--ptdh-green) !important;
  border-radius: 2px;
  color: #fff !important;
  font-weight: 700;
  min-height: 48px;
  text-transform: uppercase;
}

.single_add_to_cart_button:hover,
.button.checkout:hover,
.wc-proceed-to-checkout .button:hover {
  background: var(--ptdh-green-dark) !important;
  border-color: var(--ptdh-green-dark) !important;
}

/* Cart / checkout */
.cart_totals,
.woocommerce-checkout-review-order {
  background: #fff;
  border: 1px solid var(--ptdh-line);
  padding: 24px;
}

/* Trust strip below related products */
.ptdh-trust-badges {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 24px 0 0;
}

.ptdh-trust-badge {
  background: #f7faf7;
  border: 1px solid #dcefdc;
  color: #2f5d2f;
  font-size: 14px;
  font-weight: 700;
  padding: 14px 16px;
  text-align: center;
}

/* Footer */
.footer-wrapper .widget-title {
  border-bottom: 2px solid rgba(255,255,255,.22);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .03em;
  padding-bottom: 10px;
  text-transform: uppercase;
}

.footer-wrapper,
.footer-wrapper a,
.absolute-footer,
.absolute-footer a {
  color: rgba(255,255,255,.92);
}

.payment-icons {
  opacity: .95;
}

/* ═══ P2: 移动端适配 ═══ */
@media (max-width: 849px) {
  .header-top {
    font-size: 11px;
  }

  .header-main {
    min-height: 64px;
  }

  .header-bottom {
    display: none;
  }

  .products .product-small {
    width: 50% !important;
  }

  .products .product-small .box-text {
    padding: 0 4px 10px;
  }

  .products .product-small .product-title {
    font-size: 14px;
  }

  .woocommerce-ordering {
    margin-top: 12px;
    width: 100%;
  }

  .woocommerce-ordering select {
    width: 100%;
  }

  .single-product .product-main {
    display: block;
  }

  .single-product .woocommerce-product-gallery,
  .single-product .product-info,
  .single_add_to_cart_button {
    width: 100%;
  }

  .button,
  .single_add_to_cart_button {
    min-height: 48px;
  }

  .ptdh-trust-badges {
    grid-template-columns: 1fr;
  }

  .footer-2 .col {
    flex: 0 0 100%;
    max-width: 100%;
  }
}