/**
 * Main styles for Your Madjar Store theme
 */

/* Custom styles to match the React design exactly */

/* Remove background-color from bg-gray-50 class */
.bg-gray-50 {
  background-color: transparent !important;
}

/* Change bg-white class to solid black with white text */
.bg-white {
  background-color: #000000 !important;
  color: #ffffff !important;
  opacity: 1 !important;
}


/* Notice bar styles */
.notice-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  /* Remove all hover effects */
  transition: none !important;
}



.notice-bar-content {
  flex-grow: 1;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.notice-slider {
  position: relative;
  height: 1.5em;
  width: 100%;
}

.notice-slider > div {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Remove hover effects from notice bar icons */
.notice-bar-icon {
  background-color: transparent !important;
  background: none !important;
  transition: none !important;
}

.notice-bar-icon:hover {
  background-color: transparent !important;
  background: none !important;
  transform: none !important;
  box-shadow: none !important;
}

/* Ensure header has solid background */
.navbar-bg {
  background-color: #f5f5f5 !important;
  opacity: 1 !important;
}

/* Product grid title mobile font size */
@media (max-width: 767px) {
  /* Reduce gap between products on mobile */
  .woocommerce ul.products {
    gap: 1.0rem !important;
  }
  
  /* Reduce gap-6 to 1.0rem on mobile for product grids */
  .grid.gap-6,
  .grid[class*="gap-6"] {
    gap: 1.0rem !important;
  }
  
  .new-product-title {
    font-size: 0.75rem !important;
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .product-grid-title {
    font-size: 1.25rem;
  }
}

.new-product-image-container {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 100%; /* 1:1 Aspect Ratio */
  overflow: hidden;
}

.new-product-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1.5rem; /* Added rounded corners to all sides */
}

/* Removed hover zoom effect */
.new-product-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: #ef4444;
  color: white;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  z-index: 10;
}

.new-product-rating {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  z-index: 10;
}

.new-product-content {
  padding: 1.25rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.new-product-title {
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.5rem; /* Reduced space between title and price */
  font-size: 1rem;
  line-height: 1.4;
  min-height: 2.8rem;
  max-height: 2.8rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center; /* Centered title */
  word-wrap: break-word;
  overflow-wrap: break-word;
  padding: 0 !important;
}

/* Remove padding from product title in shop and category pages */
.woocommerce ul.products li.product .new-product-title,
.woocommerce ul.products li.product h3.new-product-title {
  padding: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.new-product-price-container {
  margin-top: auto;
  margin-bottom: 1rem;
  text-align: center; /* Centered price container */
}

.new-product-price-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.25rem;
}

@media (min-width: 768px) {
  .new-product-price-wrapper {
    flex-direction: row;
    gap: 0.5rem;
  }
}

.new-product-price-current {
  font-family: 'Poppins', sans-serif !important;
  font-size: 1.25rem;
  font-weight: 700;
  color: #000000;
  line-height: 1.2;
}

.new-product-price-current * {
  font-family: 'Poppins', sans-serif !important;
  font-weight: 700 !important;
  color: #000000 !important;
}

.new-product-price-current .woocommerce-Price-amount {
  font-family: 'Poppins', sans-serif !important;
  font-weight: 700 !important;
  color: #000000 !important;
}

.new-product-price-current .woocommerce-Price-currencySymbol {
  font-family: 'Poppins', sans-serif !important;
  font-weight: 700 !important;
  color: #000000 !important;
}

.new-product-price-original {
  font-family: 'Poppins', sans-serif !important;
  font-size: 0.875rem;
  color: #ff0000;
  text-decoration: line-through;
  font-weight: 700;
  line-height: 1.2;
}

.new-product-price-original * {
  font-family: 'Poppins', sans-serif !important;
  font-weight: 700 !important;
  color: #ff0000 !important;
  text-decoration: line-through !important;
}

.new-product-price-original .woocommerce-Price-amount {
  font-family: 'Poppins', sans-serif !important;
  font-weight: 700 !important;
  color: #ff0000 !important;
  text-decoration: line-through !important;
}

.new-product-price-original .woocommerce-Price-currencySymbol {
  font-family: 'Poppins', sans-serif !important;
  font-weight: 700 !important;
  color: #ff0000 !important;
  text-decoration: line-through !important;
}

.new-product-add-to-cart,
.new-product-add-to-cart .button {
  background: #069669;
  color: #fff;
  font-weight: 700;
  padding: 0.25rem;
  border-radius: 0.5rem;
  /* border will be set dynamically via Customizer */
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  width: 100%;
  cursor: pointer;
  text-decoration: none;
  border: none;
  margin: 0;
}

.new-product-card:hover .new-product-add-to-cart,
.new-product-card:hover .new-product-add-to-cart .button {
  background: #069669;
}

.view-more-button {
  background: #fff;
  color: #4b5563;
  font-weight: 600;
  padding: 0.75rem 2rem;
  border: 2px solid #e5e7eb;
  border-radius: 9999px;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.view-more-button:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
}

/* Category item styling */
.category-item {
  transition: all 0.3s ease;
}

.category-item:hover {
  transform: translateY(-5px);
}

/* Modern Services Section - New Design */
.services-section-modern {
  position: relative;
  width: 100%;
}

.services-grid-modern {
  display: grid;
  align-items: stretch;
}

.service-card-modern {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 280px;
}

.service-icon-wrapper {
  flex-shrink: 0;
}

.service-content-modern {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Service card styling - Legacy */
.service-card {
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
}

/* Services section - improved design */
.services-section { 
    width: 100% !important; 
    background-color: inherit !important;
    margin: 0 !important;
}
.services-header { 
    margin-bottom: 2rem; 
}
.services-header .services-title { 
    font-weight: 900; 
    font-size: 1.75rem; 
    margin: 0 0 0.5rem 0; 
}
.services-header .services-subtitle { 
    color: #6b7280; 
    margin-top: 0.25rem; 
}
.services-grid { 
    align-items: stretch; 
    width: 100%;
}
.service-card { 
    border-radius: 0 !important; 
    border: none !important; 
    background: transparent !important; 
    box-shadow: none !important; 
    transition: none !important; 
    display: flex; 
    flex-direction: column; 
    min-height: 100%; 
    padding: 0 !important;
    margin: 0 !important;
}
.service-icon-circle { 
    width: 88px; 
    height: 88px; 
    border-radius: 9999px; 
    background: #f3f4f6; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    margin: 0 auto 1rem; 
}
.service-icon { 
    width: 32px; 
    height: 32px; 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
}
.service-icon svg { 
    width: 100%; 
    height: 100%; 
    display: block; 
}
.service-title { 
    font-weight: 800; 
    margin-bottom: 0.5rem; 
    font-size: 1.125rem; 
}
.service-description { 
    line-height: 1.7; 
    color: #4b5563; 
}

/* Responsive improvements */
@media (max-width: 767px) {
    .services-section {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    .services-header {
        margin-bottom: 1.5rem;
    }
    .services-header .services-title {
        font-size: 1.5rem;
    }
    .service-icon-circle {
        width: 70px !important;
        height: 70px !important;
        margin-bottom: 0.75rem !important;
    }
    .service-icon {
        width: 28px !important;
        height: 28px !important;
    }
    .service-title {
        font-size: 0.875rem !important;
        margin-bottom: 0.375rem !important;
    }
    .service-description {
        font-size: 0.75rem !important;
        line-height: 1.5 !important;
    }
    .services-grid {
        gap: 1rem !important;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .service-icon-circle {
        width: 90px !important;
        height: 90px !important;
    }
    .service-icon {
        width: 30px !important;
        height: 30px !important;
    }
}

/* Announcement Bar */
.announcement-bar {
  width: 100%;
  position: relative;
  z-index: 50;
}

.announcement-bar .announcement-item {
  transition: opacity 0.5s ease-in-out;
}

.announcement-bar #prev-announcement,
.announcement-bar #next-announcement,
.announcement-bar .announcement-nav-btn {
  z-index: 10;
  cursor: pointer;
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

.announcement-bar #prev-announcement:hover,
.announcement-bar #next-announcement:hover,
.announcement-bar .announcement-nav-btn:hover,
.announcement-bar #prev-announcement:focus,
.announcement-bar #next-announcement:focus,
.announcement-bar .announcement-nav-btn:focus,
.announcement-bar #prev-announcement:active,
.announcement-bar #next-announcement:active,
.announcement-bar .announcement-nav-btn:active {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  opacity: 1 !important;
}

/* Announcement rotation */
.announcement-slide {
  transition: opacity 0.7s ease-in-out;
}

/* Mobile menu styling */
.mobile-menu {
  transition: transform 0.3s ease-in-out;
}

/* Mobile Menu Drawer Improvements */
#mobile-menu {
  overflow-y: auto;
}

.mobile-menu-close-btn {
  background: transparent !important;
  border: none !important;
  outline: none !important;
  cursor: pointer;
  transition: none !important;
}

.mobile-menu-close-btn:hover,
.mobile-menu-close-btn:focus,
.mobile-menu-close-btn:active {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  opacity: 1 !important;
}

.mobile-menu-item {
  border-bottom: 1px solid rgba(229, 231, 235, 0.3);
}

.mobile-menu-item:last-child {
  border-bottom: none;
}

.mobile-nav-link {
  transition: opacity 0.2s ease;
  text-decoration: none;
}

.mobile-nav-link:hover {
  opacity: 0.7;
}

/* Footer accordion styling */
.footer-accordion-content {
  transition: all 0.3s ease-in-out;
}

/* Button hover effects */
.btn-hover-scale {
  transition: all 0.3s ease;
}

.btn-hover-scale:hover {
  transform: scale(1.05);
}

/* Custom RTL adjustments */
[dir="rtl"] .rtl-rotate-180 {
  transform: rotate(180deg);
}

/* Collections section styling */
.collections-section {
  width: 100%;
  background-color: #ffffff !important; /* Will be overridden by Customizer */
}

.collections-section .container {
  background-color: transparent !important;
}

.collections-desktop-grid {
  display: grid;
  gap: 1.5rem; /* Increased gap for better spacing */
}

.collection-circle {
  border-radius: 50%;
  border: 2px solid #e5e7eb; /* Default border - will be overridden by Customizer */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05); /* Subtle shadow for depth */
}

.collection-title {
  font-weight: 700;
  color: #111827;
  margin-top: 1rem; /* Consistent spacing */
  font-size: 1rem; /* Consistent font size */
  line-height: 1.4; /* Better readability */
  text-align: center; /* Center alignment */
  letter-spacing: 0.02em; /* Slight letter spacing for better readability */
}

.collections-mobile-carousel {
  position: relative;
  padding: 0 0.5rem; /* Small margins on sides */
  width: 100%;
  overflow-x: auto; /* Enable horizontal scrolling */
  -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
  scrollbar-width: none; /* Hide scrollbar in Firefox */
}

.collections-mobile-carousel::-webkit-scrollbar {
  display: none; /* Hide scrollbar in Chrome/Safari */
}

.collections-carousel-track {
  display: flex;
  width: max-content; /* Allow track to be wider than container */
}

.collection-item {
  padding: 0 0.5rem; /* Small padding for each item */
}

.collections-prev,
.collections-next {
  display: none; /* Hide scroll icons on mobile */
}

.collection-border {
  border: 2px solid #e5e7eb; /* Will be overridden by Customizer */
}

@media (max-width: 768px) {
  .collections-mobile-carousel {
    padding: 0 0.5rem; /* Small margins on sides */
  }
  
  .collection-title {
    font-size: 0.875rem;
    margin-top: 0.75rem; /* Adjusted spacing */
    line-height: 1.3; /* Tighter line height on mobile */
  }
  
  .collections-desktop-grid {
    gap: 1rem; /* Adjusted gap for mobile */
  }
  
  .collection-circle {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); /* Lighter shadow on mobile */
  }
  
  .collection-item {
    padding: 0 0.5rem; /* Small padding for each item */
  }
}

/* Product page specific styles */
#main-product-image {
  width: 100%;
  height: auto;
  border-radius: 0;
}

/* Product page layout - commented out to avoid conflicts with WooCommerce default layout
.product-page-layout {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media (min-width: 769px) {
  .product-page-layout {
    flex-direction: row;
    flex-wrap: wrap;
  }
  
  .product-gallery-section {
    flex: 1;
  }
  
  .product-summary-section {
    flex: 1;
    padding-right: 2rem;
  }
}

/* RTL specific styles */
[dir="rtl"] .product-page-layout {
  flex-wrap: wrap;
}

[dir="rtl"] .product-summary-section {
  padding-right: 2rem;
  padding-left: 0;
}

@media (min-width: 769px) {
  [dir="rtl"] .product-summary-section {
    padding-right: 2rem;
    padding-left: 0;
  }
}

.product-summary-section {
  order: 2;
}

/* Product tabs section removed as requested */
*/

/* Product summary styles */
.product-summary .star-rating {
  color: #fbbf24;
  font-size: 1.25rem;
}

.product-summary .tab-button {
  transition: all 0.3s ease;
}

.product-summary .tab-button.active {
  color: #069669;
  border-color: #069669;
}

.product-summary .tab-pane {
  transition: opacity 0.3s ease;
}

/* Add to cart button */
.single_add_to_cart_button {
  background: #069669;
  color: #fff;
  font-weight: 700;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.single_add_to_cart_button:hover {
  background: #069669;
  transform: translateY(-2px);
}

/* Loading indicators for add to cart buttons */
.grid-add-to-cart.loading,
.single_add_to_cart_button.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.grid-add-to-cart.loading::after,
.single_add_to_cart_button.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    margin: auto;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* رسالة تحميل في السلة */
#cart-drawer .cart-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: #6b7280;
    font-size: 0.875rem;
}

#cart-drawer .cart-loading::before {
    content: '';
    width: 24px;
    height: 24px;
    border: 3px solid #e5e7eb;
    border-top-color: #069669;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-left: 0.5rem;
}

/* Quantity input */
.woocommerce .quantity input.qty {
  padding: 0.5rem;
  border: 1px solid #d1d5db;
  border-radius: 0.25rem;
  text-align: center;
  width: 4rem;
}

/* Entry content */
.entry-content {
  border-radius: 1rem;
  padding: 1.5rem;
  margin-top: 2rem;
}

.entry-content h1, .entry-content h2, .entry-content h3 {
  color: #111827;
  font-weight: 700;
  margin-bottom: 1rem;
}

.entry-content p {
  color: #4b5563;
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* Notice bar styles */
.notice-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.notice-bar-content {
  flex-grow: 1;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.notice-slider {
  position: relative;
  height: 1.5em;
  width: 100%;
}

.notice-slider > div {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Remove hover effects from notice bar icons */
.notice-bar-icon {
  background: none !important;
  transition: none !important;
}

.notice-bar-icon:hover {
  background: none !important;
  transform: none !important;
  box-shadow: none !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .mobile-hidden {
    display: none;
  }
  
  .mobile-full-width {
    width: 100%;
  }
  
  .product-grid-title {
    font-size: 1.5rem; /* Default mobile font size - will be overridden by customizer */
  }
  
  /* Reduce gap between products on mobile */
  .woocommerce ul.products {
    gap: 1.0rem !important;
  }
  
  /* Reduce gap-6 to 1.0rem on mobile for product grids */
  .grid.gap-6,
  .grid[class*="gap-6"] {
    gap: 1.0rem !important;
  }
  
  .new-product-title {
    font-size: 0.75rem !important; /* Smaller font size on mobile */
    line-height: 1.4; /* Better line height */
    margin-bottom: 0.5rem; /* Space between title and price on mobile */
    min-height: 2.1rem;
    max-height: 2.1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  
  .new-product-title a {
    font-size: 0.75rem !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .new-product-content {
    padding: 1rem;
  }
  
  .new-product-price-current {
    font-size: 1.125rem !important;
  }
  
  .new-product-price-original {
    font-size: 0.75rem !important;
  }
  
  /* Smaller button text on mobile */
  .grid-add-to-cart,
  .grid-buy-now {
    font-size: 0.75rem !important;
    padding: 0.5rem 0.625rem !important;
    line-height: 1.2;
  }
  
  /* Product page adjustments */
  .order-2 {
    order: 2;
  }
  
  .order-1 {
    order: 1;
  }
  
  /* Product summary adjustments */
  .product-summary h1 {
    font-size: 1.75rem;
  }
  
  .product-summary .text-2xl {
    font-size: 1.5rem;
  }
  
  /* Tab adjustments */
  .tab-button {
    font-size: 0.875rem;
    padding: 0.5rem;
  }
  
  /* Entry content adjustments */
  .entry-content {
    padding: 1rem;
  }
  
  .entry-content h1 {
    font-size: 1.5rem;
  }
  
  .entry-content h2 {
    font-size: 1.25rem;
  }
  
  /* Product page layout adjustments */
  .product-page-layout {
    flex-direction: column;
  }
  
  .product-summary-section {
    padding-left: 0;
  }
  
  
  /* Prevent overflow issues on smaller screens */
  .new-product-title,
  .collection-title,
  .service-title,
  .service-description {
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
  }
  
  .new-product-content {
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
}


.succeessify-announcement-bar #orig {
  display: inline-block;
  overflow: hidden;
  animation: marquesina 45s infinite linear 1s;
}

.succeessify-announcement-bar #orig.reverse {
  animation: marquesina-reverse 45s infinite linear 2s;
}

/* Message styling */
.succeessify-announcement-bar__message {
  text-align: center;
  padding: 0;
  margin: 0;
  line-height: 1;
  font-size: 14px; /* Default mobile font size, will be overridden by inline styles */
  font-weight: normal; /* Default font weight, will be overridden by inline styles */
}

.succeessify-announcement-bar__message li {
  display: inline-block;
  padding-right: 114px;
  position: relative;
  line-height: 1;
  font-size: 14px; /* Default mobile font size, will be overridden by inline styles */
  font-weight: normal; /* Default font weight, will be overridden by inline styles */
}

/* Default dot separator */
.succeessify-announcement-bar__message li::after {
  content: '';
  width: 3.5px;
  height: 3.5px;
  background-color: currentColor;
  opacity: 0.3;
  border-radius: 50%;
  position: absolute;
  top: 40%;
  right: 50px;
}

/* Star separator */
.succeessify-announcement-bar__message li.star-separator::after {
  content: '★';
  width: auto;
  height: auto;
  background-color: transparent;
  opacity: 1;
  border-radius: 0;
  font-size: 12px;
  top: 0;
  right: 45px;
}

/* Heart separator */
.succeessify-announcement-bar__message li.heart-separator::after {
  content: '♥';
  width: auto;
  height: auto;
  background-color: transparent;
  opacity: 1;
  border-radius: 0;
  font-size: 12px;
  top: 0;
  right: 45px;
}

/* Arrow separator */
.succeessify-announcement-bar__message li.arrow-separator::after {
  content: '→';
  width: auto;
  height: auto;
  background-color: transparent;
  opacity: 1;
  border-radius: 0;
  font-size: 14px;
  top: 0;
  right: 45px;
}

/* Responsive */
@media (max-width: 480px) {
  #marq {
    max-height: 39px;
  }
  .succeessify-announcement-bar__message li {
    padding-right: 55px;
  }
  .succeessify-announcement-bar__message li::after,
  .succeessify-announcement-bar__message li.star-separator::after,
  .succeessify-announcement-bar__message li.heart-separator::after,
  .succeessify-announcement-bar__message li.arrow-separator::after {
    right: 25px;
  }
}

/* Additional Notice Bar Height Styles */
.notice-bar {
  height: 40px; /* Default height, will be overridden by inline styles */
  line-height: 40px;
  font-weight: normal; /* Default font weight, will be overridden by inline styles */
}

@media (max-width: 768px) {
  .mobile-hidden {
    display: none;
  }
  
  .mobile-full-width {
    width: 100%;
  }
  
  .product-grid-title {
    font-size: 1.5rem; /* Default mobile font size - will be overridden by customizer */
  }
  
  /* Reduce gap between products on mobile */
  .woocommerce ul.products {
    gap: 1.0rem !important;
  }
  
  /* Reduce gap-6 to 1.0rem on mobile for product grids */
  .grid.gap-6,
  .grid[class*="gap-6"] {
    gap: 1.0rem !important;
  }
  
  .new-product-title {
    font-size: 0.75rem !important; /* Smaller font size on mobile */
    line-height: 1.4; /* Better line height */
    margin-bottom: 0.5rem; /* Space between title and price on mobile */
    min-height: 2.1rem;
    max-height: 2.1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  
  .new-product-title a {
    font-size: 0.75rem !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .new-product-content {
    padding: 1rem;
  }
  
  .new-product-price-current {
    font-size: 1.125rem !important;
  }
  
  .new-product-price-original {
    font-size: 0.75rem !important;
  }
  
  /* Smaller button text on mobile */
  .grid-add-to-cart,
  .grid-buy-now {
    font-size: 0.75rem !important;
    padding: 0.5rem 0.625rem !important;
    line-height: 1.2;
  }
  
  /* Product page adjustments */
  .order-2 {
    order: 2;
  }
  
  .order-1 {
    order: 1;
  }
  
  /* Product summary adjustments */
  .product-summary h1 {
    font-size: 1.75rem;
  }
  
  .product-summary .text-2xl {
    font-size: 1.5rem;
  }
  
  /* Tab adjustments */
  .tab-button {
    font-size: 0.875rem;
    padding: 0.5rem;
  }
  
  /* Entry content adjustments */
  .entry-content {
    padding: 1rem;
  }
  
  .entry-content h1 {
    font-size: 1.5rem;
  }
  
  .entry-content h2 {
    font-size: 1.25rem;
  }
  
  /* Product page layout adjustments */
  .product-page-layout {
    flex-direction: column;
  }
  
  .product-summary-section {
    padding-left: 0;
  }
  
  /* Notice bar mobile adjustments */
  .notice-bar {
    padding: 0.5rem 0;
  }
  
  /* Notice bar mobile font size */
  .succeessify-announcement-bar__message,
  .succeessify-announcement-bar__message li {
    font-size: 14px; /* Mobile font size from Customizer */
  }
  
  /* Prevent overflow issues on smaller screens */
  .new-product-title,
  .collection-title,
  .service-title,
  .service-description {
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
  }
  
  .new-product-content {
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
}
/* Cart Count Badge */
.cart-count-badge {
  position: absolute;
  top: 0;
  right: 0;
  background-color: #ef4444;
  color: #ffffff;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: bold;
  line-height: 1;
  transform: translate(25%, -25%);
  border: 2px solid #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  z-index: 10;
}

.cart-count-badge.hidden {
  display: none;
}

/* Icons removed from form fields */

/* Video Slider Styles */
.video-slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.video-slider-desktop,
.video-slider-mobile {
    position: relative;
    width: 100%;
}

.video-slider-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-slider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    pointer-events: none;
}

.video-slider-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.video-slider-title {
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.video-slider-description {
    line-height: 1.6;
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.video-slider-button {
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.video-slider-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    opacity: 0.9;
}

.video-slider-button:active {
    transform: translateY(0);
}

/* Responsive adjustments for video slider */
@media (max-width: 768px) {
    .video-slider-content {
        padding: 1rem;
    }
    
    .video-slider-title {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }
    
    .video-slider-description {
        font-size: 0.875rem;
        margin-bottom: 1rem;
    }
    
    .video-slider-button {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .video-slider-title {
        font-size: 2.5rem;
    }
    
    .video-slider-description {
        font-size: 1.125rem;
    }
}

/* Categories 2 Section Styles - Grid Layout */
.categories-2-section {
    width: 100%;
}

.categories-2-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.categories-2-card-large,
.categories-2-card-small {
    position: relative;
    width: 100%;
    cursor: pointer;
    display: block;
}

.categories-2-small-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.categories-2-title {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

/* Desktop Layout: Large card on left (50%), 3 small cards on right (50%) */
@media (min-width: 768px) {
    .categories-2-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
    
    .categories-2-small-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        height: 100%;
        display: flex;
        flex-direction: column;
    }
    
    .categories-2-card-small {
        flex: 1;
    }
}

/* Large Desktop Layout: Better spacing */
@media (min-width: 1024px) {
    .categories-2-grid {
        gap: 1.5rem;
    }
    
    .categories-2-small-grid {
        gap: 1.5rem;
    }
}

/* Mobile: Stack all cards vertically */
@media (max-width: 767px) {
    .categories-2-grid {
        grid-template-columns: 1fr;
    }
    
    .categories-2-card-large {
        height: 300px !important;
    }
    
    .categories-2-card-small {
        height: 200px !important;
    }
    
    .categories-2-title {
        font-size: 1.5rem !important;
    }
}