/* Shop Page Styling */

/* Sidebar and Layout */
.o_wsale_products_main_row {
  gap: 24px;
}
.custom_product_description_section {
    position: relative;
    padding-right: 520px; /* default for large screens */
    min-height: 200px;
}

/* Image on the right */
.custom_product_description_section::after {
    content: "";
    position: absolute;
    top: -200px;
    right: -100px;
    width: 500px;
    height: 500px;
    background-image: url('/Origami/static/images/sushi-menuu.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    pointer-events: none;
    z-index: 1;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .custom_product_description_section {
        padding-right: 350px; /* shrink padding as screen gets smaller */
    }
    .custom_product_description_section::after {
        width: 500px;  /* shrink image */
        height: 500px;
    }
}

@media (max-width: 768px) {
    .custom_product_description_section {
        padding-right: 0; /* allow text to take full width */
    }
    .custom_product_description_section::after {
        display: none; /* hide image on mobile */
    }
}



#products_grid_before {
  max-height: 100vh;
  border-right: 1px solid #e0e0e0;
  padding-right: 24px !important;
}

.o_wsale_products_grid_before_rail {
  padding-right: 12px !important;
}

/* Header and Title */
.container.oe_website_sale h1,
.container.oe_website_sale > .row > h1 {
  text-align: center;
  font-size: 3rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  margin-bottom: 32px;
  color: #333;
}

/* Category Filters */
.products_attributes_filters {
  margin-bottom: 24px;
}

.accordion-item {
  border: none;
  border-bottom: 1px solid #e0e0e0;
  margin-bottom: 0;
}

.accordion-button {
  padding: 12px 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: #333;
}

.accordion-button:not(.collapsed) {
  box-shadow: none;
  background-color: transparent;
  color: #333;
}

.form-check-label {
  font-size: 0.875rem;
  color: #666;
}

/* Price Range */
#o_wsale_price_range_option {
  border-top: 1px solid #e0e0e0;
  margin-top: 24px;
  padding-top: 16px;
}

/* Update product grid to use proper CSS Grid with 4 columns and visible borders */
.o_wsale_products_grid_table {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 0 !important;
  border: 1px solid #ddd !important;
  border-top: none !important;
  border-left: none !important;
  background: #fff !important;
}

/* Improve product wrapper styling with better proportions */
.o_wsale_product_grid_wrapper {
  background: #f8f8f8 !important;
  border: none !important;
  border-right: 1px solid #ddd !important;
  border-bottom: 1px solid #ddd !important;
  border-radius: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  height: auto !important;
}

/* Make image area larger - 280px height for prominent display */
.oe_product_image {
  width: 100% !important;
  height: 280px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #f8f8f8 !important;
  flex-shrink: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

.oe_product_image_img_wrapper {
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.oe_product_image img {
  object-fit: contain !important;
  max-width: 90% !important;
  max-height: 90% !important;
  padding: 16px !important;
}

/* Compact product information section below image */
.o_wsale_product_information {
  padding: 12px 16px 16px 16px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
}

.o_wsale_products_item_title {
  font-size: 0.9rem !important;
  font-weight: 500 !important;
  color: #333 !important;
  margin: 0 !important;
  line-height: 1.3 !important;
}

.o_wsale_products_item_title a {
  color: #333 !important;
  text-decoration: none !important;
}

.o_wsale_products_item_title a:hover {
  color: #666 !important;
}

/* Style product description and price */
.o_wsale_product_sub {
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  margin-top: auto !important;
}

.o_wsale_product_sub small {
  font-size: 0.8rem !important;
  color: #666 !important;
  margin: 0 !important;
}

.product_price {
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  color: #333 !important;
  margin: 4px 0 0 0 !important;
}

.product_price .h6 {
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  margin: 0 !important;
}

/* Remove unwanted margins and padding from cart elements */
.oe_product_cart {
  flex-direction: column !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
}

/* Search Bar */
.o_searchbar_form {
  max-width: 300px;
}

.oe_search_box {
  border-radius: 0;
  font-size: 0.9rem;
}

/* Header Controls */
.products_header {
  padding: 16px 0;
  border-bottom: 1px solid #e0e0e0;
  margin-bottom: 24px;
}

.btn-light {
  background-color: #f5f5f5;
  border: 1px solid #e0e0e0;
  color: #333;
  font-size: 0.9rem;
}

.btn-light:hover {
  background-color: #efefef;
  border-color: #d0d0d0;
}

/* Responsive Grid */
@media (max-width: 1200px) {
  .o_wsale_products_grid_table {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

@media (max-width: 768px) {
  #products_grid_before {
    display: none;
  }

  .col-lg-9 {
    flex: 0 0 100%;
  }

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

/* Category Sidebar Icons */
.oe_product .o_wsale_product_grid_wrapper {
  border-radius: 0;
}

/* Sticky positioning for sidebar */
.position-sticky {
  position: sticky;
  top: 0;
}

/* Product Detail Page Styling */

/* Main product detail container */
#product_detail {
  padding: 32px 0 !important;
}

/* Product detail section layout */
#product_detail_main {
  display: flex !important;
  gap: 40px !important;
}

/* Left column: Product image with background */
.o_wsale_product_images {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 auto !important;
}

#o-carousel-product {
  border-radius: 8px !important;
  overflow: hidden !important;
  padding: 40px !important;
  width: 100% !important;
  max-width: 500px !important;
  position: relative !important;
  top: auto !important;
}

.carousel-outer {
  min-height: 400px !important;
}

.carousel-item {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.product_detail_img {
  max-width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
}

/* Right column: Product details */
#product_details {
  padding: 16px 0 !important;
  flex: 1 !important;
}

#product_details h1 {
  font-size: 2rem !important;
  font-weight: 500 !important;
  color: #333 !important;
  margin-bottom: 8px !important;
}

/* Product meta info */
#product_details .product_price {
  font-size: 1.5rem !important;
  font-weight: 600 !important;
  color: #333 !important;
  margin: 16px 0 24px 0 !important;
}

#product_details .product_price h3 {
  font-size: 1.5rem !important;
  font-weight: 600 !important;
  margin: 0 !important;
}

/* Attributes section */
.js_add_cart_variants {
  margin-bottom: 24px !important;
}

.variant_attribute {
  margin-bottom: 24px !important;
}

.attribute_name {
  display: block !important;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  color: #333 !important;
  margin-bottom: 12px !important;
}

.o_wsale_product_attribute {
  display: flex !important;
  gap: 8px !important;
}

.form-check {
  margin-bottom: 0 !important;
}

.form-check-input {
  margin-top: 0 !important;
}

.radio_input_value {
  font-size: 0.9rem !important;
  color: #666 !important;
}

/* Base radio style */
.form-check-input[type="radio"] {
  border-color: #c41e3a !important;
  cursor: pointer;
}

/* Checked state */
.form-check-input[type="radio"]:checked {
  background-color: #c41e3a !important;
  border-color: #c41e3a !important;
}

/* Inner dot color (Bootstrap) */
.form-check-input[type="radio"]:checked::before {
  background-color: #c41e3a !important;
}

/* Focus ring */
.form-check-input[type="radio"]:focus {
  box-shadow: 0 0 0 0.2rem rgba(196, 30, 58, 0.25) !important;
  border-color: #c41e3a !important;
}

/* Hover effect */
.form-check-input[type="radio"]:hover {
  border-color: #a01830 !important;
}
/* Toast - View cart button */
.o_notification_fade .btn-primary {
  background-color: #c41e3a !important;
  border-color: #c41e3a !important;
  color: #ffffff !important;
  font-weight: 600;
}

/* Hover */
.o_notification_fade .btn-primary:hover {
  background-color: #a01830 !important;
  border-color: #a01830 !important;
}

/* Focus */
.o_notification_fade .btn-primary:focus {
  box-shadow: 0 0 0 0.2rem rgba(196, 30, 58, 0.25) !important;
}


/* Quantity and Add to Cart section */
#o_wsale_cta_wrapper {
  gap: 12px !important;
  margin-bottom: 24px !important;
}

.css_quantity {
  background: #f5f5f5 !important;
  border-radius: 4px !important;
  padding: 0 !important;
}

.css_quantity input.quantity {
  width: 60px !important;
  border: none !important;
  background: transparent !important;
  font-weight: 600 !important;
  text-align: center !important;
}

.css_quantity .btn {
  padding: 8px 12px !important;
  font-size: 1rem !important;
  color: #333 !important;
  background: transparent !important;
  border: none !important;
}

.css_quantity .btn:hover {
  color: #666 !important;
}

#add_to_cart {
  background-color: #c41e3a !important;
  border: none !important;
  padding: 12px 32px !important;
  font-weight: 600 !important;
  font-size: 0.95rem !important;
  border-radius: 4px !important;
  white-space: nowrap !important;
}

#add_to_cart:hover {
  background-color: #a01830 !important;
}

/* Tabs: Composition and Allergènes */
#product_details .nav-tabs {
  border-bottom: none !important;
  gap: 32px !important;
  margin-top: 32px !important;
  padding-bottom: 12px !important;
}

#product_details .nav-link {
  border: none !important;
  padding: 0 0 8px 0 !important;
  color: #666 !important;
  font-size: 0.95rem !important;
  font-weight: 500 !important;
  position: relative !important;
}

#product_details .nav-link::after {
  content: "" !important;
  position: absolute !important;
  bottom: -12px !important;
  left: 0 !important;
  right: 0 !important;
  height: 3px !important;
  background: transparent !important;
  transition: background 0.3s ease !important;
}

#product_details .nav-link.active {
  color: #c41e3a !important;
  border: none !important;
}

#product_details .nav-link.active::after {
  background: #c41e3a !important;
}

#product_details .nav-link:hover {
  color: #333 !important;
}

/* Tab content */
.tab-content {
  margin-top: 24px !important;
}

.tab-pane {
  padding: 0 !important;
}

.tab-pane ul {
  list-style: disc !important;
  padding-left: 24px !important;
}

.tab-pane li {
  font-size: 0.9rem !important;
  color: #666 !important;
  margin-bottom: 8px !important;
  line-height: 1.6 !important;
}

/* Adding product full description styling */
#product_full_description {
  margin-top: 48px !important;
  padding: 0 !important;
  max-width: 100% !important;
}

#product_full_description h2 {
  font-size: 1.5rem !important;
  font-weight: 400 !important;
  color: #333 !important;
  margin-bottom: 24px !important;
  font-family: "Georgia", serif !important;
  letter-spacing: 0.02em !important;
}

#product_full_description p {
  font-size: 0.95rem !important;
  color: #666 !important;
  line-height: 1.8 !important;
  margin-bottom: 16px !important;
  text-align: justify !important;
}

#product_full_description ul {
  padding-left: 24px !important;
  margin-bottom: 16px !important;
}

#product_full_description li {
  font-size: 0.95rem !important;
  color: #666 !important;
  line-height: 1.8 !important;
  margin-bottom: 8px !important;
}

/* Product information and terms */
#o_product_terms_and_share {
  margin-top: 32px !important;
  padding-top: 24px !important;
  border-top: 1px solid #e0e0e0 !important;
}

#o_product_terms_and_share p {
  font-size: 0.85rem !important;
  line-height: 1.6 !important;
}

/* Breadcrumb styling */
.o_wsale_breadcrumb {
  font-size: 0.9rem !important;
  color: #666 !important;
}

.breadcrumb-item.active {
  color: #c41e3a !important;
}

/* ================================
   PRODUCT VARIANT PILLS – ACTIVE
   ================================ */

/* Active / selected pill */
.o_wsale_product_attribute
.o_variant_pills.active {
    background-color: #c41e3a !important; /* red background */
    border-color: #c41e3a !important;
}

/* Text inside active pill */
.o_wsale_product_attribute
.o_variant_pills.active
.o_variant_pills_input_value span {
    color: #000000 !important; /* black text */
}

/* Price badge inside active pill */
.o_wsale_product_attribute
.o_variant_pills.active
.badge {
    background-color: #ffffff !important;
    color: #000000 !important;
    border-color: #000000 !important;
}

/* Hover (optional but recommended) */
.o_wsale_product_attribute
.o_variant_pills:hover {
    background-color: #c41e3a !important;
    border-color: #c41e3a !important;
}


/* Responsive */
@media (max-width: 1024px) {
  #product_detail_main {
    gap: 24px;
  }

  #o-carousel-product {
    padding: 24px !important;
  }

  #product_details h1 {
    font-size: 1.5rem !important;
  }
}

@media (max-width: 768px) {
  #product_detail_main {
    flex-direction: column;
  }

  #o-carousel-product {
    max-width: 100% !important;
    min-height: 300px !important;
  }

  .o_wsale_product_images {
    order: -1;
  }
}
/* Combined Nouveautés & Promo Section */
.nouveautes-promo-section {
    background-color: #f8f8f8;
}

/* Nouveautés Container */
.nouveautes-container {
    padding: 60px 20px;
    text-align: center;
}

.nouveautes-title {
    font-size: 32px;
    font-weight: 300;
    color: #1a1a1a;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.nouveautes-subtitle {
    font-size: 14px;
    color: #E63946;
    font-weight: 400;
    margin-bottom: 50px;
    letter-spacing: 0.5px;
}

/* Products Grid */
.products-showcase {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Product Card - Changed from flex-direction: row back to column for image on top */
.product-card {
    background-color: transparent;
    border: 1px solid #d0d0d0;
    border-radius: 0;
    overflow: visible;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

/* Card Image - Restored to full width for top placement */
.card-image {
    width: 100%;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f1f1f1;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* Card Content - Full width, left-aligned text */
.card-content {
    padding: 20px;
    text-align: left;
}

.product-name {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 8px 0;
}

.product-price {
    font-size: 13px;
    color: #666;
    margin: 0;
}
/* Responsive */
@media (max-width: 768px) {
    .products-showcase {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .card-image {
        height: 200px;
    }
    
    .nouveautes-title {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .products-showcase {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .card-image {
        height: 180px;
    }
    
    .nouveautes-title {
        font-size: 20px;
    }
}