/* Shop */

/* === Unified Product Card Button Styles (ALL cards, including View Cart after add, and WooCommerce shortcodes) === */
.custom-product-add-to-cart .button,
.custom-product-card .button,
.custom-shop-card .button,
.custom-product-list li .button,
.elementor-widget-woocommerce-products ul.products li.product .button,
.elementor-widget-wc-products ul.products li.product .button,
.b4-related-product-card .button,
.b4-related-products-row .button,
.products .button {
  background: #000 !important;
  color: #fff !important;
  border-radius: 6px !important;
  font-weight: 700 !important;
  font-size: 1rem !important;
  padding: 12px 0 !important;
  border: none !important;
  transition: background 0.2s, color 0.2s !important;
  margin: 18px 16px 16px 16px !important;
  text-transform: none !important;
  box-shadow: none !important;
  width: calc(100% - 32px) !important;
  display: block;
  text-align: center;
  text-decoration: none !important;
}

/* Style the View Cart link as a red button-like link under Add to Cart */
/* Stronger selectors for View Cart link/button to override Woo/Elementor */
.view-cart-button,
a.view-cart-button,
.woocommerce .view-cart-button,
.woocommerce a.view-cart-button,
.woocommerce-page .view-cart-button,
.woocommerce-page a.view-cart-button,
.custom-product-add-to-cart .view-cart-button,
.custom-product-card .view-cart-button,
.products .view-cart-button,
.elementor-widget-woocommerce-products .view-cart-button,
.elementor-widget-wc-products .view-cart-button {
  display: block !important;
  background: none !important;
  color: #EC2024 !important;
  border: none !important;
  border-radius: 6px !important;
  font-weight: 700 !important;
  font-size: 1rem !important;
  padding: 10px 0 0 0 !important;
  margin: 0 16px 16px 16px !important;
  text-align: center !important;
  text-decoration: underline !important;
  cursor: pointer !important;
  transition: color 0.2s !important;
  box-shadow: none !important;
}
.view-cart-button:hover,
a.view-cart-button:hover,
.woocommerce .view-cart-button:hover,
.woocommerce a.view-cart-button:hover,
.woocommerce-page .view-cart-button:hover,
.woocommerce-page a.view-cart-button:hover,
.custom-product-add-to-cart .view-cart-button:hover,
.custom-product-card .view-cart-button:hover,
.products .view-cart-button:hover,
.elementor-widget-woocommerce-products .view-cart-button:hover,
.elementor-widget-wc-products .view-cart-button:hover {
  color: #000 !important;
  text-decoration: underline !important;
}
 .custom-product-add-to-cart .button:hover,
 .custom-product_card .button:hover,
 .custom-shop-card .button:hover,
 .custom-product-list li .button:hover,
 .elementor-widget-woocommerce-products ul.products li.product .button:hover,
 .elementor-widget-wc-products ul.products li.product:hover,
 .b4-related-product-card .button:hover,
 .b4-related-products-row .button:hover,
 .products .button:hover,
 .added-to-cart-message:hover {
  background: #EC2024 !important;
  color: #fff !important;
  border-radius: 6px !important;
  font-weight: 700 !important;
  font-size: 1rem !important;
  padding: 12px 0 !important;
  border: none !important;
  transition: background 0.2s, color 0.2s !important;
  margin: 18px 16px 16px 16px !important;
  text-transform: none !important;
  box-shadow: none !important;
  width: calc(100% - 32px) !important;
  display: block;
 }
.custom-product-add-to-cart .button:focus,
.custom-product-card .button:focus,
.custom-shop-card .button:focus,
.custom-product-list li .button:focus,
.elementor-widget-woocommerce-products ul.products li.product .button:focus,
.elementor-widget-wc-products ul.products li.product:focus,
.b4-related-product-card .button:focus,
.b4-related-products-row .button:focus,
.products .button:focus,
.add_to_cart_button:focus{
  background: #000 !important;
  color: #fff !important;
  background: #EC2024 !important;
  color: #fff !important;
}
/* --- Responsive: Product Summary, Action Box, and Related Products --- */
@media (max-width: 1100px) {
  .b4-summary-action-box {
    flex-direction: column;
    padding: 24px 16px;
    gap: 18px;
    align-items: stretch;
    max-width: 98vw;
  }
}
.b4-product-redirect-link {
  margin: 1em 0;
}
.b4-product-redirect-link .button,
.b4-product-redirect-link .elementor-button {
  background: #EC2024;
  color: #fff;
  border-radius: 6px;
  padding: 10px 18px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
  border: none;
  box-shadow: none;
}
.b4-product-redirect-link .button:hover,
.b4-product-redirect-link .elementor-button:hover {
  background: #000;
  color: #fff;
}
.b4-product-retailers {
  margin-top: 1.5em;
}
.b4-product-retailers h4 {
  font-size: 1.1em;
  margin-bottom: 0.5em;
  color: #222;
}
.b4-product-retailers ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.b4-product-retailers li a {
  background: #f5f5f5;
  color: #222;
  border-radius: 4px;
  padding: 6px 14px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s;
  display: inline-block;
}
.b4-product-retailers li a:hover {
  background: #EC2024;
  color: #fff;
}
.b4-related-products-row {
  display: flex;
  gap: 32px;
  overflow-x: auto;
  padding: 24px 0;
}
.b4-related-product-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  padding: 18px 16px;
  min-width: 260px;
  max-width: 320px;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: unset;
}
.b4-related-product-card img {
  max-width: 100%;
  border-radius: 8px;
  margin-bottom: 12px;
}
.b4-related-product-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 6px;
  text-align: center;
}
.b4-related-product-price {
  color: #EC2024;
  font-weight: bold;
  margin-bottom: 8px;
}
.b4-related-product-card .button {
  background: #EC2024;
  color: #fff;
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  margin-top: auto;
  transition: background 0.2s;
}
.b4-related-product-card .button:hover {
  background: #000;
  color: #fff;
}
.b4-related-product-card > *:empty {
  display: none !important;
}
/* --- Inline Rating and Review Link (Single Product) --- */
.b4-rating-inline-wrap {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 24px 0 24px 0;
}
.b4-rating-inline-wrap .star-rating {
  font-size: 2.1rem;
  line-height: 1;
}
.b4-rating-count {
  font-size: 1.25rem;
  font-weight: 600;
  color: #222;
  margin: 0;
}
/* --- Customer Reviews Link under Star Rating --- */
.woocommerce-review-link-wrap {
  margin: 0 0 8px 0;
  font-size: 1.08rem;
  color: #222;
}
.woocommerce-review-link-wrap .woocommerce-review-link {
  color: #222;
  text-decoration: underline;
  transition: color 0.2s;
}
.woocommerce-review-link-wrap .woocommerce-review-link:hover {
  color: #EC2024;
}
/* Hide empty SKU label in product meta */
.single-product .product .product_meta .sku:empty {
  display: none !important;
}
/* Hide SKU and tags from summary area (they are now in the Details tab) */
/* Hide SKU and tags from summary area (keep meta section and header intact) */
/* Hide SKU and tags from summary area (keep meta section and header intact) */
.single-product .product .product_meta .sku,
.single-product .product .product_meta .tagged_as {
  display: none !important;
}
/* === Product Categories Bar (Single Product) === */
.b4-product-categories-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0 18px 0;
  padding: 0;
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.b4-product-cat-main {
  color: #222;
  font-weight: 700;
  border-radius: 4px;
  padding: 4px 14px;
  text-decoration: none;
  margin-right: 2px;
  transition: background 0.2s, color 0.2s;
}
/* .b4-product-cat-main:hover {
  color: #ffffff;
} */
.b4-product-cat-secondary {
  color: #222;
  text-decoration: none;
  font-weight: 500;
  margin-right: 2px;
  transition: color 0.2s;
}
.b4-product-cat-secondary:hover {
  color: #000000;
}
/* --- Global WooCommerce Star Rating Styling --- */
.woocommerce .star-rating,
.woocommerce .star-rating::before {
  color: #222;
}
.woocommerce .star-rating {
  float: right;
  overflow: hidden;
  position: relative;
  height: 1em;
  line-height: 1;
  font-size: 1em;
  width: 5.4em;
  font-family: WooCommerce;
}
.woocommerce div.entry-summary .star-rating {
  color: #EC2024;
  font-size: 1.4rem;
  letter-spacing: 2px;
  margin-bottom: 18px;
  font-weight: 700;
  display: inline-block;
  vertical-align: middle;
}
.woocommerce div.entry-summary .star-rating + .woocommerce-review-link,
.woocommerce div.entry-summary .star-rating + .woocommerce-review-link, 
.woocommerce div.entry-summary .star-rating + .woocommerce-review-link span {
  margin-left: 36px;
  font-size: 1.08rem;
  color: #222;
  vertical-align: middle;
  font-weight: 500;
}
/* --- Custom Star Rating Styling for Product Summary --- */
.woocommerce div.entry-summary .star-rating {
  color: #EC2024;
  font-size: 1.4rem;
  letter-spacing: 2px;
  margin-bottom: 8px;
  font-weight: 700;
}
.woocommerce div.entry-summary .star-rating span:before {
  color: #EC2024;
}
.woocommerce div.entry-summary .star-rating span {
  color: #EC2024;
}
/* === Custom WooCommerce Reviews Section === */
.b4-reviews-wrap {
  display: flex;
  gap: 48px;
  margin: 48px 0 0 0;
  flex-wrap: wrap;
}
.b4-reviews-summary {
  flex: 1 1 340px;
  min-width: 320px;
  max-width: 420px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.b4-reviews-summary .b4-rating-number {
  font-size: 3.2rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 0.2em;
}
.b4-reviews-summary .b4-rating-stars {
  color: #EC2024;
  font-size: 1.5rem;
  margin-bottom: 0.5em;
}
.b4-reviews-summary .b4-rating-count {
  font-size: 1.1rem;
  color: #222;
  margin-bottom: 1.5em;
}
.b4-reviews-summary .b4-rating-breakdown {
  width: 100%;
  margin-top: 1.5em;
}
.b4-reviews-summary .b4-rating-row {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}
.b4-reviews-summary .b4-rating-row .b4-star-label {
  width: 54px;
  font-size: 1rem;
  color: #222;
}
.b4-reviews-summary .b4-rating-bar {
  flex: 1;
  height: 7px;
  background: #e6f3f5;
  border-radius: 4px;
  margin: 0 10px;
  overflow: hidden;
}
.b4-reviews-summary .b4-rating-bar-inner {
  height: 100%;
  background: #222;
  border-radius: 4px;
  transition: width 0.3s;
}
.b4-reviews-summary .b4-rating-percent {
  width: 38px;
  text-align: right;
  font-size: 1rem;
  color: #222;
}

.b4-reviews-form {
  flex: 1 1 420px;
  min-width: 320px;
  max-width: 600px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  padding: 36px 32px;
}
.b4-reviews-form h3, .b4-reviews-form h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1em;
}
.b4-reviews-form label {
  font-weight: 600;
  color: #222;
  margin-bottom: 0.5em;
  display: block;
}
.b4-reviews-form input[type="text"],
.b4-reviews-form input[type="email"],
.b4-reviews-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  font-size: 1.08rem;
  margin-bottom: 1.2em;
  background: #fafbfc;
  color: #222;
  transition: border 0.2s;
}
.b4-reviews-form input[type="text"]:focus,
.b4-reviews-form input[type="email"]:focus,
.b4-reviews-form textarea:focus {
  border: 1.5px solid #222;
  outline: none;
}
.b4-reviews-form .comment-form-rating {
  margin-bottom: 1.2em;
}
.b4-reviews-form .stars {
  color: #EC2024;
  font-size: 1.4rem;
  margin-bottom: 0.5em;
}
.b4-reviews-form .form-submit input[type="submit"] {
  background: #EC2024;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 14px 0;
  width: 180px;
  font-size: 1.15rem;
  font-weight: 700;
  margin-top: 1em;
  transition: background 0.2s;
  box-shadow: none;
}
.b4-reviews-form .form-submit input[type="submit"]:hover {
  background: #222;
  color: #fff;
}
.b4-reviews-form .comment-form-cookies-consent {
  margin: 1.2em 0 0.5em 0;
  font-size: 0.98rem;
}

@media (max-width: 900px) {
  .b4-reviews-wrap {
    flex-direction: column;
    gap: 32px;
  }
  .b4-reviews-summary, .b4-reviews-form {
    max-width: 100%;
    padding: 24px 10px;
  }
}
/* --- Custom Product Card Layout & Animation --- */
.custom-product-card { position: relative; background: #fff; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.04); overflow: hidden; display: flex; flex-direction: column; }
.custom-product-image-wrapper { position: relative; width: 100%; }
.custom-product-image-wrapper img {
  max-width: 400px;
  max-height: 400px;
  width: 100%;
  height: auto;
  aspect-ratio: 1/1;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 500px) {
  .custom-product-image-wrapper img {
    max-width: 100vw;
    max-height: 60vw;
    width: 100%;
    height: auto;
    aspect-ratio: 1/1;
  }
}
.custom-product-sale-icon {
  position: absolute;
  top: 10px;
  left: 10px;
  right: auto;
  background: #EC2024;
  color: #fff;
  border-radius: 50%;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.45rem;
  z-index: 2;
  box-shadow: 0 4px 16px rgba(0,0,0,0.14);
  border: 3px solid #fff;
  padding: 0;
  transition: box-shadow 0.2s;
}
.custom-product-info-outer { position: relative; width: 100%; display: flex; flex-direction: column; align-items: stretch; margin-top: 10px; }
.custom-product-info-row { display: flex; align-items: center; justify-content: space-between; padding: 0 12px 0 12px; background: #fff; transition: transform 0.3s cubic-bezier(.4,1.3,.5,1); z-index: 1; }
.custom-product-title-price { display: flex; flex-direction: column; align-items: flex-start; color: #343434;}
.custom-product-title { font-weight: 700; font-size: 1rem; line-height: 1.2; }
.custom-product-price { font-size: 0.95rem; color: #222; margin-top: 2px; padding-bottom: 10px; }
.custom-product-rating { margin-left: 8px; }
.custom-product-add-to-cart { width: 100%; display: flex; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.3s cubic-bezier(.4,1.3,.5,1), visibility 0.2s; transform: translateY(30px); visibility: hidden; position: absolute; left: 0; bottom: 0; background: #fff; z-index: 2; padding-bottom: 18px; }
/* Unify ALL product card buttons: black by default, red on hover, white text always, max specificity */
/* Unify all product card buttons and restore spacing */
.custom-product-add-to-cart .button,
.custom-product-card .button,
.custom-shop-card .button,
.custom-product-list li .button,
.elementor-widget-woocommerce-products ul.products li.product .button,
.elementor-widget-wc-products ul.products li.product .button,
.b4-related-product-card .button,
.b4-related-products-row .button,
.products .button {
  background: #000 !important;
  color: #fff !important;
  border-radius: 6px !important;
  font-weight: 700 !important;
  font-size: 1rem !important;
  padding: 12px 0 !important;
  border: none !important;
  transition: background 0.2s, color 0.2s !important;
  margin: 18px 16px 16px 16px !important; /* top, right, bottom, left */
  text-transform: none !important;
  box-shadow: none !important;
  width: calc(100% - 32px) !important;
  display: block;
}
.custom-product-add-to-cart .button:hover,
.custom-product_card .button:hover,
.custom-shop-card .button:hover,
.custom-product-list li .button:hover,
.elementor-widget-woocommerce-products ul.products li.product .button:hover,
.elementor-widget-wc-products ul.products li.product .button:hover,
.b4-related-product-card .button:hover,
.b4-related-products-row .button:hover,
.products .button:hover,
.custom-product-add-to-cart .button:focus,
.custom-product_card .button:focus,
.custom-shop-card .button:focus,
.custom-product-list li .button:focus,
.elementor-widget-woocommerce-products ul.products li.product .button:focus,
.elementor-widget-wc-products ul.products li.product .button:focus,
.b4-related-product-card .button:focus,
.b4-related-products-row .button:focus,
.products .button:focus {
  background: #EC2024 !important;
  color: #fff !important;
}
/* Elementor product grid button radius */
.elementor-widget-woocommerce-products ul.products li.product .button,
.elementor-widget-wc-products ul.products li.product .button {
  border-radius: 8px !important;
}
/* Hide button and move info row down by default */
.custom-product-info-outer { padding-bottom: 0; transition: padding-bottom 0.3s cubic-bezier(.4,1.3,.5,1); }
/* On hover, show button and move info row up */
.custom-product-card:hover .custom-product-add-to-cart, .custom-product-card:focus-within .custom-product-add-to-cart {
  opacity: 1; pointer-events: auto; transform: translateY(0); visibility: visible;
}
/* Add extra bottom padding on hover/focus to prevent price overlap */
.custom-product-card:hover .custom-product-info-outer,
.custom-product-card:focus-within .custom-product-info-outer {
  padding-bottom: 90px !important; /* Increased to prevent overlap */
  transition: padding-bottom 0.3s cubic-bezier(.4,1.3,.5,1);
}
/* Show price on hover and make it red */
.custom-product-card:hover .custom-product-price,
.custom-product-card:focus-within .custom-product-price,
.woocommerce ul.products li.product.custom-shop-card:hover .price,
.custom-product-list li:hover .price,
.elementor-widget-woocommerce-products ul.products li.product:hover .price,
.elementor-widget-wc-products ul.products li.product:hover .price {
  opacity: 1 !important;
  color: #EC2024 !important;
  transition: color 0.2s, opacity 0.2s;
}

/* Always show button and info row stacked on tablet/mobile */
@media (max-width: 1024px) {
  .custom-product-add-to-cart { opacity: 1 !important; pointer-events: auto !important; transform: translateY(0) !important; visibility: visible !important; position: static !important; background: #fff !important; padding-bottom: 18px !important; }
  .custom-product-info-outer { padding-bottom: 0 !important; }
}
/* Hover-reveal Add to Cart button (Otaku style) */
.custom-shop-card .product-actions,
.custom-product-list li .product-actions,
.elementor-widget-woocommerce-products ul.products li.product .product-actions,
.elementor-widget-wc-products ul.products li.product .product-actions {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.3s, max-height 0.3s;
  text-align: center;
}

.custom-shop-card:hover .product-actions,
.custom-product-list li:hover .product-actions,
.elementor-widget-woocommerce-products ul.products li.product:hover .product-actions,
.elementor-widget-wc-products ul.products li.product:hover .product-actions {
  opacity: 1;
  max-height: 100px;
  margin-top: 12px;
  overflow: visible;
}

.custom-shop-card .button,
.custom-product-list li .button,
.elementor-widget-woocommerce-products ul.products li.product .button,
.elementor-widget-wc-products ul.products li.product .button {
  margin-top: 0;
}
/* Custom Shop Page Styles - Inspired by Otaku Theme */

/* Apply Otaku-inspired card styles to all product grids: WooCommerce, custom, Elementor */

.woocommerce ul.products li.product.custom-shop-card,
.custom-product-list li,
.elementor-widget-woocommerce-products ul.products li.product,
.elementor-widget-wc-products ul.products li.product {
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: box-shadow 0.3s, transform 0.3s, background 0.3s;
  position: relative;
  padding: 0;
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
}


.woocommerce ul.products li.product.custom-shop-card:hover,
.custom-product-list li:hover,
.elementor-widget-woocommerce-products ul.products li.product:hover,
.elementor-widget-wc-products ul.products li.product:hover {
  background: #fff;
  box-shadow: 0 16px 40px rgba(0,0,0,0.18), 0 2px 8px rgba(0,0,0,0.08);
  transform: translateY(-8px) scale(1.05);
  z-index: 2;
}
.woocommerce ul.products li.product.custom-shop-card .woocommerce-LoopProduct-link,
.custom-product-list li .woocommerce-LoopProduct-link,
.elementor-widget-woocommerce-products ul.products li.product .woocommerce-LoopProduct-link,
.elementor-widget-wc-products ul.products li.product .woocommerce-LoopProduct-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  padding: 24px 16px 16px 16px;
  text-decoration: none;
}
.woocommerce ul.products li.product.custom-shop-card img,
.custom-product-list li img,
.elementor-widget-woocommerce-products ul.products li.product img,
.elementor-widget-wc-products ul.products li.product img {
  max-width: 100%;
  border-radius: 12px;
  margin-bottom: 16px;
  transition: transform 0.3s;
}
.woocommerce ul.products li.product.custom-shop-card:hover img,
.custom-product-list li:hover img,
.elementor-widget-woocommerce-products ul.products li.product:hover img,
.elementor-widget-wc-products ul.products li.product:hover img {
  transform: scale(1.06);
}
.woocommerce ul.products li.product.custom-shop-card h2.woocommerce-loop-product__title,
.custom-product-list li h2,
.elementor-widget-woocommerce-products ul.products li.product h2.woocommerce-loop-product__title,
.elementor-widget-wc-products ul.products li.product h2.woocommerce-loop-product__title {
  font-size: 1.1rem;
  font-weight: bold;
  text-transform: uppercase;
  margin: 0 0 8px 0;
  color: #181818;
}
.woocommerce ul.products li.product.custom-shop-card .price,
.custom-product-list li .price,
.elementor-widget-woocommerce-products ul.products li.product .price,
.elementor-widget-wc-products ul.products li.product .price {
  font-size: 1.1rem;
  color: #EC2024;
  font-weight: bold;
  margin-bottom: 8px;
}
.woocommerce ul.products li.product.custom-shop-card .star-rating,
.custom-product-list li .star-rating,
.elementor-widget-woocommerce-products ul.products li.product .star-rating,
.elementor-widget-wc-products ul.products li.product .star-rating {
  margin: 0 auto 8px auto;
  font-size: 1rem;
}
.woocommerce ul.products li.product.custom-shop-card .button,
.custom-product-list li .button,
.elementor-widget-woocommerce-products ul.products li.product .button,
.elementor-widget-wc-products ul.products li.product .button {
  background: #000;
  color: #fff;
  border-radius: 24px;
  padding: 10px 28px;
  font-weight: bold;
  text-transform: uppercase;
  margin-top: auto;
  margin-bottom: 16px;
  transition: background 0.3s, color 0.3s;
  border: none;
}
.woocommerce ul.products li.product.custom-shop-card .button:hover,
.custom-product-list li .button:hover,
.elementor-widget-woocommerce-products ul.products li.product .button:hover,
.elementor-widget-wc-products ul.products li.product .button:hover {
  background: #EC2024;
  color: #fff;
}
.woocommerce ul.products li.product.custom-shop-card .onsale,
.custom-product-list li .onsale,
.elementor-widget-woocommerce-products ul.products li.product .onsale,
.elementor-widget-wc-products ul.products li.product .onsale {
  position: absolute;
  top: 16px;
  left: 16px;
  background: #EC2024;
  color: #fff;
  border-radius: 8px;
  padding: 4px 12px;
  font-size: 0.9rem;
  font-weight: bold;
  z-index: 2;
}
.woocommerce ul.products li.product .onsale,
.custom-product-list li .onsale,
.elementor-widget-woocommerce-products ul.products li.product .onsale,
.elementor-widget-wc-products ul.products li.product .onsale,
.single-product .onsale {
  position: absolute;
  top: 10px;
  right: 18px;
  left: auto;
  background: #EC2024;
  color: #fff;
  border-radius: 50%;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.85rem;
  z-index: 2;
  box-shadow: 0 6px 24px rgba(0,0,0,0.18);
  border: 4px solid #fff;
  padding: 0;
  transition: box-shadow 0.2s;
}
/* --- Ensure pop-out effect and background for all product cards --- */
.custom-product-card, 
.woocommerce ul.products li.product.custom-shop-card,
.custom-product-list li,
.elementor-widget-woocommerce-products ul.products li.product,
.elementor-widget-wc-products ul.products li.product {
  background: #E0E0E0;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: box-shadow 0.3s, transform 0.3s, background 0.3s;
  position: relative;
  padding: 0;
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.custom-product-card:hover, .custom-product-card:focus-within,
.woocommerce ul.products li.product.custom-shop-card:hover,
.custom-product-list li:hover,
.elementor-widget-woocommerce-products ul.products li.product:hover,
.elementor-widget-wc-products ul.products li.product:hover {
  background: #fff;
  box-shadow: 0 16px 40px rgba(0,0,0,0.18), 0 2px 8px rgba(0,0,0,0.08);
  transform: translateY(-8px) scale(1.05);
}

/* Remove background from info row/text box */
.custom-product-info-row {
  background: none !important;
}

/* Remove background from Elementor product card titles */
.elementor-widget-woocommerce-products ul.products li.product h2.woocommerce-loop-product__title,
.elementor-widget-wc-products ul.products li.product h2.woocommerce-loop-product__title {
  background: none !important;
}

/* --- Product Card Main Background White --- */
.custom-product-card, 
.woocommerce ul.products li.product.custom-shop-card,
.custom-product-list li,
.elementor-widget-woocommerce-products ul.products li.product,
.elementor-widget-wc-products ul.products li.product {
  background: #fff;
}

/* --- Larger Price and Red on Sale --- */
.custom-product-price,
.woocommerce ul.products li.product.custom-shop-card .price,
.custom-product-list li .price,
.elementor-widget-woocommerce-products ul.products li.product .price,
.elementor-widget-wc-products ul.products li.product .price {
  font-size: 1.35rem !important;
  font-weight: bold;
  color: #222;
  margin-bottom: 8px;
}
.woocommerce ul.products li.product.custom-shop-card .price ins,
.custom-product-list li .price ins,
.elementor-widget-woocommerce-products ul.products li.product .price ins,
.elementor-widget-wc-products ul.products li.product .price ins {
  color: #EC2024 !important;
  font-weight: bold;
}

/* --- Sale Icon: Center and Bold Text --- */
.custom-product-sale-icon,
.woocommerce ul.products li.product .onsale,
.custom-product-list li .onsale,
.elementor-widget-woocommerce-products ul.products li.product .onsale,
.elementor-widget-wc-products ul.products li.product .onsale {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1rem;
  text-align: center;
  padding: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #EC2024;
  color: #fff;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.10);
}
.custom-product-sale-icon span,
.woocommerce ul.products li.product .onsale span,
.custom-product-list li .onsale span,
.elementor-widget-woocommerce-products ul.products li.product .onsale span,
.elementor-widget-wc-products ul.products li.product .onsale span {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.25rem;
  letter-spacing: 0.5px;
}
.woocommerce ul.products li.product .onsale span,
.custom-product-list li .onsale span,
.elementor-widget-woocommerce-products ul.products li.product .onsale span,
.elementor-widget-wc-products ul.products li.product .onsale span,
.single-product .onsale span {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.45rem;
  letter-spacing: 0.5px;
}
  .single-product .onsale {
      position: absolute !important;
      top: 10px !important;
      right: 10px !important;
      left: auto !important;
      background: #EC2024;
      color: #fff;
      border-radius: 50%;
      width: 132px;
      height: 132px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: bold;
      font-size: 2.8rem;
      z-index: 10;
      box-shadow: 0 12px 36px rgba(0,0,0,0.22);
      border: 5px solid #fff;
      padding: 0;
      transition: box-shadow 0.2s;
      pointer-events: none;
    }
/* Removed invalid CSS outside selector block */

.b4-product-badge,
.woocommerce-badge {
    display: inline-block;
    background: #EC2024;
    color: #fff;
    border-radius: 6px;
    padding: 4px 14px;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1em;
    margin-right: 10px;
    vertical-align: middle;
}
.b4-product-redirect-link {
    margin: 1em 0;
}
.b4-product-redirect-link .button,
.b4-product-redirect-link .elementor-button {
    background: #EC2024;
    color: #fff;
    border-radius: 6px;
    padding: 10px 18px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
    border: none;
    box-shadow: none;
}
.b4-product-redirect-link .button:hover,
.b4-product-redirect-link .elementor-button:hover {
    background: #000;
    color: #fff;
}
.b4-product-retailers {
    margin-top: 1.5em;
}
.b4-product-retailers h4 {
    font-size: 1.1em;
    margin-bottom: 0.5em;
    color: #222;
}
.b4-product-retailers ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.b4-product-retailers li a {
    background: #f5f5f5;
    color: #222;
    border-radius: 4px;
    padding: 6px 14px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s;
    display: inline-block;
}
.b4-product-retailers li a:hover {
    background: #EC2024;
    color: #fff;
}
@media (max-width: 600px) {
    .b4-accordion-title, .b4-accordion-content {
        padding: 14px 10px;
    }
}
.b4-product-description-section {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    padding: 36px 32px;
    margin: 40px auto 0 auto;
    max-width: 1100px;
}
.b4-product-description-section h2 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 18px;
}

/* Related products as horizontal scrollable row */
.b4-related-products-row {
    display: flex;
    gap: 32px;
    overflow-x: auto;
    padding: 24px 0;
}
.b4-related-product-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  padding: 18px 16px;
  min-width: 260px;
  max-width: 320px;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* Remove any min-height or extra space */
  min-height: unset;
}
.b4-related-product-card img {
    max-width: 100%;
    border-radius: 8px;
    margin-bottom: 12px;
}
.b4-related-product-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 6px;
    text-align: center;
}
.b4-related-product-price {
    color: #EC2024;
    font-weight: bold;
    margin-bottom: 8px;
}
.b4-related-product-desc {
    font-size: 0.98rem;
    color: #555;
    margin-bottom: 10px;
    text-align: center;
    max-height: 3.6em;
    overflow: hidden;
    text-overflow: ellipsis;
}
.b4-related-product-card .button {
  background: #EC2024;
  color: #fff;
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  margin-top: auto;
  transition: background 0.2s;
}
.b4-related-product-card > *:empty {
  display: none !important;
}
.b4-related-product-card .button:hover {
    background: #000;
    color: #fff;
}

/* --- Otaku Custom Product List Grid --- */
.custom-product-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.custom-shop-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 0 0 18px 0;
  transition: box-shadow 0.2s;
  overflow: hidden;
}
.custom-shop-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.14);
}
.custom-shop-card .product-image {
  display: block;
  width: 100%;
  background: #f7f7f7;
  padding: 18px 0 0 0;
  text-align: center;
}
.custom-shop-card img {
  max-width: 90%;
  max-height: 180px;
  object-fit: contain;
  margin: 0 auto;
  display: block;
}
.custom-shop-card h2.woocommerce-loop-product__title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 18px 16px 0 16px;
  color: #222;
  min-height: 44px;
}
.custom-shop-card .price {
  font-size: 1.15rem;
  font-weight: 700;
  color: #EC2024;
  margin: 8px 16px 0 16px;
}
.custom-shop-card .price del {
  color: #888;
  font-weight: 400;
  margin-right: 6px;
}
.custom-shop-card .price ins {
  color: #EC2024;
  font-weight: 700;
  text-decoration: none;
}
.custom-shop-card .product-actions {
  display: flex;
  flex-direction: row;
  gap: 10px;
  margin: 18px 16px 0 16px;
}
.custom-shop-card .button {
  background: #000;
  color: #fff;
  border-radius: 6px;
  padding: 10px 18px;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  transition: background 0.2s;
  text-align: center;
  flex: 1 1 0;
}
.custom-shop-card .button:hover {
  background: #EC2024;
  color: #fff;
}
@media (max-width: 700px) {
  .custom-product-list {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .custom-shop-card h2.woocommerce-loop-product__title {
    font-size: 1rem;
    min-height: 36px;
  }
}
@media (max-width: 500px) {
  .custom-product-list {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .custom-shop-card {
    padding: 0 0 10px 0;
  }
}
/* Fix Woo - Bootstrap 4 conflict */
.woocommerce-billing-fields .form-row,
.woocommerce-shipping-fields .form-row,
.woocommerce form .form-row {
display: block;
}

.woocommerce .col2-set .col-1,
.woocommerce-page .col2-set .col-1,
.woocommerce .col2-set .col-2,
.woocommerce-page .col2-set .col-2 {
max-width: unset;
}

.woocommerce-Addresses {
display: block !important;
}

.woocommerce-Address-title > * {
display: block !important;
}

/** Custom User tab for order history */

.order-list {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: repeat(4, auto);
  gap: 20px;
}

.order-item {
  border: 1px solid #ddd;
  padding: 20px;
  background: #f9f9f9;
  border-radius: 8px;
}

.order-item strong {
  display: block;
  font-weight: bold;
  margin-bottom: 5px;
}

.view-order-btn {
  display: block;
  text-align: center;
  padding: 10px;
  background-color:rgb(0, 0, 0);
  color: white;
  text-decoration: none;
  border-radius: 0px;
  margin-top: 10px;
}

.view-order-btn:hover {
  background-color: #EC2024;
}

/* Custom Widget Styling */
/* Style for the dropdown filters */
form select {
width: 100%; /* Full-width dropdown */
padding: 10px; /* Add padding for better usability */
border: 1px solid #ccc; /* Light gray border */
border-radius: 5px; /* Rounded corners */
font-size: 16px; /* Increase font size */
background-color: #f9f9f9; /* Light background color */
color: #000000; /* Dark text color */
}

/* Hover effect for the dropdown */
form select:hover {
border-color: #000000; /* Change border color on hover */
background-color: #e6f7ff; /* Slight blue tint */
}

/* Style for the clear filters button */
form button {
display: block; /* Make the button appear on a new line */
margin-top: 10px; /* Add some spacing above the button */
padding: 10px 15px; /* Button padding */
background-color: #000000; /* Button background color */
border: none; /* Remove border */
border-radius: 0px; /* Rounded corners */
font-size: 16px; /* Font size */
color: #fff; /* White text color */
cursor: pointer; /* Pointer cursor on hover */
text-align: center; /* Center the button text */
}

/* Hover effect for the button */
form button:hover {
background-color: #EC2024; /* Darker shade of blue on hover */
}

/* General widget container styling */
.widget {
padding: 15px; /* Add padding to the widget */
border: 0px solid #ddd; /* Light border */
/* border-radius: 8px; /* Rounded corners for the widget */
/* background-color: #fff; /* White background */
/* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow effect */
}

/* === WooCommerce In/Out of Stock Message Color === */
.woocommerce div.product .stock,
.woocommerce-page div.product .stock {
  color: #EC2024 !important;
  font-weight: bold;
}

/* === WooCommerce Cart Page Styles === */
.woocommerce-cart .cart {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  padding: 32px 24px;
  margin-bottom: 32px;
}
.woocommerce-cart table.shop_table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fafbfc;
  border-radius: 8px;
  overflow: hidden;
}
.woocommerce-cart table.shop_table th,
.woocommerce-cart table.shop_table td {
  padding: 16px 10px;
  text-align: left;
  border-bottom: 1px solid #e0e0e0;
}
.woocommerce-cart table.shop_table th {
  background: #f5f5f5;
  font-weight: 700;
  color: #222;
}
.woocommerce-cart table.shop_table td.product-remove a {
  color: #EC2024;
  font-size: 1.3rem;
  font-weight: bold;
  transition: color 0.2s;
}
.woocommerce-cart table.shop_table td.product-remove a:hover {
  color: #000;
}
.woocommerce-cart .cart_totals {
  background: #fafbfc;
  border-radius: 8px;
  padding: 24px 18px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.04);
}
.woocommerce-cart .cart_totals h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1em;
}
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
  background: #EC2024 !important;
  color: #fff !important;
  border-radius: 6px !important;
  font-weight: 700 !important;
  font-size: 1.1rem !important;
  padding: 14px 0 !important;
  border: none !important;
  width: 100%;
  display: block;
  text-align: center;
  transition: background 0.2s;
}
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover {
  background: #000 !important;
  color: #fff !important;
}

/* === WooCommerce Checkout Page Styles === */
.woocommerce-checkout .woocommerce {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  padding: 32px 24px;
  margin-bottom: 32px;
}
.woocommerce-checkout .woocommerce form.checkout {
  background: #fafbfc;
  border-radius: 8px;
  padding: 24px 18px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.04);
}
.woocommerce-checkout .woocommerce h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 1em;
}
.woocommerce-checkout .woocommerce input[type="text"],
.woocommerce-checkout .woocommerce input[type="email"],
.woocommerce-checkout .woocommerce input[type="tel"],
.woocommerce-checkout .woocommerce input[type="password"],
.woocommerce-checkout .woocommerce textarea,
.woocommerce-checkout .woocommerce select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #e0e0e0;
  border-radius: 6px;
  font-size: 1.08rem;
  margin-bottom: 1.2em;
  background: #fafbfc;
  color: #222;
  transition: border 0.2s;
}
.woocommerce-checkout .woocommerce input[type="text"]:focus,
.woocommerce-checkout .woocommerce input[type="email"]:focus,
.woocommerce-checkout .woocommerce input[type="tel"]:focus,
.woocommerce-checkout .woocommerce input[type="password"]:focus,
.woocommerce-checkout .woocommerce textarea:focus,
.woocommerce-checkout .woocommerce select:focus {
  border: 1.5px solid #EC2024;
  outline: none;
}
.woocommerce-checkout .woocommerce .button {
  background: #EC2024 !important;
  color: #fff !important;
  border-radius: 6px !important;
  font-weight: 700 !important;
  font-size: 1.1rem !important;
  padding: 14px 0 !important;
  border: none !important;
  width: 100%;
  display: block;
  text-align: center;
  transition: background 0.2s;
}
.woocommerce-checkout .woocommerce .button:hover {
  background: #000 !important;
  color: #fff !important;
}

/* === Mobile Product Card: Image Only, Quick View Popup === */
@media (max-width: 700px) {
  .custom-product-card {
    padding: 0 !important;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    overflow: hidden;
    position: relative;
    min-width: 0;
    min-height: 0;
  }
  .custom-product-card .custom-product-image-wrapper {
    display: block;
    width: 100%;
    cursor: pointer;
    padding: 0;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .custom-product-card .custom-product-image-wrapper a {
    display: block;
    width: 100%;
    height: auto;
    background: none;
    border-radius: 0;
    box-shadow: none;
  }
  .custom-product-card .custom-product-image-wrapper img {
    width: 100vw;
    max-width: 100vw;
    height: auto;
    aspect-ratio: 1/1;
    display: block;
    margin: 0 auto;
    border-radius: 0;
    box-shadow: none;
  }
  .custom-product-card .custom-product-info-outer,
  .custom-product-card .custom-product-sale-icon {
    display: none !important;
  }
}
@media (max-width: 700px) {
  .custom-product-card .custom-product-price {
    display: block !important;
    opacity: 1 !important;
    color: #EC2024 !important;
    font-size: 1.35rem !important;
    font-weight: bold !important;
    margin: 18px 0 0 0 !important;
    text-align: center !important;
  }
}

/* Quick View Modal Styles */
.b4-quickview-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.65);
  align-items: center;
  justify-content: center;
  overflow-y: auto;
}

.b4-quickview-modal.active {
  display: flex;
}

.b4-quickview-modal .b4-quickview-content {
  background: #fff;
  border-radius: 24px;
  max-width: 420px;
  width: 95vw;
  margin: 0 auto;
  padding: 32px 24px 24px 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
  box-shadow: 0 8px 40px rgba(0,0,0,0.18);
}

/* Center close button at bottom of card box */
.b4-quickview-modal .b4-quickview-content {
  position: relative;
}

.b4-quickview-modal .b4-quickview-close {
  position: absolute;
  left: 50%;
  bottom:24px;
  top: auto;
  right: auto;
  transform: translateX(-50%);
  z-index: 20;
  color: #fff;
  background: #000000;
  border-radius: 50%;
  padding: 4px 10px;
  font-size: 1.3rem;
  cursor: pointer;
  border: none;
  line-height: 1;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mobile adjustments */
@media (max-width: 600px) {
  .b4-quickview-modal .b4-quickview-content {
    max-width: 98vw;
    width: 98vw;
    padding: 18px 6px 18px 6px;
    border-radius: 16px;
  }
  .b4-quickview-modal .b4-quickview-close {
    bottom: 12px;
    left: 50%;
    width: 28px;
    height: 28px;
    font-size: 1.1rem;
    padding: 2px 6px;
    transform: translateX(-50%);
  }
}
@media (max-width: 400px) {
  .b4-quickview-modal .b4-quickview-content {
    padding: 8px 2px 8px 2px;
    border-radius: 10px;
  }
}

/* === Quick View Modal: Disable Image Click/Pop Effects in Modal === */
.b4-quickview-modal .product-thumbnail,
.b4-quickview-modal .woocommerce-product-gallery__image,
.b4-quickview-modal .custom-product-image-wrapper,
.b4-quickview-modal .b4-quickview-trigger {
  pointer-events: none !important;
  transition: none !important;
  box-shadow: none !important;
  transform: none !important;
}
/* Allow image links to be clickable in modal */
.b4-quickview-modal .custom-product-image-wrapper a,
.b4-quickview-modal .custom-product-image-wrapper img {
  pointer-events: auto !important;
}

/* === Quick View Modal: Center Image and Show Price === */
.b4-quickview-modal .custom-product-image-wrapper,
.b4-quickview-modal .woocommerce-product-gallery__image,
.b4-quickview-modal .product-thumbnail {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 auto !important;
}
.b4-quickview-modal img {
  display: block !important;
  margin: 0 auto !important;
  max-width: 100% !important;
  max-height: 100% !important;
  height: 100% !important;
}

/* === Quick View Modal: Remove Card Hover Popout Effect in Modal === */
.b4-quickview-modal .custom-product-card:hover,
.b4-quickview-modal .custom-product-card:focus-within,
.b4-quickview-modal .woocommerce ul.products li.product.custom-shop-card:hover,
.b4-quickview-modal .custom-product-list li:hover,
.b4-quickview-modal .elementor-widget-woocommerce-products ul.products li.product:hover,
.b4-quickview-modal .elementor-widget-wc-products ul.products li.product:hover {
  background: #fff !important;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08) !important;
  transform: none !important;
  z-index: 1 !important;
}

/* === Quick View Modal: Remove Info Row Drop-Down Effect in Modal === */
.b4-quickview-modal .custom-product-card:hover .custom-product-info-outer,
.b4-quickview-modal .custom-product-card:focus-within .custom-product-info-outer,
.b4-quickview-modal .woocommerce ul.products li.product.custom-shop-card:hover .custom-product-info-outer,
.b4-quickview-modal .custom-product-list li:hover .custom-product-info-outer,
.b4-quickview-modal .elementor-widget-woocommerce-products ul.products li.product:hover .custom-product-info-outer,
.b4-quickview-modal .elementor-widget-wc-products ul.products li.product:hover .custom-product-info-outer {
  padding-bottom: 0 !important;
  transition: none !important;
}

/* === Quick View Modal: Info Rows and Add to Cart always visible === */
.b4-quickview-modal .product-info,
.b4-quickview-modal .custom-product-info-outer,
.b4-quickview-modal .custom-product-info-row,
.b4-quickview-modal .custom-product-title-price,
.b4-quickview-modal .custom-product-add-to-cart,
.b4-quickview-modal .custom-product-sale-icon {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}
.b4-quickview-modal .custom-product-info-outer,
.b4-quickview-modal .custom-product-info-row {
  display: flex !important;
  flex-direction: column;
}

/* WooCommerce My Account Tabs: Horizontal Top Alignment */
.woocommerce-account .woocommerce {
    background: #EEEEEE; /* Change this to your desired color */
    border-radius: 8px;   /* Optional: rounded corners */
    padding: 24px;        /* Optional: spacing inside the container */
}
.woocommerce-MyAccount-navigation {
  width: 100% !important;
  float: none !important;
  margin-bottom: 0;
  background: none;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
  display: block;
}

.woocommerce-MyAccount-navigation ul {
  display: flex;
  flex-direction: row;
  justify-content: flex-start !important;
  align-items: stretch;
  border-bottom: 2px solid #eee;
  list-style: none;
  text-align: left !important;
  padding-left: 0 !important;
}

.woocommerce-MyAccount-navigation ul li {
  flex: 0 1 auto;
  margin: 0;
  padding: 0;
  text-align: left !important;
}

.woocommerce-MyAccount-navigation ul li a {
  display: block;
  padding: 14px 28px;
  background: #000 !important;
  color: #fff !important;
  font-weight: 600;
  font-size: 1.1rem;
  text-decoration: none !important;
  border-left: none;
  border-bottom: 4px solid transparent;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}

.woocommerce-MyAccount-navigation ul li.is-active a,
.woocommerce-MyAccount-navigation ul li a:hover,
.woocommerce-MyAccount-navigation ul li a:focus {
  text-align: left !important;
  background: #EC2024 !important;
  color: #fff !important;
}

@media (max-width: 700px) {
  .woocommerce-MyAccount-navigation ul {
    flex-direction: column;
    border-bottom: none;
  }
  .woocommerce-MyAccount-navigation ul li a {
    border-radius: 8px;
    border-bottom: none;
    margin-bottom: 4px;
    padding: 12px 16px;
  }
}

/* Align WooCommerce My Account tab content to match horizontal tab style */
.woocommerce-MyAccount-content {
  width: 100% !important;
  margin: 0 auto 32px auto;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  padding: 36px 32px;
  background: #fff;
  min-height: 320px;
  display: block;
}
@media (max-width: 700px) {
  .woocommerce-MyAccount-navigation ul {
    flex-direction: column;
    border-bottom: none;
  }
  .woocommerce-MyAccount-content {
    border-radius: 8px;
    padding: 18px 8px;
  }
}

/* General WooCommerce button styles */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce .woocommerce-button,
.woocommerce .checkout-button,
.woocommerce .place-order .button,
.woocommerce .order-again .button,
.woocommerce .view,
.woocommerce .edit,
.woocommerce .myaccount .button,
.woocommerce .cart .button,
.woocommerce .cart input.button,
.woocommerce .cart .checkout-button {
    background: #000000!important;
    color: #fff !important;
    border: none;
    border-radius: 4px;
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    transition: background 0.2s, color 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    cursor: pointer;
    outline: none;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce .woocommerce-button:hover,
.woocommerce .checkout-button:hover,
.woocommerce .place-order .button:hover,
.woocommerce .order-again .button:hover,
.woocommerce .view:hover,
.woocommerce .edit:hover,
.woocommerce .myaccount .button:hover,
.woocommerce .cart .button:hover,
.woocommerce .cart input.button:hover,
.woocommerce .cart .checkout-button:hover {
    background: #EC2024 !important;
    color: #fff;
}

/* WooCommerce Cart & Checkout Section Styles */

/* Cart Table */
.woocommerce-cart table.shop_table,
.woocommerce-checkout table.shop_table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.woocommerce-cart table.shop_table th,
.woocommerce-cart table.shop_table td,
.woocommerce-checkout table.shop_table th,
.woocommerce-checkout table.shop_table td {
    padding: 16px 12px;
    border-bottom: 1px solid #eee;
    text-align: left;
}

.woocommerce-cart table.shop_table th,
.woocommerce-checkout table.shop_table th {
    background: #f5f5f5;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* Cart Item Remove Button */
.woocommerce-cart .product-remove a {
    color: #000000 !important;
    font-size: 1.2em;
    transition: color 0.2s;
}
.woocommerce-cart .product-remove a:hover {
    color: #ffffff !important;
    background: #EC2024 !important;
}

/* Cart Totals & Checkout Summary */
.woocommerce-cart .cart-collaterals,
.woocommerce-checkout .cart-collaterals,
.woocommerce-checkout-review-order-table {
    background: #fafafa;
    border-radius: 8px;
    padding: 24px 20px;
    margin-top: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.woocommerce-cart .cart_totals h2,
.woocommerce-checkout .cart_totals h2,
.woocommerce-checkout .woocommerce-checkout-review-order-table th {
    font-size: 1.2em;
    font-weight: 700;
    margin-bottom: 12px;
}

/* Quantity Inputs */
.woocommerce .quantity input.qty {
    width: 60px;
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
    font-size: 1em;
}

/* Coupon Field */
.woocommerce-cart .coupon input.input-text {
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid #ddd;
    margin-right: 8px;
}
.woocommerce-cart .coupon .button {
    margin-top: 0;
}

/* Checkout Form Fields */
.woocommerce-checkout .woocommerce-billing-fields__field-wrapper input,
.woocommerce-checkout .woocommerce-billing-fields__field-wrapper select,
.woocommerce-checkout .woocommerce-billing-fields__field-wrapper textarea,
.woocommerce-checkout .woocommerce-shipping-fields__field-wrapper input,
.woocommerce-checkout .woocommerce-shipping-fields__field-wrapper select,
.woocommerce-checkout .woocommerce-shipping-fields__field-wrapper textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 16px;
    background: #fff;
    font-size: 1em;
}

/* Order Review Table */
.woocommerce-checkout-review-order-table {
    margin-bottom: 24px;
}

/* Payment Methods */
.woocommerce-checkout .wc_payment_methods {
    background: #f5f5f5;
    border-radius: 6px;
    padding: 16px 12px;
    margin-bottom: 20px;
}

/* Notices and Messages */
.woocommerce-error,
.woocommerce-info,
.woocommerce-message {
    border-radius: 4px;
    padding: 12px 18px;
    margin-bottom: 18px;
    font-size: 1em;
}
/* Remove WooCommerce message, info, and error icons */
.woocommerce-error::before,
.woocommerce-info::before,
.woocommerce-message::before {
    display: none !important;
}

.woocommerce-error { background: #ffebee !important; color: #EC2024 !important; }
.woocommerce-info { background: #e3f2fd !important; color: #000000 !important; }
.woocommerce-message { background: #e8f5e9 !important; color: #000000 !important; }

/* Dashboard Section Container */
.b4-dashboard-flex-row {
    display: flex;
    gap: 32px;
    margin-top: 32px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

/* Dashboard Card/Box */
.b4-dashboard-card {
    flex: 1 1 250px;
    background: #f7f7f7;
    border-radius: 8px;
    padding: 24px;
    min-width: 220px;
    box-sizing: border-box;
    margin-bottom: 0;
}

/* Dashboard Card Title */
.b4-dashboard-card h4 {
    margin-top: 0;
    font-size: 1.1em;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Style Font Awesome icons in dashboard cards */
.b4-dashboard-card h4 i {
    color: #EC2024 !important;
    font-size: 1.2em;
}

/* Responsive: Stack columns on tablets */
@media (max-width: 900px) {
    .b4-dashboard-flex-row {
        flex-direction: column;
        gap: 20px;
    }
    .b4-dashboard-card {
        min-width: 0;
    }
}

/* Mobile: Stack dashboard cards vertically in a list format */
@media (max-width: 700px) {
    .b4-dashboard-flex-row {
        flex-direction: column;
        gap: 18px;
        margin-top: 18px;
        margin-bottom: 18px;
    }
    .b4-dashboard-card {
        min-width: 0;
        width: 100%;
        margin-bottom: 0;
        border-radius: 10px;
        padding: 18px 10px;
    }
    .b4-dashboard-card h4 {
        font-size: 1.05em;
        gap: 6px;
    }
}

.b4-dashboard-orders-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.b4-dashboard-orders-list li {
    margin-bottom: 10px;
    font-size: 1em;
}
.b4-order-date {
    color: #888;
    margin-left: 10px;
}
.b4-order-status {
    background: #f3f3f3;
    border-radius: 8px;
    padding: 2px 10px;
    margin-left: 10px;
    font-size: 0.95em;
}


/* Style price text for variable products */
.woocommerce div.product p.price,
.woocommerce div.product span.price {
    color: #000000 !important;         /* Change to your desired color */
    font-size: 1.5em;       /* Adjust size as needed */
    font-weight: bold;      /* Optional: make it pop */
}

/* Optional: style variation price when selected */
.woocommerce-variation-price .price {
    color: #EC2024 !important;         /* Different color for selected variation */
    font-size: 1.4em;
}


.dig-library-card-manga-read-btn.button {
    display: block;
    width: 100%;
    margin-top: 12px;
    background: #000;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 10px 0;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.dig-library-card-manga-grid-container {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}
.dig-library-card-manga-grid-item {
    width: 180px;
    text-align: center;
}
.dig-library-card-manga-thumbnail {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 8px;
}