

@media screen and (max-width: 767px) {
  .btn-order-now, 
  .btn-order-whatsapp {
    font-size: 3.3vw !important;
  }
  .modal-product-block {
    font-size: 3.7vw !important;
  }
  .modal-product-block .text-sm {
    font-size: 3.1vw !important;
  }
    .product-single-wrapper form.cart {
        -webkit-box-shadow: 0px -5px 16px -1px rgba(0, 0, 0, 0.41);
        -moz-box-shadow: 0px -5px 16px -1px rgba(0, 0, 0, 0.41);
        box-shadow: 0px -5px 16px -1px rgba(0, 0, 0, 0.41);
    }

    h2.footer-section a,
    h2.footer-section {
        display:block;
    }
    h2.footer-section img.arrow-icon-en {
        float:right;
        margin-top: 0.6rem;
    }
    h2.footer-section img.arrow-icon-ar {
        float:left;
        margin-top: 0.6rem;
    }
    .section-target {
        display: none;
    }
    .section-target li a{
        line-height: 2rem;
        display: block;
    }
}

.rotated {
    transform: rotate(90deg);
    -ms-transform: rotate(90deg); /* IE 9 */
    -moz-transform: rotate(90deg); /* Firefox */
    -webkit-transform: rotate(90deg); /* Safari and Chrome */
    -o-transform: rotate(90deg); /* Opera */
  }

  .tab-content-item p {
    margin-bottom: 1.2rem;
    line-height: 1.5rem;
  }
  span.price-percentage {
    color: #00008b !important;
    background: none !important;
    font-weight: normal !important;
  }

a.wc-block-components-totals-shipping__change-address__link {
    text-decoration: underline !important;
}
  .components-button.wc-block-components-button.wp-element-button.wc-block-components-shipping-calculator-address__button {
    background: #FFF;
    border: 1.5px solid #00008b;
    color:#00008b;
    display: inline-block !important;
    width: 27%;
    padding: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
    line-height: 1rem !important;
    min-height: 2.2rem !important;
  }
  form.wc-block-components-shipping-calculator-address {
    text-align: center !important;
  }

  body.body-ar .choices__item.choices__item--selectable{
    text-align: center;
  }
  body.body-ar .choices__list--single .choices__item {
    text-align: left !important;
  }
  body.body-en .choices__item.choices__item--selectable{
    text-align: center !important;
  }

  [dir=rtl] .choices__list--dropdown .choices__item--selectable {
    padding-left: 0 !important;
  }

.left-2 {
  left: .5rem;
}

.onsale {
  display: none !important;
}

#main.site-main {
  padding-top: 0.25rem !important;
}
#header-top {
  padding-bottom: 0.5rem !important;
}
#header-top {
    position: relative;
}

#burger-icon-menu {
    position: relative;
    z-index: 1000;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    background: transparent;
    border: none;
    outline: none;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    margin: 0;
    padding: 8px;
}

#burger-icon-menu:hover {
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}

#burger-icon-menu:active {
    background-color: rgba(0, 0, 0, 0.1);
}

/* Search Modal Styles - Mobile First */
#search-modal {
    backdrop-filter: blur(6px);
    background-color: rgba(0, 0, 0, 0.85) !important; /* More dimmed background */
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important; /* Dynamic viewport height for mobile */
    z-index: 10002 !important;
    overflow: hidden;
}

#search-modal .search-toggle {
    transition: all 0.2s ease;
}

#search-modal .search-toggle:hover {
    transform: scale(1.05);
}

#search-input {
    transition: border-color 0.2s ease;
    width: 100%;
    box-sizing: border-box;
}

#search-input:focus {
    box-shadow: 0 0 0 3px rgba(0, 0, 139, 0.1);
}

/* Fix search form layout */
#search-form {
    width: 100%;
}

#search-form .relative {
    width: 100%;
}

/* Ensure search button doesn't overlap */
#search-form button[type="submit"] {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    white-space: nowrap;
    min-width: 80px;
}

/* RTL support for search */
[dir="rtl"] #search-form button[type="submit"] {
    right: auto;
    left: 8px;
}

[dir="rtl"] #search-input {
    padding-right: 24px;
    padding-left: 96px;
}

/* Mobile responsive search */
@media (max-width: 640px) {
    #search-modal .p-6 {
        padding: 1rem;
    }
    
    #search-input {
        font-size: 16px;
        padding: 12px 16px;
        padding-right: 80px;
    }
    
    #search-form button[type="submit"] {
        padding: 8px 12px;
        font-size: 14px;
        min-width: 60px;
    }
    
    [dir="rtl"] #search-input {
        padding-right: 16px;
        padding-left: 80px;
    }
}

/* Live Search Results Styles */
#live-search-results {
    max-height: 400px;
    overflow-y: auto;
}

/* Search result list items - No borders */
#search-results-container .flex {
    background: #ffffff;
}

#search-results-container .flex:hover {
    background: #f9fafb;
}

/* Thumbnail styling - No borders */
#search-results-container img {
    transition: all 0.2s ease;
}

#search-results-container {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#search-results-container > div {
    transition: all 0.2s ease;
}

#search-results-container > div:hover {
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

/* Product image container */
.aspect-w-1 {
    position: relative;
    overflow: hidden;
}

.aspect-h-1 {
    padding-bottom: 100%;
}

.aspect-w-1 img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Search Results Styles */
#search-results-content .bg-white {
    transition: all 0.2s ease;
}

#search-results-content .bg-white:hover {
    transform: translateY(-2px);
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Loading Animation */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* Rotating Banner Styles */
.rotating-banner {
    background: linear-gradient(135deg, #00008b 0%, #0000cd 100%);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 999;
    min-height: 48px;
    display: block !important;
    visibility: visible !important;
}

.rotating-banner:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 8s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.banner-sentences {
    position: relative;
    min-height: 24px;
}

.banner-sentence {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: all 0.5s ease-in-out;
}

.banner-sentence.active {
    opacity: 1 !important;
    transform: translateY(0) !important;
    pointer-events: auto;
    display: block !important;
    visibility: visible !important;
}

.banner-sentence.active-out {
    opacity: 0;
    transform: translateY(-20px);
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* RTL support for banner */
[dir="rtl"] .banner-sentence {
    direction: rtl;
}

/* Mobile styles for banner */
@media (max-width: 640px) {
    .rotating-banner {
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
    }
    
    .banner-sentences {
        min-height: 20px;
    }
}

/* Features Section Styles */
.features-section {
    background-color: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.features-section svg {
    color: #00008b;
    transition: all 0.2s ease;
}

.features-section .flex:hover svg {
    transform: scale(1.1);
}

/* Mobile-first responsive design for features */
@media (max-width: 768px) {
    .features-section {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
    
    .features-section .grid {
        gap: 1rem;
    }
    
    .features-section .flex {
        padding: 0.75rem;
        background: white;
        border-radius: 0.5rem;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    }
}

/* Desktop styles for features */
@media (min-width: 768px) {
    .features-section {
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }
    
    .features-section .flex {
        padding: 0.5rem;
    }
}

/* RTL support for features */
[dir="rtl"] .features-section .flex {
    text-align: right;
}

[dir="rtl"] .features-section .md\:text-left {
    text-align: right;
}

/* Top Categories Section Styles */
.top-categories-section {
    background-color: #ffffff;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.top-categories-section h2 {
    font-weight: 700;
    color: #1f2937;
}

.top-categories-section .text-primary {
    color: #00008b;
}

/* Enhanced Category Item Styles */
.category-item {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    cursor: pointer;
}

.category-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 139, 0.05), rgba(102, 102, 255, 0.05));
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.category-item:hover::before {
    opacity: 1;
}

.category-item:hover {
    transform: translateY(-8px) scale(1.02);
    z-index: 10;
}

.category-item a {
    position: relative;
    z-index: 2;
}

/* Enhanced Category Image Wrapper */
.category-image-wrapper {
    position: relative;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    margin-bottom: 0.75rem;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    border: 2px solid transparent;
    overflow: hidden;
}

.category-image-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0, 0, 139, 0.1), rgba(102, 102, 255, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-image-wrapper:hover::before {
    opacity: 1;
}

.category-image-wrapper:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 139, 0.25);
    transform: scale(1.05);
    border-color: rgba(0, 0, 139, 0.2);
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
}

.category-image-wrapper img {
    transition: all 0.3s ease;
    object-fit: contain;
    width: 100%;
    height: 100%;
    max-width: 150px;
    max-height: 150px;
}

.category-item:hover .category-image-wrapper img {
    transform: scale(1.1);
}

.category-item h3 {
    transition: all 0.3s ease;
    font-weight: 500;
    color: #00008b; /* Primary color for text */
}

.category-item:hover h3 {
    color: #000066; /* Darker shade on hover */
    font-weight: 600;
}

/* Legacy icon styles for other pages */
.category-icon-wrapper {
    position: relative;
    transition: all 0.3s ease;
    background-color: #f3f4f6;
    margin-bottom: 0.75rem;
}

.category-icon-wrapper:hover {
    background-color: #00008b;
    box-shadow: 0 10px 25px rgba(0, 0, 139, 0.3);
    transform: scale(1.05);
}

.category-icon {
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.category-item:hover .category-icon svg {
    color: white;
}

/* View All Button */
.top-categories-section a[href*="product-categories"] {
    background-color: #00008b;
    color: white;
    transition: all 0.3s ease;
    border-radius: 0.5rem;
    font-weight: 600;
}

.top-categories-section a[href*="product-categories"]:hover {
    background-color: #000066;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 139, 0.3);
}

/* Enhanced categories section visibility and animations - ALL SCREENS */
.top-categories-section {
    position: relative;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-top: 4px solid #00008b;
    border-bottom: 2px solid rgba(0, 0, 139, 0.3);
    box-shadow: 0 -4px 20px rgba(0, 0, 139, 0.15), 0 4px 15px rgba(0, 0, 139, 0.1);
    margin: 0 !important;
    min-height: 120px;
    padding: 2rem 0 !important;
    /* Ensure it appears immediately after hero */
    margin-top: -4px !important; /* Slight overlap for seamless transition */
}

/* Optimize page layout for hero + categories visibility */
.page-content--home {
    /* Ensure smooth flow from hero to categories */
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* FORCE categories section to be visible immediately */
.features-section + .top-categories-section,
.page-content--home > .top-categories-section {
    margin-top: 0 !important;
    position: relative;
    z-index: 10;
    /* Force it to appear in viewport */
    transform: translateY(-8px);
}

/* Additional viewport optimization */
.page-content--home {
    max-width: 100% !important;
    overflow-x: hidden;
}

/* Ensure hero never takes more than necessary space */
.page-content--home .wp-block-cover,
.page-content--home .wp-block-image,
.page-content--home .wp-block-group.is-hero,
.page-content--home .hero {
    /* Universal height constraints */
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
}

/* Force categories to be visible in remaining space */
.top-categories-section {
    flex-shrink: 0 !important;
    min-height: auto !important;
}

/* Loading animation for categories */
.categories-grid {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease-out 0.3s forwards;
}

.category-item {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease-out forwards;
}

.category-item:nth-child(1) { animation-delay: 0.1s; }
.category-item:nth-child(2) { animation-delay: 0.2s; }
.category-item:nth-child(3) { animation-delay: 0.3s; }
.category-item:nth-child(4) { animation-delay: 0.4s; }
.category-item:nth-child(5) { animation-delay: 0.5s; }
.category-item:nth-child(6) { animation-delay: 0.6s; }
.category-item:nth-child(7) { animation-delay: 0.7s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced section header - PROMINENT ON ALL SCREENS */
.top-categories-section h2 {
    position: relative;
    animation: slideInFromLeft 0.6s ease-out forwards;
    font-size: 1.5rem !important;
    font-weight: 800 !important;
    color: #00008b !important;
    text-align: center !important;
    margin-bottom: 2rem !important;
    text-shadow: 0 2px 4px rgba(0, 0, 139, 0.1);
    letter-spacing: 0.5px;
}

.top-categories-section h2 .text-primary {
    background: linear-gradient(45deg, #00008b, #0066cc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900 !important;
}

.top-categories-section h2::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    background: linear-gradient(90deg, #00008b, #0066cc);
    border-radius: 2px;
    animation: expandWidth 0.8s ease-out 0.4s forwards;
    transform-origin: center;
}

.top-categories-section h2::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #00008b, #0066cc);
    border-radius: 2px;
    animation: expandWidth 0.8s ease-out 0.6s forwards;
    transform: scaleX(0);
    transform-origin: center;
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes expandWidth {
    from {
        transform: scaleX(0);
    }
    to {
        transform: scaleX(1);
    }
}

/* Enhanced "View All" button - ALL SCREENS */
.top-categories-section a[href*="product-categories"] {
    position: relative;
    overflow: hidden;
    animation: slideInFromRight 0.6s ease-out 0.2s forwards;
    opacity: 0;
    transform: translateX(30px);
    font-size: 1rem !important;
    font-weight: 700 !important;
    padding: 1rem 2rem !important;
    border-radius: 50px !important;
    background: linear-gradient(45deg, #00008b, #0066cc) !important;
    color: white !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0, 0, 139, 0.3);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.top-categories-section a[href*="product-categories"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.top-categories-section a[href*="product-categories"]:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 139, 0.4);
    background: linear-gradient(45deg, #0066cc, #00008b) !important;
}

.top-categories-section a[href*="product-categories"]:hover::before {
    left: 100%;
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Enhanced visibility states */
.top-categories-section.categories-visible {
    transform: translateY(0);
    opacity: 1;
}

.category-item.animate-in {
    animation: bounceInUp 0.6s ease-out forwards !important;
}

@keyframes bounceInUp {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }
    60% {
        opacity: 1;
        transform: translateY(-5px) scale(1.02);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Scroll indicator for hero to categories */
.hero-scroll-indicator {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    animation: bounce 2s infinite;
    cursor: pointer;
    z-index: 100;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Performance optimizations */
.category-item,
.category-image-wrapper,
.top-categories-section h2,
.top-categories-section a[href*="product-categories"] {
    will-change: transform, opacity;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .category-item,
    .category-image-wrapper,
    .categories-grid,
    .top-categories-section h2,
    .top-categories-section a[href*="product-categories"] {
        animation: none !important;
        transition: none !important;
    }
    
    .category-item:hover {
        transform: none !important;
    }
}

/* Mobile-first responsive design for categories */
@media (max-width: 640px) {
    .top-categories-section {
        padding-top: 1rem;
        padding-bottom: 1rem;
        border-top: 2px solid #00008b;
    }
    
    .top-categories-section h2 {
        font-size: 1.375rem !important;
        margin-bottom: 1.5rem !important;
        text-align: center;
        font-weight: 800 !important;
        text-transform: none !important;
        letter-spacing: 0.25px !important;
    }
    
    .top-categories-section h2::before,
    .top-categories-section h2::after {
        left: 50%;
        transform: translateX(-50%) scaleX(0);
        transform-origin: center;
    }
    
    .top-categories-section a[href*="product-categories"] {
        font-size: 0.875rem !important;
        padding: 0.75rem 1.5rem !important;
        text-transform: none !important;
        letter-spacing: 0.5px !important;
    }
    
    .categories-grid .grid {
        gap: 0.75rem;
        grid-template-columns: repeat(2, 1fr);
    }
    
    .category-image-wrapper {
        margin-bottom: 0.5rem;
        border-radius: 0.75rem;
        padding: 0.75rem;
        aspect-ratio: 1/1;
        background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
        border: 1px solid rgba(0, 0, 139, 0.1);
    }
    
    .category-image-wrapper:hover {
        transform: scale(1.02);
        box-shadow: 0 8px 20px rgba(0, 0, 139, 0.15);
    }
    
    .category-image-wrapper img {
        width: 100%;
        height: 100%;
        max-width: none;
        max-height: none;
        object-fit: contain;
    }
    
    .category-item h3 {
        font-size: 0.875rem !important;
        line-height: 1.2 !important;
        font-weight: 600 !important;
        text-align: center;
        color: #00008b;
    }
    
    .category-item:hover {
        transform: translateY(-4px) scale(1.02);
    }
    
    /* Mobile scroll enhancement */
    .top-categories-section {
        scroll-margin-top: 80px;
    }
    
    .category-icon-wrapper {
        padding: 0.75rem;
        margin-bottom: 0.5rem;
    }
    
    .category-icon {
        padding: 0.5rem;
    }
    
    .category-item h3 {
        font-size: 0.75rem;
        line-height: 1rem;
        text-align: center;
    }
    
    .top-categories-section h2 {
        font-size: 1rem;
        line-height: 1.5rem;
    }
    
    .top-categories-section a[href*="product-categories"] {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
        width: 100%;
        text-align: center;
    }
    
    /* Features section mobile adjustments */
    .features-section .grid {
        gap: 0.75rem;
    }
    
    .features-section .flex {
        gap: 0.5rem;
    }
    
    .features-section svg {
        width: 1.5rem;
        height: 1.5rem;
    }
    
    .features-section h4 {
        font-size: 0.75rem;
        margin-bottom: 0.25rem;
    }
    
    .features-section p {
        font-size: 0.625rem;
        line-height: 1rem;
    }
}

/* Tablet styles - ENHANCED PROMINENCE */
@media (min-width: 641px) and (max-width: 1023px) {
    .top-categories-section {
        padding: 3rem 0 !important;
        min-height: 180px;
        border-top: 5px solid #00008b;
        box-shadow: 0 -6px 25px rgba(0, 0, 139, 0.2), 0 6px 20px rgba(0, 0, 139, 0.15);
    }
    
    .top-categories-section h2 {
        font-size: 2rem !important;
        line-height: 2.25rem !important;
        margin-bottom: 2.5rem !important;
    }
    
    .categories-grid .grid {
        gap: 1.5rem;
        grid-template-columns: repeat(3, 1fr);
    }
    
    .category-image-wrapper {
        margin-bottom: 1rem;
        padding: 1.25rem;
        border: 2px solid rgba(0, 0, 139, 0.1);
        background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    }
    
    .category-image-wrapper:hover {
        border-color: rgba(0, 0, 139, 0.3);
        transform: scale(1.08);
        box-shadow: 0 20px 40px rgba(0, 0, 139, 0.25);
    }
    
    .category-item h3 {
        font-size: 1rem !important;
        line-height: 1.4rem !important;
        font-weight: 700 !important;
        color: #00008b !important;
    }
    
    .category-item:hover {
        transform: translateY(-12px) scale(1.05);
    }
    
    .category-icon-wrapper {
        padding: 1rem;
    }
    
    .category-icon {
        padding: 0.75rem;
    }
    
    .features-section svg {
        width: 2rem;
        height: 2rem;
    }
}

/* Desktop styles - MAXIMUM PROMINENCE */
@media (min-width: 1024px) {
    .top-categories-section {
        padding: 4rem 0 !important;
        min-height: 250px;
        border-top: 6px solid #00008b;
        box-shadow: 0 -8px 30px rgba(0, 0, 139, 0.25), 0 8px 25px rgba(0, 0, 139, 0.2);
        background: linear-gradient(135deg, #ffffff 0%, #f8fafc 50%, #e2e8f0 100%);
        position: relative;
        overflow: hidden;
    }
    
    .top-categories-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 6px;
        background: linear-gradient(90deg, #00008b, #0066cc, #00008b);
        animation: shimmer 3s ease-in-out infinite;
    }
    
    @keyframes shimmer {
        0%, 100% { opacity: 1; }
        50% { opacity: 0.7; }
    }
    
    .top-categories-section h2 {
        font-size: 2.5rem !important;
        line-height: 2.75rem !important;
        margin-bottom: 3rem !important;
        text-transform: uppercase;
        letter-spacing: 1px;
    }
    
    .categories-grid .grid {
        gap: 2rem;
        grid-template-columns: repeat(4, 1fr);
    }
    
    .category-image-wrapper {
        margin-bottom: 1.5rem;
        padding: 2rem;
        border: 3px solid rgba(0, 0, 139, 0.15);
        background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
        position: relative;
        overflow: hidden;
    }
    
    .category-image-wrapper::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: linear-gradient(45deg, transparent, rgba(0, 0, 139, 0.1), transparent);
        transform: rotate(45deg);
        transition: transform 0.6s ease;
        opacity: 0;
    }
    
    .category-image-wrapper:hover::before {
        opacity: 1;
        transform: rotate(45deg) translate(50%, 50%);
    }
    
    .category-image-wrapper:hover {
        border-color: rgba(0, 0, 139, 0.4);
        transform: scale(1.1) rotate(2deg);
        box-shadow: 0 25px 50px rgba(0, 0, 139, 0.3);
    }
    
    .category-item h3 {
        font-size: 1.125rem !important;
        line-height: 1.6rem !important;
        font-weight: 800 !important;
        color: #00008b !important;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    .category-item:hover {
        transform: translateY(-15px) scale(1.08);
        z-index: 20;
    }
    
    .category-icon-wrapper {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .category-icon {
        padding: 1rem;
    }
}

/* Large desktop styles - ULTRA PROMINENCE */
@media (min-width: 1280px) {
    .top-categories-section {
        padding: 5rem 0 !important;
        min-height: 300px;
    }
    
    .top-categories-section h2 {
        font-size: 3rem !important;
        line-height: 3.25rem !important;
        margin-bottom: 4rem !important;
    }
    
    .categories-grid .grid {
        gap: 2.5rem;
        grid-template-columns: repeat(6, 1fr);
    }
    
    .category-image-wrapper {
        padding: 2.5rem;
        border: 4px solid rgba(0, 0, 139, 0.15);
    }
    
    .category-item h3 {
        font-size: 1.25rem !important;
        line-height: 1.75rem !important;
    }
}

/* Modern Confirmation Modal Styles */
#confirmation-modal {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

#confirmation-modal-content {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform-origin: center;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (max-width: 640px) {
    #confirmation-modal-content {
        margin: 1rem;
        max-width: calc(100vw - 2rem);
    }
    
    #confirmation-modal .flex-col {
        gap: 0.75rem;
    }
    
    #confirmation-modal button {
        padding: 0.875rem 1rem;
        font-size: 0.9rem;
    }
}

/* Enhanced delete button hover effect */
.delete-item {
    transition: all 0.2s ease;
    border-radius: 0.5rem;
    padding: 0.25rem;
}

.delete-item:hover {
    background-color: rgba(239, 68, 68, 0.1);
    transform: scale(1.05);
}

.delete-item:hover svg {
    transform: scale(1.1);
}

.delete-item svg {
    transition: transform 0.2s ease;
}

/* Loading state for delete button */
.delete-item.opacity-50 {
    pointer-events: none;
    opacity: 0.5;
}

/* Cart item removal animation */
.cart-product-item {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.cart-product-item.opacity-0 {
    opacity: 0;
    transform: scale(0.95);
}

/* Product Image Carousel Styles */
.product-image-carousel-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 0.5rem;
    overflow: hidden;
}

.product-image-carousel {
    width: 100%;
    height: 100%;
    position: relative;
}

.product-image-carousel .swiper-slide {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image-carousel .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-image-carousel:hover .swiper-slide img {
    transform: scale(1.05);
}

/* Pagination dots styling */
.product-image-carousel .swiper-pagination {
    bottom: 8px !important;
    display: flex;
    justify-content: center;
    gap: 4px;
}

.product-image-carousel .swiper-pagination-bullet {
    width: 6px !important;
    height: 6px !important;
    background: rgba(255, 255, 255, 0.5) !important;
    border-radius: 50% !important;
    opacity: 1 !important;
    transition: all 0.3s ease !important;
    margin: 0 2px !important;
}

.product-image-carousel .swiper-pagination-bullet-active {
    background: white !important;
    transform: scale(1.2) !important;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.3) !important;
}

/* Navigation arrows styling */
.product-image-carousel .swiper-button-prev,
.product-image-carousel .swiper-button-next {
    width: 30px !important;
    height: 30px !important;
    background: rgba(0, 0, 0, 0.5) !important;
    border-radius: 50% !important;
    opacity: 0 !important;
    transition: opacity 0.3s ease !important;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.product-image-carousel-wrapper:hover .swiper-button-prev,
.product-image-carousel-wrapper:hover .swiper-button-next {
    opacity: 1 !important;
}

.product-image-carousel .swiper-button-prev::after,
.product-image-carousel .swiper-button-next::after {
    font-size: 14px !important;
    color: white !important;
    font-weight: bold !important;
}

.product-image-carousel .swiper-button-prev {
    left: 8px !important;
}

.product-image-carousel .swiper-button-next {
    right: 8px !important;
}

/* Mobile optimizations */
@media (max-width: 640px) {
    .product-image-carousel .swiper-button-prev,
    .product-image-carousel .swiper-button-next {
        width: 25px !important;
        height: 25px !important;
    }
    
    .product-image-carousel .swiper-button-prev::after,
    .product-image-carousel .swiper-button-next::after {
        font-size: 12px !important;
    }
    
    .product-image-carousel .swiper-pagination-bullet {
        width: 5px !important;
        height: 5px !important;
    }
    
    .product-image-carousel .swiper-pagination {
        bottom: 6px !important;
    }
}

/* Ensure carousel doesn't interfere with product actions */
.product-thumbnail .product-actions {
    z-index: 30;
}

.product-image-carousel-wrapper {
    z-index: 1;
}

/* Extra large desktop styles - MAXIMUM IMPACT */
@media (min-width: 1536px) {
    .top-categories-section {
        padding: 6rem 0 !important;
        min-height: 350px;
        border-top: 8px solid #00008b;
    }
    
    .top-categories-section h2 {
        font-size: 3.5rem !important;
        line-height: 3.75rem !important;
        margin-bottom: 5rem !important;
    }
    
    .categories-grid .grid {
        gap: 3rem;
        grid-template-columns: repeat(7, 1fr);
    }
    
    .category-image-wrapper {
        padding: 3rem;
        border: 5px solid rgba(0, 0, 139, 0.2);
    }
    
    .category-image-wrapper:hover {
        transform: scale(1.15) rotate(3deg);
        box-shadow: 0 30px 60px rgba(0, 0, 139, 0.4);
    }
    
    .category-item h3 {
        font-size: 1.375rem !important;
        line-height: 1.875rem !important;
    }
    
    .category-item:hover {
        transform: translateY(-20px) scale(1.1);
    }
}

/* RTL support for categories */
[dir="rtl"] .top-categories-section h2 {
    text-align: right;
}

[dir="rtl"] .category-item h3 {
    text-align: center;
}

/* Section Separator Styles */
.section-separator {
    border-top: 1px solid #e5e7eb;
    margin: 2rem 0;
}

@media (min-width: 768px) {
    .section-separator {
        margin: 2.5rem 0;
    }
}

/* Consistent spacing for header elements */
#header-top .flex.gap-3 > * {
    margin: 0;
    padding: 8px;
}

#header-top .flex.gap-3 > button,
#header-top .flex.gap-3 > a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

#header-top .flex.gap-3 > button:hover,
#header-top .flex.gap-3 > a:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

#header-top .flex.gap-3 > button:active,
#header-top .flex.gap-3 > a:active {
    background-color: rgba(0, 0, 0, 0.1);
}

.product-single-wrapper {
  margin-top: 0.25rem !important;
}
.product-single-wrapper p.price ins {
  border-radius: 3rem !important;
  padding-top: 0.45rem !important;
  padding-left: 1rem !important;
  padding-right: 1rem !important;
}
.summary.entry-summary .product_meta {
  display: none !important;
}
/* a.open-cart {
  margin-top: 5px !important;
} */
#mini-cart-count {
  width: 15px !important;
  height: 15px !important;
  line-height: 10px !important;
  text-align: center !important;
  font-size: 9.5px !important;
  font-weight: bold !important;
}
.related-product h3 {
}
main.main-content-class {
  padding: 0.5rem 2.5rem 2.5rem !important;
}
.woocommerce-form-coupon-toggle {
  margin-top: -1.5rem !important;
}

.woocommerce-billing-fields .woocommerce-billing-fields__field-wrapper .form-row.hidden {
  display: none !important;
}
.real-price {
  color: #00008b !important;
  font-weight: bold !important;
}
.button-checkout-modal {
  /* line-height: 30px !important;
  font-size: 3.2vw !important; */
  padding: 10px 0 3px 0 !important;
}
/* #goto-cart {
  background-image: url('assets/images/cart-small.svg');
  background-repeat: no-repeat;
  background-position-y: 47%;
}
.gotocart-ar {
  background-position-x: 10px;
}
.gotocart-en {
  background-position-x: 95%;
} */

#goto-cart svg {
  position:relative;
  top:-3px !important;
}

.related.products {
  gap: 0.25rem !important;
}

.product-single-wrapper .summary {
  margin-top: 0.5rem !important;
}
.product-single-wrapper p.price {
  margin-top: 0.5rem !important;
}

.button-add-to-cart {
  background: #00008b;
  width: 44px !important;
  height: 44px !important;
  border-radius: 22px !important;
  position: absolute;
  bottom: 5px;
  background-image: url("assets/images/cart.svg") !important;
  background-repeat: no-repeat;
  background-position: center;
}
.body-en .button-add-to-cart {
  right: 5px !important;
}
.body-ar .button-add-to-cart {
  left: 5px !important;
}
.add_to_cart_button::after {
  background-image: none !important;
}
.text-underline {
  text-decoration: underline !important;
}
.continue-shopping:hover {
  color: #000 !important;
}

@media screen and (min-width: 768px) {
    .footer-section-item > .footer-section > a > img {
        display: none;
    }
}

#billing_country_field {
  display: none;
}

/* hide coupon form */
.woocommerce-form-coupon-toggle {
  display: none;
}


/* set center checkout form page */
.woocommerce-checkout {
  max-width: 768px !important;
  width: 100%;
  margin: auto;
}

#customer_details .col-2 {
  display: none !important;
}
#customer_details .col-1 {
  width: 100% !important;

}

#order-shipping-method {
  display: none;
}

.woocommerce-checkout-payment {
  background: #FFF !important;
}
.woocommerce-checkout-payment ul {
  padding: 0 !important;
}
.payment-method-item {
  padding: 0.2rem 0.7rem;
  border: 1px solid #00008b;
  border-radius: 0.25rem;
}
.payment_box {
  padding:0.2rem 0.5rem !important;
}

#modal-product .price-price,
#modal-product .woocommerce-Price-amount.amount {
  color: #00008b !important;
  font-weight: bold;
}
.price-price.line-through {
  font-weight: normal !important;
  color: #333 !important;
}

/* .single-product-page .price-price, */
.product-single-wrapper p.price > span {
  color: #FFF !important;
}

del .woocommerce-Price-amount.amount bdi {
  color: #888 !important;
}

#cart-sidebar .text-price-discount .woocommerce-Price-amount.amount bdi {
  color: #00008b !important;
  font-weight: bold;
}
#cart-sidebar .price-price.line-through bdi {
  color: #888 !important;
}
.text-sub-total-price bdi {
  color: #00008b !important;
  font-weight: bold;
}

.input-qty-wrapper {
  width: 110px !important;
}
.input-qty-wrapper input {
  padding-top: 4px;
}
.input-qty-wrapper button {
  padding-top: 2px;
}
.cart-subtotal .woocommerce-Price-amount.amount {
  color: #000 !important;
  font-size: 1.1rem !important;
}

.services-featured-item.card img {
  width: 80px !important;
  height: 80px !important;
}
.services-featured-item {
  min-height: 250px !important;
}
.services-featured-item:hover {
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}
.rounded-lg img {
  border-radius: 2.5rem;
}
main.container.m-auto.page-content {
  padding-bottom: 5rem;
}
/* Home hero responsive design - mobile-first */
.page-content--home {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* AGGRESSIVE hero reduction for categories visibility */
.page-content--home .wp-block-group.is-hero,
.page-content--home .hero,
.page-content--home .wp-block-cover,
.page-content--home .wp-block-image,
.page-content--home .wp-block-media-text {
  margin-left: 0 !important;
  margin-right: 0 !important;
  max-width: 100% !important;
  max-height: 35vh !important; /* MUCH smaller - only 35% of viewport */
  min-height: 200px !important; /* Reduced minimum */
  height: 35vh !important; /* Force specific height */
}

.page-content--home .wp-block-cover,
.page-content--home .wp-block-image img,
.page-content--home .wp-block-cover__image-background,
.page-content--home .wp-block-cover__video-background {
  width: 100% !important;
  height: 35vh !important; /* Force height */
  max-height: 35vh !important; /* Constrain height aggressively */
  display: block;
  object-fit: cover; /* Maintain aspect ratio while constraining height */
}

/* Center hero content (title, buttons) on all screen sizes */
.page-content--home .wp-block-cover {
  position: relative;
}

.page-content--home .wp-block-cover__inner-container {
  max-width: min(1200px, 92vw);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px 16px;
}

/* Center inner content blocks on home without constraining media to narrow container */
.page-content--home .wp-block-group__inner-container,
.page-content--home .wp-block-media-text__content {
  max-width: min(1200px, 92vw);
  margin-left: auto;
  margin-right: auto;
}

.page-content--home .wp-block-image img {
  margin-left: auto;
  margin-right: auto;
}

/* EXTREME mobile optimization for category visibility */
@media (max-width: 640px) {
  .page-content--home .wp-block-cover,
  .page-content--home .wp-block-image,
  .page-content--home .wp-block-group.is-hero,
  .page-content--home .hero {
    max-height: 30vh !important; /* VERY small on mobile - only 30% */
    min-height: 180px !important; /* Much smaller minimum */
    height: 30vh !important; /* Force height */
  }
  
  .page-content--home .wp-block-cover__inner-container {
    padding: 12px 8px; /* Reduced padding */
    font-size: 0.875rem; /* Smaller text if needed */
  }
  
  /* Force images to fit in constrained space */
  .page-content--home .wp-block-cover__image-background,
  .page-content--home .wp-block-cover__video-background,
  .page-content--home .wp-block-image img {
    height: 30vh !important;
    max-height: 30vh !important;
  }
}

/* Tablet optimization - prioritize categories */
@media (min-width: 641px) and (max-width: 1023px) {
  .page-content--home .wp-block-cover,
  .page-content--home .wp-block-image,
  .page-content--home .wp-block-group.is-hero,
  .page-content--home .hero {
    max-height: 40vh !important; /* Reduced to 40% */
    min-height: 280px !important; /* Smaller minimum */
    height: 40vh !important; /* Force height */
  }
  
  .page-content--home .wp-block-cover__inner-container {
    padding: 24px 16px; /* Reduced padding */
  }
  
  /* Force images to fit */
  .page-content--home .wp-block-cover__image-background,
  .page-content--home .wp-block-cover__video-background,
  .page-content--home .wp-block-image img {
    height: 40vh !important;
    max-height: 40vh !important;
  }
}

/* Desktop: Optimized hero for category visibility */
@media (min-width: 1024px) {
  /* Add padding to page-content--home for better spacing on desktop */
  .page-content--home {
    padding: 0 24px !important;
  }
  
  /* Container for centered and AGGRESSIVELY height-constrained hero on desktop */
  .page-content--home .wp-block-cover,
  .page-content--home .wp-block-image,
  .page-content--home .wp-block-group.is-hero,
  .page-content--home .hero {
    max-width: 1200px !important;
    max-height: 45vh !important; /* MUCH smaller - only 45% */
    min-height: 320px !important; /* Reduced minimum */
    height: 45vh !important; /* Force height */
    margin-left: auto !important;
    margin-right: auto !important;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  }
  
  /* Ensure images within hero fit constrained space */
  .page-content--home .wp-block-cover__image-background,
  .page-content--home .wp-block-cover__video-background,
  .page-content--home .wp-block-image img {
    width: 100% !important;
    height: 45vh !important; /* Force to match container */
    max-height: 45vh !important;
    object-fit: cover;
  }
  
  .page-content--home .wp-block-cover__inner-container {
    padding: 32px 24px; /* Reduced padding */
    max-width: 800px;
    margin: 0 auto;
  }
}

/* Large desktop: Optimized for categories visibility */
@media (min-width: 1280px) {
  .page-content--home {
    padding: 0 32px !important;
  }
  
  .page-content--home .wp-block-cover,
  .page-content--home .wp-block-image,
  .page-content--home .wp-block-group.is-hero,
  .page-content--home .hero {
    max-width: 1400px !important;
    max-height: 50vh !important; /* Much smaller - 50% max */
    min-height: 380px !important; /* Reduced minimum */
    height: 50vh !important; /* Force height */
  }
  
  /* Force images to fit */
  .page-content--home .wp-block-cover__image-background,
  .page-content--home .wp-block-cover__video-background,
  .page-content--home .wp-block-image img {
    height: 50vh !important;
    max-height: 50vh !important;
  }
  
  .page-content--home .wp-block-cover__inner-container {
    padding: 48px 32px; /* Reduced padding */
    max-width: 900px;
  }
}

/* Ultra-wide: Aggressive optimization for categories */
@media (min-width: 1536px) {
  .page-content--home .wp-block-cover,
  .page-content--home .wp-block-image,
  .page-content--home .wp-block-group.is-hero,
  .page-content--home .hero {
    max-height: 55vh !important; /* Even smaller on ultra-wide */
    min-height: 420px !important; /* Reduced minimum */
    height: 55vh !important; /* Force height */
  }
  
  /* Force images to fit */
  .page-content--home .wp-block-cover__image-background,
  .page-content--home .wp-block-cover__video-background,
  .page-content--home .wp-block-image img {
    height: 55vh !important;
    max-height: 55vh !important;
  }
  
  .page-content--home .wp-block-cover__inner-container {
    padding: 48px 32px; /* Reduced padding */
  }
}

/* Category header tweaks: image beside name */
.home-category-title { line-height: 1.2; }
.home-category-title .category-thumb { flex-shrink: 0; }
.home-category-title span { display: inline-block; }
@media (max-width: 767px) {
  .home-category-title { font-size: 1.1rem !important; }
}
/* Make category image match product cart icon (~44px) on mobile */
@media (max-width: 767px) {
  .home-category-title .category-thumb {
    width: 44px !important;
    height: 44px !important;
  }
  /* Hide directional arrow icons next to category title on mobile */
  .home-category-title .icon { display: none !important; }
}

/* Homepage products: thin border around product cards */
.page-content--home .woocommerce-product-item > .product-inner,
.page-content--home .swiper .woocommerce-product-item > .product-inner {
  border: 1px solid #e5e7eb; /* gray-200 */
  border-radius: 10px;
  background-color: #ffffff;
  padding: 8px;
}

/* Align price and cart button side-by-side */
.price-and-cart {
  margin-top: 6px;
}
.price-and-cart .cart {
  display: flex;
  align-items: center;
  gap: 8px;
}
.price-and-cart .cart .add_to_cart_button,
.price-and-cart .cart .added_to_cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 9999px;
  color: #fff;
  -webkit-box-shadow: none !important;
  box-shadow: none !important;
  text-shadow: none !important;
  filter: none !important;
}
.price-and-cart .cart .add_to_cart_button::before,
.price-and-cart .cart .add_to_cart_button::after { display: none !important; content: none !important; background: none !important; }
.price-and-cart .cart .added_to_cart {
  background: #1689a3; /* green-600 */
}
.price-and-cart .price del { color: #6b7280; /* gray-500 */ }
.price-and-cart .price ins { text-decoration: none; }

/* Smaller cart icon inside the circular button on homepage cards */
.price-and-cart .cart .button-add-to-cart {
  width: 36px !important;
  height: 36px !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-size: 18px 18px !important; /* reduce icon size */
  position: static !important;
  bottom: auto !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  border-radius: 50% !important;
  transition: all 0.2s ease !important;
}

/* Legacy add to cart styles - replaced by modern component */

/* Legacy WhatsApp styles - overridden by modern component styles */

/* Legacy styles - replaced by modern component styles above */

/* Clean category name styling (no borders) */
.page-content--home .woocommerce-product-item > .product-inner .primary-category-name {
  padding-bottom: 4px;
  margin-bottom: 6px;
  border-bottom: none;
}

/* Clean product name styling (no borders) */
.page-content--home .woocommerce-product-item > .product-inner .product-details .woocommerce-loop-product__title {
  padding-bottom: 4px;
  margin-bottom: 6px;
  border-bottom: none;
  /* Two-line clamp with ellipsis */
  display: -webkit-box !important;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden !important;
  line-height: 1.3;
  /* Reserve space for exactly two lines so card heights align */
  min-height: 2.6em; /* 2 lines * 1.3 line-height */
}
@media (max-width: 767px) {
  .page-content--home .woocommerce-product-item > .product-inner .product-details .woocommerce-loop-product__title {
    font-size: 0.95rem;
    line-height: 1.25;
    min-height: 2.5em; /* 2 lines * 1.25 line-height */
  }
}
/* ==========================================
   MODERN PRODUCT COMPONENT STYLES
   ========================================== */

/* Modern Product Card Base Styles */
.modern-product-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  position: relative;
  height: 100%;
}

.modern-product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.modern-product-card:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
}

/* Product Image Container */
.product-image-container {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 16px;
  margin: 12px;
  margin-bottom: 16px;
}

.product-link {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  text-decoration: none;
  color: inherit;
}

.product-image-wrapper {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  border-radius: 16px;
}

.product-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.modern-product-card:hover .product-image-wrapper img {
  transform: scale(1.05);
}

/* Sale Badge */
.sale-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

/* Product Content */
.product-content {
  padding: 0 18px 22px 18px; /* Slightly increased padding */
  display: flex;
  flex-direction: column;
  align-items: center; /* Center align all content */
  text-align: center; /* Center align text */
  flex-grow: 1;
  gap: 8px;
}

/* Category */
.product-category {
  margin-bottom: 4px;
}

.category-link {
  text-decoration: none;
}

.category-text {
  font-size: 0.75rem;
  color: #6b7280;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.2s ease;
}

.category-link:hover .category-text {
  color: #4f46e5;
}

/* Product Title */
.product-title-section {
  flex-grow: 1;
  margin-bottom: 8px;
}

.title-link {
  text-decoration: none;
  color: inherit;
}

.product-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1f2937;
  line-height: 1.4;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.8em;
  transition: color 0.2s ease;
}

.title-link:hover .product-title {
  color: #4f46e5;
}

/* Rating */
.product-rating {
  margin-bottom: 8px;
}

.product-rating .star-rating {
  font-size: 0.875rem;
}

/* Product Footer */
.product-footer {
  display: flex;
  align-items: center;
  justify-content: center; /* Center the footer content */
  gap: 12px; /* Increased gap */
  margin-top: auto;
  padding-top: 12px; /* Increased padding */
  min-height: 44px; /* Ensure enough space for buttons */
  width: 100%;
}

/* Price Section */
.price-section {
  flex: 0 0 auto; /* Don't flex, use natural width */
  text-align: center;
  margin-right: auto; /* Push buttons to the right */
}

.price-section .price {
  font-weight: 700;
  color: #1f2937;
  font-size: 1.125rem; /* Increased from 1rem to 1.125rem (18px) */
  margin: 0;
  line-height: 1.2;
}

.price-section .price del {
  color: #9ca3af;
  font-weight: 400;
  font-size: 0.875rem;
}

.price-section .price ins {
  text-decoration: none;
  color: #059669;
}

/* Actions Section */
.actions-section {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-shrink: 0;
  min-width: 96px; /* Space for 2 buttons + gap */
}

/* Action Buttons Base */
.action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%; /* Perfect circle */
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  border: none;
  cursor: pointer;
  touch-action: manipulation;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.action-btn:active {
  transform: scale(0.95);
}

.action-btn .btn-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.action-btn .btn-text {
  font-size: 0.75rem;
  font-weight: 600;
  margin-left: 6px;
}

/* WhatsApp Button */
.whatsapp-btn {
  background: #25d366 !important;
  color: white !important;
  box-shadow: 0 2px 8px rgba(37, 211, 102, 0.25) !important;
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important;
  border: none !important;
  min-width: 44px !important;
  max-width: 44px !important;
  min-height: 44px !important;
  max-height: 44px !important;
}

.whatsapp-btn:hover {
  background: #22c55e;
  transform: translateY(-1px) scale(1.05);
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
}

.whatsapp-btn:active {
  transform: scale(0.95);
  box-shadow: 0 1px 4px rgba(37, 211, 102, 0.3);
}

/* Add to Cart Button Wrapper */
.add-to-cart-wrapper {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.add-to-cart-wrapper .button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important; /* Perfect circle */
  background: #00008b !important;
  color: white !important;
  border: none !important;
  text-decoration: none !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  font-size: 0 !important;
  padding: 0 !important;
  min-height: auto !important;
  line-height: 1 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 139, 0.25) !important;
  position: relative !important;
  overflow: hidden !important;
}

.add-to-cart-wrapper .button:hover {
  background: #0000cd !important;
  transform: translateY(-1px) scale(1.05) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 139, 0.4) !important;
}

.add-to-cart-wrapper .button:active {
  transform: scale(0.95) !important;
  box-shadow: 0 1px 4px rgba(0, 0, 139, 0.3) !important;
}

.add-to-cart-wrapper .button::before {
  content: '';
  width: 18px;
  height: 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white' stroke-width='2.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M3 3h2l.4 2M7 13h10l4-8H5.4m0 0L7 13m0 0l-1.1 5.4M7 13v8a2 2 0 002 2h6a2 2 0 002-2v-8'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 18px 18px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Mobile Optimizations */
@media (max-width: 767px) {
  .modern-product-card {
    border-radius: 16px;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.08);
  }
  
  .product-image-container {
    margin: 8px;
    margin-bottom: 12px;
    border-radius: 12px;
  }
  
  .product-image-wrapper {
    border-radius: 12px;
  }
  
  .product-content {
    padding: 0 14px 18px 14px; /* Slightly increased for mobile */
    gap: 6px;
    align-items: center; /* Center align on mobile */
    text-align: center; /* Center text on mobile */
  }
  
  /* Force WhatsApp button to be circular on mobile */
  .whatsapp-btn {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    min-width: 40px !important;
    max-width: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
  }
  
  .product-title {
    font-size: 0.875rem;
    min-height: 2.4em;
  }
  
  .price-section .price {
    font-size: 1rem; /* Increased from 0.875rem to 1rem (16px) on mobile */
    font-weight: 700;
  }
  
  .product-footer {
    gap: 8px; /* Better gap on mobile */
    min-height: 40px;
    flex-wrap: nowrap; /* Prevent wrapping */
  }
  
  .price-section {
    flex: 0 0 auto; /* Don't flex on mobile */
    text-align: center;
    margin-right: auto; /* Push buttons to right */
  }
  
  .actions-section {
    gap: 4px; /* Tight gap between buttons on mobile */
    min-width: 84px; /* Exact space for 2 x 40px buttons + gap */
    flex-shrink: 0;
    flex-wrap: nowrap;
  }
  
  .action-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%; /* Keep circular on mobile */
    flex-shrink: 0;
    position: relative;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.15);
  }
  
  .action-btn .btn-icon {
    width: 16px;
    height: 16px;
  }
  
  .add-to-cart-wrapper {
    display: inline-flex !important;
    flex-shrink: 0;
  }
  
  .add-to-cart-wrapper .button {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important; /* Keep circular on mobile */
    flex-shrink: 0 !important;
    position: relative !important;
    box-shadow: 0 1px 6px rgba(0, 0, 139, 0.2) !important;
  }
  
  .add-to-cart-wrapper .button::before {
    width: 16px;
    height: 16px;
    background-size: 16px 16px;
  }
}

/* Grid Layout Optimizations */
@media (max-width: 767px) {
  .grid.gap-3 {
    gap: 0.75rem !important;
  }
  
  .grid.gap-5 {
    gap: 1rem !important;
  }
}

/* Swiper Optimizations for Modern Cards */
.swiper {
  padding-bottom: 2rem !important;
  margin: 0 -0.5rem;
}

.swiper-slide {
  padding: 0 0.5rem !important;
}

@media (max-width: 767px) {
  .swiper {
    margin: 0 -0.25rem;
  }
  
  .swiper-slide {
    padding: 0 0.25rem !important;
  }
}

.services-featured-container {
  margin-bottom: 5.5rem;
}

@media (max-width: 767px) {
  .services-featured-container {
    margin-bottom: 3rem; /* Reduced on mobile */
  }
}

.products .woocommerce-product-item > .product-inner .product-thumbnail {
  height: auto;
}
#sidebar-social-media {
  position:absolute;
  bottom: 0;
  height: 90px;
  width:100%;
}
.block-area a {
  display: block;
}

.checkout-pricing {
  padding: 0.5rem 0.3rem !important;
  border-bottom: 1px solid #CCC;
}
.checkout-total {
  font-weight: bold;
  background: #EFEFEF;
  border-bottom: 0px !important;
  color: #00008b !important;
  padding: 0.8rem 0.3rem !important;
}
.checkout-pricing .woocommerce-Price-amount.amount,
.order-summary-item .woocommerce-Price-amount.amount {
  color: #00008b !important;
}
.order-summary-bottom {
  padding: 0.4rem 0.2rem !important;
  border-top: 1px solid #EFEFEF;
  margin-top: 1rem;
  color: #333;
}

/* Modal: clearer section title separator */
.modal-section-title {
  justify-content: center;
}
.modal-section-title .line {
  flex: 1 1 auto;
  height: 1px;
  background: #e5e7eb; /* gray-200 */
}
.modal-section-title .title-text {
  white-space: nowrap;
  padding: 0 8px;
  color: #111827; /* gray-900 */
  font-weight: 600;
}

/* Uniform product thumbnail dimensions (site-wide) */
.woocommerce-product-item > .product-inner .product-thumbnail {
  width: 100% !important;
  aspect-ratio: 1 / 1; /* square tiles */
  overflow: hidden;
  position: relative;
}
.woocommerce-product-item > .product-inner .product-thumbnail img,
.swiper .woocommerce-product-item .product-thumbnail img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block;
}

/* Ensure the image's parent anchor fills the thumbnail box */
.woocommerce-product-item > .product-inner .product-thumbnail > a,
.swiper .woocommerce-product-item .product-thumbnail > a {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
}

/* Absolute-position fallback so images always display and fill */
.woocommerce-product-item > .product-inner .product-thumbnail {
  position: relative !important;
}
.woocommerce-product-item > .product-inner .product-thumbnail img,
.swiper .woocommerce-product-item .product-thumbnail img {
  position: absolute !important;
  inset: 0 !important;
  z-index: 0;
}
.woocommerce-product-item > .product-inner .product-thumbnail .product-actions {
  z-index: 2;
}

/* Swiper: clearer mobile pagination/drag affordance */
#products- .swiper-pagination-bullet,
.swiper .swiper-pagination-bullet {
  width: 7px;
  height: 7px;
  background: #cccccc;
  opacity: 1;
}
.swiper .swiper-pagination-bullet-active {
  background: #00008b;
}
/* On small screens, hide big arrows to avoid overlap; show dots */
@media (max-width: 767px) {
  .swiper-prev, .swiper-next { display: none !important; }
  /* Sleeker mobile logo proportions */
  header a.inline-block img { height: auto; }
  header a.inline-block { max-height: 30px; }
}
