/*
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;
  }
}