/* RTL adjustments for hero shapes and spacing */
[dir="rtl"] .hero-section.hero-modern .hero-shape-1 { left: auto; right: -60px; }
[dir="rtl"] .hero-section.hero-modern .hero-shape-2 { right: auto; left: -40px; }

/* Prevent horizontal scroll on small screens */
body.menu-open { overflow: hidden; }
/* Modern Homepage Styles */
:root {
    --primary-color: #e83e8c;       /* Pink color */
    --secondary-color: #d63384;     /* Darker pink */
    --accent-color: #ffd700;        /* Gold color */
    --light-bg: #fff0f6;           /* Light pink background */
    --dark-text: #4a1e3d;           /* Dark purple-pink for text */
    --light-text: #8b5a7c;          /* Lighter purple-pink for secondary text */
    --transition: all 0.3s ease;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --border-radius: 12px;
}

/* Override container width */
.container {
    max-width: 1600px !important;
/*    padding-left: 15px !important;
    padding-right: 15px !important;*/
}

/* Adjust row margins */
.row {
    margin-left: 2% !important;
    margin-right: 2% !important;
}

/* Adjust column padding */
[class*="col-"] {
    padding-left: 8px !important;   
    padding-right: 8px !important;
}

/* Hero Section (Modern Refresh) */
.hero-section.hero-modern {
    background:
      radial-gradient(1200px 600px at -10% -20%, rgba(255,215,0,0.15), transparent 60%),
      radial-gradient(1000px 500px at 110% 0%, rgba(255,192,203,0.15), transparent 60%),
      linear-gradient(135deg, #F8C8DC 0%, #F8C8DC 100%);
    color: #fff;
    padding: clamp(2.5rem, 4vw + 1rem, 5rem) 0 clamp(2rem, 3vw + 0.5rem, 4rem);
    margin: 0; /* remove negative margins to prevent overflow on mobile */
    width: 100%;
    overflow: hidden;
}

.hero-gradient-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.0) 0%, rgba(0,0,0,0.05) 40%, rgba(0,0,0,0.15) 100%);
    pointer-events: none;
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(30px);
    opacity: .2;
}
.hero-shape-1 { width: 280px; height: 280px; background: #ffd700; top: -60px; left: -60px; }
.hero-shape-2 { width: 220px; height: 220px; background: #fff0f6; bottom: -60px; right: -40px; }

.hero-badge {
    background: var(--accent-color);
    color: #000;
    font-weight: 800;
    padding: .55rem 1rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
}

.hero-title { font-size: clamp(1.8rem, 3.2vw + 1rem, 3.2rem); font-weight: 900; line-height: 1.2; margin: 0; }
.hero-subtitle { font-size: clamp(1rem, 1.2vw + .6rem, 1.15rem); opacity: .95; margin: .5rem 0 0; }
.hero-image {
    max-height: min(48vh, 480px);
    width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 12px 30px rgba(0,0,0,.25));
}

/* Ghost button */
.btn.btn-ghost { border: 2px solid rgba(255,255,255,.7); color: #fff; background: transparent; }
.btn.btn-ghost:hover { border-color: #fff; transform: translateY(-2px); }

/* Floating badges */
.floating-badge {
    position: absolute;
    width: 42px; height: 42px;
    border-radius: 50%;
    display: grid; place-items: center;
    background: rgba(255,255,255,.9);
    color: #e83e8c;
    box-shadow: 0 10px 25px rgba(0,0,0,.15);
    animation: float 6s ease-in-out infinite;
}
.floating-badge.badge-1 { top: 10%; right: 22%; animation-delay: 0s; }
.floating-badge.badge-2 { top: 40%; right: 6%; animation-delay: .8s; }
.floating-badge.badge-3 { bottom: 8%; right: 18%; animation-delay: 1.6s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Trust chips */
.hero-trust.chips {
  display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: center;
}
.hero-trust .chip {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  color:#000;
  padding: .55rem .9rem; border-radius: 999px;
  backdrop-filter: blur(6px);
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
    .hero-trust .chip i {
        color: #e83e8c;
    }
.hero-trust .chip:hover { transform: translateY(-2px); background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.35); }

@media (max-width: 992px) {
  /* Option B: Tablet sizing */
  .hero-section.hero-modern .hero-title { font-size: 2.2rem; }
  .hero-section.hero-modern .hero-subtitle { font-size: 1.1rem; }
  .hero-section.hero-modern .hero-image { max-height: 340px; }
}

/* Add vertical gap between text and image on small screens */
@media (max-width: 576px) {
  /* When columns stack, add space below content and above image */
  .hero-section.hero-modern .hero-content { margin-bottom: clamp(0.75rem, 3.5vw, 1.25rem); }
  .hero-section.hero-modern .hero-media { margin-top: clamp(0.75rem, 3.5vw, 1.5rem); }
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-inline: clamp(0.5rem, 2vw, 1rem);
}

.hero-title { /* keep duplicate selector for specificity in hero-modern */
    font-weight: 800;
    margin-bottom: clamp(0.5rem, 1.8vw, 1.5rem);
    line-height: 1.2;
}

.hero-subtitle {
    margin-bottom: clamp(0.8rem, 2.2vw, 2rem);
    opacity: 0.9;
}

/* Featured Products Section - New Design */
.featured-products-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #fff9fb 0%, #fff0f6 100%);
    position: relative;
    overflow: hidden;
}

/* Owl Carousel nav styling for Featured Products */
.featured-products-carousel.owl-carousel .owl-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    pointer-events: none; /* allow clicks only on buttons */
}

.featured-products-carousel.owl-carousel .owl-nav .owl-prev,
.featured-products-carousel.owl-carousel .owl-nav .owl-next {
    position: absolute;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #ffffff;
    color: #e83e8c;
    box-shadow: 0 8px 18px rgba(232, 62, 140, 0.25);
    border: 2px solid rgba(232, 62, 140, 0.2);
    display: grid;
    place-items: center;
    pointer-events: all; /* re-enable click on buttons */
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
    z-index: 5;
}

/* Position: place outside edges a bit */
.featured-products-carousel.owl-carousel .owl-nav .owl-prev { left: -18px; }
.featured-products-carousel.owl-carousel .owl-nav .owl-next { right: -18px; }

/* Icon sizes inside buttons */
.featured-products-carousel.owl-carousel .owl-nav .owl-prev i,
.featured-products-carousel.owl-carousel .owl-nav .owl-next i {
    font-size: 1rem;
    line-height: 1;
}

.featured-products-carousel.owl-carousel .owl-nav .owl-prev:hover,
.featured-products-carousel.owl-carousel .owl-nav .owl-next:hover {
    background: #e83e8c;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(232, 62, 140, 0.35);
}

/* Dots hidden (we already set dots: false in JS) but keep style neat if enabled */
.featured-products-carousel.owl-carousel .owl-dots {
    margin-top: 10px;
}
.featured-products-carousel.owl-carousel .owl-dots .owl-dot span {
    background: rgba(232, 62, 140, 0.3);
}
.featured-products-carousel.owl-carousel .owl-dots .owl-dot.active span {
    background: #e83e8c;
}

/* RTL awareness: navText uses chevrons set in view; ensure no mirroring issues */
[dir="rtl"] .featured-products-carousel.owl-carousel .owl-nav .owl-prev { left: -18px; right: auto; }
[dir="rtl"] .featured-products-carousel.owl-carousel .owl-nav .owl-next { right: -18px; left: auto; }

.featured-products-section .section-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.featured-products-section .section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dark-text);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    padding: 0 2rem;
}

.featured-products-section .section-title:before,
.featured-products-section .section-title:after {
    content: '';
    position: absolute;
    top: 50%;
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-color), #e83e8c);
}

.featured-products-section .section-title:before {
    right: 100%;
}

.featured-products-section .section-title:after {
    left: 100%;
}

.featured-products-section .section-subtitle {
    color: var(--light-text);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    padding: 0 1rem;
}

/* Product Card */
.product-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    border: 1px solid rgba(232, 62, 140, 0.1);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(232, 62, 140, 0.15);
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent-color);
    color: #000;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.product-image-container {
    position: relative;
    padding-top: 100%;
    overflow: hidden;
    background: #f9f9f9;
}

.product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
/*    padding: 1.5rem;
*/}

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

.product-details {
/*    padding: 1.5rem;
*/    text-align: center;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 0.75rem;
    line-height: 1.4;
    height: 3.1rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
}

.product-description {
    color: var(--light-text);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.5;
    height: 2.8rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
}

.price-section {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.current-price {
    font-size: 1.3rem;
    font-weight: 800;
    color: #e83e8c;
    line-height: 1;
}

.original-price {
    font-size: 1rem;
    color: #999;
    text-decoration: line-through;
}

.product-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    padding: 0 1.5rem 1.5rem;
}

.action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-details-btn {
    background: #e83e8c;
    color: white;
    flex: 2;
}

.view-details-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(232, 62, 140, 0.3);
}

.wishlist-btn {
    background: #f8f9fa;
    color: var(--dark-text);
    border: 1px solid #eee;
}

.wishlist-btn:hover {
    background: #f0f0f0;
    color: #e83e8c;
}

/* View All Button */
.view-all-container {
    text-align: center;
    margin-top: 3.5rem;
}

.view-all-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.9rem 2.5rem;
    background: white;
    color: #e83e8c;
    border: 2px solid #e83e8c;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 0.95rem;
    box-shadow: 0 5px 15px rgba(232, 62, 140, 0.1);
}

.view-all-btn:hover {
    background: #e83e8c;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(232, 62, 140, 0.25);
}

.view-all-btn i {
    margin-right: 8px;
    transition: transform 0.3s ease;
}

.view-all-btn:hover i {
    transform: translateX(-3px);
}

/* Responsive Adjustments */
/* Mobile responsive for carousel navigation arrows */
@media (max-width: 768px) {
    .featured-products-carousel.owl-carousel .owl-nav .owl-prev,
    .featured-products-carousel.owl-carousel .owl-nav .owl-next,
    .new-products-carousel.owl-carousel .owl-nav .owl-prev,
    .new-products-carousel.owl-carousel .owl-nav .owl-next {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }

    .featured-products-carousel.owl-carousel .owl-nav .owl-prev { left: -15px; }
    .featured-products-carousel.owl-carousel .owl-nav .owl-next { right: -15px; }
    .new-products-carousel.owl-carousel .owl-nav .owl-prev { left: -15px; }
    .new-products-carousel.owl-carousel .owl-nav .owl-next { right: -15px; }

    [dir="rtl"] .featured-products-carousel.owl-carousel .owl-nav .owl-prev { left: -15px; right: auto; }
    [dir="rtl"] .featured-products-carousel.owl-carousel .owl-nav .owl-next { right: -15px; left: auto; }
    [dir="rtl"] .new-products-carousel.owl-carousel .owl-nav .owl-prev { left: -15px; right: auto; }
    [dir="rtl"] .new-products-carousel.owl-carousel .owl-nav .owl-next { right: -15px; left: auto; }
}

@media (max-width: 576px) {
    .featured-products-carousel.owl-carousel .owl-nav .owl-prev,
    .featured-products-carousel.owl-carousel .owl-nav .owl-next,
    .new-products-carousel.owl-carousel .owl-nav .owl-prev,
    .new-products-carousel.owl-carousel .owl-nav .owl-next {
        width: 36px;
        height: 36px;
        font-size: 0.8rem;
    }

    .featured-products-carousel.owl-carousel .owl-nav .owl-prev { left: -12px; }
    .featured-products-carousel.owl-carousel .owl-nav .owl-next { right: -12px; }
    .new-products-carousel.owl-carousel .owl-nav .owl-prev { left: -12px; }
    .new-products-carousel.owl-carousel .owl-nav .owl-next { right: -12px; }

    [dir="rtl"] .featured-products-carousel.owl-carousel .owl-nav .owl-prev { left: -12px; right: auto; }
    [dir="rtl"] .featured-products-carousel.owl-carousel .owl-nav .owl-next { right: -12px; left: auto; }
    [dir="rtl"] .new-products-carousel.owl-carousel .owl-nav .owl-prev { left: -12px; right: auto; }
    [dir="rtl"] .new-products-carousel.owl-carousel .owl-nav .owl-next { right: -12px; left: auto; }
}

@media (max-width: 768px) {
    .hero-section.hero-modern { padding-top: 3rem; padding-bottom: 2.5rem; }
    .hero-content { text-align: center; }
    .hero-image { max-height: 300px; }
    .floating-badge { display: none; }
    .featured-products-section { padding: 3.5rem 0; }
    .featured-products-section .section-title {
        font-size: 2rem;
    }
    
    .featured-products-section .section-title:before,
    .featured-products-section .section-title:after {
        width: 30px;
    }
    

    .action-btn {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .hero-section.hero-modern { padding-top: 2.5rem; padding-bottom: 2rem; }
    /* Option B: Mobile sizing */
    .hero-section.hero-modern .hero-title { font-size: 1.6rem; }
    .hero-section.hero-modern .hero-subtitle { font-size: 1.0rem; }
    .hero-section.hero-modern .hero-image { max-height: 240px; }
    .featured-products-section .section-title {
        font-size: 1.75rem;
        padding: 0 1.5rem;
    }
    
    .featured-products-section .section-title:before,
    .featured-products-section .section-title:after {
        width: 20px;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
}
.featured-products-section {
    padding: 4rem 0;
    background: white;
    position: relative;
    overflow: hidden;
}

.featured-products-section .section-heading {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

.featured-products-section .section-heading h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
}

.featured-products-section .section-heading h2:after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background: var(--accent-color);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 3px;
}

.featured-products-section .section-heading p {
    color: var(--light-text);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Product Card Styling */
.product-card {
    border: 1px solid rgba(232, 62, 140, 0.15);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    margin-bottom: 2rem;
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
/*    height: 100%;
*/    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: rgba(232, 62, 140, 0.3);
}

.product-img {
    position: relative;
    overflow: hidden;
    background: #f8f9fa;
    text-align: center;
}

.product-img img {
    width: 100%;
    height: 250px;
    object-fit: contain;
    transition: var(--transition);
}

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

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #e83e8c;
    color: #fff;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 1;
}

.product-description {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-description h6 {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark-text);
    font-size: 1rem;
}

.product-description .text-muted {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.product-price {
    font-weight: 700;
    color: #e83e8c;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.old-price {
    text-decoration: line-through;
    color: var(--light-text);
    font-weight: 400;
    margin-right: 8px;
    font-size: 0.9rem;
}

.hover-content {
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    margin-top: auto;
}

.product-card:hover .hover-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.add-to-cart-btn .btn {
    width: 100%;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.add-to-cart-btn .btn:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
}

/* View All Button */
.view-all-btn {
    text-align: center;
    margin-top: 2rem;
}

.view-all-btn .btn {
    padding: 0.7rem 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 2px solid #e83e8c;
    color: #e83e8c;
    background: transparent;
    transition: var(--transition);
}

.view-all-btn .btn:hover {
    background: #e83e8c;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(232, 62, 140, 0.2);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .featured-products-section {
        padding: 3rem 0;
    }
    
    .featured-products-section .section-heading h2 {
        font-size: 1.8rem;
    }
    
    .product-img img {
        height: 200px;
    }
}

/* Category Cards */
.category-card {
    border: 1px solid rgba(232, 62, 140, 0.2);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(232, 62, 140, 0.1);
    background: white;
    height: 100%;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.category-img {
    height: 200px;
    object-fit: cover;
    width: 100%;
}

.category-body {
    padding: 1.5rem;
}

.category-title {
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 0.5rem;
}

/* Product Cards */
.product-card {
    border: 1px solid rgba(232, 62, 140, 0.1);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    margin-bottom: 2rem;
    background: white;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow);
}

.product-img {
    height: 200px;
    object-fit: cover;
    width: 100%;
}

.product-body {
    padding: 1.25rem;
}

.product-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark-text);
}

.product-price {
    font-weight: 700;
    color: #e83e8c;
    font-size: 1.1rem;
}

/* Buttons */
.btn-modern {
    background: #e83e8c;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.btn-modern:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-weight: 800;
    color: var(--dark-text);
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
}

.section-header h2:after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background: #e83e8c;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
}

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

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Newsletter Section */
.newsletter-section {
    background: var(--light-bg);
    padding: 4rem 0;
    border-radius: var(--border-radius);
    margin: 4rem 0;
}

.newsletter-form {
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-input {
    border: 2px solid #e1e1e1;
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    width: 100%;
    margin-bottom: 1rem;
    transition: var(--transition);
}

.newsletter-input:focus {
    border-color: #e83e8c;
    box-shadow: 0 0 0 0.2rem rgba(108, 99, 255, 0.25);
    outline: none;
}

/* Categories Modern Section */
.categories-modern {
    background: linear-gradient(135deg, #fff9fb 0%, #fff0f6 100%);
    border-radius: var(--border-radius);
}

.categories-modern .section-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--dark-text);
}

.categories-modern .section-subtitle {
    color: var(--light-text);
    font-size: 1rem;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 220px));
    gap: 1.25rem;
    justify-content: center; /* center the grid tracks */
    justify-items: stretch;  /* stretch cards within cells */
}

@media (max-width: 576px) {
    .categories-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.85rem;
    }
}

.category-card-modern {
    position: relative;
    display: block;
    border-radius: 16px;
    overflow: hidden;
    min-height: 180px;
    background: #f7f7f7;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    transform: translateZ(0);
    transition: transform .35s ease, box-shadow .35s ease;
}

.category-card-modern:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(232, 62, 140, 0.18);
}

.category-media {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform .6s ease;
}

.category-card-modern:hover .category-media {
    transform: scale(1.06);
}

.category-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.45) 100%);
    pointer-events: none;
    transition: opacity .35s ease;
}

.category-card-modern:hover .category-overlay {
    opacity: 0.6;
}

.category-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1rem 1rem 1.1rem;
    text-align: center;
    z-index: 2;
}

.category-title {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 0 .4rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.category-link {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    background: #fff;
    color: var(--primary-color);
    border-radius: 999px;
    padding: .35rem .75rem;
    font-size: .85rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(232, 62, 140, 0.2);
    transition: background .3s ease, color .3s ease, transform .3s ease;
}

.category-card-modern:hover .category-link {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
}

/* Owl Carousel nav styling for New Products Carousel */
.new-products-carousel.owl-carousel .owl-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    pointer-events: none; /* allow clicks only on buttons */
}

.new-products-carousel.owl-carousel .owl-nav .owl-prev,
.new-products-carousel.owl-carousel .owl-nav .owl-next {
    position: absolute;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #ffffff;
    color: #e83e8c;
    box-shadow: 0 8px 20px rgba(232, 62, 140, 0.25);
    border: 2px solid rgba(232, 62, 140, 0.2);
    display: grid;
    place-items: center;
    pointer-events: all; /* re-enable click on buttons */
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
    z-index: 5;
    font-size: 1.1rem;
}

/* Position: place outside edges a bit */
.new-products-carousel.owl-carousel .owl-nav .owl-prev { left: -20px; }
.new-products-carousel.owl-carousel .owl-nav .owl-next { right: -20px; }

/* Icon sizes inside buttons */
.new-products-carousel.owl-carousel .owl-nav .owl-prev i,
.new-products-carousel.owl-carousel .owl-nav .owl-next i {
    font-size: 1.1rem;
    line-height: 1;
}

.new-products-carousel.owl-carousel .owl-nav .owl-prev:hover,
.new-products-carousel.owl-carousel .owl-nav .owl-next:hover {
    background: #e83e8c;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(232, 62, 140, 0.35);
    border-color: #e83e8c;
}

/* RTL awareness for new products carousel */
[dir="rtl"] .new-products-carousel.owl-carousel .owl-nav .owl-prev { left: -20px; right: auto; }
[dir="rtl"] .new-products-carousel.owl-carousel .owl-nav .owl-next { right: -20px; left: auto; }

/* Mobile responsive for carousel navigation arrows */
@media (max-width: 768px) {
    .featured-products-carousel.owl-carousel .owl-nav .owl-prev,
    .featured-products-carousel.owl-carousel .owl-nav .owl-next,
    .new-products-carousel.owl-carousel .owl-nav .owl-prev,
    .new-products-carousel.owl-carousel .owl-nav .owl-next {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }

    .featured-products-carousel.owl-carousel .owl-nav .owl-prev { left: -15px; }
    .featured-products-carousel.owl-carousel .owl-nav .owl-next { right: -15px; }
    .new-products-carousel.owl-carousel .owl-nav .owl-prev { left: -15px; }
    .new-products-carousel.owl-carousel .owl-nav .owl-next { right: -15px; }

    [dir="rtl"] .featured-products-carousel.owl-carousel .owl-nav .owl-prev { left: -15px; right: auto; }
    [dir="rtl"] .featured-products-carousel.owl-carousel .owl-nav .owl-next { right: -15px; left: auto; }
    [dir="rtl"] .new-products-carousel.owl-carousel .owl-nav .owl-prev { left: -15px; right: auto; }
    [dir="rtl"] .new-products-carousel.owl-carousel .owl-nav .owl-next { right: -15px; left: auto; }
}

@media (max-width: 576px) {
    .featured-products-carousel.owl-carousel .owl-nav .owl-prev,
    .featured-products-carousel.owl-carousel .owl-nav .owl-next,
    .new-products-carousel.owl-carousel .owl-nav .owl-prev,
    .new-products-carousel.owl-carousel .owl-nav .owl-next {
        width: 36px;
        height: 36px;
        font-size: 0.8rem;
    }

    .featured-products-carousel.owl-carousel .owl-nav .owl-prev { left: -12px; }
    .featured-products-carousel.owl-carousel .owl-nav .owl-next { right: -12px; }
    .new-products-carousel.owl-carousel .owl-nav .owl-prev { left: -12px; }
    .new-products-carousel.owl-carousel .owl-nav .owl-next { right: -12px; }

    [dir="rtl"] .featured-products-carousel.owl-carousel .owl-nav .owl-prev { left: -12px; right: auto; }
    [dir="rtl"] .featured-products-carousel.owl-carousel .owl-nav .owl-next { right: -12px; left: auto; }
    [dir="rtl"] .new-products-carousel.owl-carousel .owl-nav .owl-prev { left: -12px; right: auto; }
    [dir="rtl"] .new-products-carousel.owl-carousel .owl-nav .owl-next { right: -12px; left: auto; }
}
