/* ========================================
   BENKSOURI SHOP - PROFESSIONAL E-COMMERCE
   Mobile-First Responsive Design
   ======================================== */

/* Empêcher le scroll horizontal sur mobile */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}

.container, .container-fluid {
    max-width: 100%;
}

/* Overflow-x hidden uniquement sur mobile */
@media (max-width: 991px) {
    .container, .container-fluid {
        overflow-x: hidden;
    }
}

:root {
    /* Brand Colors */
    --primary-color: #ffc107;
    --primary-dark: #e6ac00;
    --primary-light: #ffd54f;
    --secondary-color: #212529;
    --secondary-light: #495057;
    
    /* UI Colors */
    --text-primary: #1a1a1a;
    --text-secondary: #6c757d;
    --text-light: #999;
    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    --bg-lighter: #fafbfc;
    --border-color: #e9ecef;
    --border-light: #f1f3f5;
    
    /* Status Colors */
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
    --info: #17a2b8;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --shadow-xl: 0 12px 32px rgba(0,0,0,0.15);
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
}

/* ========================================
   BASE STYLES
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Helvetica Neue', sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-lighter);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 16px;
}

html {
    scroll-behavior: smooth;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-color);
}

/* Container Responsive */
.container {
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 768px) {
    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

/* ========================================
   NAVIGATION (Mobile-First)
   ======================================== */

.navbar {
    background: var(--bg-white) !important;
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
    padding: 0.75rem 0;
    transition: all var(--transition-base);
    position: sticky;
    top: 0;
    z-index: 1000;
    overflow: visible !important;
}

.navbar-dark {
    background: var(--secondary-color) !important;
}

.navbar-brand {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    transition: transform var(--transition-fast);
}

.navbar-brand:hover {
    transform: scale(1.02);
}

.navbar-brand img {
    height: 36px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
    transition: opacity var(--transition-fast);
}

.navbar-brand img:hover {
    opacity: 0.9;
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    transition: background-color var(--transition-fast);
}

.navbar-toggler:focus {
    box-shadow: none;
    background-color: rgba(255,255,255,0.1);
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    position: relative;
}

.nav-link:hover {
    background-color: rgba(255,193,7,0.1);
    transform: translateY(-1px);
}

.nav-link i {
    font-size: 1.1rem;
    margin-right: 0.25rem;
}

/* Cart Badge */
.nav-link .badge {
    font-size: 0.65rem;
    padding: 0.25em 0.5em;
    font-weight: 700;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Dropdown Menu */
.dropdown-menu {
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-md);
    padding: 0.5rem;
    margin-top: 0.5rem;
    min-width: 220px;
    z-index: 1050 !important;
}

.dropdown-item {
    border-radius: var(--radius-sm);
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}

.dropdown-item:hover {
    background-color: var(--bg-light);
    transform: translateX(4px);
}

.dropdown-item i {
    width: 20px;
    margin-right: 0.5rem;
}

.dropdown-divider {
    margin: 0.5rem 0;
    opacity: 0.1;
}

/* Mobile Navigation */
@media (max-width: 991px) {
    .navbar-collapse {
        background: var(--bg-white);
        padding: 1rem;
        margin-top: 1rem;
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-md);
        overflow: visible;
    }
    
    .navbar-dark .navbar-collapse {
        background: rgba(33,37,41,0.98);
    }
    
    .nav-link {
        margin: 0.25rem 0;
    }
    
    .dropdown-menu {
        border: 1px solid var(--border-color);
        box-shadow: none;
        margin-left: 1rem;
    }
}

@media (min-width: 992px) {
    .navbar {
        padding: 1rem 0;
    }
    
    .navbar-brand img {
        height: 40px;
    }
}

/* ========================================
   ANNOUNCEMENT BANNER
   ======================================== */

.announcement-banner {
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 0.75rem 0;
    overflow: hidden;
    position: relative;
    border-bottom: 2px solid rgba(0,0,0,0.1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.announcement-content {
    position: relative;
    width: 100%;
    overflow: hidden;
    display: flex;
}

.announcement-text {
    display: inline-block;
    white-space: nowrap;
    font-weight: 600;
    font-size: 0.95rem;
    animation: scrollText 15s linear infinite;
    padding-right: 50px;
}

/* Duplicate text for seamless loop */
.announcement-text::after {
    content: attr(data-text);
    padding-left: 50px;
}

@keyframes scrollText {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Pause animation on hover */
.announcement-banner:hover .announcement-text {
    animation-play-state: paused;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .announcement-banner {
        padding: 0.5rem 0;
    }
    
    .announcement-text {
        font-size: 0.85rem;
        animation: scrollText 12s linear infinite;
    }
}

/* ========================================
   HERO SECTION (Mobile-First)
   ======================================== */

.hero-section {
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
}

.hero-slide {
    height: 320px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slide.default-hero {
    background: linear-gradient(135deg, #212529 0%, #495057 50%, #212529 100%);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.3) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 1.5rem;
    max-width: 600px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    text-shadow: 0 2px 12px rgba(0,0,0,0.3);
    letter-spacing: -0.5px;
}

.hero-content p {
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    text-shadow: 0 1px 6px rgba(0,0,0,0.3);
    opacity: 0.95;
}

.hero-content .btn {
    font-weight: 600;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 16px rgba(255,193,7,0.4);
    transition: all var(--transition-base);
    border: none;
}

.hero-content .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(255,193,7,0.5);
}

/* Carousel Controls */
.carousel-control-prev,
.carousel-control-next {
    width: 40px;
    height: 40px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.3);
    border-radius: 50%;
    opacity: 0;
    transition: all var(--transition-base);
}

.carousel:hover .carousel-control-prev,
.carousel:hover .carousel-control-next {
    opacity: 1;
}

.carousel-control-prev {
    left: 15px;
}

.carousel-control-next {
    right: 15px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: rgba(0,0,0,0.5);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 20px;
    height: 20px;
}

/* Carousel Indicators */
.carousel-indicators {
    bottom: 15px;
}

.carousel-indicators [data-bs-target] {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin: 0 4px;
    background-color: rgba(255,255,255,0.5);
    border: none;
    transition: all var(--transition-base);
}

.carousel-indicators .active {
    width: 24px;
    border-radius: 4px;
    background-color: var(--primary-color);
}

/* Hero - Tablet & Desktop */
@media (min-width: 768px) {
    .hero-slide {
        height: 420px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.15rem;
    }
    
    .carousel-control-prev {
        left: 30px;
    }
    
    .carousel-control-next {
        right: 30px;
    }
}

@media (min-width: 1200px) {
    .hero-slide {
        height: 480px;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .hero-content p {
        font-size: 1.25rem;
    }
}

/* ========================================
   CATEGORY CARDS (Mobile-First)
   ======================================== */

.category-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    text-align: center;
    transition: all var(--transition-base);
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    transform: scaleX(0);
    transition: transform var(--transition-base);
}

.category-card:hover::before {
    transform: scaleX(1);
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.category-card img,
.category-image {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 1rem;
    transition: transform var(--transition-base);
}

.category-card:hover img,
.category-card:hover .category-image {
    transform: scale(1.1) rotate(5deg);
}

.category-card h5,
.category-card h6 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    transition: color var(--transition-fast);
}

.category-card:hover h5,
.category-card:hover h6 {
    color: var(--primary-dark);
}

.category-image-placeholder {
    width: 60px;
    height: 60px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: var(--primary-color);
}

/* Full Width Category Cards (Grid View) */
.category-full-card {
    background: var(--bg-white);
    border: none;
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
    height: 100%;
}

.category-full-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.category-full-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.category-full-card:hover img {
    transform: scale(1.08);
}

.category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 60%, transparent 100%);
    padding: 1.5rem;
    color: white;
}

/* Swiper Category Carousel */
.category-swiper {
    padding: 1rem 0 2rem;
}

.category-swiper .swiper-wrapper {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-swiper .swiper-slide {
    height: auto;
    list-style: none;
}

.swiper-button-next,
.swiper-button-prev {
    background: var(--bg-white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: var(--shadow-md);
    color: var(--text-primary);
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 16px;
    font-weight: 700;
}

.swiper-pagination-bullet {
    background: var(--text-secondary);
    opacity: 0.4;
}

.swiper-pagination-bullet-active {
    background: var(--primary-color);
    opacity: 1;
}

/* Category - Tablet & Desktop */
@media (min-width: 768px) {
    .category-card img,
    .category-image {
        width: 70px;
        height: 70px;
    }
    
    .category-card {
        padding: 2rem 1.5rem;
    }
    
    .category-full-card img {
        height: 200px;
    }
}

/* ========================================
   SEARCH BOX
   ======================================== */

.search-box {
    position: relative;
}

.search-box .input-group-text {
    padding: 0.75rem 1rem;
}

.search-box .form-control {
    padding: 0.75rem 1rem;
    font-size: 1rem;
}

.search-box .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(255, 193, 7, 0.25);
}

.search-results {
    border: 1px solid var(--border-color);
}

.hover-bg-light:hover {
    background-color: var(--bg-light);
}

/* Account Page Sidebar */
.list-group-item-action.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-dark);
}

.list-group-item-action:hover {
    background-color: rgba(255, 193, 7, 0.1);
}

/* ========================================
   PRODUCT CARDS (Mobile-First)
   ======================================== */

.product-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-base);
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.product-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform var(--transition-slow);
    background: var(--bg-light);
}

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

.product-image-zoom {
    overflow: hidden;
    position: relative;
}

.product-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.product-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.product-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.product-title a:hover {
    color: var(--primary-dark);
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-top: auto;
    margin-bottom: 0.75rem;
}

.product-price small {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-secondary);
}

/* Product Detail Page */
.product-detail-image {
    max-height: 500px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

/* Product Actions */
.product-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.product-actions .btn {
    flex: 1;
    min-width: 140px;
    font-weight: 600;
    border-radius: var(--radius-md);
    padding: 0.75rem 1.5rem;
    transition: all var(--transition-base);
}

/* Product - Tablet & Desktop */
@media (min-width: 768px) {
    .product-image {
        height: 260px;
    }
    
    .product-body {
        padding: 1.5rem;
    }
}

/* ========================================
   BUTTONS (Mobile Optimized)
   ======================================== */

.btn {
    font-weight: 600;
    border-radius: var(--radius-md);
    padding: 0.65rem 1.5rem;
    transition: all var(--transition-base);
    border: none;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: var(--secondary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--secondary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-warning {
    background: var(--primary-color);
    color: var(--secondary-color);
    font-weight: 700;
}

.btn-warning:hover {
    background: var(--primary-dark);
    color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(255,193,7,0.4);
}

.btn-outline-warning {
    border: 2px solid var(--primary-color);
    color: var(--primary-dark);
    background: transparent;
}

.btn-outline-warning:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 0.875rem 2rem;
    font-size: 1.05rem;
}

/* Mobile Touch-Friendly Buttons */
@media (max-width: 767px) {
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
        min-height: 44px; /* iOS recommended touch target */
    }
    
    .btn-sm {
        padding: 0.6rem 1.25rem;
        min-height: 40px;
    }
}

/* ========================================
   BADGES & LABELS
   ======================================== */

.badge {
    padding: 0.4em 0.75em;
    font-weight: 600;
    border-radius: var(--radius-sm);
    font-size: 0.85em;
    letter-spacing: 0.3px;
}

.badge.bg-success {
    background-color: var(--success) !important;
    color: white;
    box-shadow: 0 2px 8px rgba(40,167,69,0.3);
}

.badge.bg-warning {
    background-color: var(--primary-color) !important;
    color: var(--secondary-color);
    box-shadow: 0 2px 8px rgba(255,193,7,0.3);
}

.badge.bg-danger {
    background-color: var(--danger) !important;
    color: white;
}

/* ========================================
   CART (Mobile-First)
   ======================================== */

.cart-item {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-bottom: 1rem;
    transition: all var(--transition-fast);
}

.cart-item:hover {
    box-shadow: var(--shadow-md);
}

.cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.cart-item-info {
    flex: 1;
    padding: 0 1rem;
}

.cart-item-title {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.cart-item-price {
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 1.1rem;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-light);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
}

.quantity-control button {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--bg-white);
    border-radius: var(--radius-sm);
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.quantity-control button:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
}

.quantity-control input {
    width: 50px;
    text-align: center;
    border: none;
    background: transparent;
    font-weight: 600;
}

.cart-summary {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 100px;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-light);
}

.cart-summary-total {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark);
}

/* Cart - Mobile Responsive */
@media (max-width: 767px) {
    .cart-item {
        flex-direction: column;
        gap: 1rem;
    }
    
    .cart-item-image {
        width: 100%;
        height: 180px;
    }
    
    .cart-item-info {
        padding: 0;
    }
    
    .cart-item-actions {
        justify-content: space-between;
        width: 100%;
    }
    
    .cart-summary {
        position: static;
        margin-top: 1.5rem;
    }
}

/* ========================================
   FORMS (Mobile-First)
   ======================================== */

.form-control,
.form-select {
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all var(--transition-fast);
    background: var(--bg-white);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255,193,7,0.15);
    outline: none;
}

.form-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(255,193,7,0.15);
}

/* Mobile Form Optimization */
@media (max-width: 767px) {
    .form-control,
    .form-select {
        padding: 0.875rem 1rem;
        font-size: 16px; /* Prevent zoom on iOS */
        min-height: 48px;
    }
}

/* ========================================
   CARDS
   ======================================== */

.card {
    background: var(--bg-white);
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-header {
    background: var(--bg-light);
    border-bottom: 1px solid var(--border-light);
    padding: 1.25rem;
    font-weight: 600;
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    background: var(--bg-lighter);
    border-top: 1px solid var(--border-light);
    padding: 1.25rem;
}

/* Service Cards */
.service-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    padding: 2rem;
    text-align: center;
    transition: all var(--transition-base);
    height: 100%;
}

.service-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px);
    border-color: var(--primary-color);
}

.service-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-card h4 {
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.service-card p {
    color: var(--text-secondary);
    margin: 0;
}

/* ========================================
   ALERTS & NOTIFICATIONS
   ======================================== */

.alert {
    border: none;
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    border-left: 4px solid;
}

.alert-success {
    background: rgba(40,167,69,0.1);
    border-left-color: var(--success);
    color: #155724;
}

.alert-danger {
    background: rgba(220,53,69,0.1);
    border-left-color: var(--danger);
    color: #721c24;
}

.alert-warning {
    background: rgba(255,193,7,0.1);
    border-left-color: var(--warning);
    color: #856404;
}

.alert-info {
    background: rgba(23,162,184,0.1);
    border-left-color: var(--info);
    color: #0c5460;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999;
}

.toast {
    min-width: 280px;
    box-shadow: var(--shadow-lg);
    border: none;
    border-radius: var(--radius-md);
}

@media (max-width: 767px) {
    .toast-container {
        top: 70px;
        right: 10px;
        left: 10px;
    }
    
    .toast {
        min-width: auto;
        width: 100%;
    }
}

/* ========================================
   BREADCRUMB
   ======================================== */

.breadcrumb {
    background: transparent;
    padding: 1rem 0;
    margin-bottom: 1.5rem;
}

.breadcrumb-item {
    font-size: 0.9rem;
}

.breadcrumb-item a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.breadcrumb-item a:hover {
    color: var(--primary-dark);
}

.breadcrumb-item.active {
    color: var(--text-primary);
    font-weight: 600;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--text-light);
}

/* ========================================
   PAGINATION
   ======================================== */

.pagination {
    gap: 0.5rem;
}

.page-link {
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.5rem 0.875rem;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.page-link:hover {
    background-color: var(--bg-light);
    border-color: var(--primary-color);
    color: var(--primary-dark);
}

.page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--secondary-color);
    font-weight: 700;
}

.page-item.disabled .page-link {
    opacity: 0.5;
}

/* ========================================
   LOYALTY CARD
   ======================================== */

.loyalty-card-container {
    max-width: 600px;
    margin: 0 auto;
}

.loyalty-card {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-light) 100%);
    border-radius: var(--radius-xl);
    padding: 2rem;
    color: white;
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
}

.loyalty-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: rgba(255,193,7,0.1);
    border-radius: 50%;
}

.loyalty-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.loyalty-points {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.loyalty-barcode {
    background: white;
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-top: 1.5rem;
}

/* ========================================
   FOOTER
   ======================================== */

footer {
    background: var(--secondary-color);
    color: white;
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}

footer a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color var(--transition-fast);
}

footer a:hover {
    color: var(--primary-color);
}

footer h5 {
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: white;
}

footer ul {
    list-style: none;
    padding: 0;
}

footer ul li {
    margin-bottom: 0.75rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
}

.footer-social a:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
    transform: translateY(-3px);
}

/* ========================================
   LOADING & SPINNERS
   ======================================== */

.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.spinner-overlay.active {
    display: flex;
}

.spinner-border {
    border-width: 3px;
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

/* Section Spacing */
.section-padding {
    padding: 3rem 0;
}

@media (min-width: 768px) {
    .section-padding {
        padding: 4rem 0;
    }
}

@media (min-width: 1200px) {
    .section-padding {
        padding: 5rem 0;
    }
}

/* Section Titles */
.section-title {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    letter-spacing: -0.5px;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    margin: 1rem auto 0;
    border-radius: 2px;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 2.25rem;
    }
}

/* Text Utilities */
.text-muted {
    color: var(--text-secondary) !important;
}

.text-small {
    font-size: 0.875rem;
}

.text-large {
    font-size: 1.125rem;
}

/* Background Utilities */
.bg-gradient {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
}

/* Shadow Utilities */
.shadow-soft {
    box-shadow: var(--shadow-sm);
}

.shadow-hover:hover {
    box-shadow: var(--shadow-lg);
}

/* ========================================
   ANIMATIONS
   ======================================== */

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

.fade-in {
    animation: fadeIn 0.6s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

/* ========================================
   PROMO PRODUCTS SECTION
   ======================================== */

.promo-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.promo-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 40px rgba(220,53,69,0.15);
}

.promo-discount-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #dc3545 0%, #ff0000 100%);
    color: white;
    font-weight: 800;
    font-size: 1.1rem;
    padding: 8px 16px;
    border-radius: 12px;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(220,53,69,0.4);
    animation: badge-bounce 2s infinite;
}

@keyframes badge-bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.promo-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 100%;
    overflow: hidden;
    background: #f8f9fa;
}

.promo-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.promo-card:hover .promo-image {
    transform: scale(1.1);
}

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

.promo-category {
    color: #6c757d;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.promo-title {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.4;
    color: #212529;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.8rem;
}

.promo-title a {
    color: #212529;
    text-decoration: none;
    transition: color 0.3s;
}

.promo-title a:hover {
    color: #dc3545;
}

.promo-price-box {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe8e8 100%);
    border-radius: 12px;
    padding: 0.875rem;
    text-align: center;
    border: 2px dashed #dc3545;
}

.old-price {
    font-size: 0.85rem;
    color: #6c757d;
    text-decoration: line-through;
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.new-price {
    font-size: 1.5rem;
    color: #dc3545;
    font-weight: 800;
    line-height: 1;
}

.btn-promo {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(220,53,69,0.3);
}

.btn-promo:hover {
    background: linear-gradient(135deg, #c82333 0%, #bd2130 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220,53,69,0.4);
}

/* Mobile adjustments for promo */
@media (max-width: 768px) {
    .promo-discount-badge {
        font-size: 0.95rem;
        padding: 6px 12px;
        top: 8px;
        left: 8px;
    }
    
    .promo-content {
        padding: 1rem;
    }
    
    .promo-title {
        font-size: 0.875rem;
        min-height: 2.4rem;
    }
    
    .new-price {
        font-size: 1.25rem;
    }
    
    .btn-promo {
        font-size: 0.85rem;
        padding: 0.625rem 1.25rem;
    }
}

/* Remove old promo styles */
.promo-product,
.badge-circle,
.promo-ribbon {
    display: none;
}

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

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
    .navbar,
    .footer,
    .btn,
    .alert {
        display: none;
    }
    
    body {
        background: white;
    }
    
    .container {
        max-width: 100%;
    }
}

/* ========================================
   ACCESSIBILITY
   ======================================== */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* Focus Styles */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 3px solid rgba(255,193,7,0.5);
    outline-offset: 2px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
