/*
Theme Name: OceanWP Child Theme
Theme URI: https://oceanwp.org/
Description: OceanWP WordPress theme. Sample child theme.
Author: OceanWP
Author URI: https://oceanwp.org/
Template: oceanwp
Version: 1.0
*/

/* Parent stylesheet should be loaded from functions.php not using @import */
a:active,
a:focus,
button:focus,
input:focus {
  outline: 0 none !important;
}

.container {
  max-width: 100% !important;
}
/* Custom Single Product Layout */
.custom-single-product-layout {
  /*max-width: 1200px;*/
  margin: 0 auto;
  /* padding: 20px;*/
}

.product-grid-container {
  display: grid;
  grid-template-columns: 45% 55%;
  gap: 40px;
}

@media (max-width: 768px) {
  .product-grid-container {
    grid-template-columns: 1fr;
  }
}

/* Right Column Typography */
.product-info-section h1.product_title {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 10px;
  color: #333;
}

.product-rating-overview {
  display: flex;
  align-items: center;
  gap: 10px;
}

.product-rating-overview .star-rating {
  color: #f1c40f;
  font-size: 14px;
}

.review-count {
  color: #777;
  font-size: 14px;
}

/* Price Section */
.price-section-container {
  margin-bottom: 25px;
}

.price-box {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 15px;
}

.regular-price-label del {
  color: #777;
  font-size: 16px;
}

.sale-price-label {
  color: #e74c3c;
  font-size: 28px;
  font-weight: 700;
}

.save-label {
  background-color: #fce1de; /* Light green background */
  color: #e74c3c; /* Darker green text */
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
}

.product-meta-points ul,
.product-meta-points p {
  margin: 0;
  padding: 0;
  list-style: none;
  color: #444;
  line-height: 1.6;
}
.product-meta-points li {
  margin-bottom: 5px;
  display: flex;
  align-items: flex-start;
}
.product-meta-points li::before {
  content: "•";
  margin-right: 8px;
  font-weight: bold;
}

/* Actions Box (Card style) */
.shipping-info-section {
   margin-bottom: 20px;
   font-size: 14px;
   color: #555;
   display: flex;
   flex-direction: column;
   gap: 8px;
   padding: 15px 0;
   border-bottom: 1px solid #e0e0e0;
}

.shipping-info-section .label {
  color: #777;
  display: inline-block;
}

.shipping-info-section .value {
  color: #777;
  display: inline-block;
}

.shipping-info-section .ships-from .label {
  color: #777;
  display: block;
}

.shipping-info-section .stock-status-row {
  display: flex;
  gap: 10px;
}

.shipping-info-section .stock-status-row .value.in-stock {
  color: #27ae60;
  font-weight: 500;
}

.shipping-info-section .stock-status-row .value.out-of-stock {
  color: #e74c3c;
  font-weight: 500;
}

.quantity .minus,
.quantity .plus {
  font-size: 16px !important;
  line-height: 46px !important;
}

.woocommerce div.product form.cart {
  padding: 0px 0 !important;
  border-top: 0px solid !important;
  border-bottom: 0px solid !important;
}

.quantity .qty,
.quantity .minus,
.quantity .plus {
  width: 48px !important;
  min-height: 48p !important;
}

.cart-actions .quantity input {
  border-radius: 0 !important;
}

/* Hide default WooCommerce stock display in add-to-cart area */
.cart-actions .stock {
  display: none !important;
}

.shipping-info-section .secure-transaction {
   display: flex;
   align-items: center;
   gap: 5px;
   color: #e74c3c;
   margin-top: 5px;
   font-weight: 500;
}

.product-info {
  display: flex;
  gap: 30px;
  justify-content: space-between;
}

.product-categories-meta {
  margin-top: 10px;
  font-size: 13px;
  color: #777;
}

/* Add to Cart Button Override */
.cart-actions .cart {
  display: inline-flex;
  gap: 10px;
  margin-bottom: 15px;
}

.cart-actions button.single_add_to_cart_button,
.woocommerce button.single_add_to_cart_button,
button.single_add_to_cart_button {
  background-color: #e74c3c !important;
  color: #fff !important;
  font-weight: 700 !important;
  padding: 10px 25px !important;
  border-radius: 4px !important;
  border: none !important;
  flex-grow: 1;
  font-size: 14px !important;
  transition: background 0.3s;
  height: 45px !important;
  line-height: 1.2 !important;
}
.cart-actions button.single_add_to_cart_button:hover,
.woocommerce button.single_add_to_cart_button:hover,
button.single_add_to_cart_button:hover {
  background-color: #ba1301 !important;
}

.cart-actions .quantity input {
  height: 48px;
  border: 1px solid #ddd;
  border-radius: 4px;
  text-align: center;
  width: 60px;
}

/* Pay with Link Button */
.pay-with-link-container {
  margin-bottom: 20px;
}

.pay-with-link-btn {
  width: 100%;
  background-color: #fcece6; /* Light peach/off-white background */
  border: none;
  padding: 12px;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-weight: 600;
  color: #333;
}
.pay-with-link-btn .logo-text {
  font-weight: 800;
  font-style: italic;
}
.pay-with-link-btn .dots {
  color: #e74c3c;
  letter-spacing: -2px;
  margin-left: 5px;
}

/* Trust Badges */
.trust-badges-row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  background: #f9f9f9;
  padding: 15px;
  border-radius: 6px;
  margin-bottom: 15px;
  font-size: 12px;
  color: #555;
}

.badge-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}
.badge-item i {
  color: #e74c3c;
  font-size: 14px;
}

.shipping-promo {
  font-size: 14px;
  color: #555;
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.green-text {
  color: #e74c3c;
}

.woocommerce .widget_price_filter .price_slider_amount .button {
    height: auto!important;
    line-height: 22px;
    padding: 10px 12px!important;
}

.woocommerce .widget_price_filter .price_slider_wrapper .ui-widget-content {
    border: 0px solid #d0d0d0!important;
}

/* Tabs */
.product-bottom-tabs {
  margin-top: 0px;
  border-top: 0px solid #eee;
  padding-top: 0px;
}

.woocommerce div.product .woocommerce-tabs ul.tabs {
  text-align: left !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
  border-top: 0px solid rgba(0, 0, 0, 0) !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a:hover {
  color: #e74c3c !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
  color: #e74c3c !important;
  border-color: #e74c3c !important;
}

.woocommerce.content-full-width div.product div.images {
  width: 100% !important;
}
.woocommerce div.product .woocommerce-product-gallery img {
  margin: 0;
  border-radius: 10px;
  width: 100%;
}
.woocommerce div.product .woocommerce-product-gallery .flex-viewport,
.woocommerce
  div.product
  .woocommerce-product-gallery
  .woocommerce-product-gallery__image {
  border-radius: 10px;
}

/* Product Gallery Thumbnails Carousel */
.woocommerce div.product .woocommerce-product-gallery {
  margin-bottom: 0;
  position: relative;
}

.woocommerce div.product .flex-control-thumbs-wrapper,
.woocommerce div.product .woocommerce-product-gallery-thumbnails-wrapper {
  position: relative;
  margin-top: 15px;
  padding: 0 45px;
  width: 100%;
  max-width: 100%;
}

.woocommerce div.product .flex-control-thumbs,
.woocommerce div.product .woocommerce-product-gallery-thumbnails {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  gap: 10px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  scrollbar-color: transparent transparent;
  padding: 0;
  margin: 0;
  list-style: none !important;
  width: 100%;
}

.woocommerce div.product .flex-control-thumbs::-webkit-scrollbar,
.woocommerce div.product .woocommerce-product-gallery-thumbnails::-webkit-scrollbar {
  display: none;
}

.woocommerce div.product .flex-control-thumbs li,
.woocommerce div.product .woocommerce-product-gallery-thumbnails li {
  width: calc(25% - 7.5px);
  flex-shrink: 0;
  margin: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
}

.woocommerce div.product .flex-control-thumbs li:hover,
.woocommerce div.product .woocommerce-product-gallery-thumbnails li:hover {
  border-color: #e74c3c;
  transform: scale(1.05);
}

.woocommerce div.product .flex-control-thumbs img,
.woocommerce div.product .woocommerce-product-gallery-thumbnails img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  object-fit: cover;
}

.woocommerce div.product .flex-control-thumbs li.flex-active,
.woocommerce div.product .woocommerce-product-gallery-thumbnails li.flex-active,
.woocommerce div.product .flex-control-thumbs li.active,
.woocommerce div.product .woocommerce-product-gallery-thumbnails li.active {
  border-color: #e74c3c;
  opacity: 1;
}

.woocommerce div.product .flex-control-thumbs li:hover img,
.woocommerce div.product .woocommerce-product-gallery-thumbnails li:hover img {
  opacity: 0.8;
}

/* Carousel Navigation Arrows */
.woocommerce div.product .flex-control-thumbs-prev,
.woocommerce div.product .flex-control-thumbs-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: #fff;
  border: 2px solid #ddd;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  font-size: 24px;
  font-weight: bold;
  color: #333;
  line-height: 1;
  padding: 0;
}

.woocommerce div.product .flex-control-thumbs-prev:hover,
.woocommerce div.product .flex-control-thumbs-next:hover {
  background: #e74c3c;
  border-color: #e74c3c;
  color: #fff;
  transform: translateY(-50%) scale(1.1);
}

.woocommerce div.product .flex-control-thumbs-prev {
  left: 0;
}

.woocommerce div.product .flex-control-thumbs-next {
  right: 0;
}

.woocommerce div.product .flex-control-thumbs-prev:focus,
.woocommerce div.product .flex-control-thumbs-next:focus {
  outline: none;
  border-color: #e74c3c;
}

/* Custom Related Products Carousel (Adapted from Emotion Addons) */
.custom-woo-module-wrap {
  position: relative;
  padding-bottom: 40px; /* Space for pagination */
  overflow: hidden;
  margin-top: 30px;
}

.woocommerce-page .cart-collaterals .cross-sells {
    padding: 0!important;
    border:0!important;
}

.woocommerce .cart-collaterals h2.custom-section-title {
    margin: 0 0 20px;
}

.custom-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 0;
}

.custom-section-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: #333;
}

.custom-carousel-swiper {
  position: relative;
  overflow: hidden;
  padding-bottom: 20px;
  padding-top: 20px;
}

.custom-carousel-swiper .swiper-wrapper {
  display: flex;
  height: 100%;
}

.custom-carousel-swiper .swiper-slide {
  height: auto;
  display: flex;
}

.custom-product-item {
  position: relative;
  background: #fff;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
  height: 450px;
  width: 100%;
  display: flex;
  flex-direction: column;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #f0f0f0;
}

.custom-product-item a {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.custom-product-image {
  position: relative;
  margin-bottom: 15px;
  overflow: hidden;
  border-radius: 8px;
}

.custom-product-image img {
  width: 100%;
  height: auto;
  transition: transform 0.3s;
  vertical-align: middle;
  display: block;
}

.custom-product-item:hover .custom-product-image img {
  transform: scale(1.05);
}

.custom-sale-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #e74c3c; /* Red */
  color: #fff;
  padding: 5px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 50%;
  z-index: 2;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.custom-product-content {
  padding: 0 5px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.custom-product-title {
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.4;
  font-weight: 600;
  color: #333;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  height: 2.8em; /* 1.4em * 2 lines */
}

.custom-product-reviews {
  margin-bottom: 10px;
}

.custom-product-reviews .star-rating {
  font-size: 12px;
  color: #f1c40f;
}

.custom-product-price {
  font-size: 16px;
  font-weight: 700;
  color: #e74c3c; /* Red */
  margin-top: 0;
}

.custom-product-price del {
  color: #999;
  font-weight: 400;
  margin-right: 5px;
  font-size: 14px;
}

.custom-product-price ins {
  text-decoration: none;
}

/* Swiper Navigation */
.custom-carousel-swiper .swiper-button-next,
.custom-carousel-swiper .swiper-button-prev {
  position: absolute;
  top: 40%;
  width: 40px;
  height: 40px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  color: #333;
  margin-top: 0;
  transform: translateY(-50%);
  display: flex !important;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10 !important;
  cursor: pointer;
  opacity: 0;
}

.custom-carousel-swiper:hover .swiper-button-next,
.custom-carousel-swiper:hover .swiper-button-prev {
  opacity: 1;
}

.custom-carousel-swiper .swiper-button-prev {
  left: 10px;
}

.custom-carousel-swiper .swiper-button-next {
  right: 10px;
}

.custom-carousel-swiper .swiper-button-next:after,
.custom-carousel-swiper .swiper-button-prev:after {
  display: none;
}

/* Swiper Pagination */
.custom-carousel-swiper .swiper-pagination {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  text-align: center;
  z-index: 10;
}

.custom-carousel-swiper .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  display: inline-block;
  border-radius: 50%;
  background: #ccc;
  opacity: 0.5; /* Opacity for bullets */
  margin: 0 4px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.custom-carousel-swiper .swiper-pagination-bullet-active {
  opacity: 1;
  background: #e74c3c; /* Red */
}

/* Custom WooCommerce Archive Layout */
body.archive .elementor-location-archive,
body.tax-product_cat .elementor-location-archive,
body.tax-product_tag .elementor-location-archive {
  display: none;
}

.custom-archive-layout {
  background: #fff;
  padding: 0px 0;
  min-height: 100vh;
}

.custom-archive-container {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 20px; /* "pending" on left and right */
}

.custom-archive-wrapper {
  display: flex;
  flex-direction: row-reverse; /* Sidebar on left */
  gap: 30px;
  align-items: flex-start;
}

.custom-archive-main {
  flex: 1;
}

/* Sidebar Styling */
.custom-archive-layout .sidebar,
.custom-archive-layout .sidebar-widget-area,
.custom-archive-layout #secondary {
  width: 200px;
  flex-shrink: 0;
  min-height: 100vh;
  border-right: 1px solid #ddd; /* Separator Border */
  padding-right: 15px;
}

/* Force Globally Visible Categories */
.widget_product_categories,
.widget_product_categories ul,
.widget_product_categories ul li,
.widget_product_categories ul.product-categories,
.product-categories li ul.children {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
}

/* Fix for Collapsible Icons if they are causing issues */
.widget_product_categories .open-this {
    display: none !important; /* Optionally hide the toggle icon if we want everything open */
}

/* General Widget Cleanup */
.custom-archive-layout .widget,
.custom-archive-layout .sidebar-widget-area .widget,
.custom-archive-layout #secondary .widget {
  background: transparent;
  padding: 0 0 20px 0;
  border-radius: 0;
  box-shadow: none;
  margin-bottom: 20px;
}

.custom-archive-layout .widget:last-child,
.custom-archive-layout .sidebar-widget-area .widget:last-child,
.custom-archive-layout #secondary .widget:last-child {
  margin-bottom: 0;
}

.custom-archive-layout .widget-title,
.custom-archive-layout .sidebar-widget-area .widget-title,
.custom-archive-layout #secondary .widget-title,
.custom-archive-layout #secondary .emotion-section-title {
  font-size: 16px!important;
  font-weight: 700;
  padding:0;
  border:0;
  letter-spacing: 0;
  margin-bottom: 15px;
  color: #333;
  text-transform: capitalize;
  line-height: 1.2;
}

/* Sale Badge Styling */
.custom-products-grid ul.products li.product .onsale {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #e74c3c;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  margin: 0;
  z-index: 2;
}

/* Add to Cart Button */
.custom-products-grid ul.products li.product a.button, .custom-products-grid ul.products li.product button.button, .custom-products-grid ul.products li.product .added_to_cart {
    width: auto;
    text-align: center;
    padding: 10px 15px;
    background: #e74c3c;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    margin-top: 10px;
    display: none;
    text-decoration: none;
    transition: background 0.3s;
}

.custom-products-grid ul.products li.product a.button:hover,
.custom-products-grid ul.products li.product button.button:hover {
  background: #ba1301;
  color: #fff;
}

.custom-products-grid ul.products li.product .added_to_cart {
  background: #27ae60;
  margin-top: 5px;
}

.woocommerce ul.products li.product .woo-entry-inner {
    margin: 0;
    background-color: #FAFAFA;
    padding: 0px 0px 15px;
}

/* Product Card Inner */
.custom-products-grid ul.products li.product a {
  position: relative;
  display: block;
}

/* Rating Stars */
.custom-products-grid ul.products li.product .star-rating {
  margin: 5px 15px 10px;
  font-size: 14px;
}

.woocommerce ul.products li.product .woo-entry-inner li.title, .woocommerce ul.products li.product .woo-entry-inner li.price-wrap, .woocommerce ul.products li.product .woo-entry-inner li.rating, .woocommerce ul.products li.product .woo-entry-inner li.btn-wrap {
    padding: 0px 15px;
}

.woocommerce ul.products li.product li.title h2, 
.woocommerce ul.products li.product li.title a,
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.widget_products ul.product_list_widget li a,
.widget_top_rated_products ul.product_list_widget li a,
.widget_recent_reviews ul.product_list_widget li a,
.widget_recently_viewed_products ul.product_list_widget li a {
    font-size: 14px;
    font-weight: 500;
    color: #000;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 3em; /* 1.5em line-height * 2 lines */
}

/* Products Grid */
.custom-products-grid ul.products {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    margin: 0;
}

@media (max-width: 1024px) {
  .custom-products-grid ul.products {
    grid-template-columns: repeat(4, 1fr); /* 4 columns on small devices */
  }
}

@media (max-width: 576px) {
  .custom-products-grid ul.products {
    grid-template-columns: repeat(2, 1fr); /* 2 columns on mobile */
  }
}

.custom-products-grid ul.products li.product {
    width: 100% !important;
    float: none !important;
    margin: 0 0 10px !important;
    background: #fff;
    border-radius: 0;
    border: 0px solid #f0f0f0;
    overflow: hidden;
    transition: all 0.3s ease;
    padding: 0;
}

.custom-products-grid ul.products li.product:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-5px);
}

.custom-products-grid ul.products li.product a img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  margin-bottom: 15px;
}

.custom-products-grid
  ul.products
  li.product
  h2.woocommerce-loop-product__title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  padding: 0 15px;
  line-height: 1.4;
  color: #333;
}

.custom-products-grid ul.products li.product .price {
  font-size: 18px;
  font-weight: 700;
  color: #e74c3c;
  padding: 0 15px 15px;
}

.custom-products-grid ul.products li.product .price del {
  font-size: 14px;
  font-weight: 400;
  color: #999;
  margin-right: 8px;
}

/* Shop Loop Header */
.woocommerce-products-header {
  margin-bottom: 30px;
}

.woocommerce-products-header__title {
  font-size: 28px;
  font-weight: 700;
  color: #333;
  margin-bottom: 15px;
}

.woocommerce-result-count {
  font-size: 14px;
  color: #666;
  margin-bottom: 15px;
}

.woocommerce-ordering select {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  color: #333;
}

.product-inner:hover .woo-entry-buttons,
.woo-entry-inner:hover .woo-entry-buttons,
.product:hover .woo-entry-buttons {
    opacity: 1;
    pointer-events: auto;
}

.woocommerce ul.products li.product .price {
    font-size: 18px;
    padding: 0;
    line-height: 1;
}

/* Hide Wishlist if present (optional, but ensures clean look like image if desired, otherwise comment out) */
/* .woo-wishlist-btn { display: none; } */

.woocommerce .custom-archive-layout  ul.products li.product .woo-entry-inner li.image-wrap .woo-entry-image, .woocommerce .custom-archive-layout  ul.products li.product .woo-entry-inner li.image-wrap .product-entry-slider-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 250px;
}

.custom-products-grid ul.products li.product .woo-entry-image a {
    height: 250px;
}

.woocommerce ul.products li.product li.title a:hover {
    color: #e74c3c;
}

.custom-archive-layout .owp-quick-view {
    position: absolute;
    bottom: 45px;
    left: 0;
    right: 0;
    width: auto;
    padding: 10px;
    margin: 0px auto;
    text-align: center;
    background-color: #fff;
    border: 1px solid #ccc;
    color: #333;
    font-size: 14px;
    border-radius: 20px;
    font-weight: 600;
    text-transform: capitalize;
    letter-spacing: 0;
    opacity: 0;
    visibility: hidden;
    z-index: 12;
    display: inline-block!important;
}

.custom-archive-layout .owp-quick-view:hover {
    background-color: #f5f5f5;
    border: 1px solid #ccc;
    color: #333;
}

.custom-archive-layout .widget_product_categories ul li, .custom-archive-layout .widget_layered_nav ul li, .custom-archive-layout .sidebar-widget-area .widget_product_categories ul li, .custom-archive-layout .sidebar-widget-area .widget_layered_nav ul li, .custom-archive-layout #secondary .widget_product_categories ul li, .custom-archive-layout #secondary .widget_layered_nav ul li {
    padding: 0;
    border-bottom: 0px solid #f0f0f0;
}

.custom-archive-layout .widget_product_categories ul li:last-child,
.custom-archive-layout .widget_layered_nav ul li:last-child,
.custom-archive-layout
  .sidebar-widget-area
  .widget_product_categories
  ul
  li:last-child,
.custom-archive-layout
  .sidebar-widget-area
  .widget_layered_nav
  ul
  li:last-child,
.custom-archive-layout #secondary .widget_product_categories ul li:last-child,
.custom-archive-layout #secondary .widget_layered_nav ul li:last-child {
  border-bottom: none;
}

.custom-archive-layout .widget_product_categories ul li a,
.custom-archive-layout .widget_layered_nav ul li a,
.custom-archive-layout .sidebar-widget-area .widget_product_categories ul li a,
.custom-archive-layout .sidebar-widget-area .widget_layered_nav ul li a,
.custom-archive-layout #secondary .widget_product_categories ul li a,
.custom-archive-layout #secondary .widget_layered_nav ul li a {
  color: #555;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.custom-archive-layout .widget_product_categories ul li a:hover,
.custom-archive-layout .widget_layered_nav ul li a:hover,
.custom-archive-layout
  .sidebar-widget-area
  .widget_product_categories
  ul
  li
  a:hover,
.custom-archive-layout .sidebar-widget-area .widget_layered_nav ul li a:hover,
.custom-archive-layout #secondary .widget_product_categories ul li a:hover,
.custom-archive-layout #secondary .widget_layered_nav ul li a:hover {
  color: #e74c3c;
}

.custom-archive-layout .widget_product_categories ul li.current-cat > a,
.custom-archive-layout
  .sidebar-widget-area
  .widget_product_categories
  ul
  li.current-cat
  > a,
.custom-archive-layout
  #secondary
  .widget_product_categories
  ul
  li.current-cat
  > a {
  color: #e74c3c;
  font-weight: 600;
}

/* Price Range Slider Filter */
.custom-archive-layout .widget_price_filter .price_slider,
.custom-archive-layout .sidebar-widget-area .widget_price_filter .price_slider,
.custom-archive-layout #secondary .widget_price_filter .price_slider {
  margin-bottom: 20px;
}

.custom-archive-layout .widget_price_filter .price_slider_amount,
.custom-archive-layout
  .sidebar-widget-area
  .widget_price_filter
  .price_slider_amount,
.custom-archive-layout #secondary .widget_price_filter .price_slider_amount {
  text-align: right;
  font-size: 14px;
}

.custom-archive-layout .widget_price_filter .button,
.custom-archive-layout .sidebar-widget-area .widget_price_filter .button,
.custom-archive-layout #secondary .widget_price_filter .button {
  width: 100%;
  padding: 10px;
  background: #e74c3c;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}

.custom-archive-layout .widget_price_filter .button:hover,
.custom-archive-layout .sidebar-widget-area .widget_price_filter .button:hover,
.custom-archive-layout #secondary .widget_price_filter .button:hover {
  background: #ba1301;
}

/* Pagination */
.woocommerce-pagination {
  margin-top: 30px;
  text-align: center;
}

.woocommerce-pagination ul {
  display: inline-flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 5px;
}

.woocommerce-pagination ul li {
  display: inline-block;
}

.woocommerce-pagination ul li a,
.woocommerce-pagination ul li span {
  display: inline-block;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  border: 1px solid #ddd;
  border-radius: 4px;
  text-decoration: none;
  color: #333;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
}

.woocommerce-pagination ul li a:hover,
.woocommerce-pagination ul li span.current {
  background: #e74c3c;
  color: #fff;
  border-color: #e74c3c;
}

.woocommerce ul.products {
    margin: 0!important;
}


.content-left-sidebar .widget-area {
    padding-right: 15px;
    padding-left: 0;
    padding-top: 30px;
    border-right: 1px solid #f1f1f1;
    padding-bottom: 30px;
}

.content-left-sidebar .content-area {
    padding-left: 15px;
    padding-right: 0;
    border-left-width: 0;
    border-right-width: 0;
    padding-bottom: 30px;
    padding-top: 30px;
}

#main .custom-archive-layout #content-wrap {
    padding:  0;
    max-width: 100%;
    width: 100%;
}

.woocommerce ul.products li.product .woo-entry-inner li.image-wrap {
    margin-bottom: 0!important;
    max-height: 280px;
}

.woocommerce ul.products li.product li.title h2, .woocommerce ul.products li.product li.title a {
    margin-bottom: 0;
}

.widget-area {
    width: 20%;
}

.content-area {
    width: 80%;
}

.woocommerce form input[type=number] {
    max-width: 58px;
    min-height: 48px!important;
}

.product-price span.woocommerce-Price-amount.amount, .product-subtotal span.woocommerce-Price-amount.amount {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
  .custom-products-grid ul.products {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .custom-archive-wrapper {
    flex-direction: column-reverse;
  }

  .custom-archive-layout .sidebar,
  .custom-archive-layout .sidebar-widget-area,
  .custom-archive-layout #secondary {
    width: 100%;
    order: 2;
  }

  .custom-archive-main {
    order: 1;
  }

  .custom-products-grid ul.products {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .custom-products-grid ul.products li.product a img {
    height: 200px;
  }
}

@media (max-width: 480px) {
  .custom-products-grid ul.products {
    grid-template-columns: 1fr;
  }

  .custom-archive-container {
    padding: 0 15px;
  }

  .custom-archive-main {
    padding: 20px 15px;
  }
}

/* Cross Sells Specific Adjustments */
.cross-sells h2 {
    background: transparent !important;
    padding: 0 !important;
    margin-bottom: 20px;
    border: none !important;
}

/* Fix Add to Cart Button in Custom Carousel */
.custom-product-item .button,
.custom-product-item .added_to_cart {
    width: 100%;
    text-align: center;
    padding: 10px 15px;
    background: #e74c3c;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    margin-top: 10px;
    text-decoration: none;
    transition: background 0.3s;
    display: block; /* Ensure it takes full width/block */
    line-height: inherit;
}

.amount {
    color: #E74C3C!important;
}

.cart-subtotal span.woocommerce-Price-amount.amount,
.cart-discount span.woocommerce-Price-amount.amount {
    font-size: 16px;
    font-weight: bold;
}

.woocommerce-cart .cart-collaterals .cart_totals table .cart-discount td {
    font-size: 16px;
    font-weight: bold;
    color: #E74C3C;
}

.woocommerce-cart .cart-collaterals .cart_totals table .cart-discount td a{
    font-size: 14px;
    font-weight: normal;
}

.custom-product-item .button:hover {
    background: #ba1301;
    color: #fff;
}

.custom-product-item .added_to_cart {
    background: #27ae60;
}

/* Discount Notifications */
.custom-discount-notice {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-size: 16px;
    line-height: 1.5;
    border-left: 5px solid transparent;
}

.custom-discount-notice.success {
    background-color: #d4edda;
    color: #155724;
    border-color: #28a745;
}

.custom-discount-notice.upsell {
    background-color: #fff3cd;
    color: #856404;
    border-color: #ffc107;
}

/* Checkout Page Container */

body.woocommerce-checkout .container {
    max-width: 1000px !important;
}


/* Checkout Order Summary Table Styling */
.woocommerce-checkout #order_review, .woocommerce-checkout #order_review_heading {
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	padding: 15px 15px 10px !important;
	border: 1px solid #e8e8e8;
}

.woocommerce-checkout #order_review_heading h3 {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin: 0 0 20px 0;
    border-bottom: 2px solid #e74c3c;
    padding-bottom: 10px;
}

.woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table {
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 20px;
}

.woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table thead {
    background: transparent;
    border-bottom: 1px solid #ddd;
}

.woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table th {
	font-weight: 700;
	color: #333;
	padding: 0px 0px 15px !important;
	border-bottom: 1px solid #ddd !important;
	border-right: 0px solid #ddd !important;
	background-color: transparent !important;
}

.woocommerce #order_review table.shop_table ul#shipping_method.woocommerce-shipping-methods {
	padding-bottom: 0!important;
	float:right;
}

.woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table th:last-child {
    border-right: none;
}

.woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table td {
    padding: 15px 0px 15px !important;
	border-bottom: 1px solid #ddd !important;
	border-right: 0px solid #ddd !important;
    vertical-align: middle;
    background: transparent;
}

.woocommerce #order_review table.shop_table td {
	min-width: 220px;
}

.woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table td:last-child {
    border-right: none;
}

.woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table tr:last-child td {
    border-bottom: none;
}



.woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table tfoot td:last-child {
    border-right: none;
}

.woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table tfoot tr:last-child td {
    border-bottom: none;
    border-top: none;
}

.woocommerce-checkout .cart-subtotal,
.woocommerce-checkout .order-total {
    font-size: 16px;
    font-weight: 600;
}

.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
	display: inline-block!important;
}

.woocommerce-checkout .order-total td {
    font-size: 18px;
    font-weight: 700;
    color: #e74c3c;
}

.woocommerce-checkout .woocommerce-shipping-optional {
    font-style: italic;
    color: #777;
    font-size: 14px;
}

.woocommerce-checkout .shipping-methods label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 8px 0;
}

.woocommerce-checkout .shipping-methods input[type="radio"] {
    margin-right: 10px;
    accent-color: #e74c3c;
}

.woocommerce-checkout .woocommerce-shipping-calculator {
    margin-top: 10px;
}

.woocommerce-checkout a.woocommerce-shipping-calculator-button {
    color: #e74c3c;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.woocommerce-checkout a.woocommerce-shipping-calculator-button:hover {
    text-decoration: underline;
}

/* Remove the "check" icon from the success message */
.woocommerce-message.custom-discount-notice::before {
    display: none !important;
    content: none !important;
}

/* Also ensure no padding left is forcing space for the icon */
.woocommerce-message.custom-discount-notice {
    padding-left: 20px !important; /* Reset to standard padding if needed */
}
