/* Custom CSS for Moms Sunshine E-commerce */

:root {
    --primary-color: #e91e63;
    --secondary-color: #f8bbd9;
    --success-color: #4caf50;
    --info-color: #2196f3;
    --warning-color: #ff9800;
    --danger-color: #f44336;
    --dark-color: #212529;
    --light-color: #f8f9fa;
}

/* Global Styles */
body {
    /* font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; */
    /* line-height: 1.6; */
    font-family: "Mozilla Text", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

/* Hero Section */
.hero-slide {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

/* Product Cards */
.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
}

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

.product-card img {
    transition: transform 0.3s ease;
}

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

/* Feature Boxes */
.feature-box {
    padding: 2rem 1rem;
    transition: transform 0.3s ease;
}

.feature-box:hover {
    transform: translateY(-10px);
}

/* Cart Badge */
.nav-link .badge {
    font-size: 0.7rem;
}

/* Custom Button Styles */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #c2185b;
    border-color: #c2185b;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Form Styles */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(233, 30, 99, 0.25);
}

/* Loading States */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, .3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Card Hover Effects */
.card {
    transition: box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Product Detail Page */
.product-gallery img {
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.product-gallery img:hover {
    opacity: 0.8;
}

/* Star Ratings */
.star-rating {
    color: #ffc107;
}

/* Cart Page */
.cart-item {
    border-bottom: 1px solid #dee2e6;
    padding: 1rem 0;
}

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

/* Checkout Progress */
.checkout-progress {
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-color) 33%, #dee2e6 33%, #dee2e6 100%);
    height: 4px;
    margin-bottom: 2rem;
}

/* Dashboard Cards */
.dashboard-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px;
}

.dashboard-card h3 {
    font-size: 2.5rem;
    font-weight: 700;
}

/* Order Status Badges */
.status-pending {
    background-color: var(--warning-color);
}

.status-processing {
    background-color: var(--info-color);
}

.status-shipped {
    background-color: var(--primary-color);
}

.status-delivered {
    background-color: var(--success-color);
}

.status-cancelled {
    background-color: var(--danger-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-slide h1 {
        font-size: 2rem;
    }

    .hero-slide .lead {
        font-size: 1rem;
    }

    .navbar-nav .dropdown-menu {
        position: static;
        float: none;
        width: auto;
        margin-top: 0;
        background-color: transparent;
        border: 0;
        box-shadow: none;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in-left {
    animation: slideInLeft 0.5s ease-in-out;
}

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

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Social Links */
.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary-color);
}

/* Search Box */
.search-box {
    position: relative;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #dee2e6;
    border-top: none;
    border-radius: 0 0 0.375rem 0.375rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
}

.search-result-item {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f8f9fa;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.search-result-item:hover {
    background-color: #f8f9fa;
}

.search-result-item:last-child {
    border-bottom: none;
}

/* Custom Scrollbar */
.custom-scrollbar::-webkit-scrollbar {
    width: 8px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #c2185b;
}

/* Print Styles */
@media print {

    .navbar,
    .footer,
    .btn,
    .alert {
        display: none !important;
    }

    .container {
        width: 100% !important;
        max-width: none !important;
    }
}

/* Custom CSS for multi-level dropdown */
.dropdown-submenu {
  position: relative;
}

.dropdown-submenu .dropdown-menu {
  position: absolute;
  top: 0;
  left: 100%;
  margin-top: -1px;
  margin-left: -1px;
  border-radius: 0.375rem;
  min-width: 200px;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(0, 0, 0, 0.1);
  z-index: 1000;
  display: none;
}

.dropdown-submenu:hover > .dropdown-menu {
  display: block;
}

/* Hide default Bootstrap arrow */
.dropdown-submenu > .dropdown-toggle::after {
  display: none;
}

/* Custom arrow styling for Bootstrap Icons */
.dropdown-submenu .dropdown-toggle {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.dropdown-submenu .dropdown-toggle .bi {
  font-size: 0.8rem;
  color: #6c757d;
  margin-left: auto;
}

/* Ensure proper spacing */
.dropdown-item {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  white-space: nowrap;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Hover effects */
.dropdown-item:hover,
.dropdown-item:focus {
  background-color: #f8f9fa;
  color: #16181b;
}

.dropdown-submenu:hover > .dropdown-toggle {
  background-color: #f8f9fa;
  color: #16181b;
}

/* Main dropdown menu styling */
.dropdown-menu {
  min-width: 250px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  border-radius: 0.375rem;
  padding: 0.5rem 0;
}

/* Responsive behavior */
@media (max-width: 768px) {
  .dropdown-submenu .dropdown-menu {
    position: static !important;
    float: none;
    width: auto;
    margin-top: 0;
    margin-left: 0;
    background-color: #f8f9fa;
    border: none;
    box-shadow: none;
    padding-left: 1rem;
    border-radius: 0;
  }
  
  .dropdown-submenu .dropdown-item {
    padding-left: 1.5rem;
    font-size: 0.85rem;
  }
  
  .dropdown-submenu .dropdown-toggle i {
    transform: rotate(90deg);
  }
}

/* Third level (grandchildren) styling */
.dropdown-submenu .dropdown-submenu .dropdown-menu {
  left: 100%;
  top: 0;
}

.dropdown-submenu .dropdown-submenu .dropdown-item {
  font-size: 0.85rem;
  padding-left: 1.25rem;
}

/* Divider between category groups */
.dropdown-divider {
  margin: 0.5rem 0;
}