/* Modern Professional Styles for Premium Chocolates Lebanon */

/* ===== CSS Variables for Easy Customization ===== */
:root {
    /* Modern Color Palette - Premium Chocolate Theme */
    --primary-color: #7A4E2E;
    --primary-dark: #5C3A22;
    --primary-light: #9D6B4A;
    --secondary-color: #D4AF37;
    --secondary-dark: #B8941F;
    --secondary-light: #E8C866;
    --accent-color: #F5C842;
    --accent-gold: #FFD700;
    --dark-color: #1A0F08;
    --dark-secondary: #2C1810;
    --light-bg: #FEFCF9;
    --light-secondary: #F8F6F3;
    --white: #FFFFFF;
    --text-dark: #1A0F08;
    --text-medium: #4A4A4A;
    --text-light: #6B6B6B;
    --text-muted: #9B9B9B;
    --border-color: #E8E5E0;
    --border-light: #F0EDE8;
    
    /* Modern Shadows - Depth & Elevation */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.16);
    --shadow-gold: 0 4px 20px rgba(212, 175, 55, 0.25);
    --shadow-primary: 0 4px 20px rgba(122, 78, 46, 0.2);
    
    /* Smooth Transitions */
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    
    /* Spacing Scale */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    --radius-full: 9999px;
}

/* ===== Global Styles ===== */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
    background: linear-gradient(180deg, var(--light-bg) 0%, var(--light-secondary) 100%);
    background-attachment: fixed;
    color: var(--text-dark);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: 0.01em;
    font-weight: 400;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    line-height: 1.3;
    color: var(--dark-color);
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

h1 { font-size: 3rem; font-weight: 800; }
h2 { font-size: 2.25rem; font-weight: 700; }
h3 { font-size: 1.75rem; font-weight: 700; }
h4 { font-size: 1.5rem; font-weight: 600; }
h5 { font-size: 1.25rem; font-weight: 600; }
h6 { font-size: 1rem; font-weight: 600; }

/* ===== Hero Section ===== */
.hero-gradient {
    background: linear-gradient(to right, #3E2723, #FFD700) !important;
}

/* ===== Product Links ===== */
.product-image-link {
    text-decoration: none;
    display: block;
    transition: var(--transition);
}

.product-image-link:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

.product-name-link {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.product-name-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* ===== Font Awesome Icon Fixes ===== */
.fas, .far, .fab, .fal, .fa {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands", "Font Awesome 6 Pro";
    font-weight: 900;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1;
    display: inline-block;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.fab {
    font-family: "Font Awesome 6 Brands";
    font-weight: 400;
}

.far {
    font-weight: 400;
}

.fal {
    font-weight: 300;
}

/* ===== Navigation ===== */
.navbar {
    background: linear-gradient(135deg, var(--dark-color) 0%, var(--primary-color) 100%) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2), 0 2px 8px rgba(0, 0, 0, 0.15);
    padding: 1rem 0;
    transition: var(--transition);
    position: sticky;
    top: 0;
    z-index: 1030;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.625rem;
    font-weight: 800;
    color: var(--accent-gold) !important;
    text-decoration: none;
    transition: var(--transition);
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 0.625rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.navbar-brand i {
    font-size: 1.75rem;
    color: var(--accent-color);
    transition: var(--transition);
}

.navbar-brand:hover {
    color: var(--white) !important;
    transform: translateY(-2px);
}

.navbar-brand:hover i {
    color: var(--white);
    transform: rotate(5deg) scale(1.05);
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.95) !important;
    font-weight: 600;
    font-size: 0.9375rem;
    padding: 0.75rem 1.25rem !important;
    margin: 0 0.25rem;
    border-radius: var(--radius-md);
    transition: var(--transition);
    letter-spacing: 0.3px;
    position: relative;
    backdrop-filter: blur(10px);
}

.navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    bottom: 0.375rem;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-gold) 0%, var(--secondary-color) 100%);
    border-radius: var(--radius-full);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.4);
}

.navbar-nav .nav-link:hover::before,
.navbar-nav .nav-link.active::before {
    width: calc(100% - 2rem);
}

.navbar-nav .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--white) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.navbar-nav .nav-link.active {
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--accent-color) !important;
}

/* Mobile Navigation Improvements */
.navbar-toggler {
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    transition: var(--transition);
}

.navbar-toggler:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.95)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Mobile Menu Styling */
@media (max-width: 991px) {
    .navbar-collapse {
        background: linear-gradient(180deg, rgba(44, 24, 16, 0.98) 0%, rgba(139, 69, 19, 0.98) 100%);
        backdrop-filter: blur(10px);
        border-radius: 12px;
        margin-top: 1rem;
        padding: 1rem;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .navbar-nav {
        gap: 0.25rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.875rem 1rem !important;
        margin: 0.25rem 0;
        border-radius: 8px;
        font-size: 1rem;
        border-left: 3px solid transparent;
        transition: var(--transition);
    }
    
    .navbar-nav .nav-link:hover {
        background-color: rgba(255, 255, 255, 0.15);
        border-left-color: var(--accent-color);
        padding-left: 1.25rem;
        transform: translateX(4px);
    }
    
    .navbar-nav .nav-link::before {
        display: none;
    }
}

/* Wishlist Icon - Modern Heart Shape */
.wishlist-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    font-size: 1.15rem !important;
    padding: 0 !important;
    margin: 0 0.5rem !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: visible;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.wishlist-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 32px;
    height: 32px;
    background: rgba(255, 107, 107, 0.1);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.wishlist-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 107, 107, 0.4);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 16px rgba(255, 107, 107, 0.3), 0 2px 8px rgba(0, 0, 0, 0.2);
}

.wishlist-icon:hover::before {
    opacity: 1;
}

.wishlist-icon i {
    position: relative;
    z-index: 1;
    color: rgba(255, 107, 107, 0.9);
    transition: transform 0.3s ease;
}

.wishlist-icon:hover i {
    transform: scale(1.1);
}

/* Cart Icon - Modern Shopping Bag Shape */
.cart-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    font-size: 1.15rem !important;
    padding: 0 !important;
    margin: 0 0.5rem !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: visible;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.cart-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 32px;
    height: 32px;
    background: rgba(76, 175, 80, 0.1);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cart-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(76, 175, 80, 0.4);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 16px rgba(76, 175, 80, 0.3), 0 2px 8px rgba(0, 0, 0, 0.2);
}

.cart-icon:hover::before {
    opacity: 1;
}

.cart-icon i {
    position: relative;
    z-index: 1;
    color: rgba(76, 175, 80, 0.9);
    transition: transform 0.3s ease;
}

.cart-icon:hover i {
    transform: scale(1.1);
}

/* Modern Pill-shaped badges for counters */
.wishlist-icon .badge,
.cart-icon .badge {
    border-radius: 12px !important;
    padding: 0.2em 0.6em !important;
    min-width: 22px !important;
    height: 20px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    font-weight: 700;
    font-size: 0.7rem !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25), 0 0 0 2px rgba(255, 255, 255, 0.1);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, #DC3545 0%, #C82333 100%) !important;
    animation: badge-pulse 2s ease-in-out infinite;
}

@keyframes badge-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* ===== Hero Section ===== */
.hero {
    background: linear-gradient(135deg, var(--dark-color) 0%, var(--primary-color) 50%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="0.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease-out;
}

.hero .lead {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Buttons ===== */
.btn {
    border-radius: var(--radius-md);
    font-weight: 600;
    padding: 0.875rem 1.75rem;
    transition: var(--transition);
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.75px;
    font-size: 0.875rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
    min-height: 44px;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
    box-shadow: var(--shadow-sm);
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--secondary-color) 100%);
    color: var(--dark-color);
    box-shadow: var(--shadow-md), var(--shadow-gold);
    font-weight: 700;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-lg), var(--shadow-gold);
    color: var(--dark-color);
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-gold) 100%);
}

.btn-primary:active {
    transform: translateY(-1px) scale(0.98);
}

.btn-outline-dark {
    border: 2px solid var(--dark-color);
    color: var(--dark-color);
    background: transparent;
}

.btn-outline-dark:hover {
    background: var(--dark-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline-danger {
    border: 2px solid #DC3545;
    color: #DC3545;
    background: transparent;
}

.btn-outline-danger:hover {
    background: #DC3545;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-danger {
    background: linear-gradient(135deg, #DC3545 0%, #C82333 100%);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--white);
}

.btn-success {
    background: linear-gradient(135deg, #28A745 0%, #218838 100%);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--white);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* ===== Product Cards ===== */
.product-card {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    background: var(--white);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-light);
    position: relative;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    opacity: 0;
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg), var(--shadow-primary);
    border-color: var(--secondary-color);
}

.product-card:hover::before {
    opacity: 1;
}

.product-card img {
    height: 200px;
    object-fit: cover;
    transition: var(--transition);
    width: 100%;
}

.product-card a img {
    display: block;
}

.product-card:hover img {
    transform: scale(1.03);
}

.product-card h5 a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

.product-card h5 a:hover {
    color: var(--secondary-color);
}

.product-card .card-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    background: linear-gradient(180deg, var(--white) 0%, var(--light-bg) 100%);
}

.product-card h5 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
    min-height: 2.5rem;
    line-height: 1.3;
}

.product-card .price {
    font-size: 1.375rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.875rem;
    font-family: 'Playfair Display', serif;
    letter-spacing: 0.02em;
}

.product-card .btn {
    margin-top: auto;
    margin-bottom: 0.25rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
}

.product-card .btn + .btn {
    margin-left: 0.25rem;
}

/* ===== Price ===== */
.price {
    font-size: 1.5rem;
    color: var(--secondary-color);
    font-weight: 700;
    font-family: 'Playfair Display', serif;
}

/* ===== Forms ===== */
.form-control {
    border-radius: var(--radius-md);
    border: 2px solid var(--border-color);
    padding: 0.875rem 1.125rem;
    transition: var(--transition);
    font-size: 1rem;
    background: var(--white);
    color: var(--text-dark);
    box-shadow: var(--shadow-xs);
}

.form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.25rem rgba(212, 175, 55, 0.15), var(--shadow-sm);
    outline: none;
    background: var(--white);
    transform: translateY(-1px);
}

.form-control::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

/* Override for password inputs to ensure icon space */
.password-input-wrapper .form-control {
    padding-right: 2.75rem !important;
}

.form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

/* ===== Tables ===== */
.table {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
}

.table thead {
    background: linear-gradient(135deg, var(--dark-color) 0%, var(--primary-color) 100%);
    color: var(--white);
}

.table thead th {
    border: none;
    padding: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.875rem;
}

.table tbody tr {
    transition: var(--transition);
}

.table tbody tr:hover {
    background-color: rgba(212, 175, 55, 0.05);
}

.table tbody td {
    padding: 1rem;
    vertical-align: middle;
    border-color: var(--border-color);
}

/* ===== Alerts ===== */
.alert {
    border-radius: var(--radius-lg);
    border: none;
    padding: 1.125rem 1.5rem;
    box-shadow: var(--shadow-md);
    border-left: 4px solid;
    backdrop-filter: blur(10px);
}

.alert-danger {
    background-color: #F8D7DA;
    color: #721C24;
}

.alert-success {
    background-color: #D4EDDA;
    color: #155724;
}

/* ===== Cards ===== */
.card {
    border: none;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    background: var(--white);
}

.card:hover {
    box-shadow: var(--shadow-md);
}

/* ===== Footer ===== */
footer {
    background: linear-gradient(135deg, var(--dark-color) 0%, var(--primary-color) 100%);
    color: var(--white);
    padding: 3rem 0 2rem;
    margin-top: 4rem;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
}

footer h5 {
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

footer a {
    color: var(--accent-color);
    text-decoration: none;
    transition: var(--transition);
}

footer a:hover {
    color: var(--white);
    text-decoration: underline;
}

#currency-toggle {
    color: var(--accent-color) !important;
    text-decoration: underline;
    cursor: pointer;
    transition: var(--transition);
    background: transparent !important;
    border: none !important;
    padding: 0.25rem 0.5rem !important;
    outline: none !important;
    user-select: none;
    -webkit-user-select: none;
}

#currency-toggle:hover {
    color: var(--white) !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border-radius: 4px;
}

#currency-toggle:focus {
    color: var(--accent-color) !important;
    background: transparent !important;
    outline: 2px solid var(--accent-color) !important;
    outline-offset: 2px !important;
}

#currency-toggle:active {
    color: var(--white) !important;
    background: rgba(255, 255, 255, 0.2) !important;
    transform: scale(0.98);
    outline: none !important;
}

/* Remove focus outline after click */
#currency-toggle:focus:not(:active) {
    outline: none !important;
}

/* ===== Sections ===== */
section {
    padding: 4rem 0;
}

.container {
    max-width: 1200px;
}

.py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}

/* ===== List Groups ===== */
.list-group-item {
    border: 1px solid var(--border-color);
    border-radius: 8px !important;
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

.list-group-item:hover {
    background-color: rgba(212, 175, 55, 0.05);
    border-color: var(--secondary-color);
    transform: translateX(4px);
}

/* ===== Quantity Input ===== */
.qty {
    width: 80px;
    text-align: center;
    border-radius: 8px;
    border: 2px solid var(--border-color);
    padding: 0.5rem;
    font-weight: 600;
    -moz-appearance: textfield; /* Remove Firefox spinner arrows */
}

.qty::-webkit-outer-spin-button,
.qty::-webkit-inner-spin-button {
    -webkit-appearance: none; /* Remove Chrome/Safari spinner arrows */
    margin: 0;
}

.qty:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.25);
}

/* Quantity Input with Increment/Decrement Buttons */
.quantity-wrapper {
    display: inline-flex;
    align-items: center;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    background: var(--white);
    transition: var(--transition);
}

.quantity-wrapper:focus-within {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.25);
}

.quantity-wrapper .qty {
    border: none;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    border-radius: 0;
    width: 60px;
    padding: 0.5rem 0.25rem;
    margin: 0;
    box-shadow: none;
}

.quantity-wrapper .qty:focus {
    border-color: var(--border-color);
    box-shadow: none;
    outline: none;
}

.quantity-btn {
    background: var(--light-bg);
    border: none;
    color: var(--text-dark);
    cursor: pointer;
    padding: 0.5rem 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    user-select: none;
    -webkit-user-select: none;
}

.quantity-btn:hover {
    background: var(--secondary-color);
    color: var(--white);
}

.quantity-btn:active {
    background: var(--primary-color);
    transform: scale(0.95);
}

.quantity-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--light-bg);
    color: var(--text-light);
}

.quantity-btn.decrement {
    border-radius: 8px 0 0 8px;
}

.quantity-btn.increment {
    border-radius: 0 8px 8px 0;
}

/* Responsive quantity buttons */
@media (max-width: 767px) {
    .quantity-wrapper {
        width: 100%;
        max-width: 150px;
    }
    
    .quantity-wrapper .qty {
        width: 50px;
        font-size: 0.9rem;
    }
    
    .quantity-btn {
        min-width: 32px;
        padding: 0.5rem 0.5rem;
        font-size: 0.875rem;
    }
}

/* ===== Loading Spinner ===== */
.fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* ===== Contact Links ===== */
.contact-link {
    color: var(--primary-color) !important;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.contact-link:hover {
    color: var(--secondary-color) !important;
    text-decoration: underline;
}

/* ===== FAQ Section Headers ===== */
.faq-section {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    margin-bottom: 2rem;
    transition: var(--transition);
}

.faq-section:hover {
    box-shadow: var(--shadow-lg);
}

.faq-section-header {
    display: flex;
    align-items: center;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-color) 100%);
    color: var(--white);
    border-radius: 12px 12px 0 0;
    margin-bottom: 0;
    box-shadow: var(--shadow-md);
}

.faq-section-header i {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-right: 0.75rem;
}

.faq-section-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
    color: var(--white);
}

/* ===== FAQ Accordion ===== */
.accordion-item {
    border: 1px solid var(--border-color);
    border-radius: 0 !important;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border-top: none;
}

.accordion-item:first-child {
    border-top: 1px solid var(--border-color);
}

.accordion-item:last-child {
    border-radius: 0 0 12px 12px !important;
}

.accordion-item:hover {
    box-shadow: var(--shadow-md);
}

.accordion-button {
    background-color: var(--light-bg);
    color: var(--text-dark);
    font-weight: 600;
    padding: 1.25rem 1.5rem;
    border: none;
    box-shadow: none;
    transition: var(--transition);
    font-size: 1.05rem;
}

.accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-gold) 100%);
    color: var(--dark-color);
    box-shadow: var(--shadow-sm);
    font-weight: 700;
}

.accordion-button:not(.collapsed) i {
    color: var(--dark-color);
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(212, 175, 55, 0.25);
    border-color: var(--secondary-color);
}

.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23212529'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    transition: var(--transition);
}

.accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    transform: rotate(180deg);
}

.accordion-body {
    background-color: var(--white);
    padding: 1.5rem;
    line-height: 1.8;
}

.accordion-body ul,
.accordion-body ol {
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
}

.accordion-body li {
    margin-bottom: 0.5rem;
}

.accordion-body strong {
    color: var(--text-dark);
    font-weight: 600;
}

.accordion-body a.contact-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border-bottom: 2px solid transparent;
}

.accordion-body a.contact-link:hover {
    color: var(--primary-color);
    border-bottom-color: var(--secondary-color);
}

/* ===== FAQ Call to Action ===== */
.faq-cta-card {
    background: linear-gradient(135deg, var(--white) 0%, var(--light-bg) 100%);
    border-radius: var(--radius-lg);
    padding: 3rem 2rem;
    box-shadow: var(--shadow-lg), var(--shadow-gold);
    border: 2px solid var(--border-light);
    position: relative;
    overflow: hidden;
}

.faq-cta-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--accent-gold) 100%);
}

.faq-cta-card h3 {
    color: var(--dark-color);
    font-weight: 700;
    margin-bottom: 1rem;
}

/* ===== Authentication Pages ===== */
.auth-card {
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    padding: 2.5rem;
    border: 1px solid var(--border-color);
}

.auth-card h1 {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 2rem;
}

.btn-google {
    background-color: #fff;
    color: #4285f4;
    border: 1px solid #dadce0;
    font-weight: 500;
    padding: 0.75rem 1rem;
    transition: var(--transition);
}

.btn-google:hover {
    background-color: #f8f9fa;
    border-color: #dadce0;
    color: #4285f4;
    box-shadow: var(--shadow-sm);
}

.btn-google i {
    color: #4285f4;
}

.divider {
    position: relative;
    text-align: center;
    margin: 1.5rem 0;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-color);
}

.divider span {
    position: relative;
    background: var(--white);
    padding: 0 1rem;
    color: var(--text-light);
    font-size: 0.875rem;
}

/* ===== Password Input with Eye Icon ===== */
.password-input-wrapper {
    position: relative;
    width: 100%;
    display: block;
}

.password-input-wrapper .form-control {
    padding-right: 2.75rem !important;
    width: 100%;
    position: relative;
}

.password-toggle-icon {
    position: absolute !important;
    right: 0.75rem !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: #6c757d !important;
    cursor: pointer !important;
    pointer-events: auto !important;
    transition: var(--transition);
    z-index: 100 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 20px !important;
    height: 20px !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    line-height: 1 !important;
    margin: 0 !important;
    user-select: none;
    -webkit-user-select: none;
    text-decoration: none !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.password-toggle-icon i {
    font-size: 1rem !important;
    line-height: 1 !important;
    display: inline-block !important;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: inherit !important;
    width: auto;
    height: auto;
}

.password-toggle-icon:hover {
    color: var(--primary-color) !important;
}

.password-toggle-icon:hover i {
    color: var(--primary-color) !important;
}

.password-toggle-icon:active {
    transform: translateY(-50%) scale(0.9);
}

.password-toggle-icon:focus {
    outline: none;
}

/* Ensure icon is inside input visually */
.password-input-wrapper .form-control:focus + .password-toggle-icon {
    color: var(--primary-color) !important;
}

.password-input-wrapper .form-control:focus + .password-toggle-icon i {
    color: var(--primary-color) !important;
}

@media (max-width: 768px) {
    .auth-card {
        padding: 2rem 1.5rem;
    }
    
    .auth-card h1 {
        font-size: 1.75rem;
    }
}

/* ===== Guest Checkout Messages ===== */
.alert-info {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.1) 0%, rgba(13, 110, 253, 0.05) 100%);
    border: 1px solid rgba(13, 110, 253, 0.2);
    border-radius: 12px;
    color: #0c5460;
}

.alert-info .alert-link {
    color: #0c5460;
    text-decoration: underline;
    font-weight: 600;
}

.alert-info .alert-link:hover {
    color: var(--primary-color);
}

.alert-info ul {
    list-style: none;
    padding-left: 0;
}

.alert-info ul li {
    position: relative;
    padding-left: 1.5rem;
}

.alert-info ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #0d6efd;
    font-weight: bold;
}

@media (max-width: 768px) {
    .faq-section-header {
        padding: 1rem 1.25rem;
    }
    
    .faq-section-header h2 {
        font-size: 1.5rem;
    }
    
    .faq-section-header i {
        font-size: 1.25rem;
    }
    
    .accordion-button {
        font-size: 1rem;
        padding: 1rem 1.25rem;
    }
    
    .faq-cta-card .btn {
        display: block;
        width: 100%;
        margin-bottom: 0.75rem;
    }
    
    .faq-cta-card .btn:last-child {
        margin-bottom: 0;
    }
}

/* ===== Order Summary ===== */
.order-item-image {
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.order-item-image:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

.card-header {
    border-bottom: 1px solid var(--border-color);
}

.order-items {
    max-height: 400px;
    overflow-y: auto;
}

.order-items::-webkit-scrollbar {
    width: 6px;
}

.order-items::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.order-items::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 10px;
}

.order-items::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* ===== Payment Method Selection Styles ===== */
.payment-methods-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.payment-method-option {
    position: relative;
}

.payment-method-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.payment-method-card {
    display: block;
    padding: 1.25rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--white);
    cursor: pointer;
    transition: var(--transition);
    margin: 0;
}

.payment-method-card:hover {
    border-color: var(--primary-color);
    background: rgba(139, 69, 19, 0.02);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.payment-method-card.active {
    border-color: var(--primary-color);
    background: rgba(139, 69, 19, 0.05);
    box-shadow: var(--shadow-md);
}

.payment-method-option input[type="radio"]:checked + .payment-method-card {
    border-color: var(--primary-color);
    background: rgba(139, 69, 19, 0.05);
    box-shadow: var(--shadow-md);
}

.payment-method-option input[type="radio"]:focus + .payment-method-card {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

.payment-method-header {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-size: 1.1rem;
}

.payment-method-header i {
    color: var(--primary-color);
    font-size: 1.25rem;
}

.payment-method-description {
    color: var(--text-light);
    margin-top: 0.5rem;
    line-height: 1.5;
}

.payment-method-description small {
    font-size: 0.9rem;
}

/* ===== Barcode Styles ===== */
.barcode-image {
    display: inline-block;
    border: 1px solid var(--border-color);
    padding: 8px;
    background: var(--white);
    border-radius: 4px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.barcode-image:hover {
    box-shadow: var(--shadow-md);
    transform: scale(1.02);
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero .lead {
        font-size: 1.1rem;
    }

    .product-card img {
        height: 220px;
    }

    .product-card h5 {
        font-size: 1.1rem;
        min-height: auto;
    }

    .btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.8125rem;
    }

    section {
        padding: 2.5rem 0;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 3rem 0;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .product-card img {
        height: 200px;
    }

    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .payment-methods-container {
        gap: 0.75rem;
    }
    
    .payment-method-card {
        padding: 0.875rem;
    }
    
    .payment-method-header {
        font-size: 0.95rem;
    }
    
    .payment-method-description small {
        font-size: 0.85rem;
    }
}

/* ===== Smooth Scrolling ===== */
html {
    scroll-behavior: smooth;
}

/* ===== Floating WhatsApp Button ===== */
.whatsapp-float {
    position: fixed !important;
    width: 70px !important;
    height: 70px !important;
    bottom: 25px !important;
    right: 25px !important;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%) !important;
    color: #FFFFFF !important;
    border-radius: 50% !important;
    text-align: center;
    font-size: 36px;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5), 
                0 2px 8px rgba(0, 0, 0, 0.15),
                0 0 0 4px rgba(37, 211, 102, 0.1) !important;
    z-index: 9999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    animation: pulse-whatsapp 2s infinite;
    text-decoration: none !important;
    visibility: visible !important;
    opacity: 1 !important;
    border: 3px solid rgba(255, 255, 255, 0.2) !important;
    cursor: pointer !important;
}

.whatsapp-float:hover {
    background: linear-gradient(135deg, #20BA5A 0%, #0E7A6B 100%) !important;
    color: #FFFFFF !important;
    transform: scale(1.15) translateY(-2px) !important;
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.7), 
                0 4px 12px rgba(0, 0, 0, 0.2),
                0 0 0 6px rgba(37, 211, 102, 0.15) !important;
    text-decoration: none !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

.whatsapp-float:active {
    transform: scale(1.05) translateY(0) !important;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.5), 
                0 2px 6px rgba(0, 0, 0, 0.15) !important;
}

.whatsapp-float i {
    font-size: 38px !important;
    line-height: 1 !important;
    display: inline-block !important;
    color: #FFFFFF !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1)) !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Ensure WhatsApp button is always visible */
#whatsapp-float-btn {
    position: fixed !important;
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 9999 !important;
}

/* WhatsApp Pulse Animation */
@keyframes pulse-whatsapp {
    0% {
        box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5), 
                    0 2px 8px rgba(0, 0, 0, 0.15),
                    0 0 0 4px rgba(37, 211, 102, 0.1);
    }
    50% {
        box-shadow: 0 8px 30px rgba(37, 211, 102, 0.7), 
                    0 4px 12px rgba(0, 0, 0, 0.2),
                    0 0 0 12px rgba(37, 211, 102, 0.15);
    }
    100% {
        box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5), 
                    0 2px 8px rgba(0, 0, 0, 0.15),
                    0 0 0 4px rgba(37, 211, 102, 0.1);
    }
}

/* Responsive WhatsApp Button */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 65px !important;
        height: 65px !important;
        bottom: 20px !important;
        right: 20px !important;
        font-size: 34px;
    }
    
    .whatsapp-float i {
        font-size: 36px !important;
    }
}

@media (max-width: 480px) {
    .whatsapp-float {
        width: 60px !important;
        height: 60px !important;
        bottom: 15px !important;
        right: 15px !important;
        font-size: 32px;
    }
    
    .whatsapp-float i {
        font-size: 34px !important;
    }
}

/* ===== Social Media Icons ===== */
.social-media-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    color: #FFFFFF;
    font-size: 20px;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.social-icon:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    text-decoration: none;
    color: #FFFFFF;
}

.social-icon:active {
    transform: translateY(-1px) scale(1.05);
}

/* Instagram Icon Styling */
.instagram-icon {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    background-size: 200% 200%;
    animation: gradient-shift 3s ease infinite;
}

.instagram-icon:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    background-size: 200% 200%;
}

/* Instagram Gradient Animation */
@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Responsive Social Icons */
@media (max-width: 768px) {
    .social-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .social-icon {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }
    
    .social-media-links {
        gap: 0.75rem;
    }
}

/* ===== Focus Styles for Accessibility ===== */
*:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

button:focus,
a:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

/* ===== Image Styles ===== */
img {
    max-width: 100%;
    height: auto;
}

.img-fluid {
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--light-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--dark-color);
}

/* ===== Checkout Form Styles ===== */
/* Country field (readonly) */
#country[readonly] {
    background-color: #e9ecef !important;
    cursor: not-allowed;
    opacity: 0.8;
}

/* Phone input group */
.input-group-text {
    font-weight: 600;
    color: var(--text-dark);
    border-right: none;
}

.input-group .form-control {
    border-left: none;
}

.input-group .form-control:focus {
    border-left: 1px solid #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.input-group:focus-within .input-group-text {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* ===== Comprehensive Responsive Design ===== */

/* Extra Large Screens (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* Large Screens (992px to 1199px) */
@media (max-width: 1199px) {
    .hero h1 {
        font-size: 3rem;
    }
    
    .product-card img {
        height: 240px;
    }
}

/* Medium Screens (768px to 991px) - Tablets */
@media (max-width: 991px) {
    /* Navigation */
    .navbar-nav {
        margin-top: 1rem;
    }
    
    /* Buttons - Optimized for tablets */
    .btn {
        padding: 0.6875rem 1.375rem;
        font-size: 0.875rem;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .btn-lg {
        padding: 0.8125rem 1.625rem;
        font-size: 0.9375rem;
        min-height: 48px;
    }
    
    .btn-sm {
        padding: 0.5rem 1rem;
        font-size: 0.8125rem;
        min-height: 40px;
    }
    
    /* Product Card Buttons */
    .product-card .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .product-card .btn + .btn {
        margin-left: 0;
        margin-top: 0.5rem;
    }
    
    /* Google OAuth Button */
    .btn-google {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
        min-height: 44px;
    }
    
    /* Checkout Page */
    .checkout-form-container {
        margin-bottom: 2rem;
    }
    
    /* Product Cards */
    .product-card {
        margin-bottom: 1.5rem;
    }
    
    /* Tables - Make scrollable on tablets */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Order Summary */
    .order-summary-card {
        margin-top: 2rem;
    }
    
    /* Payment Method Cards */
    .payment-method-card {
        padding: 1.125rem;
    }
    
    .payment-method-header {
        font-size: 1.05rem;
    }
    
    /* Auth Cards */
    .auth-card {
        padding: 2rem 1.75rem;
    }
    
    /* Cart and Wishlist Icons */
    .wishlist-icon,
    .cart-icon {
        width: 42px;
        height: 42px;
        font-size: 1.1rem;
    }
}

/* Mini Tablets (600px to 767px) - Specific fixes */
@media (min-width: 600px) and (max-width: 767px) {
    /* Buttons - Ensure proper sizing on mini tablets */
    .btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
        min-height: 44px;
        white-space: normal;
        word-wrap: break-word;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 0.9375rem;
        min-height: 48px;
    }
    
    /* Product Card Buttons - Stack on mini tablets */
    .product-card .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .product-card .btn + .btn {
        margin-left: 0;
        margin-top: 0.5rem;
    }
    
    /* Payment Methods */
    .payment-method-card {
        padding: 1rem;
    }
    
    /* Auth Cards */
    .auth-card {
        padding: 2rem 1.5rem;
    }
}

/* Small Screens (576px to 767px) */
@media (max-width: 767px) {
    /* Global */
    body {
        font-size: 0.95rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    /* Navigation */
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
    }
    
    /* Hero Section */
    .hero {
        padding: 3rem 0;
    }
    
    .hero h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .hero .lead {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    /* Product Cards */
    .product-card img {
        height: 200px;
    }
    
    .product-card h5 {
        font-size: 1rem;
    }
    
    /* Buttons */
    .btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Forms */
    .form-control {
        font-size: 1rem; /* Prevents zoom on iOS */
        padding: 0.75rem;
    }
    
    .form-label {
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
    }
    
    /* Tables - Stack on mobile */
    .table {
        font-size: 0.9rem;
    }
    
    .table thead {
        display: none;
    }
    
    .table tbody tr {
        display: block;
        margin-bottom: 1rem;
        border: 1px solid var(--border-color);
        border-radius: 8px;
        padding: 1rem;
        background: var(--white);
    }
    
    .table tbody td {
        display: block;
        text-align: right;
        padding: 0.5rem 0;
        border: none;
    }
    
    .table tbody td::before {
        content: attr(data-label);
        float: left;
        font-weight: 600;
        color: var(--text-dark);
    }
    
    /* Cart Table Specific */
    .table tbody td:first-child {
        font-weight: 600;
        font-size: 1rem;
        margin-bottom: 0.75rem;
        padding-bottom: 0.75rem;
        border-bottom: 1px solid var(--border-color);
    }
    
    .table tbody td:first-child::before {
        display: none;
    }
    
    /* Checkout Page */
    .checkout-form-container {
        margin-bottom: 2rem;
    }
    
    .order-summary-card {
        margin-top: 2rem;
        position: sticky;
        top: 20px;
    }
    
    /* Product Detail Page */
    .product-detail-image {
        margin-bottom: 2rem;
    }
    
    .product-detail-info {
        padding-left: 0;
    }
    
    /* Payment Methods */
    .payment-methods-container {
        gap: 0.75rem;
    }
    
    .payment-method-card {
        padding: 1rem;
    }
    
    .payment-method-header {
        font-size: 1rem;
    }
    
    .payment-method-description small {
        font-size: 0.85rem;
    }
    
    /* Order Summary */
    .order-item-image {
        width: 50px !important;
        height: 50px !important;
    }
    
    /* Sections */
    section {
        padding: 2rem 0;
    }
    
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    /* Footer */
    footer {
        padding: 2rem 0 1.5rem;
        margin-top: 2rem;
    }
    
    footer h5 {
        font-size: 1.1rem;
    }
    
    /* WhatsApp Button */
    .whatsapp-float {
        width: 60px !important;
        height: 60px !important;
        bottom: 20px !important;
        right: 20px !important;
        font-size: 30px !important;
    }
    
    /* Social Icons */
    .social-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}

/* Extra Small Screens (up to 575px) */
@media (max-width: 575px) {
    /* Global */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Typography */
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    /* Hero */
    .hero {
        padding: 2rem 0;
    }
    
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .hero .lead {
        font-size: 0.95rem;
    }
    
    /* Navigation */
    .navbar-brand {
        font-size: 1rem;
    }
    
    .navbar-brand i {
        font-size: 1rem;
    }
    
    /* Product Cards - Extra Compact */
    .product-card img {
        height: 160px;
    }
    
    .product-card .card-body {
        padding: 0.625rem;
    }
    
    .product-card h5 {
        font-size: 0.9rem;
        min-height: 1.8rem;
        margin-bottom: 0.375rem;
    }
    
    .product-card .price {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .product-card .btn {
        padding: 0.375rem 0.5rem;
        font-size: 0.75rem;
    }
    
    /* Buttons */
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.8125rem;
    }
    
    .btn-lg {
        padding: 0.625rem 1.25rem;
        font-size: 0.9375rem;
    }
    
    /* Forms */
    .form-control {
        padding: 0.625rem;
    }
    
    /* Tables */
    .table tbody tr {
        padding: 0.75rem;
    }
    
    /* Checkout */
    .order-summary-card {
        margin-top: 1.5rem;
    }
    
    /* Payment Methods */
    .payment-method-card {
        padding: 0.875rem;
    }
    
    .payment-method-header {
        font-size: 0.95rem;
    }
    
    .payment-method-description small {
        font-size: 0.8rem;
    }
    
    /* Auth Cards */
    .auth-card {
        padding: 1.5rem 1rem;
    }
    
    .auth-card h1 {
        font-size: 1.5rem;
    }
    
    /* WhatsApp Button */
    .whatsapp-float {
        width: 55px !important;
        height: 55px !important;
        bottom: 15px !important;
        right: 15px !important;
        font-size: 28px !important;
    }
    
    /* Social Icons */
    .social-icon {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }
    
    /* Product Detail */
    .product-detail-image img {
        width: 100%;
    }
    
    /* Cart Summary */
    .cart-summary {
        font-size: 0.9rem;
    }
    
    /* Order Items */
    .order-item-image {
        width: 45px !important;
        height: 45px !important;
    }
    
    /* Alert Messages */
    .alert {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    /* FAQ */
    .faq-section-header h2 {
        font-size: 1.25rem;
    }
    
    .accordion-button {
        font-size: 0.95rem;
        padding: 0.875rem 1rem;
    }
}

/* Landscape Orientation on Mobile */
@media (max-width: 767px) and (orientation: landscape) {
    .hero {
        padding: 2rem 0;
    }
    
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .navbar {
        padding: 0.5rem 0;
    }
}

/* Touch-friendly targets (minimum 44x44px) */
@media (max-width: 767px) {
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    .form-control {
        min-height: 44px;
    }
    
    input[type="checkbox"],
    input[type="radio"] {
        width: 20px;
        height: 20px;
    }
    
    label {
        min-height: 44px;
        display: flex;
        align-items: center;
        padding: 0.5rem 0;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .whatsapp-float,
    footer,
    .btn,
    .alert {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    .container {
        max-width: 100%;
    }
}
