/*
Theme Name: Eldor Shop
Theme URI: https://elderlietas.lv
Author: Eldor Shop Team
Author URI: https://elderlietas.lv
Description: A modern, responsive WooCommerce theme optimized for e-commerce stores. Features include advanced product filtering, mobile-first design, optimized performance, and comprehensive SEO enhancements.
Version: 2.0.1
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: eldor-shop
Tags: e-commerce, woocommerce, custom-menu, featured-images, threaded-comments, translation-ready, seo-optimized, performance, responsive

This theme, like WordPress, is licensed under the GPL.
*/

/* ==========================================================================
   Global Styles
   ========================================================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu,
    Cantarell, "Helvetica Neue", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #424242;
  background-color: #fff;
}

body.mobile-menu-active {
  overflow: hidden;
}

a {
  color: #ba0001;
  text-decoration: none;
}

a:hover {
  color: #000000;
}

img {
  max-width: 100%;
  height: auto;
}

/* Container */
.container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 30px;
}

/* Header */
.site-header {
  background-color: #fff;
  border-bottom: 1px solid #eee;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 10px;
  cursor: pointer;
  z-index: 998;
  transition: opacity 0.3s ease;
}

.mobile-menu-toggle .hamburger-line {
  width: 25px;
  height: 3px;
  background-color: #424242;
  transition: all 0.3s ease;
  border-radius: 2px;
}

/* Hide hamburger icon when menu is open */
.mobile-menu-toggle.active {
  opacity: 0;
  pointer-events: none;
}

/* Don't transform hamburger to X - close button inside menu handles closing */
/* .mobile-menu-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
} */

/* Mobile menu close button */
.mobile-menu-close {
  display: none;
  position: absolute;
  top: 15px;
  right: 15px;
  background: #f5f5f5;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: #424242;
  z-index: 1002;
  border-radius: 4px;
  line-height: 0;
  width: 40px;
  height: 40px;
  transition: all 0.3s;
}

.mobile-menu-close svg {
  display: block;
  width: 24px;
  height: 24px;
  stroke: currentColor;
}

.mobile-menu-close:hover {
  background-color: #ba0001;
  color: #fff;
}

/* Header Top Bar */
.header-top {
  background-color: #fff;
  padding: 20px 0;
  border-bottom: 1px solid #eee;
}

.header-top-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.site-branding {
  flex: 0 0 auto;
}

.site-branding img {
  max-height: 60px;
  width: auto;
}

.site-title {
  font-size: 28px;
  font-weight: bold;
  margin: 0;
}

.site-title a {
  color: #333;
}

/* Header Search */
.header-search {
  flex: 1;
  max-width: 600px;
  position: relative;
}

.header-search form {
  display: flex;
  border: 2px solid #424242;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.header-search .search-field {
  flex: 1;
  padding: 12px 15px;
  border: none;
  font-size: 14px;
  outline: none;
}

.header-search .search-submit {
  background-color: #000000;
  color: #fff;
  border: none;
  padding: 12px 25px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: background-color 0.3s;
}

.header-search .search-submit:hover {
  background-color: #ba0001;
}

.header-search .search-submit svg {
  display: block;
}

/* Live Search Results */
.live-search-results {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  right: 0;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  max-height: 500px;
  overflow-y: auto;
}

.search-results-container {
  padding: 0;
}

.search-result-item {
  display: flex;
  gap: 15px;
  padding: 15px;
  border-bottom: 1px solid #f5f5f5;
  transition: background-color 0.3s;
  text-decoration: none;
  color: inherit;
}

.search-result-item:hover {
  background-color: #f9f9f9;
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-image {
  flex: 0 0 70px;
  width: 70px;
  height: 70px;
}

.search-result-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

.search-result-details {
  flex: 1;
  min-width: 0;
}

.search-result-title {
  font-size: 15px;
  font-weight: 600;
  color: #000000;
  margin-bottom: 5px;
  line-height: 1.4;
}

.search-result-price {
  font-size: 14px;
  color: #ba0001;
  font-weight: 600;
}

.search-result-category {
  font-size: 12px;
  color: #7e7e7c;
  margin-top: 5px;
}

.search-loading {
  padding: 20px;
  text-align: center;
  color: #7e7e7c;
}

.search-no-results {
  padding: 30px 20px;
  text-align: center;
  color: #7e7e7c;
}

.search-view-all {
  display: block;
  padding: 15px;
  text-align: center;
  background-color: #f5f5f5;
  color: #424242;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s;
}

.search-view-all:hover {
  background-color: #000000;
  color: #fff;
}

/* Header Cart */
.header-cart {
  flex: 0 0 auto;
  position: relative;
}

.header-cart .cart-contents {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background-color: #f5f5f5;
  border-radius: 4px;
  color: #424242;
  transition: all 0.3s;
}

.header-cart .cart-contents:hover {
  background-color: #ba0001;
  color: #fff;
}

.header-cart svg {
  width: 24px;
  height: 24px;
}

.header-cart .cart-count {
  background-color: #ba0001;
  color: #fff;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: bold;
}

.header-cart .cart-total {
  font-weight: 600;
}

/* Cart Dropdown */
.cart-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 360px;
  background-color: #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 9999;
}

.header-cart:hover .cart-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.header-cart.cart-open .cart-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.cart-dropdown-header {
  padding: 20px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-dropdown-header h3 {
  margin: 0;
  font-size: 18px;
  color: #000000;
}

.cart-items-count {
  font-size: 14px;
  color: #7e7e7c;
}

.cart-dropdown-items {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 300px;
  overflow-y: auto;
}

.cart-dropdown-item {
  display: flex;
  gap: 15px;
  padding: 15px 20px;
  border-bottom: 1px solid #f5f5f5;
  position: relative;
  transition: background-color 0.3s;
}

.cart-dropdown-item:hover {
  background-color: #f9f9f9;
}

.cart-dropdown-item:last-child {
  border-bottom: none;
}

.cart-dropdown-item .item-image {
  flex: 0 0 60px;
  width: 60px;
  height: 60px;
}

.cart-dropdown-item .item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

.cart-dropdown-item .item-details {
  flex: 1;
  min-width: 0;
}

.cart-dropdown-item .item-name {
  font-size: 14px;
  color: #424242;
  margin-bottom: 5px;
  line-height: 1.4;
}

.cart-dropdown-item .item-name a {
  color: #424242;
  text-decoration: none;
}

.cart-dropdown-item .item-name a:hover {
  color: #ba0001;
}

.cart-dropdown-item .item-quantity-price {
  font-size: 13px;
  color: #7e7e7c;
}

.cart-dropdown-item .item-quantity-price .price {
  color: #ba0001;
  font-weight: 600;
  margin-left: 5px;
}

.cart-dropdown-item .remove-item {
  position: absolute;
  top: 15px;
  right: 20px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7e7e7c;
  font-size: 24px;
  line-height: 1;
  text-decoration: none;
  transition: color 0.3s;
}

.cart-dropdown-item .remove-item:hover {
  color: #ba0001;
}

.cart-dropdown-footer {
  padding: 20px;
  border-top: 1px solid #eee;
}

.cart-subtotal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  font-size: 16px;
}

.cart-subtotal strong {
  color: #ba0001;
  font-size: 18px;
}

.cart-actions {
  display: flex;
  gap: 10px;
}

.cart-dropdown .cart-actions .button,
.header-cart .cart-dropdown .cart-actions a.button {
  flex: 1;
  padding: 12px 20px;
  text-align: center;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
  border: none;
}

.cart-dropdown .cart-actions .view-cart,
.header-cart .cart-dropdown .cart-actions a.view-cart {
  background-color: #f5f5f5 !important;
  color: #424242 !important;
}

.cart-dropdown .cart-actions .view-cart:hover,
.header-cart .cart-dropdown .cart-actions a.view-cart:hover {
  background-color: #424242 !important;
  color: #fff !important;
}

.cart-dropdown .cart-actions .checkout,
.header-cart .cart-dropdown .cart-actions a.checkout {
  background-color: #ba0001 !important;
  color: #fff !important;
}

.cart-dropdown .cart-actions .checkout:hover,
.header-cart .cart-dropdown .cart-actions a.checkout:hover {
  background-color: #000000 !important;
}

.cart-dropdown-empty {
  padding: 40px 20px;
  text-align: center;
}

.cart-dropdown-empty p {
  margin: 0;
  color: #7e7e7c;
  font-size: 15px;
}

/* Header Main Section */
.header-main {
  background-color: #f9f9f9;
  padding: 0;
}

/* Top Navigation Bar - Categories Button + Horizontal Menu */
.header-top-bar {
  display: flex;
  align-items: stretch;
  background-color: #8b0000;
}

.header-main-content {
  display: flex;
  gap: 0;
}

/* Homepage layout - menu and slider side by side */
.header-main-content.homepage-layout {
  display: flex;
}

/* Inner pages layout - menu takes 1/3 width */
.header-main-content.inner-page-layout {
  display: flex;
}

/*
.header-main-content.inner-page-layout .vertical-categories-menu {
  flex: 0 0 280px;
}

/* Vertical Product Categories Menu */
.vertical-categories-menu {
  flex: 0 0 280px;
  background-color: #fff;
  border-right: 1px solid #eee;
  position: relative;
}

/* Hide homepage category toggle on desktop */
.homepage-category-toggle {
  display: none;
}

.categories-menu-title {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 20px;
  background-color: #000000;
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  position: relative;
  flex: 0 0 280px;
  width: 280px;
}

.categories-menu-title svg {
  width: 20px;
  height: 20px;
}

.categories-menu-title .toggle-icon {
  margin-left: auto;
  transition: transform 0.3s;
}

.vertical-categories-menu.menu-expanded .categories-menu-title {
  cursor: default;
}

/* Horizontal Primary Navigation */
.horizontal-primary-navigation {
  flex: 1;
  display: flex;
  align-items: stretch;
}

.horizontal-menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: stretch;
  width: 100%;
}

.horizontal-menu-list > li {
  position: relative;
  display: flex;
  align-items: stretch;
}

.horizontal-menu-list > li > a {
  display: flex;
  align-items: center;
  padding: 0 20px;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.3s;
  white-space: nowrap;
}

.horizontal-menu-list > li > a:hover {
  background-color: rgba(0, 0, 0, 0.2);
}

/* Dropdown menus */
.horizontal-menu-list .sub-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 220px;
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  z-index: 1000;
}

.horizontal-menu-list .menu-item-has-children:hover > .sub-menu {
  display: block;
}

.horizontal-menu-list .sub-menu li {
  border-bottom: 1px solid #f0f0f0;
}

.horizontal-menu-list .sub-menu li:last-child {
  border-bottom: none;
}

.horizontal-menu-list .sub-menu a {
  display: block;
  padding: 12px 20px;
  color: #424242;
  font-size: 14px;
  transition: all 0.3s;
}

.horizontal-menu-list .sub-menu a:hover {
  background-color: #f5f5f5;
  color: #ba0001;
  padding-left: 25px;
}

/* Menu collapsed state (non-homepage) */
.vertical-categories-menu.menu-collapsed .categories-menu-wrapper {
  display: none;
}

.vertical-categories-menu.menu-collapsed.active .categories-menu-wrapper {
  display: block;
  position: absolute;
  top: 100%;
  left: 0;
  width: 280px;
  background-color: #fff;
  box-shadow: 2px 4px 10px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  border-right: 1px solid #eee;
}

.vertical-categories-menu.menu-collapsed.active
  .categories-menu-title
  .toggle-icon {
  transform: rotate(180deg);
}

.vertical-categories-menu.menu-collapsed.active
  .categories-menu-title
  .toggle-icon {
  transform: rotate(180deg);
}

/* Menu expanded state (homepage) */
.vertical-categories-menu.menu-expanded .categories-menu-wrapper {
  display: block;
}

.categories-menu-wrapper {
  transition: all 0.3s ease;
}

.vertical-menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.vertical-menu-list > li {
  position: relative;
  border-bottom: 1px solid #eee;
}

.vertical-menu-list > li > a {
  display: block;
  padding: 15px 20px;
  color: #424242;
  font-size: 15px;
  font-weight: 700;
  transition: all 0.3s;
  position: relative;
}

.vertical-menu-list > li > a:hover {
  background-color: #f5f5f5;
  color: #ba0001;
  padding-left: 25px;
}

/* Subcategories indicator */
.vertical-menu-list .menu-item-has-children > a::after {
  content: "›";
  position: absolute;
  right: 20px;
  font-size: 20px;
  transition: transform 0.3s;
}

/* Subcategories - Flyout menu (all pages) */
.vertical-menu-list .sub-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: none;
  position: absolute;
  left: 100%;
  top: 0;
  min-width: 250px;
  background-color: #fff;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.vertical-menu-list .menu-item-has-children:hover > .sub-menu {
  display: block;
}

.vertical-menu-list .sub-menu li {
  border-bottom: 1px solid #f5f5f5;
}

.vertical-menu-list .sub-menu li:last-child {
  border-bottom: none;
}

.vertical-menu-list .sub-menu a {
  display: block;
  padding: 12px 20px;
  color: #2c2c2c;
  font-size: 14px;
  transition: all 0.3s;
}

.vertical-menu-list .sub-menu a:hover {
  background-color: #f5f5f5;
  color: #ba0001;
  padding-left: 25px;
}

/* Banner Slider */
.header-banner-slider {
  flex: 1;
  position: relative;
  overflow: hidden;
  background-color: #f5f5f5;
}

.banner-slider-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 25 / 8;
  overflow: hidden;
}

.banner-slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.banner-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  pointer-events: none;
}

.banner-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner-link {
  display: block;
  width: 100%;
  height: 100%;
}

.banner-placeholder {
  width: 100%;
  height: 100%;
}

.banner-content {
  text-align: center;
  padding: 20px;
}

.banner-content h2 {
  font-size: 36px;
  margin-bottom: 10px;
}

.banner-content p {
  font-size: 18px;
}

/* Slider Controls */
.banner-slider-controls {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  pointer-events: none;
  z-index: 10;
}

.banner-slider-controls button {
  pointer-events: auto;
  background-color: rgba(255, 255, 255, 0.9);
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.banner-slider-controls button:hover {
  background-color: #ba0001;
  color: #fff;
}

.banner-slider-controls svg {
  width: 24px;
  height: 24px;
}

/* Slider Dots */
.banner-slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  border: 2px solid #fff;
  cursor: pointer;
  transition: all 0.3s;
  padding: 0;
}

.slider-dot.active,
.slider-dot:hover {
  background-color: #fff;
  transform: scale(1.2);
}

/* Navigation (keep for other menus if needed) */
.main-navigation {
  background-color: #000000;
}

.main-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
}

.main-navigation li {
  position: relative;
}

.main-navigation a {
  display: block;
  padding: 15px 20px;
  color: #fff;
}

.main-navigation a:hover {
  background-color: #ba0001;
}

/* Main Content */
.site-content {
  padding: 40px 0;
  min-height: 400px;
}

@media (max-width: 768px) {
  .site-content {
    padding: 20px 0;
  }

  .cart-dropdown {
    width: calc(100vw - 20px);
    right: 10px;
    left: 10px;
    margin: 0 auto;
  }
}

/* Footer */
.site-footer {
  background-color: #000000;
  color: #fff;
  padding: 50px 0 30px;
  text-align: left;
  margin-top: 40px;
}

.site-footer a {
  color: #fff;
}

/* Footer Company Information Section */
.footer-company-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-section-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Company Menu */
.footer-company-menu .company-info-navigation {
  display: block;
}

.company-info-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.company-info-list li {
  margin-bottom: 12px;
}

.company-info-list a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 15px;
  transition: all 0.3s ease;
  display: inline-block;
}

.company-info-list a:hover {
  color: #ba0001;
  padding-left: 5px;
}

/* Company Address */
.footer-company-address .address-content {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
  font-size: 15px;
}

.footer-company-address .address-content p {
  margin: 0 0 10px 0;
}

/* Additional Information */
.footer-additional-info .additional-info-content {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
  font-size: 15px;
}

.footer-additional-info .additional-info-content p {
  margin: 0 0 10px 0;
}

/* Footer Widgets */
.footer-widgets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 30px;
}

.footer-widget-area {
  text-align: left;
}

/* Site Info */
.site-info {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Footer */
@media (max-width: 1024px) {
  .footer-company-info {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .footer-additional-info {
    grid-column: 1 / -1;
  }

  .footer-widgets {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .footer-company-info {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-widgets {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .site-footer {
    padding: 40px 0 20px;
  }
}

/* WordPress Core */
.alignleft {
  float: left;
  margin-right: 20px;
}

.alignright {
  float: right;
  margin-left: 20px;
}

.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   Product Categories Menu
   ========================================================================== */

.product-categories-menu {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #424242;
}

.product-categories-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.product-category-item a {
  display: inline-block;
  padding: 8px 15px;
  color: #fff;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  font-size: 14px;
  transition: all 0.3s ease;
}

.product-category-item a:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Category count in product categories list */
.product-categories-list .category-count {
  font-size: 12px;
  opacity: 0.8;
  margin-left: 5px;
}

/* Category count in homepage categories grid */
.homepage-categories .category-count {
  margin-top: auto;
  padding: 10px 15px;
  font-size: 14px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #424242;
  color: #fff;
  font-weight: 500;
  border-radius: 0 0 8px 8px;
}

/* Responsive Design for Product Categories */
@media (max-width: 768px) {
  .product-categories-menu {
    margin-top: 15px;
    padding-top: 15px;
  }

  .product-categories-list {
    gap: 8px;
    font-size: 13px;
  }

  .product-category-item a {
    padding: 6px 12px;
    font-size: 13px;
  }
}
/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 1024px) {
  /* Show mobile menu toggle */
  .mobile-menu-toggle {
    display: flex;
    order: -1;
  }

  .header-top-content {
    flex-wrap: wrap;
    gap: 15px;
  }

  .header-search {
    order: 3;
    flex: 1 1 100%;
    max-width: 100%;
    margin-top: 15px;
  }

  /* Hide horizontal primary navigation by default on tablets */
  .horizontal-primary-navigation {
    display: block !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background: #fff;
    z-index: 1000;
    padding: 80px 20px 20px 20px;
    overflow-y: auto;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    pointer-events: auto;
    visibility: visible;
  }

  .horizontal-primary-navigation.mobile-menu-open {
    transform: translateX(0);
  }

  /* Show close button on tablets */
  .mobile-menu-close {
    display: block;
  }

  /* Mobile menu overlay */
  .mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
  }

  .mobile-menu-overlay.active {
    display: block;
  }

  /* Vertical menu list for tablets primary navigation */
  .horizontal-primary-navigation .horizontal-menu-list {
    flex-direction: column;
    align-items: stretch;
    display: flex !important;
    list-style: none;
    margin: 0;
    padding: 0;
    visibility: visible;
    opacity: 1;
  }

  .horizontal-primary-navigation .horizontal-menu-list > li {
    border-bottom: 1px solid #eee;
    list-style: none;
    display: block !important;
  }

  .horizontal-primary-navigation .horizontal-menu-list > li > a {
    padding: 15px 20px;
    color: #424242;
    display: block;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
  }

  .horizontal-primary-navigation .horizontal-menu-list > li > a:hover {
    background-color: #f9f9f9;
    color: #ba0001;
  }

  .horizontal-primary-navigation .horizontal-menu-list .sub-menu {
    position: static;
    box-shadow: none;
    background-color: #f9f9f9;
  }

  /* Hide header-top-bar on tablets (categories button + horizontal nav desktop display) */
  .header-top-bar {
    height: 0;
    overflow: visible;
    background: none;
  }

  .header-top-bar .categories-menu-title {
    display: none;
  }

  /* Keep vertical categories menu visible on tablets homepage only */
  .vertical-categories-menu.menu-collapsed {
    display: none !important;
  }

  .vertical-categories-menu.menu-expanded {
    display: block !important;
  }

  /* Hide header-main section on non-homepage tablets */
  .inner-page-layout {
    display: none !important;
  }

  .header-main-content {
    flex-direction: column;
  }

  .vertical-categories-menu {
    flex: 1 1 100%;
    border-right: none;
    border: none;
  }

  /* Homepage category toggle button - matches product catalogue style */
  .homepage-category-toggle {
    display: flex !important;
    width: 100%;
    padding: 15px 20px;
    background-color: #fff;
    color: #424242;
    border: 2px solid #ba0001;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 0;
    transition: all 0.3s;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
  }

  .homepage-category-toggle:hover {
    background-color: #ba0001;
    color: #fff;
  }

  .homepage-category-toggle.active {
    background-color: #ba0001;
    color: #fff;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
  }

  .homepage-category-toggle span {
    flex: 1;
    text-align: left;
  }

  .homepage-category-toggle svg {
    flex-shrink: 0;
  }

  .homepage-category-toggle .toggle-arrow {
    transition: transform 0.3s;
  }

  .homepage-category-toggle.active .toggle-arrow {
    transform: rotate(180deg);
  }

  /* Collapsible categories menu wrapper on mobile/tablet */
  .vertical-categories-menu.menu-expanded .categories-menu-wrapper {
    max-height: 0 !important;
    overflow: hidden !important;
    transition: max-height 0.3s ease-out;
    border: 2px solid #ba0001;
    border-top: none;
    border-radius: 0 0 4px 4px;
    opacity: 0;
    visibility: hidden;
    display: block;
    background-color: #fff;
  }

  .vertical-categories-menu.menu-expanded .categories-menu-wrapper.active {
    max-height: 2000px !important;
    transition: max-height 0.5s ease-in;
    opacity: 1;
    visibility: visible;
  }

  .vertical-menu-list .sub-menu {
    position: static;
    box-shadow: none;
    background-color: #f9f9f9;
    display: none;
  }

  .vertical-menu-list .menu-item-has-children.active > .sub-menu {
    display: block;
  }
}

@media (max-width: 768px) {
  /* Show mobile menu toggle */
  .mobile-menu-toggle {
    display: flex;
    order: -1;
  }

  .header-top-content {
    gap: 15px;
  }

  .site-branding img {
    max-height: 40px;
  }

  .site-title {
    font-size: 20px;
  }

  .header-cart .cart-total {
    display: none;
  }

  /* Cart dropdown mobile adjustments */
  .cart-dropdown {
    position: fixed;
    width: 100vw;
    max-width: 100vw;
    right: auto;
    left: 0;
    top: 60px;
    max-height: 70vh;
    overflow-y: auto;
    border-radius: 0;
  }

  .cart-dropdown-header {
    padding: 12px 15px;
  }

  .cart-dropdown-header h3 {
    font-size: 16px;
  }

  .cart-dropdown-items {
    max-height: 40vh;
    overflow-y: auto;
  }

  .cart-dropdown-item {
    padding: 12px 15px;
    gap: 10px;
  }

  .cart-dropdown-item .item-image {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
  }

  .cart-dropdown-item .item-name {
    font-size: 13px;
  }

  .cart-dropdown-item .item-quantity-price {
    font-size: 12px;
  }

  .cart-dropdown-footer {
    padding: 12px 15px;
  }

  .cart-dropdown .cart-actions .button,
  .header-cart .cart-dropdown .cart-actions a.button {
    padding: 10px 15px;
    font-size: 13px;
  }

  .cart-dropdown-empty {
    padding: 30px 15px;
  }

  /* Hide horizontal primary navigation by default on mobile */
  .horizontal-primary-navigation {
    display: block !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background: #fff;
    z-index: 1000;
    padding: 80px 20px 20px 20px;
    overflow-y: auto;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    pointer-events: auto;
    visibility: visible;
  }

  .horizontal-primary-navigation.mobile-menu-open {
    transform: translateX(0);
  }

  /* Show close button on mobile */
  .mobile-menu-close {
    display: block;
  }

  /* Mobile menu overlay */
  .mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
  }

  .mobile-menu-overlay.active {
    display: block;
  }

  /* Vertical menu list for mobile primary navigation */
  .horizontal-primary-navigation .horizontal-menu-list {
    flex-direction: column;
    align-items: stretch;
    display: flex !important;
    list-style: none;
    margin: 0;
    padding: 0;
    visibility: visible;
    opacity: 1;
  }

  .horizontal-primary-navigation .horizontal-menu-list > li {
    border-bottom: 1px solid #eee;
    list-style: none;
    display: block !important;
  }

  .horizontal-primary-navigation .horizontal-menu-list > li > a {
    padding: 15px 20px;
    color: #424242;
    display: block;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
  }

  .horizontal-primary-navigation .horizontal-menu-list > li > a:hover {
    background-color: #f9f9f9;
    color: #ba0001;
  }

  .horizontal-primary-navigation .horizontal-menu-list .sub-menu {
    position: static;
    box-shadow: none;
    background-color: #f9f9f9;
  }

  /* Hide header-top-bar on mobile (categories button + horizontal nav desktop display) */
  .header-top-bar {
    height: 0;
    overflow: visible;
    background: none;
  }

  .header-top-bar .categories-menu-title {
    display: none;
  }

  /* Keep vertical categories menu visible on mobile homepage only */
  .vertical-categories-menu.menu-collapsed {
    display: none !important;
  }

  .vertical-categories-menu.menu-expanded {
    display: block !important;
  }

  .vertical-categories-menu.menu-expanded .categories-menu-wrapper {
    display: block;
  }

  /* Hide header-main section on non-homepage mobile */
  .inner-page-layout {
    display: none !important;
  }

  .categories-menu-title {
    font-size: 14px;
    padding: 12px 15px;
  }

  .vertical-menu-list > li > a {
    padding: 12px 15px;
    font-size: 14px;
  }

  .banner-content h2 {
    font-size: 24px;
  }

  .banner-content p {
    font-size: 14px;
  }

  .banner-slider-controls button {
    width: 35px;
    height: 35px;
  }
}
/* ==========================================================================
   WooCommerce Product Page Sidebar
   ========================================================================== */

.woocommerce-layout {
  display: flex;
  gap: 30px;
  align-items: flex-start;
}

.woocommerce-sidebar {
  flex: 0 0 280px;
  background-color: #fff;
  border: 1px solid #eee;
  border-radius: 4px;
}

/* Hide sidebar on single product pages (desktop only) */
.single-product .woocommerce-sidebar {
  display: none;
}

@media (max-width: 768px) {
  .single-product .woocommerce-sidebar {
    display: block;
    margin-bottom: 20px;
  }
}

.single-product .woocommerce-content {
  flex: 1;
  max-width: 100%;
}

/* Back button on single product page */
.product-back-button-wrapper {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.product-back-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background-color: #f5f5f5;
  color: #424242;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s;
  border: 1px solid #eee;
}

.product-back-button:hover {
  background-color: #ba0001;
  color: #fff;
  border-color: #ba0001;
}

.product-back-button svg {
  width: 20px;
  height: 20px;
}

.product-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #7e7e7c;
  flex-wrap: wrap;
}

.product-breadcrumb a {
  color: #424242;
  text-decoration: none;
  transition: color 0.3s;
}

.product-breadcrumb a:hover {
  color: #ba0001;
}

.product-breadcrumb .separator {
  color: #7e7e7c;
}

.mobile-category-toggle {
  display: none;
  width: 100%;
  padding: 15px 20px;
  background-color: #fff;
  color: #424242;
  border: 2px solid #ba0001;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 0;
  transition: all 0.3s;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}

.mobile-category-toggle:hover {
  background-color: #ba0001;
  color: #fff;
}

.mobile-category-toggle.active {
  background-color: #ba0001;
  color: #fff;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.mobile-category-toggle span {
  flex: 1;
  text-align: left;
}

.mobile-category-toggle svg {
  flex-shrink: 0;
}

.mobile-category-toggle .toggle-arrow {
  transition: transform 0.3s;
}

.mobile-category-toggle.active .toggle-arrow {
  transform: rotate(180deg);
}

.sidebar-category-menu {
  padding: 0;
  background-color: #fff;
  display: block;
  max-height: none;
  overflow: visible;
}

.product-categories-sidebar-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.parent-category-item {
  border-bottom: 1px solid #eee;
}

.parent-category-item:last-child {
  border-bottom: none;
}

.parent-category-item > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  color: #424242;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.3s;
  position: relative;
  cursor: pointer;
}

.parent-category-item > a:hover,
.parent-category-item > a.current {
  background-color: #f5f5f5;
  color: #ba0001;
  padding-left: 25px;
}

.parent-category-item.active > a {
  background-color: #f9f9f9;
  color: #ba0001;
}

.parent-category-item .count {
  font-size: 12px;
  opacity: 0.7;
  font-weight: normal;
}

.subcategories-list {
  list-style: none;
  margin: 0;
  padding: 0;
  background-color: #f9f9f9;
  display: none;
  overflow: hidden;
  transition: all 0.3s ease;
}

.parent-category-item.active .subcategories-list {
  display: block;
}

.subcategory-item {
  border-top: 1px solid #eee;
}

.subcategory-item a {
  display: block;
  padding: 12px 20px 12px 40px;
  color: #7e7e7c;
  font-size: 14px;
  transition: all 0.3s;
  position: relative;
}

.subcategory-item a::before {
  content: "→";
  position: absolute;
  left: 20px;
  opacity: 0;
  transition: opacity 0.3s;
}

.subcategory-item a:hover,
.subcategory-item.current a {
  color: #ba0001;
  padding-left: 45px;
}

.subcategory-item a:hover::before,
.subcategory-item.current a::before {
  opacity: 1;
}

.subcategory-item .count {
  font-size: 11px;
  opacity: 0.7;
}

.woocommerce-content {
  flex: 1;
  min-width: 0;
}

/* Responsive */
@media (max-width: 1024px) {
  .woocommerce-layout {
    flex-direction: column;
  }

  .woocommerce-sidebar {
    width: 100%;
    flex: none;
    margin-bottom: 20px;
    border: none;
    padding: 0;
  }

  /* Show toggle button on tablets and mobile */
  .mobile-category-toggle {
    display: flex !important;
  }

  /* Collapsible menu for tablets and mobile */
  .sidebar-category-menu {
    max-height: 0 !important;
    overflow: hidden !important;
    transition: max-height 0.3s ease-out;
    border: 2px solid #ba0001;
    border-top: none;
    border-radius: 0 0 4px 4px;
    opacity: 0;
    visibility: hidden;
    display: block;
    background-color: #fff;
  }

  .sidebar-category-menu.active {
    max-height: 2000px !important;
    transition: max-height 0.5s ease-in;
    opacity: 1;
    visibility: visible;
  }

  /* Hide subcategories when sidebar is collapsed */
  .sidebar-category-menu:not(.active) .subcategories-list {
    display: none !important;
  }

  /* Ensure parent categories are clickable on tablets */
  .parent-category-item.has-children > a {
    cursor: pointer;
  }

  /* Show subcategories when parent is active and menu is expanded */
  .sidebar-category-menu.active
    .parent-category-item.active
    .subcategories-list {
    display: block !important;
  }

  .product-categories-sidebar-list {
    padding: 10px 0;
  }

  /* Homepage vertical menu list padding to match sidebar */
  .vertical-categories-menu.menu-expanded .vertical-menu-list {
    padding: 10px 0;
  }
}

@media (max-width: 768px) {
  .parent-category-item > a {
    padding: 12px 20px;
    font-size: 14px;
  }

  .parent-category-item > a:hover,
  .parent-category-item > a.current {
    padding-left: 25px;
  }

  .subcategory-item a {
    padding: 10px 20px 10px 40px;
    font-size: 13px;
  }
}

/* ==========================================================================
   WooCommerce Product Hover Effects
   ========================================================================== */

.woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 20px !important;
  list-style: none !important;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
  display: none !important;
}

.woocommerce ul.products li.product {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 15px;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  overflow: hidden;
  display: flex !important;
  flex-direction: column;
  width: 100% !important;
  margin: 0 !important;
  float: none !important;
  clear: none !important;
}

.woocommerce ul.products li.product a {
  display: flex;
  flex-direction: column;
  height: 100%;
  flex: 1;
}

.woocommerce ul.products li.product:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  z-index: 10;
  border-color: #ba0001;
}

.woocommerce ul.products li.product img,
.woocommerce ul.products li.product .attachment-woocommerce_thumbnail {
  width: 100% !important;
  height: 250px !important;
  max-height: 250px !important;
  object-fit: contain !important;
  display: block !important;
  border-radius: 4px;
  flex-shrink: 0 !important;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product h2 {
  min-height: 3em !important;
  max-height: 3.5em !important;
  margin: 10px 0;
  font-size: 16px;
  line-height: 1.5;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: #424242;
}

.woocommerce ul.products li.product .product-brand,
.woocommerce ul.products li.product .brand {
  font-size: 13px;
  color: #7e7e7c;
  margin: 0 0 10px 0;
  height: 20px;
  line-height: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

.woocommerce ul.products li.product .price {
  margin-top: auto;
  margin-bottom: 10px;
  font-size: 18px;
  font-weight: bold;
  height: 30px !important;
  display: flex;
  align-items: center;
  color: #ba0001;
}

/* Consolidated Add to Cart button styles for all product listings */
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .add_to_cart_button,
.homepage-most-bought .products li.product .button,
.homepage-most-bought .products li.product .add_to_cart_button {
  margin-top: 0;
  width: 100% !important;
  text-align: center;
  padding: 10px 15px !important;
  font-size: 14px !important;
  line-height: 1.4 !important;
  height: 40px !important;
  min-height: 40px !important;
  max-height: 40px !important;
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  background-color: #ba0001 !important;
  color: #fff !important;
  border: none !important;
  transition: background-color 0.3s !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.woocommerce ul.products li.product .button:hover,
.woocommerce ul.products li.product .add_to_cart_button:hover,
.homepage-most-bought .products li.product .button:hover,
.homepage-most-bought .products li.product .add_to_cart_button:hover {
  background-color: #d63031 !important;
}

/* Button gets lighter when hovering on container */
.woocommerce ul.products li.product:hover .button,
.woocommerce ul.products li.product:hover .add_to_cart_button,
.homepage-most-bought .products li.product:hover .button,
.homepage-most-bought .products li.product:hover .add_to_cart_button {
  background-color: #ba0001 !important;
}

/* Button gets lighter when hovering directly on it */
.woocommerce ul.products li.product:hover .button:hover,
.woocommerce ul.products li.product:hover .add_to_cart_button:hover,
.homepage-most-bought .products li.product:hover .button:hover,
.homepage-most-bought .products li.product:hover .add_to_cart_button:hover {
  background-color: #d63031 !important;
}

/* Hide "View cart" button in product catalogue and single product page */
.woocommerce ul.products li.product .added_to_cart,
.woocommerce div.product .added_to_cart,
.homepage-most-bought .products li.product .added_to_cart {
  display: none !important;
}

/* Homepage Brand Showcase */
.homepage-brands {
  padding: 40px 0;
  background-color: #f9f9f9;
  border-bottom: 1px solid #eee;
}

.homepage-brands .section-title {
  font-size: 28px;
  font-weight: 700;
  color: #000000;
  margin-bottom: 30px;
  text-align: left;
}

.brands-slider-wrapper {
  position: relative;
  padding: 0 50px;
}

.brands-slider {
  overflow: hidden;
  width: 100%;
}

.brands-track {
  display: flex;
  gap: 20px;
  transition: transform 0.4s ease;
  padding-top: 5px;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  touch-action: pan-y;
  cursor: grab;
}

.brands-track:active {
  cursor: grabbing;
}

.brand-item {
  flex: 0 0 auto;
  width: 180px;
}

.brand-item a {
  display: block;
  text-decoration: none;
}

.brand-logo {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 20px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.brand-logo:hover {
  border-color: #ba0001;
  box-shadow: 0 4px 12px rgba(186, 0, 1, 0.1);
  transform: translateY(-3px);
}

.brand-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.brand-name-placeholder {
  font-size: 16px;
  font-weight: 600;
  color: #424242;
  text-align: center;
  padding: 10px;
}

.brands-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  border: 1px solid #eee;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  outline: none;
}

.brands-nav:hover {
  background: #ba0001;
  border-color: #ba0001;
  color: #fff;
}

.brands-nav:hover svg {
  color: #fff;
}

.brands-nav svg {
  width: 20px;
  height: 20px;
  color: #424242;
}

.brands-nav-prev {
  left: 0;
}

.brands-nav-next {
  right: 0;
}

.brands-nav:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

/* Responsive Brand Slider */
@media (max-width: 768px) {
  .brands-slider-wrapper {
    padding: 0;
  }

  .brands-nav {
    display: none;
  }

  /* Disable slider, show as grid on mobile */
  .brands-slider {
    overflow: visible;
  }

  .brands-track {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    transform: none !important;
    transition: none;
    cursor: default;
    touch-action: auto;
  }

  .brands-track:active {
    cursor: default;
  }

  .brand-item {
    width: 100%;
  }

  .brand-logo {
    height: 120px;
    padding: 18px;
  }
}

/* Responsive adjustments for brands */
@media (max-width: 1024px) {
  .brand-item {
    width: 180px;
  }

  .brand-logo {
    height: 120px;
    padding: 18px;
  }
}

@media (max-width: 768px) {
  .brands-slider-wrapper {
    padding: 0 40px;
  }

  .brand-item {
    width: 150px;
  }

  .brand-logo {
    height: 100px;
    padding: 15px;
  }

  .brands-nav {
    width: 35px;
    height: 35px;
  }

  .brands-nav svg {
    width: 18px;
    height: 18px;
  }
}

@media (max-width: 480px) {
  .brands-slider-wrapper {
    padding: 0 35px;
  }

  .brand-item {
    width: 130px;
  }

  .brands-track {
    gap: 15px;
  }

  /* Extra small mobile cart dropdown adjustments */
  .cart-dropdown {
    position: fixed;
    width: 100vw;
    max-width: 100vw;
    right: auto;
    left: 0;
    top: 60px;
    max-height: 65vh;
    border-radius: 0;
  }

  .cart-dropdown-items {
    max-height: 35vh;
  }

  .cart-dropdown .cart-actions {
    flex-direction: column;
    gap: 8px;
  }

  .cart-dropdown .cart-actions .button,
  .header-cart .cart-dropdown .cart-actions a.button {
    width: 100%;
  }
}

/* Homepage Product Categories Grid */
.homepage-categories {
  padding: 40px 0;
  background-color: #f9f9f9;
}

.homepage-categories .section-title {
  font-size: 28px;
  font-weight: 700;
  color: #000000;
  margin-bottom: 30px;
  text-align: left;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.category-item {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 15px;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.category-item:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  z-index: 10;
  border-color: #ba0001;
}

.category-item a {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
}

.category-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
  border-radius: 4px;
  margin-bottom: 10px;
}

.category-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.category-title {
  min-height: 3em;
  max-height: 3.5em;
  margin: 10px 0;
  font-size: 16px;
  line-height: 1.5;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: #424242;
  font-weight: 700;
}

.category-description {
  font-size: 13px;
  color: #7e7e7c;
  margin: 0 0 10px 0;
  line-height: 1.4;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.category-count {
  margin-top: auto;
  padding: 10px 15px;
  font-size: 14px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #424242;
  color: #fff;
  border-radius: 4px;
  transition: background-color 0.3s;
  font-weight: 500;
}

.category-item:hover .category-count {
  background-color: #ba0001;
}

/* Responsive columns for categories grid */
@media (max-width: 1024px) {
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
}

@media (max-width: 768px) {
  .categories-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .category-image {
    height: 200px;
  }
}

/* Homepage Most Bought Products Section */
.homepage-most-bought {
  padding: 40px 0;
  background-color: #f9f9f9;
}

.homepage-most-bought .section-title {
  font-size: 28px;
  font-weight: 700;
  color: #000000;
  margin-bottom: 30px;
  text-align: left;
}

.homepage-most-bought .products {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 20px !important;
  list-style: none !important;
}

.homepage-most-bought .products::before,
.homepage-most-bought .products::after {
  display: none !important;
}

.homepage-most-bought .products li.product {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 15px;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  overflow: hidden;
  display: flex !important;
  flex-direction: column;
  width: 100% !important;
  margin: 0 !important;
  float: none !important;
  clear: none !important;
}

.homepage-most-bought .products li.product a {
  display: flex;
  flex-direction: column;
  height: 100%;
  flex: 1;
}

.homepage-most-bought .products li.product:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  z-index: 10;
  border-color: #ba0001;
}

.homepage-most-bought .products li.product img,
.homepage-most-bought .products li.product .attachment-woocommerce_thumbnail {
  width: 100% !important;
  height: 250px !important;
  max-height: 250px !important;
  object-fit: contain !important;
  display: block !important;
  border-radius: 4px;
  flex-shrink: 0 !important;
}

.homepage-most-bought .products li.product .woocommerce-loop-product__title,
.homepage-most-bought .products li.product h2 {
  min-height: 3em !important;
  max-height: 3.5em !important;
  margin: 10px 0;
  font-size: 16px;
  line-height: 1.5;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: #424242;
}

.homepage-most-bought .products li.product .product-brand,
.homepage-most-bought .products li.product .brand {
  font-size: 13px;
  color: #7e7e7c;
  margin: 0 0 10px 0;
  height: 20px;
  line-height: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

.homepage-most-bought .products li.product .price {
  margin-top: auto;
  margin-bottom: 10px;
  font-size: 18px;
  font-weight: bold;
  height: 30px !important;
  display: flex;
  align-items: center;
  color: #ba0001;
}

/* Homepage most bought button styles consolidated above with .woocommerce ul.products */

/* Single Product Page Styling */
.woocommerce div.product {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: flex-start;
}

.woocommerce div.product div.images,
.woocommerce div.product .woocommerce-product-gallery {
  max-width: 48%;
  flex: 0 0 48%;
}

/* Product Gallery Styles */
.woocommerce div.product .woocommerce-product-gallery {
  position: relative;
  margin-bottom: 30px;
}

.woocommerce
  div.product
  .woocommerce-product-gallery
  .woocommerce-product-gallery__wrapper {
  margin: 0;
  padding: 0;
  transition: opacity 0.2s ease-in;
}

.woocommerce
  div.product
  .woocommerce-product-gallery
  .woocommerce-product-gallery__wrapper
  .woocommerce-product-gallery__image:nth-child(n + 2) {
  width: 25%;
  display: inline-block;
  padding: 0;
}

.woocommerce div.product .woocommerce-product-gallery__image {
  width: 100%;
  margin: 0 0 15px 0;
  position: relative;
  display: block;
}

.woocommerce div.product .woocommerce-product-gallery__image:first-child {
  width: 100%;
  margin-bottom: 20px;
}

.woocommerce div.product .woocommerce-product-gallery__image a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 500px;
}

.woocommerce div.product .woocommerce-product-gallery__image img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid #eee;
  background: #fff;
  padding: 10px;
  margin: 0 auto;
}

/* Gallery Thumbnails */
.woocommerce div.product .flex-control-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.woocommerce div.product .flex-control-thumbs li {
  flex: 0 0 calc(25% - 7.5px);
  max-width: calc(25% - 7.5px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.woocommerce div.product .flex-control-thumbs li img {
  width: 100%;
  height: 100px;
  display: block;
  border-radius: 6px;
  border: 2px solid #eee;
  cursor: pointer;
  transition: all 0.3s ease;
  background: #fff;
  padding: 8px;
  object-fit: contain;
}

.woocommerce div.product .flex-control-thumbs li img:hover,
.woocommerce div.product .flex-control-thumbs li img.flex-active {
  border-color: #ba0001;
  box-shadow: 0 2px 8px rgba(186, 0, 1, 0.2);
}

.woocommerce div.product .flex-control-thumbs li img.flex-active {
  opacity: 1;
}

/* Gallery Zoom & Lightbox Icons */
.woocommerce div.product .woocommerce-product-gallery__trigger {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 10;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid #eee;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.woocommerce div.product .woocommerce-product-gallery__trigger:hover {
  background: #ba0001;
  transform: scale(1.1);
}

.woocommerce div.product .woocommerce-product-gallery__trigger:hover::before {
  color: #fff;
}

.woocommerce div.product .woocommerce-product-gallery__trigger::before {
  content: "🔍";
  font-size: 18px;
}

/* Flexslider Gallery Controls */
.woocommerce div.product .flex-viewport {
  max-height: 100% !important;
  transition: none;
}

.woocommerce div.product .woocommerce-product-gallery .flex-control-nav {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.woocommerce
  div.product
  .woocommerce-product-gallery--columns-4
  .flex-control-thumbs
  li {
  width: calc(25% - 7.5px);
}

.woocommerce
  div.product
  .woocommerce-product-gallery--columns-3
  .flex-control-thumbs
  li {
  width: calc(33.333% - 6.67px);
}

.woocommerce div.product .woocommerce-product-gallery__image--placeholder {
  border: 1px solid #eee;
  border-radius: 8px;
}

/* Remove any potential float issues */
.woocommerce div.product .woocommerce-product-gallery::after {
  content: "";
  display: table;
  clear: both;
}

.woocommerce div.product .summary {
  flex: 1;
  min-width: 0;
}

.woocommerce div.product .woocommerce-tabs,
.woocommerce div.product .related.products {
  flex: 0 0 100%;
  width: 100%;
}

/* Product Tabs Styling */
.woocommerce div.product .woocommerce-tabs {
  margin-top: 50px;
  clear: both;
}

.woocommerce div.product .woocommerce-tabs .tabs {
  display: none !important;
}

.woocommerce div.product .woocommerce-tabs .tabs li {
  margin: 0;
  padding: 0;
  list-style: none;
  position: relative;
}

.woocommerce div.product .woocommerce-tabs .tabs li a {
  display: block;
  padding: 15px 25px;
  background: #f5f5f5;
  color: #424242;
  text-decoration: none;
  font-weight: 600;
  border-radius: 8px 8px 0 0;
  transition: all 0.3s ease;
  border: none;
  position: relative;
  bottom: -2px;
}

.woocommerce div.product .woocommerce-tabs .tabs li a:hover {
  background: #fff;
  color: #ba0001;
}

.woocommerce div.product .woocommerce-tabs .tabs li.active a {
  background: #fff;
  color: #ba0001;
  z-index: 2;
}

.woocommerce div.product .woocommerce-tabs .panel {
  margin: 0;
  padding: 30px;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #eee;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.woocommerce div.product .woocommerce-tabs .panel h2 {
  margin-top: 0;
  margin-bottom: 20px;
  font-size: 22px;
  color: #000;
  font-weight: 700;
  padding-bottom: 15px;
  border-bottom: 2px solid #ba0001;
}

.woocommerce div.product .woocommerce-tabs .panel p {
  margin-bottom: 15px;
  line-height: 1.8;
  color: #424242;
  font-size: 15px;
}

.woocommerce div.product .woocommerce-tabs .panel p:last-child {
  margin-bottom: 0;
}

.woocommerce div.product .woocommerce-tabs .panel h1,
.woocommerce div.product .woocommerce-tabs .panel h2,
.woocommerce div.product .woocommerce-tabs .panel h3,
.woocommerce div.product .woocommerce-tabs .panel h4,
.woocommerce div.product .woocommerce-tabs .panel h5,
.woocommerce div.product .woocommerce-tabs .panel h6 {
  margin-top: 25px;
  margin-bottom: 15px;
  font-weight: 700;
  color: #000;
  line-height: 1.4;
}

.woocommerce div.product .woocommerce-tabs .panel h3 {
  font-size: 20px;
}

.woocommerce div.product .woocommerce-tabs .panel h4 {
  font-size: 18px;
}

.woocommerce div.product .woocommerce-tabs .panel strong,
.woocommerce div.product .woocommerce-tabs .panel b {
  font-weight: 700;
  color: #000;
}

.woocommerce div.product .woocommerce-tabs .panel em,
.woocommerce div.product .woocommerce-tabs .panel i {
  font-style: italic;
}

.woocommerce div.product .woocommerce-tabs .panel a {
  color: #ba0001;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.woocommerce div.product .woocommerce-tabs .panel a:hover {
  color: #9a0001;
}

.woocommerce div.product .woocommerce-tabs .panel ul,
.woocommerce div.product .woocommerce-tabs .panel ol {
  margin: 0 0 20px 20px;
  padding: 0;
  line-height: 1.8;
}

.woocommerce div.product .woocommerce-tabs .panel ul li,
.woocommerce div.product .woocommerce-tabs .panel ol li {
  margin-bottom: 10px;
  color: #424242;
  font-size: 15px;
}

.woocommerce div.product .woocommerce-tabs .panel table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

.woocommerce div.product .woocommerce-tabs .panel table th,
.woocommerce div.product .woocommerce-tabs .panel table td {
  padding: 12px 15px;
  text-align: left;
  border: 1px solid #eee;
}

.woocommerce div.product .woocommerce-tabs .panel table th {
  background: #f9f9f9;
  font-weight: 600;
  color: #000;
}

.woocommerce div.product .woocommerce-tabs .panel table tbody tr:hover {
  background: #fafafa;
}

/* Description/Additional Info specific styles */
.woocommerce div.product .woocommerce-Tabs-panel--description,
.woocommerce div.product .woocommerce-Tabs-panel--additional_information {
  display: none;
}

.woocommerce div.product .woocommerce-Tabs-panel.active,
.woocommerce div.product .woocommerce-Tabs-panel--description.active,
.woocommerce
  div.product
  .woocommerce-Tabs-panel--additional_information.active {
  display: block;
}

/* Reviews Tab */
.woocommerce div.product .woocommerce-tabs #reviews #comments {
  margin-bottom: 30px;
}

.woocommerce div.product .woocommerce-tabs #reviews #comments ol.commentlist {
  list-style: none;
  margin: 0;
  padding: 0;
}

.woocommerce
  div.product
  .woocommerce-tabs
  #reviews
  #comments
  ol.commentlist
  li {
  list-style: none;
  margin: 0 0 20px 0;
  padding: 20px;
  background: #f9f9f9;
  border-radius: 8px;
  border: 1px solid #eee;
}

.woocommerce
  div.product
  .woocommerce-tabs
  #reviews
  #comments
  ol.commentlist
  li
  .comment-text {
  margin: 0;
}

.woocommerce
  div.product
  .woocommerce-tabs
  #reviews
  #comments
  ol.commentlist
  li
  .meta {
  margin-bottom: 10px;
  font-weight: 600;
}

.woocommerce
  div.product
  .woocommerce-tabs
  #reviews
  #comments
  ol.commentlist
  li
  .description
  p {
  margin-bottom: 10px;
}

.woocommerce div.product .product_meta .sku_wrapper {
  display: none;
}

.woocommerce div.product .product_meta {
  display: none !important;
}

.woocommerce div.product .product-brand-icon {
  margin: 0 0 10px 0 !important;
  padding: 7px;
  background: #fff;
  border-radius: 8px;
  display: inline-block;
  max-width: 98px;
}

.woocommerce #content div.product .product-brand-icon,
.woocommerce-page #content div.product .product-brand-icon,
.woocommerce .summary .product-brand-icon {
  margin-left: 0 !important;
  padding-left: 0 !important;
}

.woocommerce div.product .product-brand-icon img {
  max-width: 100%;
  height: auto;
  max-height: 39px;
  object-fit: contain;
  display: block;
}

.woocommerce div.product .product-brand-icon.brand-name-fallback {
  padding: 6px 11px;
}

.woocommerce div.product .product-brand-icon .brand-name {
  font-size: 13px;
  font-weight: 600;
  color: #424242;
}

/* Brand icon below title, no left margin */
.woocommerce div.product .summary .product_title {
  display: block;
  margin-bottom: 10px !important;
}

.woocommerce div.product .product-brand-icon {
  display: block !important;
  margin-top: 10px !important;
}

.woocommerce div.product .price,
.woocommerce div.product p.price {
  color: #ba0001;
  font-size: 29px;
  font-weight: bold;
  margin-bottom: 5px;
}

/* Hide default stock display (but not our custom product-stock-info) */
.woocommerce div.product .product_meta .stock,
.woocommerce div.product .summary > p.stock,
.woocommerce div.product .summary .stock:not(.product-stock-info .stock),
.woocommerce
  div.product
  .woocommerce-product-details__short-description
  + p.stock,
.woocommerce div.product div.product > p.stock,
.woocommerce div.product > p.stock,
.woocommerce div.product .price + p.stock,
p.stock:not(.product-stock-info .stock) {
  display: none !important;
}

/* Show stock info in our custom wrapper */
.woocommerce div.product .product-stock-info {
  display: block !important;
}

.woocommerce div.product .product-stock-info .stock {
  display: inline-block !important;
}

.woocommerce div.product form.cart .button,
.woocommerce div.product form.cart button.button,
.woocommerce div.product .single_add_to_cart_button {
  background-color: #ba0001 !important;
  color: #fff !important;
  border: none !important;
  padding: 15px 30px !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  border-radius: 4px !important;
  transition: background-color 0.3s !important;
  cursor: pointer !important;
}

.woocommerce div.product form.cart .button:hover,
.woocommerce div.product form.cart button.button:hover,
.woocommerce div.product .single_add_to_cart_button:hover {
  background-color: #d63031 !important;
}

.woocommerce div.product form.cart {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.woocommerce div.product form.cart .quantity {
  margin-right: 0;
  margin-bottom: 0;
}

.woocommerce div.product form.cart .quantity input.qty {
  padding: 10px;
  border: 1px solid #eee;
  border-radius: 4px;
  width: 80px;
  text-align: center;
}

.woocommerce div.product .product-stock-info {
  margin-top: 0;
  margin-bottom: 0;
  font-size: 14px;
}

.woocommerce div.product .product-stock-info .stock {
  margin: 0;
  padding: 8px 12px;
  display: inline-block;
  border-radius: 4px;
  font-weight: 600;
}

.woocommerce div.product .product-stock-info .stock.in-stock {
  color: #28a745;
  background-color: rgba(40, 167, 69, 0.1);
}

.woocommerce div.product .product-stock-info .stock.out-of-stock {
  color: #dc3545;
  background-color: rgba(220, 53, 69, 0.1);
}

.woocommerce div.product .product-stock-info .stock.available-on-backorder {
  color: #ffc107;
  background-color: rgba(255, 193, 7, 0.1);
}

/* Delivery Information Section */
.woocommerce div.product .product-delivery-info {
  margin-top: 30px;
  padding: 20px;
  background: #f9f9f9;
  border-radius: 8px;
  border: 1px solid #eee;
}

.woocommerce div.product .delivery-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 600;
  color: #424242;
  margin: 0 0 15px 0;
}

.woocommerce div.product .delivery-title svg {
  color: #ba0001;
}

.woocommerce div.product .delivery-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.woocommerce div.product .delivery-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #fff;
  border-radius: 6px;
  border: 1px solid #e0e0e0;
  transition: all 0.3s ease;
}

.woocommerce div.product .delivery-option:hover {
  border-color: #ba0001;
  box-shadow: 0 2px 8px rgba(186, 0, 1, 0.1);
}

.woocommerce div.product .delivery-option.delivery-fast {
  border-color: #28a745;
  background: rgba(40, 167, 69, 0.05);
}

.woocommerce div.product .delivery-option.delivery-fast:hover {
  border-color: #28a745;
  box-shadow: 0 2px 8px rgba(40, 167, 69, 0.2);
}

.woocommerce div.product .delivery-option svg {
  flex-shrink: 0;
  color: #7e7e7c;
}

.woocommerce div.product .delivery-option .delivery-logo {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.woocommerce div.product .delivery-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.woocommerce div.product .delivery-details strong {
  font-size: 15px;
  color: #424242;
  font-weight: 600;
}

.woocommerce div.product .delivery-details span {
  font-size: 13px;
  color: #7e7e7c;
}

.woocommerce div.product .delivery-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 15px;
  padding: 12px;
  background: rgba(255, 193, 7, 0.1);
  border-radius: 6px;
  border: 1px solid rgba(255, 193, 7, 0.3);
}

.woocommerce div.product .delivery-notice svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.woocommerce div.product .delivery-notice span {
  font-size: 13px;
  color: #7e7e7c;
  line-height: 1.5;
}

.woocommerce div.product .delivery-notice-order {
  margin-top: 0;
  background: rgba(255, 152, 0, 0.1);
  border: 1px solid rgba(255, 152, 0, 0.3);
}

.woocommerce div.product .delivery-notice-order div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.woocommerce div.product .delivery-notice-order strong {
  font-size: 15px;
  color: #ff9800;
  font-weight: 600;
}

.woocommerce div.product .delivery-notice-order span {
  font-size: 13px;
  color: #7e7e7c;
}

/* Responsive Delivery Info */
@media (max-width: 768px) {
  .woocommerce div.product .product-delivery-info {
    padding: 15px;
  }

  .woocommerce div.product .delivery-option {
    padding: 10px;
  }
}

/* Responsive columns for most bought products */
@media (max-width: 1024px) {
  .homepage-most-bought .products {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 15px !important;
  }
}

@media (max-width: 768px) {
  .homepage-most-bought .products {
    grid-template-columns: 1fr !important;
    gap: 15px !important;
  }
}

/* Responsive columns for product catalogue */
@media (max-width: 1024px) {
  .woocommerce ul.products {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 15px !important;
  }
}

@media (max-width: 768px) {
  .woocommerce ul.products {
    grid-template-columns: 1fr !important;
    gap: 15px !important;
  }

  .woocommerce ul.products li.product img {
    height: 200px;
  }

  /* Single Product Page - Stack on Mobile */
  .woocommerce div.product {
    flex-direction: column;
  }

  .woocommerce div.product div.images,
  .woocommerce div.product .woocommerce-product-gallery {
    max-width: 100%;
    flex: 0 0 100%;
  }

  .woocommerce div.product .summary {
    flex: 0 0 100%;
  }

  /* Mobile Product Gallery Adjustments */
  .woocommerce div.product .woocommerce-product-gallery__image a {
    height: 350px;
  }

  .woocommerce div.product .flex-control-thumbs li {
    flex: 0 0 calc(25% - 7.5px);
    max-width: calc(25% - 7.5px);
  }

  .woocommerce div.product .flex-control-thumbs li img {
    height: 80px;
  }

  /* Product Tabs Mobile */
  .woocommerce div.product .woocommerce-tabs .tabs {
    flex-direction: column;
    border-bottom: none;
  }

  .woocommerce div.product .woocommerce-tabs .tabs li {
    width: 100%;
  }

  .woocommerce div.product .woocommerce-tabs .tabs li a {
    border-radius: 8px;
    border: none;
    margin-bottom: 5px;
  }

  .woocommerce div.product .woocommerce-tabs .tabs li.active a {
    border: none;
  }

  .woocommerce div.product .woocommerce-tabs .panel {
    padding: 20px 15px;
  }
}

/* Related Products Positioning */
.woocommerce div.product .related.products {
  clear: both;
  width: 100%;
  margin-top: 50px;
  display: block;
}

.woocommerce div.product .related.products > h2 {
  width: 100%;
  clear: both;
  display: block;
}

/* ==========================================================================
   Cart and Checkout Pages - Standardized Styling
   ========================================================================== */

/* Cart Page */
.woocommerce-cart .woocommerce {
  margin: 30px 0;
}

.woocommerce table.shop_table,
.woocommerce-page table.shop_table {
  border: 1px solid #eee !important;
  border-radius: 8px !important;
  width: 100% !important;
  margin-bottom: 30px !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  background: #fff !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
  overflow: hidden !important;
}

.woocommerce table.shop_table thead,
.woocommerce-page table.shop_table thead {
  background: linear-gradient(to bottom, #f9f9f9, #f5f5f5) !important;
  border-bottom: 2px solid #eee !important;
}

.woocommerce table.shop_table thead th,
.woocommerce-page table.shop_table thead th {
  padding: 18px 20px !important;
  font-weight: 700 !important;
  text-align: left !important;
  color: #000 !important;
  border: none !important;
  font-size: 15px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
}

.woocommerce table.shop_table tbody tr,
.woocommerce-page table.shop_table tbody tr {
  border-bottom: 1px solid #f5f5f5 !important;
  transition: background-color 0.2s ease;
}

.woocommerce table.shop_table tbody tr:hover,
.woocommerce-page table.shop_table tbody tr:hover {
  background-color: #fafafa !important;
}

.woocommerce table.shop_table tbody tr:last-child,
.woocommerce-page table.shop_table tbody tr:last-child {
  border-bottom: none !important;
}

.woocommerce table.shop_table td,
.woocommerce-page table.shop_table td {
  padding: 25px 20px !important;
  vertical-align: middle !important;
  border: none !important;
}

.woocommerce table.shop_table td.product-thumbnail img,
.woocommerce-page table.shop_table td.product-thumbnail img {
  width: 100px !important;
  height: 100px !important;
  object-fit: contain !important;
  border-radius: 8px !important;
  border: 1px solid #eee !important;
  padding: 8px !important;
  background: #fff !important;
  transition: transform 0.2s ease;
}

.woocommerce table.shop_table td.product-thumbnail img:hover,
.woocommerce-page table.shop_table td.product-thumbnail img:hover {
  transform: scale(1.05);
}

.woocommerce table.shop_table td.product-name a,
.woocommerce-page table.shop_table td.product-name a {
  color: #424242 !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  font-size: 15px !important;
  transition: color 0.2s ease;
}

.woocommerce table.shop_table td.product-name a:hover,
.woocommerce-page table.shop_table td.product-name a:hover {
  color: #ba0001 !important;
}

.woocommerce table.shop_table td.product-price,
.woocommerce table.shop_table td.product-subtotal,
.woocommerce-page table.shop_table td.product-price,
.woocommerce-page table.shop_table td.product-subtotal {
  font-weight: 700 !important;
  color: #ba0001 !important;
  font-size: 16px !important;
}

.woocommerce table.shop_table td.product-quantity .quantity {
  display: inline-block;
}

.woocommerce table.shop_table td.product-quantity .quantity input.qty,
.woocommerce-page table.shop_table td.product-quantity .quantity input.qty {
  width: 70px !important;
  padding: 10px !important;
  text-align: center !important;
  border: 2px solid #eee !important;
  border-radius: 6px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  transition: border-color 0.2s ease;
}

.woocommerce table.shop_table td.product-quantity .quantity input.qty:focus,
.woocommerce-page
  table.shop_table
  td.product-quantity
  .quantity
  input.qty:focus {
  outline: none !important;
  border-color: #ba0001 !important;
}

.woocommerce table.shop_table td.product-remove a,
.woocommerce-page table.shop_table td.product-remove a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  background-color: #f5f5f5 !important;
  color: #424242 !important;
  font-weight: bold !important;
  text-decoration: none !important;
  font-size: 20px !important;
  transition: all 0.3s ease;
  border: 1px solid #eee !important;
}

.woocommerce table.shop_table td.product-remove a:hover,
.woocommerce-page table.shop_table td.product-remove a:hover {
  background-color: #ba0001 !important;
  color: #fff !important;
  border-color: #ba0001 !important;
  transform: rotate(90deg);
}

/* Cart Actions */
.woocommerce-cart .woocommerce-cart-form .actions,
.woocommerce-page.woocommerce-cart .woocommerce-cart-form .actions {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 25px 20px !important;
  background: #f9f9f9 !important;
  border-radius: 0 0 8px 8px !important;
  margin-top: 0 !important;
  flex-wrap: wrap;
  gap: 15px;
}

.woocommerce-cart .woocommerce-cart-form .actions .coupon,
.woocommerce-page.woocommerce-cart .woocommerce-cart-form .actions .coupon {
  display: flex !important;
  gap: 10px;
  align-items: center;
}

.woocommerce-cart .woocommerce-cart-form .actions input.input-text,
.woocommerce-page.woocommerce-cart
  .woocommerce-cart-form
  .actions
  input.input-text {
  padding: 12px 18px !important;
  border: 2px solid #eee !important;
  border-radius: 6px !important;
  font-size: 14px !important;
  width: 220px !important;
  transition: border-color 0.2s ease;
}

.woocommerce-cart .woocommerce-cart-form .actions input.input-text:focus,
.woocommerce-page.woocommerce-cart
  .woocommerce-cart-form
  .actions
  input.input-text:focus {
  outline: none !important;
  border-color: #ba0001 !important;
}

.woocommerce-cart .woocommerce-cart-form .actions .button,
.woocommerce-page.woocommerce-cart .woocommerce-cart-form .actions .button {
  padding: 12px 28px !important;
  background-color: #424242 !important;
  color: #fff !important;
  border: none !important;
  border-radius: 6px !important;
  font-weight: 600 !important;
  cursor: pointer;
  text-transform: uppercase !important;
  font-size: 13px !important;
  letter-spacing: 0.5px !important;
  transition: all 0.3s ease;
}

.woocommerce-cart .woocommerce-cart-form .actions .button:hover,
.woocommerce-page.woocommerce-cart
  .woocommerce-cart-form
  .actions
  .button:hover {
  background-color: #000 !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.woocommerce-cart .woocommerce-cart-form .actions button[name="update_cart"],
.woocommerce-page.woocommerce-cart
  .woocommerce-cart-form
  .actions
  button[name="update_cart"] {
  background-color: #f5f5f5 !important;
  color: #424242 !important;
  border: 2px solid #eee !important;
}

.woocommerce-cart
  .woocommerce-cart-form
  .actions
  button[name="update_cart"]:hover,
.woocommerce-page.woocommerce-cart
  .woocommerce-cart-form
  .actions
  button[name="update_cart"]:hover {
  background-color: #fff !important;
  border-color: #424242 !important;
}

/* Cart Totals */
.cart-collaterals,
.woocommerce-cart .cart-collaterals,
.woocommerce-page.woocommerce-cart .cart-collaterals {
  margin-top: 40px;
}

.cart-collaterals .cart_totals,
.woocommerce-cart .cart-collaterals .cart_totals,
.woocommerce-page.woocommerce-cart .cart-collaterals .cart_totals {
  float: right;
  width: 100%;
  max-width: 480px;
}

.cart_totals h2,
.woocommerce-cart .cart_totals h2,
.woocommerce-page.woocommerce-cart .cart_totals h2 {
  font-size: 24px !important;
  margin-bottom: 25px !important;
  color: #000 !important;
  font-weight: 700 !important;
  letter-spacing: -0.5px !important;
}

.cart_totals table.shop_table,
.woocommerce-cart .cart_totals table.shop_table,
.woocommerce-page.woocommerce-cart .cart_totals table.shop_table {
  background-color: #fff !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

.cart_totals table.shop_table th,
.cart_totals table.shop_table td,
.woocommerce-cart .cart_totals table.shop_table th,
.woocommerce-cart .cart_totals table.shop_table td,
.woocommerce-page.woocommerce-cart .cart_totals table.shop_table th,
.woocommerce-page.woocommerce-cart .cart_totals table.shop_table td {
  padding: 18px 25px !important;
  border-bottom: 1px solid #f5f5f5 !important;
}

.cart_totals table.shop_table th,
.woocommerce-cart .cart_totals table.shop_table th,
.woocommerce-page.woocommerce-cart .cart_totals table.shop_table th {
  font-weight: 600 !important;
  text-align: left !important;
  width: 50%;
  color: #424242 !important;
  font-size: 15px !important;
}

.cart_totals table.shop_table td,
.woocommerce-cart .cart_totals table.shop_table td,
.woocommerce-page.woocommerce-cart .cart_totals table.shop_table td {
  text-align: right !important;
  font-weight: 600 !important;
  color: #424242 !important;
  font-size: 15px !important;
}

.cart_totals table.shop_table tr.order-total,
.woocommerce-cart .cart_totals table.shop_table tr.order-total,
.woocommerce-page.woocommerce-cart
  .cart_totals
  table.shop_table
  tr.order-total {
  background-color: #f9f9f9 !important;
}

.cart_totals table.shop_table tr.order-total th,
.woocommerce-cart .cart_totals table.shop_table tr.order-total th,
.woocommerce-page.woocommerce-cart
  .cart_totals
  table.shop_table
  tr.order-total
  th {
  font-size: 18px !important;
  color: #000 !important;
  font-weight: 700 !important;
}

.cart_totals table.shop_table tr.order-total td,
.woocommerce-cart .cart_totals table.shop_table tr.order-total td,
.woocommerce-page.woocommerce-cart
  .cart_totals
  table.shop_table
  tr.order-total
  td {
  font-size: 22px !important;
  font-weight: 700 !important;
  color: #ba0001 !important;
}

.cart_totals .wc-proceed-to-checkout,
.woocommerce-cart .cart_totals .wc-proceed-to-checkout,
.woocommerce-page.woocommerce-cart .cart_totals .wc-proceed-to-checkout {
  padding: 25px 0 0 !important;
}

.cart_totals .wc-proceed-to-checkout .button,
.cart_totals .wc-proceed-to-checkout a.checkout-button,
.woocommerce-cart .cart_totals .wc-proceed-to-checkout .button,
.woocommerce-cart .cart_totals .wc-proceed-to-checkout a.checkout-button,
.woocommerce-page.woocommerce-cart .cart_totals .wc-proceed-to-checkout .button,
.woocommerce-page.woocommerce-cart
  .cart_totals
  .wc-proceed-to-checkout
  a.checkout-button {
  display: block !important;
  width: 100% !important;
  padding: 18px !important;
  background-color: #ba0001 !important;
  color: #fff !important;
  text-align: center !important;
  border: none !important;
  border-radius: 8px !important;
  font-weight: 700 !important;
  font-size: 16px !important;
  text-transform: uppercase !important;
  cursor: pointer;
  letter-spacing: 0.5px !important;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(186, 0, 1, 0.3) !important;
}

.cart_totals .wc-proceed-to-checkout .button:hover,
.cart_totals .wc-proceed-to-checkout a.checkout-button:hover,
.woocommerce-cart .cart_totals .wc-proceed-to-checkout .button:hover,
.woocommerce-cart .cart_totals .wc-proceed-to-checkout a.checkout-button:hover,
.woocommerce-page.woocommerce-cart
  .cart_totals
  .wc-proceed-to-checkout
  .button:hover,
.woocommerce-page.woocommerce-cart
  .cart_totals
  .wc-proceed-to-checkout
  a.checkout-button:hover {
  background-color: #9a0001 !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(186, 0, 1, 0.4) !important;
}
