/*
Theme Name: Restaurant Centric Child
Template: restaurant-centric
Text Domain: restaurant-centric-child
Description: Motyw potomny dla Restaurant Centric z poprawkami responsywności.
Author: GitHub Copilot
Version: 1.0.0
*/

/* --- Global/mobile image safety --- */
img {max-width: 100%; height: auto;}

/* Hide navigation menu from header */
.rc-header .wp-block-navigation,
.rc-header nav,
.wp-block-navigation {
  display: none !important;
}

/* Ensure header layout works without navigation */
.rc-header .wp-block-group {
  justify-content: space-between !important;
}

/* Header layout with flex-column-reverse for cart/menu positioning */
.wc-blocks-pattern-header-minimal,
.wc-blocks-header-pattern,
.sticky-header {
  flex-direction: column-reverse !important;
}

/* Ensure proper alignment for header content */
.wc-blocks-pattern-header-minimal .wp-block-group.is-content-justification-right,
.wc-blocks-header-pattern .wp-block-group.is-content-justification-right,
.sticky-header .wp-block-group.is-content-justification-right {
  align-self: flex-end !important;
  margin-bottom: auto !important;
}

/* Social Media Header Styles */
.rc-social-media-header {
  padding: 10px 20px;
  width: 100%;
}

.rc-social-links {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
  max-width: 1200px;
  margin: 0 auto;
}

.rc-social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: #e2730d;
  color: white;
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.rc-social-links a:hover {
  background-color: #c85f0b;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.rc-social-links svg {
  width: 20px;
  height: 20px;
}

/* Mobile adjustments for social media header */
@media (max-width: 768px) {
  .rc-social-media-header {
    padding: 8px 15px;
  }
  
  .rc-social-links {
    gap: 15px;
  }
  
  .rc-social-links a {
    width: 40px;
    height: 40px;
  }
}

/* Header responsive fixes */
.rc-header {
  overflow: hidden !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.rc-header .wp-block-group > .wp-block-group {
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden !important;
}

/* Mobile header optimizations - Updated layout */
@media (max-width: 768px) {
  .rc-header.wp-block-group {
    padding-left: 8px !important;
    padding-right: 8px !important;
    padding-top: 8px !important;
    padding-bottom: 12px !important;
  }
  
  /* Change header layout to stacked on mobile */
  .rc-header.wp-block-group .wp-block-group > .wp-block-group {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
    justify-content: flex-start !important;
  }
  
  /* First row: cart/search in top right corner */
  .rc-header .rc-header-right.wp-block-group {
    align-self: flex-end !important;
    order: -1 !important; /* Move to top */
    margin-bottom: 4px !important;
    flex-shrink: 0 !important;
    gap: 4px !important;
    width: auto !important;
  }
  
  /* Second row: site title below */
  .rc-header .rc-header-left.wp-block-group {
    width: 100% !important;
    order: 1 !important;
    align-self: flex-start !important;
  }
  
  /* Hide search on mobile to save space */
  .rc-header .rc-header-search.wp-block-search {
    display: none !important;
  }
  
  /* Make site title full width */
  .rc-header .rc-header-left .wp-block-site-title {
    font-size: 20px !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    text-align: left !important;
    line-height: 1.2 !important;
  }
  
  /* Make cart link more compact */
  .rc-header .rc-header-right .wc-block-cart-link {
    padding: 8px !important;
    min-width: auto !important;
  }
  
  /* Ensure no horizontal overflow */
  .rc-header.wp-block-group .wp-block-group {
    overflow: hidden !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}

.entry-content.wp-block-post-content a {
  text-decoration: none !important;
  /*text-underline-offset: 4px !important;
  border-bottom: 1px solid currentColor !important;
  padding-bottom: 2px !important;*/
}

.wc-block-cart__submit-button {
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 5px;
    display: inline-block;
    font-weight: 600;
    font-size: 16px;
    width: 100%;
    box-sizing: border-box;
    background-color: rgb(226, 115, 13) !important;
    color: white !important;
}

/* Smooth scroll for anchor navigation */
html {
  scroll-behavior: smooth;
}

/* Scroll offset for anchor links (to account for fixed header) */
.rc-category-section {
  scroll-margin-top: 80px;
}

/* --- Add margin between header and page content --- */
body .wp-site-blocks > main,
body .wp-site-blocks > .wp-block-group:first-of-type,
body main.wp-block-group,
body .wp-block-group[data-type="core/group"],
.wp-site-blocks main,
.wp-block-template__inner > main,
.wp-block-template__inner > .wp-block-group {
  margin-top: 40px !important;
  padding-top: 20px !important;
}

/* More specific targeting for different page types */
.home main,
.page main,
.single main,
.archive main,
.woocommerce main {
  margin-top: 40px !important;
}

@media (max-width: 768px) {
  body .wp-site-blocks > main,
  body .wp-site-blocks > .wp-block-group:first-of-type,
  body main.wp-block-group,
  body .wp-block-group[data-type="core/group"],
  .wp-site-blocks main,
  .wp-block-template__inner > main,
  .wp-block-template__inner > .wp-block-group,
  .home main,
  .page main,
  .single main,
  .archive main,
  .woocommerce main {
    margin-top: 30px !important;
    padding-top: 15px !important;
  }
}

/* --- Responsive edge paddings (gutters) --- */
:root { --edge-padding: 48px; }
@media (max-width: 1280px) { :root { --edge-padding: 40px; } }
@media (max-width: 1024px) { :root { --edge-padding: 32px; } }
@media (max-width: 768px)  { :root { --edge-padding: 12px; } }
@media (max-width: 480px)  { :root { --edge-padding: 8px; } }

/* Remove default padding from wp-site-blocks */
.wp-site-blocks {
  padding: 0 !important;
}

/* Apply gutters to main site wrapper */
.wp-site-blocks,
body .is-layout-constrained { padding-left: var(--edge-padding); padding-right: var(--edge-padding); }

/* Let full width blocks bleed to the edges despite wrapper padding */
.wp-site-blocks > .alignfull { 
  margin-left: calc(-1 * var(--edge-padding));
  margin-right: calc(-1 * var(--edge-padding));
  width: calc(100% + (2 * var(--edge-padding)));
  max-width: calc(100% + (2 * var(--edge-padding)));
}

/* --- Header / Navigation polish --- */
.rc-header,
.wp-block-group.rc-header {
  background-color: #12181a !important;
  color: #fdfdfd !important;
  margin-bottom: 14px !important;
}

/* Override any parent theme header styles */
header,
.site-header,
.wp-block-template-part[class*="header"] {
  background-color: #12181a !important;
  color: #fdfdfd !important;
  margin-bottom: 14px !important;
}

.rc-header .wp-block-navigation a,
.rc-header .wp-block-navigation__responsive-container a {
  color: #fdfdfd !important;
}
.rc-header .wp-block-navigation a:hover,
.rc-header .wp-block-navigation__responsive-container a:hover {
  color: #e2730d !important;
}
.rc-header .wp-block-navigation__container { gap: 24px; }
.rc-header .wp-block-site-title a,
.rc-header .wp-block-site-title a:visited { 
  text-decoration: none !important; 
  color: #fdfdfd !important;
}

.rc-header .wp-block-site-title {
  margin: 0 !important;
  font-size: clamp(2rem, 3vw, 2.75rem) !important;
  line-height: 1.05 !important;
}

.wp-block-site-logo img {
  max-height: 112px !important;
  width: auto !important;
}

.rc-header .wp-block-search__inside-wrapper {
  min-height: 38px !important;
}

.rc-header .wc-block-cart-link,
.rc-header .wp-block-search {
  margin: 0 !important;
}
.rc-header .wp-block-search__button { 
  min-height: 40px !important; 
  background-color: #e2730d !important;
  border-color: #e2730d !important;
  color: #ffffff !important;
}
.rc-header .wp-block-woocommerce-cart-link a,
.rc-header .wc-block-cart-link a {
  color: #fdfdfd !important;
}

/* Ensure all text elements in header are light colored */
.rc-header,
.rc-header * {
  color: #fdfdfd !important;
}

/* Override specific elements that might have other colors */
.rc-header .wp-block-site-title,
.rc-header .wp-block-navigation,
.rc-header .wp-block-search {
  color: #fdfdfd !important;
}
.wp-block-navigation__responsive-container.is-menu-open {
  padding: 24px;
}
.wp-block-navigation__responsive-container .wp-block-navigation__container {
  gap: 16px;
}

/* --- CTA buttons with brand color --- */
.wp-block-button .wp-block-button__link,
.wp-block-button__link,
.button,
input[type="submit"],
.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.wp-element-button {
  background-color: #e2730d !important;
  color: #ffffff !important;
  border-color: #e2730d !important;
}
.wp-block-button .wp-block-button__link:hover,
.wp-block-button__link:hover,
.button:hover,
input[type="submit"]:hover,
.woocommerce #respond input#submit:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.wp-element-button:hover {
  background-color: #e2730d !important;
  color: #ffffff !important;
  opacity: 0.9;
}

/* --- Links with brand color --- */
a {
  color: #e2730d;
}
a:hover {
  color: #e2730d;
  opacity: 0.8;
}

/* --- Remove underline from checkout button --- */
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button,
.woocommerce-cart .wc-proceed-to-checkout .button,
.woocommerce .wc-proceed-to-checkout a,
.wc-proceed-to-checkout a.button,
.checkout-button,
a.checkout-button,
.entry-content.wp-block-post-content .wc-proceed-to-checkout a,
.entry-content.wp-block-post-content a.checkout-button,
p .wc-proceed-to-checkout a,
p a.checkout-button {
  text-decoration: none !important;
}

.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover,
.woocommerce-cart .wc-proceed-to-checkout .button:hover,
.woocommerce .wc-proceed-to-checkout a:hover,
.wc-proceed-to-checkout a.button:hover,
.checkout-button:hover,
a.checkout-button:hover,
.entry-content.wp-block-post-content .wc-proceed-to-checkout a:hover,
.entry-content.wp-block-post-content a.checkout-button:hover,
p .wc-proceed-to-checkout a:hover,
p a.checkout-button:hover {
  text-decoration: none !important;
}

/* --- Global override for checkout buttons - highest specificity --- */
.wp-block-post-excerpt__excerpt a[href*="checkout"],
.entry-content.wp-block-post-content a[href*="checkout"],
p a[href*="checkout"],
.wp-block-post-excerpt__excerpt a.checkout-button,
.entry-content.wp-block-post-content a.checkout-button,
p a.checkout-button,
.wp-block-post-excerpt__excerpt .wc-proceed-to-checkout a,
.entry-content.wp-block-post-content .wc-proceed-to-checkout a,
p .wc-proceed-to-checkout a,
.woocommerce-cart .wc-proceed-to-checkout a,
.woocommerce .wc-proceed-to-checkout a,
.wc-proceed-to-checkout a,
a[href*="checkout"],
a.button[href*="checkout"] {
  text-decoration: none !important;
  border-bottom: none !important;
  text-underline-offset: unset !important;
}

.wp-block-post-excerpt__excerpt a[href*="checkout"]:hover,
.entry-content.wp-block-post-content a[href*="checkout"]:hover,
p a[href*="checkout"]:hover,
.wp-block-post-excerpt__excerpt a.checkout-button:hover,
.entry-content.wp-block-post-content a.checkout-button:hover,
p a.checkout-button:hover,
.wp-block-post-excerpt__excerpt .wc-proceed-to-checkout a:hover,
.entry-content.wp-block-post-content .wc-proceed-to-checkout a:hover,
p .wc-proceed-to-checkout a:hover,
.woocommerce-cart .wc-proceed-to-checkout a:hover,
.woocommerce .wc-proceed-to-checkout a:hover,
.wc-proceed-to-checkout a:hover,
a[href*="checkout"]:hover,
a.button[href*="checkout"]:hover {
  text-decoration: none !important;
  border-bottom: none !important;
  text-underline-offset: unset !important;
}

/* --- Ultimate override for WooCommerce cart checkout button --- */
body.woocommerce-cart .entry-content.wp-block-post-content a[href*="checkout"],
body.woocommerce-cart p a[href*="checkout"],
body.woocommerce-cart .entry-content.wp-block-post-content .wc-proceed-to-checkout a,
body.woocommerce-cart p .wc-proceed-to-checkout a,
body.woocommerce-cart .woocommerce-cart .wc-proceed-to-checkout a,
body.woocommerce-cart .woocommerce .wc-proceed-to-checkout a,
body.woocommerce .entry-content.wp-block-post-content a[href*="checkout"],
body.woocommerce p a[href*="checkout"],
body.woocommerce .entry-content.wp-block-post-content .wc-proceed-to-checkout a,
body.woocommerce p .wc-proceed-to-checkout a,
body.woocommerce .woocommerce-cart .wc-proceed-to-checkout a,
body.woocommerce .woocommerce .wc-proceed-to-checkout a {
  text-decoration: none !important;
  border-bottom: none !important;
  text-underline-offset: unset !important;
}

body.woocommerce-cart .entry-content.wp-block-post-content a[href*="checkout"]:hover,
body.woocommerce-cart p a[href*="checkout"]:hover,
body.woocommerce-cart .entry-content.wp-block-post-content .wc-proceed-to-checkout a:hover,
body.woocommerce-cart p .wc-proceed-to-checkout a:hover,
body.woocommerce-cart .woocommerce-cart .wc-proceed-to-checkout a:hover,
body.woocommerce-cart .woocommerce .wc-proceed-to-checkout a:hover,
body.woocommerce .entry-content.wp-block-post-content a[href*="checkout"]:hover,
body.woocommerce p a[href*="checkout"]:hover,
body.woocommerce .entry-content.wp-block-post-content .wc-proceed-to-checkout a:hover,
body.woocommerce p .wc-proceed-to-checkout a:hover,
body.woocommerce .woocommerce-cart .wc-proceed-to-checkout a:hover,
body.woocommerce .woocommerce .woocommerce .wc-proceed-to-checkout a:hover {
  text-decoration: none !important;
  border-bottom: none !important;
  text-underline-offset: unset !important;
}

/* --- WooCommerce product grid responsiveness --- */
/* default inherits from parent; adjust on breakpoints */
@media (max-width: 1200px) {
  .woocommerce ul.products li.product,
  .woocommerce-page ul.products li.product {width: 31.333%; margin-right: 3%;}
  .woocommerce ul.products li.product:nth-child(3n),
  .woocommerce-page ul.products li.product:nth-child(3n) {margin-right: 0;}
  .woocommerce ul.products li.product a img {height: 300px;}
}
@media (max-width: 992px) {
  .woocommerce ul.products li.product,
  .woocommerce-page ul.products li.product {width: 48%; margin-right: 4%;}
  .woocommerce ul.products li.product:nth-child(2n),
  .woocommerce-page ul.products li.product:nth-child(2n) {margin-right: 0;}
  .woocommerce ul.products li.product a img {height: 240px;}
}
@media (max-width: 600px) {
  .woocommerce ul.products li.product,
  .woocommerce-page ul.products li.product {width: 100%; margin-right: 0;}
  .woocommerce ul.products li.product a img {height: auto; aspect-ratio: 1/1; object-fit: cover;}
}

/* --- Fix: images forced to 400px on mobile in parent --- */
@media (max-width: 780px) {
  .about-us-first-section .first-image img,
  .about-us-second-section img {width: 100% !important; height: auto !important;}
}

/* --- Columns: ensure stacking on tablets/phones --- */
@media (max-width: 781px) {
  .wp-block-columns {flex-wrap: wrap !important; gap: var(--wp--style--block-gap, 1rem);} 
  .wp-block-columns > .wp-block-column {flex-basis: 100% !important; margin-right: 0 !important;}
}

/* --- Topbar & header alignment on small screens --- */
@media (max-width: 780px) {
  .restaurant-centric-topbar-group {text-align: center;}
  .innometrics-header-social ul, .innometrics-header-callus {justify-content: center !important;}
  .innometrics-header-social {justify-content: center !important; line-height: 2;}
  .book-now-section {transform: none !important; padding-right: 0 !important; align-self: center;}
  .book-now-section .call-us-round {border-radius: 0 !important;}
}

/* --- Hide product tabs navigation completely --- */
.woocommerce div.product .woocommerce-tabs ul.tabs {
  display: none !important;
}

/* --- Tabs and form controls: improve tap targets on mobile --- */
@media (max-width: 600px) {
  .woocommerce div.product .woocommerce-tabs ul.tabs li a {padding: 10px 14px;}
  input[type="submit"], .button, .wp-element-button {min-height: 44px;}
  
  /* Make add to cart button full width on mobile - override desktop settings */
  .rc-product-button .button,
  .rc-product-button .add_to_cart_button,
  .rc-product-button .product_type_simple,
  .rc-product-button .product_type_variable,
  .rc-shortcode-menu .rc-product-button .button,
  .rc-shortcode-menu .rc-product-button .add_to_cart_button,
  .rc-shortcode-menu .rc-product-button .product_type_simple,
  .rc-shortcode-menu .rc-product-button .product_type_variable,
  .rc-products-by-category .rc-product-button .button,
  .rc-products-by-category .rc-product-button .add_to_cart_button,
  .rc-products-by-category .rc-product-button .product_type_simple,
  .rc-products-by-category .rc-product-button .product_type_variable,
  .woocommerce div.product form.cart .button,
  .woocommerce div.product form.cart .single_add_to_cart_button {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    display: block !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }
}

/* --- Comments: reduce nested indent on mobile --- */
@media (max-width: 600px) {
  .wp-block-comment-template li li {padding-left: 24px !important;}
}

/* --- Woo: single product images scale properly --- */
.woocommerce div.product div.images img {width: 100%; height: auto;}

/* --- Woo: make tables scrollable on small screens --- */
@media (max-width: 600px) {
  .woocommerce table.shop_table,
  .woocommerce-cart-form table,
  .woocommerce-checkout-review-order-table {display: block; overflow-x: auto; width: 100%;}
}

/* --- Woo: custom extras below product title (weight, ingredients) --- */
.rc-product-extras {
  color: var(--wp--preset--color--foreground);
  font-size: var(--wp--preset--font-size--small, 14px);
  margin-top: 4px;
  line-height: 1.4;
}
.rc-product-extras .rc-product-weight {opacity: 0.9;}
.rc-product-extras .rc-product-ingredients {opacity: 0.8;}
.rc-product-extras .rc-sep {margin: 0 6px; opacity: 0.6;}

/* --- Custom WooCommerce Product Layout --- */
.woocommerce ul.products {
  display: none !important; /* Hide default product loop */
}

.woocommerce ul.products li.product {
  width: 100% !important;
  margin: 0 !important;
  border: 1px solid #e0e0e0;
  padding: 20px;
  border-radius: 8px;
}

/* --- Category Grouping Styles --- */
.rc-products-by-category {
  margin: 0;
  width: 100%;
}

.rc-category-section {
  margin-bottom: 40px;
  width: 100%;
}

.rc-category-title {
  font-size: 24px;
  font-weight: 700;
  color: #e2730d;
  margin: 0 0 12px 0;
  padding-bottom: 8px;
  border-bottom: 2px solid #e2730d;
  clear: both;
}

.rc-category-description {
  color: #666;
  margin: 0 0 20px 0;
  font-style: italic;
}

/* Archive page header styling to match category titles */
.woocommerce-products-header__title.page-title {
  font-size: 24px !important;
  font-weight: 700 !important;
  color: #e2730d !important;
  margin: 0 0 12px 0 !important;
  padding-bottom: 8px !important;
  border-bottom: 2px solid #e2730d !important;
  clear: both !important;
  background: transparent !important;
}

/* Style the archive header container */
.woocommerce-products-header {
  margin-bottom: 30px !important;
  margin-top: 40px !important;
  background: transparent !important;
  background-color: transparent !important;
}

/* Archive description styling */
.woocommerce-archive-description,
.term-description {
  color: #666 !important;
  margin: 0 0 20px 0 !important;
  font-style: italic !important;
  background: transparent !important;
}

.rc-category-products {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  box-sizing: border-box;
  clear: both;
}

.rc-category-products li.product {
  width: 100% !important;
  margin: 0 !important;
  border: 1px solid #e0e0e0;
  padding: 20px;
  border-radius: 8px;
  box-sizing: border-box;
  min-width: 0;
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: box-shadow 0.3s ease;
}

.rc-category-products li.product:hover {
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.rc-product-layout {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
}

.rc-product-left {
  flex: 1;
  min-width: 0; /* Allows flex items to shrink */
  overflow-wrap: break-word;
}

.rc-product-right {
  flex: 0 0 120px;
  text-align: right;
  min-width: 120px;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
}

.rc-product-title {
  margin: 0 0 8px 0;
  font-size: 18px;
  line-height: 1.3;
}

.rc-product-title a {
  color: #333;
  text-decoration: none;
}

.rc-product-title a:hover {
  color: #e2730d;
  text-decoration: none;
}

/* Override theme's default link underlines for product titles */
.rc-product-layout .rc-product-title a,
.rc-category-products .rc-product-title a,
.wp-block-post-content .rc-product-title a,
.entry-content .rc-product-title a {
  text-decoration: none !important;
}

.rc-product-layout .rc-product-title a:hover,
.rc-category-products .rc-product-title a:hover,
.wp-block-post-content .rc-product-title a:hover,
.entry-content .rc-product-title a:hover {
  text-decoration: none !important;
  color: #e2730d;
}

.rc-product-extras {
  margin-top: 8px;
  color: #666;
  font-size: 14px;
  line-height: 1.4;
}

.rc-product-weight,
.rc-product-ingredients {
  margin-bottom: 4px;
}

.rc-product-ingredients:before {
  content: "🥄 ";
  margin-right: 4px;
}

.rc-product-price {
  margin-bottom: 0;
  margin-right: auto;
  font-size: 18px;
  font-weight: 700;
  color: #e2730d;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  flex: 1;
  min-width: 60px;
}

/* Prevent currency symbol from wrapping */
.rc-product-price .woocommerce-Price-amount,
.rc-product-price .amount,
.rc-product-price .price,
.rc-product-price .woocommerce-Price-currencySymbol {
  white-space: nowrap !important;
  display: inline !important;
}

.rc-product-button {
  width: auto;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.rc-product-button .button {
  width: auto;
  min-width: 80px;
  max-width: 120px;
  padding: 8px 10px;
  font-size: 15px;
  background-color: #e2730d !important;
  color: white !important;
  border: none;
  border-radius: 5px;
  text-decoration: none;
  display: block;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.3s ease;
  box-sizing: border-box;
}

/* Style WooCommerce default add to cart buttons in our layout */
.rc-product-button .add_to_cart_button,
.rc-product-button .product_type_simple,
.rc-product-button .product_type_variable {
  width: auto !important;
  min-width: 80px !important;
  max-width: 120px !important;
  padding: 8px 10px !important;
  font-size: 15px !important;
  background-color: #e2730d !important;
  color: white !important;
  border: none !important;
  border-radius: 5px !important;
  text-decoration: none !important;
  display: block !important;
  text-align: center !important;
  cursor: pointer !important;
  transition: background-color 0.3s ease !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

.rc-product-button .button:hover,
.rc-product-button .add_to_cart_button:hover,
.rc-product-button .product_type_simple:hover,
.rc-product-button .product_type_variable:hover {
  background-color: #c55f0a !important;
  color: white !important;
}

/* --- Mobile responsive --- */
@media (max-width: 768px) {
  .rc-category-products {
    grid-template-columns: 1fr !important;
    gap: 10px;
  }
  
  .rc-category-products li.product {
    width: 100% !important;
    max-width: none !important;
    padding: 12px;
  }
  
  .rc-product-layout {
    flex-direction: column;
    gap: 6px;
    width: 100%;
  }
  
  .rc-product-right {
    text-align: left;
    width: 100%;
    flex: none;
    min-width: auto;
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
  }
  
  .rc-product-price {
    text-align: left;
    margin-right: 0;
    flex: none;
  }
  
  .rc-product-button {
    width: 100%;
  }
  
  .rc-product-button .button {
    width: auto;
    min-width: auto;
    max-width: 100%;
    padding: 12px;
    font-size: 20px;
    text-align: center;
    box-sizing: border-box;
  }
  
  .rc-category-title {
    font-size: 24px;
  }
  
  /* Archive page title mobile */
  .woocommerce-products-header__title.page-title {
    font-size: 24px !important;
  }
  
  /* Archive header mobile margins */
  .woocommerce-products-header {
    margin-top: 30px !important;
  }
  
  .rc-product-title {
    font-size: 23px;
  }
  
  .rc-product-price {
    font-size: 19px;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: right;
  }
  
  /* Increase font size for product extras on mobile */
  .rc-product-extras {
    font-size: 17px;
  }
  
  /* Prevent currency symbol from wrapping on mobile */
  .rc-product-price .woocommerce-Price-amount,
  .rc-product-price .amount,
  .rc-product-price .price,
  .rc-product-price .woocommerce-Price-currencySymbol {
    white-space: nowrap !important;
    display: inline !important;
  }
}

@media (max-width: 1024px) and (min-width: 769px) {
  .rc-category-products {
    gap: 25px;
    grid-template-columns: repeat(2, 1fr);
  }
  
  .rc-product-right {
    flex: 0 0 180px;
    min-width: 180px;
  }
}

/* Override any default WooCommerce grid styles */
.woocommerce .rc-category-products {
  display: grid !important;
}

/* Completely override default WooCommerce product styles */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  width: auto !important;
  float: none !important;
  margin: 0 !important;
}

/* Hide all product thumbnails completely */
.woocommerce ul.products li.product .woocommerce-loop-product__link img,
.woocommerce ul.products li.product img,
.woocommerce ul.products li.product .attachment-woocommerce_thumbnail,
.woocommerce-page ul.products li.product img,
.rc-category-products li.product img {
  display: none !important;
}

/* FORCE 2-COLUMN LAYOUT - Override all WooCommerce defaults */
.woocommerce ul.products,
.woocommerce-page ul.products {
  display: none !important; /* Hide all default product lists */
}

.woocommerce ul.products.rc-category-products,
.woocommerce-page ul.products.rc-category-products {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 30px !important;
  width: 100% !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  clear: both !important;
}

/* Force individual product styling */
.rc-category-products li.product,
.rc-category-products li.rc-custom-product {
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
  clear: none !important;
  display: block !important;
}

/* Hide default WooCommerce columns classes */
.woocommerce[class*="columns-"],
.woocommerce-page[class*="columns-"] {
  display: block !important;
}

.woocommerce .products[class*="columns-"],
.woocommerce-page .products[class*="columns-"] {
  display: none !important;
}

.woocommerce .products.rc-category-products[class*="columns-"],
.woocommerce-page .products.rc-category-products[class*="columns-"] {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
}

/* Hide default WooCommerce product loop and pagination */
.woocommerce ul.products:not(.rc-category-products) {
  display: none !important;
}

.woocommerce .woocommerce-result-count,
.woocommerce .woocommerce-ordering,
.woocommerce .woocommerce-pagination,
.woocommerce nav.woocommerce-pagination,
.woocommerce-page .woocommerce-result-count,
.woocommerce-page .woocommerce-ordering,
.woocommerce-page .woocommerce-pagination {
  display: none !important;
}

/* Hide any default product elements */
.woocommerce .products:not(.rc-category-products) li.product {
  display: none !important;
}

/* Hide "no products found" message */
.woocommerce .woocommerce-info,
.woocommerce-page .woocommerce-info,
.woocommerce p.woocommerce-info {
  display: none !important;
}

/* Hide ALL thumbnails and images in product lists */
.woocommerce ul.products li.product img,
.woocommerce ul.products li.product .woocommerce-loop-product__link img,
.woocommerce ul.products li.product .attachment-woocommerce_thumbnail,
.woocommerce-page ul.products li.product img,
.rc-category-products img,
.rc-category-products .woocommerce-loop-product__link img,
.rc-category-products .attachment-woocommerce_thumbnail,
.rc-category-products li.product img {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
}

/* Ensure notices are still visible */
.woocommerce-page .woocommerce-notices-wrapper {
  display: block !important;
}

/* NUCLEAR OPTION - Completely override WooCommerce default product display - ONLY on shop/category pages, NOT single product pages */
body.woocommerce-shop .woocommerce-loop-product__title,
body.woocommerce-shop .woocommerce-loop-product__link,
body.woocommerce-shop .woocommerce-loop-category__title,
body.woocommerce-shop .price:not(.rc-product-price .price),
body.woocommerce-shop .star-rating,
body.woocommerce-shop .button:not(.rc-product-button .button),
body.woocommerce-shop .add_to_cart_button:not(.rc-product-button .add_to_cart_button),
body.tax-product_cat .woocommerce-loop-product__title,
body.tax-product_cat .woocommerce-loop-product__link,
body.tax-product_cat .woocommerce-loop-category__title,
body.tax-product_cat .price:not(.rc-product-price .price),
body.tax-product_cat .star-rating,
body.tax-product_cat .button:not(.rc-product-button .button),
body.tax-product_cat .add_to_cart_button:not(.rc-product-button .add_to_cart_button) {
  display: none !important;
}

/* Also hide default product loop elements in our shortcode areas */
.rc-products-by-category .woocommerce-loop-product__title,
.rc-products-by-category .woocommerce-loop-product__link,
.rc-products-by-category .woocommerce-loop-category__title,
.rc-products-by-category .price:not(.rc-product-price .price),
.rc-products-by-category .star-rating {
  display: none !important;
}

/* Show only our custom elements */
.rc-products-by-category .rc-product-layout,
.rc-products-by-category .rc-product-title,
.rc-products-by-category .rc-product-extras,
.rc-products-by-category .rc-product-price,
.rc-products-by-category .rc-product-button {
  display: block !important;
  visibility: visible !important;
}

/* IMPORTANT: Ensure all WooCommerce elements are visible on single product pages */
body.single-product .price,
body.single-product .button,
body.single-product .add_to_cart_button,
body.single-product .single_add_to_cart_button,
body.single-product .variations,
body.single-product .quantity,
body.single-product .woocommerce-variation-add-to-cart {
  display: block !important;
  visibility: visible !important;
}

/* Special handling for cart form - use flex instead of block */
body.single-product form.cart {
  display: flex !important;
  visibility: visible !important;
}

/* Ensure single product summary is fully visible */
body.single-product .summary.entry-summary,
body.single-product .woocommerce-product-details,
body.single-product .product_meta {
  display: block !important;
  visibility: visible !important;
}

/* Force our product layout to display */
.rc-category-products li.product * {
  display: none !important;
}

/* Show our custom product elements */
.rc-category-products li.product .rc-product-layout {
  display: flex !important;
}

.rc-category-products li.product .rc-product-layout .rc-product-left,
.rc-category-products li.product .rc-product-layout .rc-product-right,
.rc-category-products li.product .rc-product-layout .rc-product-title,
.rc-category-products li.product .rc-product-layout .rc-product-extras,
.rc-category-products li.product .rc-product-layout .rc-product-price,
.rc-category-products li.product .rc-product-layout .rc-product-button,
.rc-category-products li.product .rc-product-layout .rc-product-weight,
.rc-category-products li.product .rc-product-layout .rc-product-ingredients,
.rc-category-products li.product .rc-product-layout .rc-sep {
  display: block !important;
}

/* Show title link */
.rc-category-products li.product .rc-product-layout .rc-product-title a {
  display: inline !important;
}

/* Price elements must stay inline */
.rc-category-products li.product .rc-product-layout .rc-product-price .woocommerce-Price-amount,
.rc-category-products li.product .rc-product-layout .rc-product-price .amount,
.rc-category-products li.product .rc-product-layout .rc-product-price .price,
.rc-category-products li.product .rc-product-layout .rc-product-price .woocommerce-Price-currencySymbol,
.rc-category-products li.product .rc-product-layout .rc-product-price * {
  display: inline !important;
}
 
/* Stylowanie starej i nowej ceny w przypadku przeceny promocji*/
.rc-category-products li.product .rc-product-layout .rc-product-price del {
  display: block !important;
  font-size: smaller;
  color: #abb8c3;
  line-height: 16px;
}

.rc-category-products li.product .rc-product-layout .rc-product-price ins {
  text-decoration: none;
}

/* Show button elements */
.rc-product-button a,
.rc-category-products li.product .rc-product-button a,
.rc-category-products li.product .rc-product-button .button,
.rc-category-products li.product .rc-product-button .add_to_cart_button {
  display: block !important;
  text-align: center !important;
}

/* SPECIAL OVERRIDES FOR MAIN SHOP PAGE */
body.woocommerce-shop ul.products:not(.rc-category-products),
body.woocommerce-shop .woocommerce-loop-product__link,
body.woocommerce-shop .woocommerce-loop-product__title {
  display: none !important;
  visibility: hidden !important;
}

/* Force main shop page to use our layout */
body.woocommerce-shop .rc-products-by-category,
body.woocommerce-shop .rc-category-products {
  display: block !important;
  visibility: visible !important;
}

body.woocommerce-shop .rc-category-products {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
}

/* SHORTCODE STYLING - for use on regular WordPress pages */
.rc-shortcode-menu {
  width: 100%;
  clear: both;
}

/* Categories menu styling - flexible wrap layout with divs only */
.rc-categories-menu .rc-category-list {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 20px !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
  justify-content: center;
}

.rc-categories-menu .rc-category-item {
  flex: 0 0 auto !important; /* Changed to auto-sizing */
  min-width: auto !important; /* Remove fixed min-width */
  max-width: none !important; /* Remove fixed max-width */
  width: auto !important; /* Auto width based on content */
  margin: 0 !important;
  border: 2px solid #f4d03f !important; /* Yellow border */
  padding: 20px 25px !important; /* More horizontal padding for better proportions */
  border-radius: 8px;
  box-sizing: border-box;
  background-color: white !important; /* White background */
  color: #f4d03f !important; /* Yellow text */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
  transition: all 0.3s ease;
  text-align: center;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
  font-weight: 500;
  font-size: 16px;
  cursor: pointer;
  white-space: nowrap; /* Prevent text wrapping for single-line categories */
}

.rc-categories-menu .rc-category-item:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2) !important;
  border-color: #f1c40f !important;
  background-color: #f4d03f !important; /* Yellow background on hover */
  color: white !important; /* White text on hover */
  transform: translateY(-2px);
}

.rc-categories-menu .rc-category-item .rc-category-name {
  display: block;
  font-weight: 600;
  margin-bottom: 5px;
  white-space: nowrap; /* Keep category names on one line */
}

.rc-categories-menu .rc-category-item .rc-category-description {
  display: block;
  font-size: 14px;
  opacity: 0.8;
  line-height: 1.4;
  white-space: normal; /* Allow descriptions to wrap */
  max-width: 250px; /* Limit description width for better readability */
}

/* Legacy styles - no longer needed as rc-category-item is now the button */

.rc-categories-menu .rc-category-link {
  /*width: 100% !important;*/
  /*display: block !important;*/
  padding: 12px 16px !important;
  font-size: 16px !important;
  background-color: #ffffff !important;
  color: #e2730d !important;
  border: 2px solid #e2730d !important;
  border-radius: 5px !important;
  text-decoration: none !important;
  text-align: center !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  box-sizing: border-box !important;
  font-weight: 600 !important;
}

.rc-categories-menu .rc-category-link:hover {
  background-color: #e2730d !important;
  color: white !important;
  border-color: #e2730d !important;
}

/* Category description styling */
.rc-categories-menu .rc-category-description {
  font-size: 14px;
  color: #666;
  line-height: 1.4;
  text-align: center;
  font-style: italic;
}

/* Fix price currency symbol wrapping for all contexts */
.rc-product-price,
.rc-shortcode-menu .rc-product-price {
  white-space: nowrap !important;
}

/* Force currency symbol to display inline - override WooCommerce block inheritance */
.woocommerce-Price-currencySymbol {
  display: inline !important;
}

.rc-product-price .woocommerce-Price-amount,
.rc-product-price .amount,
.rc-product-price .price,
.rc-product-price .woocommerce-Price-currencySymbol,
.rc-shortcode-menu .rc-product-price .woocommerce-Price-amount,
.rc-shortcode-menu .rc-product-price .amount,
.rc-shortcode-menu .rc-product-price .price,
.rc-shortcode-menu .rc-product-price .woocommerce-Price-currencySymbol {
  white-space: nowrap !important;
  display: inline !important;
  word-break: keep-all !important;
  hyphens: none !important;
}

.rc-shortcode-menu .rc-category-products {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 30px !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.rc-shortcode-menu .rc-category-products li.product {
  width: 100% !important;
  margin: 0 !important;
  border: 1px solid #e0e0e0;
  padding: 20px;
  border-radius: 8px;
  box-sizing: border-box;
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.rc-shortcode-menu .rc-product-layout {
  display: flex !important;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  width: 100%;
}

.rc-shortcode-menu .rc-product-left {
  flex: 1;
  min-width: 0;
}

.rc-shortcode-menu .rc-product-right {
  flex: 0 0 120px;
  text-align: right;
  /*min-width: 200px;*/
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-end;
}

/* Mobile responsive for shortcode */
@media (max-width: 768px) {
  .rc-shortcode-menu .rc-category-products {
    grid-template-columns: 1fr !important;
    gap: 15px !important;
  }
  
  .rc-shortcode-menu .rc-category-products li.product {
    padding: 12px !important;
  }
  
  .rc-shortcode-menu .rc-product-layout {
    flex-direction: column !important;
    gap: 8px !important;
  }
  
  .rc-shortcode-menu .rc-product-right {
    text-align: left !important;
    width: 100% !important;
    flex: none !important;
    min-width: auto !important;
    flex-direction: column !important;
    gap: 8px !important;
    align-items: flex-start !important;
  }
  
  /* Categories menu mobile responsive - horizontal scroll layout */
  .rc-categories-menu {
    overflow: visible !important;
    width: 100vw !important; /* Full viewport width */
    margin-left: calc(-50vw + 50%) !important; /* Extend to screen edges */
    margin-right: calc(-50vw + 50%) !important;
  }
  
  .rc-categories-menu .rc-category-list {
    gap: 15px !important;
    flex-wrap: nowrap !important; /* Prevent wrapping */
    overflow-x: auto !important; /* Enable horizontal scroll */
    overflow-y: hidden !important;
    padding: 10px 20px !important; /* Padding for first and last items */
    -webkit-overflow-scrolling: touch !important; /* Smooth scrolling on iOS */
    scrollbar-width: thin !important; /* Thin scrollbar on Firefox */
    justify-content: flex-start !important; /* Start from left */
    align-items: flex-start !important;
  }
  
  /* Custom scrollbar styling for WebKit browsers */
  .rc-categories-menu .rc-category-list::-webkit-scrollbar {
    height: 6px !important;
  }
  
  .rc-categories-menu .rc-category-list::-webkit-scrollbar-track {
    background: #f1f1f1 !important;
    border-radius: 3px !important;
  }
  
  .rc-categories-menu .rc-category-list::-webkit-scrollbar-thumb {
    background: #f4d03f !important;
    border-radius: 3px !important;
  }
  
  .rc-categories-menu .rc-category-list::-webkit-scrollbar-thumb:hover {
    background: #f1c40f !important;
  }
  
  .rc-categories-menu .rc-category-item {
    min-width: 140px !important; /* Minimum width for readability */
    max-width: 200px !important; /* Maximum width to prevent too wide buttons */
    flex: 0 0 auto !important; /* Don't allow shrinking */
    padding: 14px 18px !important;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1) !important;
    font-size: 16px !important;
    white-space: nowrap !important; /* Keep text on one line for horizontal scroll */
  }
  
  /* Add padding to the last item for better scrolling */
  .rc-categories-menu .rc-category-item:last-child {
    margin-right: 20px !important;
  }
  
  .rc-categories-menu .rc-category-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
  }
  
  .rc-categories-menu .rc-category-item .rc-category-name {
    font-size: 16px !important;
    white-space: nowrap !important; /* Keep names on one line for horizontal scroll */
    overflow: hidden !important;
    text-overflow: ellipsis !important; /* Add ... if text is too long */
  }
  
  .rc-categories-menu .rc-category-item .rc-category-description {
    font-size: 13px !important;
    max-width: none !important;
    white-space: nowrap !important; /* Keep descriptions on one line too */
    overflow: hidden !important;
    text-overflow: ellipsis !important; /* Add ... if text is too long */
  }
  
  .rc-categories-menu .rc-category-link {
    font-size: 18px !important;
    padding: 14px 16px !important;
  }
}

/* Cart notification styles - match add to cart button colors */
.rc-cart-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #e2730d;
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease-in-out;
    max-width: 350px;
}

.rc-cart-notification.show {
    opacity: 1;
    transform: translateX(0);
}

.rc-cart-notification-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.rc-cart-notification-text {
    font-weight: 500;
    font-size: 14px;
    flex: 1;
    color: white;
}

.rc-cart-notification-close {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.rc-cart-notification-close:hover {
    opacity: 1;
}

/* Mobile responsive for notification */
@media (max-width: 768px) {
    .rc-cart-notification {
        left: 20px;
        right: 20px;
        top: 10px;
        max-width: none;
        transform: translateY(-100%);
    }
    
    .rc-cart-notification.show {
        transform: translateY(0);
    }
}

/* Error styling for notifications */
.rc-cart-notification-content .error {
    color: #ff6b6b !important;
    font-weight: 600 !important;
}

.rc-cart-notification:has(.error) {
    background: linear-gradient(135deg, #ff4757, #ff3742) !important;
    border-left: 4px solid #ff3742 !important;
}

/* Form cart flexbox layout - high specificity to override other rules */
body.single-product form.cart,
form.cart {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 12px !important;
}

/* Quantity selector styling */
body.single-product form.cart .quantity,
form.cart .quantity {
  flex: 0 0 auto !important;
  margin: 0 !important;
}

/* Add to cart button styling in form.cart */
body.single-product form.cart .single_add_to_cart_button,
form.cart .single_add_to_cart_button {
  flex: 0 0 auto !important;
  margin: 0 !important;
}

/* Mobile responsive for form.cart */
@media (max-width: 768px) {
  body.single-product form.cart,
  form.cart {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
  }
  
  body.single-product form.cart .quantity,
  body.single-product form.cart .single_add_to_cart_button,
  form.cart .quantity,
  form.cart .single_add_to_cart_button {
    width: 100% !important;
  }
}

/* Single product page price styling - match shortcode style */
body.single-product .price,
body.single-product .woocommerce-price-suffix,
body.single-product p.price {
  font-size: 18px !important;
  font-weight: 700 !important;
  color: #e2730d !important;
  margin: 0 !important;
  line-height: 1.2 !important;
}

/* Single product price elements */
body.single-product .price .woocommerce-Price-amount,
body.single-product .price .amount,
body.single-product .price .woocommerce-Price-currencySymbol,
body.single-product p.price .woocommerce-Price-amount,
body.single-product p.price .amount,
body.single-product p.price .woocommerce-Price-currencySymbol {
  white-space: nowrap !important;
  display: inline !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  color: #e2730d !important;
}

/* Ensure consistent styling for all price contexts on single product */
body.single-product .woocommerce-variation-price .price,
body.single-product .single_variation_wrap .price,
body.single-product .summary .price {
  font-size: 18px !important;
  font-weight: 700 !important;
  color: #e2730d !important;
}

/* Stylowanie ceny w przypadku przeceny promocji */
body.single-product .woocommerce-variation-price .price del,
body.single-product .single_variation_wrap .price del,
body.single-product .summary .price del {
	color: #abb8c3 !important;
	display: block !important;
}	
	
body.single-product .price del .woocommerce-Price-amount,
body.single-product .price del .amount,
body.single-product .price del .woocommerce-Price-currencySymbol,
body.single-product p.price del .woocommerce-Price-amount,
body.single-product p.price del .amount,
body.single-product p.price del .woocommerce-Price-currencySymbol {
	color: #abb8c3 !important;
	font-size: smaller !important;
	line-height: 16px !important;
	
}

/* Floating Back to Top Button */
.rc-back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: #e2730d;
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.8);
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3), 0 2px 8px rgba(226, 115, 13, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.rc-back-to-top:hover {
  background-color: #c85f0b;
  transform: scale(1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 4px 12px rgba(226, 115, 13, 0.6);
}

.rc-back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.rc-back-to-top svg {
  width: 24px;
  height: 24px;
}

/* Mobile adjustments for back to top button */
@media (max-width: 768px) {
  .rc-back-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
  }
  
  .rc-back-to-top svg {
    width: 20px;
    height: 20px;
  }
}

/* Custom Footer Styles */
.rc-custom-footer {
  background-color: #2c2c2c;
  color: #ffffff;
  margin-top: 50px;
  padding: 40px 0 20px;
  font-family: inherit;
}

.rc-footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.rc-footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  margin-bottom: 30px;
}

.rc-footer-section h3 {
  color: #e2730d;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
  border-bottom: 2px solid #e2730d;
  padding-bottom: 10px;
}

.rc-footer-section p {
  margin: 8px 0;
  line-height: 1.6;
  color: #cccccc;
}

.rc-footer-section strong {
  color: #ffffff;
}

.rc-footer-section a {
  color: #e2730d;
  text-decoration: none;
  transition: color 0.3s ease;
}

.rc-footer-section a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* Legal Links Menu */
.rc-legal-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.rc-legal-menu li {
  margin: 10px 0;
}

.rc-legal-menu a {
  display: inline-block;
  padding: 8px 0;
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}

.rc-legal-menu a:hover {
  border-bottom-color: #e2730d;
  text-decoration: none;
}

/* Footer Bottom */
.rc-footer-bottom {
  border-top: 1px solid #444444;
  padding-top: 20px;
  text-align: center;
}

.rc-footer-bottom p {
  margin: 5px 0;
  color: #999999;
  font-size: 14px;
}

/* Mobile Footer Styles */
@media (max-width: 768px) {
  .rc-custom-footer {
    padding: 30px 0 15px;
    margin-top: 30px;
  }
  
  .rc-footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }
  
  .rc-footer-section h3 {
    font-size: 18px;
  }
  
  .rc-footer-container {
    padding: 0 15px;
  }
}

/* Ensure footer appears at bottom of page */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.rc-custom-footer {
  margin-top: auto;
}

/* Sticky Cart Styles */
.rc-sticky-cart-container {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  padding: 8px;
}

.rc-sticky-cart-container .rc-sticky-cart {
  position: relative;
  background: transparent;
}

/* Explicit styles to override WordPress/WooCommerce defaults */
.rc-sticky-cart-container .wc-block-mini-cart__button,
.rc-sticky-cart-container button {
  background-color: #e2730d !important;
  border-radius: 50% !important;
  width: 50px !important;
  height: 50px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: none !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  outline: none !important;
  box-shadow: 0 2px 8px rgba(226, 115, 13, 0.3) !important;
  position: relative !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

.rc-sticky-cart-container .wc-block-mini-cart__button:hover,
.rc-sticky-cart-container button:hover {
  background-color: #c85f0b !important;
  transform: scale(1.05) !important;
  box-shadow: 0 4px 12px rgba(226, 115, 13, 0.4) !important;
  opacity: 1 !important;
}

.rc-sticky-cart-container .wc-block-mini-cart__button:active,
.rc-sticky-cart-container button:active {
  transform: scale(0.98) !important;
  box-shadow: 0 2px 6px rgba(226, 115, 13, 0.5) !important;
  opacity: 1 !important;
}

.rc-sticky-cart-container .wc-block-mini-cart__button:focus,
.rc-sticky-cart-container button:focus {
  outline: 2px solid rgba(226, 115, 13, 0.5) !important;
  outline-offset: 2px !important;
  opacity: 1 !important;
}

.rc-sticky-cart-container .wc-block-mini-cart__icon {
  width: 24px !important;
  height: 24px !important;
  color: white !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  fill: none !important;
  stroke: white !important;
  stroke-width: 2 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}

/* Ensure all SVG elements in sticky cart have outline style */
.rc-sticky-cart-container svg,
.rc-sticky-cart-container .wc-block-mini-cart__icon svg,
.rc-sticky-cart-container svg path,
.rc-sticky-cart-container svg * {
  fill: none !important;
  stroke: white !important;
  stroke-width: 2 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}

/* Force SVG icon styles for WooCommerce cart icons */
.rc-sticky-cart-container .wc-block-mini-cart svg,
.rc-sticky-cart-container .woocommerce-mini-cart svg,
.rc-sticky-cart-container .mini-cart-icon svg {
  fill: none !important;
  stroke: white !important;
  stroke-width: 2 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}

/* Additional SVG targeting for different WooCommerce versions */
.rc-sticky-cart-container button svg,
.rc-sticky-cart-container a svg,
.rc-sticky-cart-container .cart-contents svg,
.rc-sticky-cart-container .wc-block-cart-button svg {
  fill: none !important;
  stroke: white !important;
  stroke-width: 2 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}

/* Target any path elements within SVGs */
.rc-sticky-cart-container svg path,
.rc-sticky-cart-container svg circle,
.rc-sticky-cart-container svg rect,
.rc-sticky-cart-container svg polygon {
  fill: none !important;
  stroke: white !important;
  stroke-width: 2 !important;
}

.rc-sticky-cart-container .wc-block-mini-cart__quantity-badge {
  /*position: absolute;
  top: -5px;
  right: -5px;*/
  background-color: #e2730d;
  color: white;
  border-radius: 50%;
  min-width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
}

.rc-category-products li.product .rc-product-layout .rc-product-button {
  text-align: right;
}

/* Mobile adjustments for sticky cart */
@media (max-width: 768px) {
  .rc-sticky-cart-container {
    top: 5px;
    right: 10px;
    padding: 6px;
  }
  
  .rc-sticky-cart-container .wc-block-mini-cart__button,
  .rc-sticky-cart-container button {
    width: 45px !important;
    height: 45px !important;
    box-shadow: 0 2px 6px rgba(226, 115, 13, 0.3) !important;
  }
  
  .rc-sticky-cart-container .wc-block-mini-cart__icon {
    width: 20px !important;
    height: 20px !important;
  }


  h2.wc-block-mini-cart__title {
    display: flex;
    flex-direction: column;
    font-size: 2em;
    margin: 16px 16px -32px;
    mask-image: linear-gradient(#000 calc(100% - 24px), transparent);
    padding-bottom: 32px;
    z-index: 1;
}

/* Quick View Modal Styles */
.rc-quick-view-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999999;
    background: rgba(0, 0, 0, 0.85);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.rc-quick-view-modal.rc-modal-active {
    display: flex !important;
    opacity: 1;
}

.rc-quick-view-container {
    position: relative;
    background: white;
    border-radius: 12px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    max-width: 600px;
    width: 90%;
    max-height: 85vh;
    overflow: hidden;
    z-index: 999999;
    margin: 20px;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.rc-quick-view-content {
    display: block;
    width: 100%;
}

.rc-quick-view-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 30px;
    border-bottom: 2px solid #f0f0f0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px 12px 0 0;
}

.rc-quick-view-header h3 {
    margin: 0;
    color: #333;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    max-width: 80%;
}

.rc-quick-view-close {
    background: #e74c3c;
    border: none;
    color: white;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    padding: 8px 12px;
    min-width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.rc-quick-view-close:hover {
    background-color: #c0392b;
    transform: scale(1.1);
}

.rc-quick-view-body {
    padding: 30px;
    max-height: 70vh;
    overflow-y: auto;
    background: white;
}

.rc-product-name {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.rc-product-name h4 {
    margin: 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
}

.rc-product-info {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.rc-product-info .rc-product-extras {
    margin-bottom: 15px;
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

.rc-product-info .rc-product-price {
    font-size: 24px;
    font-weight: 700;
    color: #e2730d;
    margin: 15px 0;
}

.rc-variations {
    margin-bottom: 1.5rem;
}

.rc-variation-group {
    margin-bottom: 1rem;
}

.rc-variation-group:last-child {
    margin-bottom: 0;
}

.rc-variation-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #212529;
    font-size: 14px;
}

.rc-variation-select {
    width: 100%;
    padding: 0.75rem 2.5rem 0.75rem 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    appearance: none;
}

.rc-variation-select:focus {
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.rc-variation-select:disabled {
    background-color: #e9ecef;
    opacity: 1;
}

.rc-quantity-section {
    margin-bottom: 1.5rem;
}

.rc-quantity-section label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #212529;
    font-size: 14px;
}

.rc-quantity-section input[type="number"] {
    width: 100px;
    padding: 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    text-align: center;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.rc-quantity-section input[type="number"]:focus {
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.rc-add-to-cart-section {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid #dee2e6;
    margin-top: 1.5rem;
}

.rc-add-to-cart-section .button {
    display: inline-block;
    font-weight: 500;
    line-height: 1.5;
    color: #fff;
    text-decoration: none;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    background-color: #e2730d;
    border: 1px solid #e2730d;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border-radius: 0.375rem;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    width: 100%;
    box-sizing: border-box;
}

.rc-add-to-cart-section .button:hover:not(:disabled) {
    color: #fff;
    background-color: #c85f0b;
    border-color: #b8560a;
}

.rc-add-to-cart-section .button:focus {
    color: #fff;
    background-color: #c85f0b;
    border-color: #b8560a;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(226, 115, 13, 0.5);
}

.rc-add-to-cart-section .button:active {
    color: #fff;
    background-color: #b8560a;
    border-color: #aa5009;
}

.rc-add-to-cart-section .button:disabled {
    color: #6c757d;
    background-color: transparent;
    border-color: #6c757d;
    cursor: not-allowed;
    opacity: 0.65;
}

.rc-add-to-cart-section .button.out-of-stock {
    color: #fff;
    background-color: #dc3545;
    border-color: #dc3545;
}

.rc-add-to-cart-section .button.unavailable {
    color: #fff;
    background-color: #6c757d;
    border-color: #6c757d;
}

.rc-loading {
    text-align: center;
    padding: 60px 20px;
    font-size: 18px;
    color: #666;
    background: white;
    border-radius: 12px;
}

.rc-error {
    text-align: center;
    padding: 60px 20px;
    font-size: 16px;
    color: #e74c3c;
    background: white;
    border-radius: 12px;
}

/* Prevent body scroll when modal is open */
body.rc-modal-open {
    overflow: hidden !important;
}

html.rc-modal-open {
    overflow: hidden !important;
}

/* Mobile adjustments for quick view */
@media (max-width: 768px) {
    .rc-quick-view-container {
        width: 95%;
        max-height: 90vh;
    }
    
    .rc-quick-view-header {
        padding: 15px 20px;
    }
    
    .rc-quick-view-header h3 {
        font-size: 16px;
    }
    
    .rc-quick-view-body {
        padding: 20px;
    }
    
    .rc-variation-select,
    .rc-quantity-section input[type="number"] {
        padding: 12px;
        font-size: 16px; /* Prevent zoom on iOS */
    }
}

/* Quick view button styling */
.rc-quick-view-button {
    background-color: #e2730d !important;
    color: white !important;
    border: none !important;
    padding: 8px 16px !important;
    border-radius: 5px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    display: inline-block !important;
}

.rc-quick-view-button:hover {
    background-color: #c85f0b !important;
    transform: translateY(-1px) !important;
}

/* Mobile: Make quick view button full width */
@media (max-width: 768px) {
    .rc-quick-view-button {
        width: 100% !important;
        box-sizing: border-box !important;
        text-align: center !important;
    }
}

/* Fix for mini cart empty state and close button */
.wc-block-mini-cart__contents:not(.is-cart-empty) .wc-block-mini-cart--empty,
.wc-block-mini-cart__contents:not(.is-cart-empty) .cart-empty {
    display: none !important;
}

.wc-block-mini-cart__contents.is-cart-empty .wc-block-mini-cart__items,
.wc-block-mini-cart__contents.is-cart-empty .wc-block-mini-cart__footer {
    display: none !important;
}

/* Ensure close button is visible in mini cart */
.wc-block-mini-cart__drawer .components-button,
.wc-block-mini-cart__drawer button[aria-label*="Close"],
.wc-block-mini-cart__drawer button[aria-label*="Zamknij"] {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 999999 !important;
}

/* Fix for mini cart close button positioning */
.wc-block-mini-cart__drawer .components-button[aria-label*="Close"],
.wc-block-mini-cart__drawer .components-button[aria-label*="Zamknij"] {
    position: absolute !important;
    top: 15px !important;
    right: 15px !important;
    background: transparent !important;
    border: none !important;
    font-size: 24px !important;
    line-height: 1 !important;
    padding: 5px !important;
    cursor: pointer !important;
}

/* Hide empty cart placeholder when cart has items */
.wc-block-mini-cart:not(.is-empty) .wc-block-mini-cart--empty-cart,
.wc-block-mini-cart:not(.is-empty) .cart-empty-message,
.wc-block-mini-cart.has-items .wc-block-mini-cart--empty-cart,
.wc-block-mini-cart.has-items .cart-empty-message,
.wc-block-mini-cart__contents.has-items .wc-block-mini-cart--empty,
.wc-block-mini-cart__contents.has-items .cart-empty {
    display: none !important;
}

/* Force show close button in all mini cart states */
.wc-block-mini-cart__drawer .components-button,
.wc-block-mini-cart__drawer button[aria-label],
.wc-block-mini-cart .wp-block-woocommerce-mini-cart-drawer-close-button,
.wc-block-mini-cart__close-button {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 999999 !important;
    /*position: absolute !important;*/
    top: 15px !important;
    right: 15px !important;
    background: transparent !important;
    border: none !important;
    font-size: 24px !important;
    line-height: 1 !important;
    padding: 5px !important;
    cursor: pointer !important;
    color: #333 !important;
}

/* Additional selectors for empty cart state hiding */
.widget_shopping_cart.has-items .woocommerce-mini-cart__empty-message,
.widget_shopping_cart.has-items .cart-empty,
.wc-block-mini-cart__contents:not(.is-cart-empty) .wc-block-mini-cart__empty-cart-wrapper,
.wc-block-mini-cart:not(.is-empty) .wc-block-mini-cart__empty-cart-wrapper,
.wc-block-mini-cart.has-items .wc-block-mini-cart__empty-cart-wrapper {
    display: none !important;
}

/* Show cart items when cart has content */
.wc-block-mini-cart.has-items .wc-block-mini-cart__items,
.wc-block-mini-cart.has-items .wc-block-mini-cart__footer,
.wc-block-mini-cart__contents.has-items .wc-block-mini-cart__items,
.wc-block-mini-cart__contents.has-items .wc-block-mini-cart__footer {
    display: block !important;
}

/* Additional empty cart message selectors */
.has-items .empty-cart,
.has-items .cart-empty-text,
.has-items .woocommerce-mini-cart__empty-message,
.has-items .wc-block-mini-cart--empty-cart {
    display: none !important;
}

/* Ensure close button styling for all variants */
.wc-block-mini-cart__drawer button[class*="close"],
.wc-block-mini-cart__drawer .wp-block-button,
.wc-block-mini-cart-drawer-close-button {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 999999 !important;
    position: absolute !important;
    top: 15px !important;
    right: 15px !important;
    background: transparent !important;
    border: none !important;
    font-size: 24px !important;
    line-height: 1 !important;
    padding: 5px !important;
    cursor: pointer !important;
    color: #333 !important;
    min-width: auto !important;
    width: auto !important;
    height: auto !important;
}

/* Cart item remove button styling */
.wc-block-cart-item__remove-button,
.wc-block-mini-cart-item__remove-button,
.woocommerce-cart-form .product-remove a,
.mini_cart_item .remove,
.cart_item .product-remove a {
    background: #dc3545 !important;
    color: white !important;
    border: none !important;
    border-radius: 50% !important;
    width: 24px !important;
    height: 24px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 14px !important;
    line-height: 1 !important;
    cursor: pointer !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    margin-left: auto !important;
}

.wc-block-cart-item__remove-button:hover,
.wc-block-mini-cart-item__remove-button:hover,
.woocommerce-cart-form .product-remove a:hover,
.mini_cart_item .remove:hover,
.cart_item .product-remove a:hover {
    background: #a71e2a !important;
    transform: scale(1.1) !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2) !important;
}

/* Fix positioning for cart table remove buttons */
.woocommerce-cart-form .cart_item .product-remove {
    text-align: center !important;
    vertical-align: middle !important;
    width: 50px !important;
}

/* Fix positioning for mini cart remove buttons */
.wc-block-mini-cart-item {
    position: relative !important;
}

.wc-block-mini-cart-item__remove-button {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    z-index: 10 !important;
}

/* Hide system notifications and use custom ones */
.woocommerce-message,
.woocommerce-error,
.woocommerce-info,
.wc-block-components-notice-banner,
.components-notice,
.wp-admin .notice,
body:not(.wp-admin) .woocommerce-notices-wrapper .woocommerce-message {
    display: none !important;
}

/* Cart page specific styles */
.woocommerce-cart .cart_item td.product-remove {
    text-align: center !important;
    vertical-align: middle !important;
    padding: 15px 10px !important;
}

.woocommerce-cart .cart_item .product-remove a {
    margin: 0 auto !important;
    position: relative !important;
    top: auto !important;
    right: auto !important;
}

/* Mini cart item styling */
.wc-block-mini-cart-item,
.mini_cart_item {
    position: relative !important;
    padding-right: 40px !important;
}

.wc-block-mini-cart-item__remove-button,
.mini_cart_item .remove {
    position: absolute !important;
    top: 50% !important;
    right: 10px !important;
    transform: translateY(-50%) !important;
    margin: 0 !important;
}

/* Drawer and block cart specific fixes */
.wc-block-cart-item {
    position: relative !important;
}

.wc-block-cart-item__remove-button {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    margin: 0 !important;
}

/* Ensure cart table layout doesn't break */
.woocommerce-cart-form .shop_table_responsive {
    table-layout: auto !important;
}

.woocommerce-cart-form .shop_table_responsive .product-remove {
    width: 60px !important;
    min-width: 60px !important;
}

/* Custom notification improvements */
.rc-cart-notification {
    z-index: 999999 !important;
    pointer-events: auto !important;
}

/* Remove button icon styling */
.wc-block-cart-item__remove-button svg,
.wc-block-mini-cart-item__remove-button svg,
.woocommerce-cart-form .product-remove a:before,
.mini_cart_item .remove:before {
    display: none !important;
}

.wc-block-cart-item__remove-button:after,
.wc-block-mini-cart-item__remove-button:after,
.woocommerce-cart-form .product-remove a:after,
.mini_cart_item .remove:after {
    content: '×' !important;
    font-size: 16px !important;
    font-weight: bold !important;
    color: white !important;
    line-height: 1 !important;
}

/* Focus and active states for remove buttons */
.wc-block-cart-item__remove-button:focus,
.wc-block-mini-cart-item__remove-button:focus,
.woocommerce-cart-form .product-remove a:focus,
.mini_cart_item .remove:focus {
    outline: 2px solid #dc3545 !important;
    outline-offset: 2px !important;
}

.wc-block-cart-item__remove-button:active,
.wc-block-mini-cart-item__remove-button:active,
.woocommerce-cart-form .product-remove a:active,
.mini_cart_item .remove:active {
    transform: scale(0.95) !important;
    background: #7a1e2a !important;
}

/* Mobile responsive adjustments for remove buttons */
@media (max-width: 768px) {
    .wc-block-cart-item__remove-button,
    .wc-block-mini-cart-item__remove-button,
    .woocommerce-cart-form .product-remove a,
    .mini_cart_item .remove {
        width: 28px !important;
        height: 28px !important;
        font-size: 16px !important;
    }
    
    .woocommerce-cart .cart_item td.product-remove {
        padding: 10px 5px !important;
    }
    
    .wc-block-mini-cart-item,
    .mini_cart_item {
        padding-right: 45px !important;
    }
}
