/* ═══════════════════════════════════════════════
   JUSTMEWA — Base Layout: Navbar, Footer, Misc
═══════════════════════════════════════════════ */

:root {
    --primary-brown: #4B2E05;
    --golden-beige: #C2A661;
    --cream: #FFF8E1;
    --olive-green: #8B7E49;
    --light-brown: #8B6914;
    --dark-brown: #2D1B02;
    --white: #FFFFFF;
    --gray-100: #F8F9FA;
    --gray-200: #E9ECEF;
    --gray-300: #DEE2E6;
    --gray-600: #6C757D;
    --gray-800: #343A40;
    --gray-900: #212529;
    --success: #28A745;
    --warning: #FFC107;
    --danger: #DC3545;
}

/* Modern Header */
.modern-header {
    background: linear-gradient(135deg, var(--primary-brown) 0%, var(--dark-brown) 100%);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.header-top {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-top .nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 0.85rem;
    padding: 0.25rem 0.5rem;
    transition: all 0.3s ease;
}

.header-top .nav-link:hover {
    color: var(--golden-beige) !important;
}

.main-navigation {
    padding: 1rem 0 !important;
}

.navbar-brand {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--golden-beige) !important;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.navbar-nav .nav-link {
    color: var(--cream) !important;
    font-weight: 500;
    margin: 0 1rem;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
    position: relative;
    font-size: 1.1rem;
}

.navbar-nav .nav-link:hover {
    color: var(--golden-beige) !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 0;
    background-color: var(--golden-beige);
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
}

.navbar-nav .nav-link i {
    font-size: 1.2rem;
}

/* Cart, Wishlist, Notification Icons */
.navbar-nav .nav-link {
    position: relative;
    padding: 0.5rem 1rem;
}

.navbar-nav .nav-link .badge {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 0.7rem;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
}

/* Search Form */
.search-form {
    position: relative;
    margin-left: 1rem;
}

.search-input {
    border-radius: 30px 0 0 30px;
    border: none;
    padding: 0.5rem 1rem;
    width: 250px;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.search-input:focus {
    width: 300px;
    box-shadow: 0 0 0 0.25rem rgba(194, 166, 97, 0.25);
    outline: none;
}

.search-btn {
    border-radius: 0 30px 30px 0;
    background: var(--golden-beige);
    border: none;
    padding: 0.5rem 1rem;
    color: var(--white);
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: var(--light-brown);
}

/* Dropdown Styles */
.dropdown-menu {
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    padding: 0.5rem 0;
}

.dropdown-item {
    padding: 0.5rem 1.5rem;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: var(--golden-beige);
    color: var(--white);
}

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

/* Typography */
body {
    font-family: 'Outfit', 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--gray-800);
    background-color: #faf7f2;
}

h1,
h2,
h3,
h4,
h5,
h6,
.display-1,
.display-2,
.display-3,
.display-4 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    color: var(--primary-brown);
}

/* Header Navigation — storefront.css overrides on customer pages */
.navbar {
    background: linear-gradient(135deg, #1a2e1f 0%, #0f1e14 100%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 1050;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(201, 169, 110, 0.2);
}

.navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 5px 20px rgba(75, 46, 5, 0.3);
}

.navbar-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--golden-beige) !important;
    text-decoration: none;
}

.navbar-left {
    display: flex;
    align-items: center;
}

.navbar-right {
    display: flex;
    align-items: center;
    flex-grow: 1;
    justify-content: flex-end;
}

.navbar-brand-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--golden-beige) !important;
    text-decoration: none;
    display: inline-block;
    white-space: nowrap;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.navbar-brand-subtitle {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.navbar-nav .nav-link {
    color: var(--cream) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: var(--golden-beige) !important;
    transform: translateY(-2px);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background-color: var(--golden-beige);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
}

/* Star Rating Styles */
.rating-stars {
    display: flex;
    gap: 5px;
    align-items: center;
}

.star-icon {
    cursor: pointer;
    transition: all 0.2s ease;
    width: 24px;
    height: 24px;
}

.star-icon.filled,
.star-icon.text-warning {
    color: #ffc107;
    fill: #ffc107;
}

.star-icon.text-muted {
    color: #6c757d;
    fill: #6c757d;
}

.testimonial-stars .filled {
    color: #ffc107;
    fill: #ffc107;
}

.testimonial-stars .star-icon {
    width: 16px;
    height: 16px;
}

/* Wishlist Button */
.wishlist-btn .heart-icon.filled {
    color: #dc3545;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--golden-beige) 0%, var(--light-brown) 100%);
    border: none;
    color: var(--white);
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(194, 166, 97, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--light-brown) 0%, var(--golden-beige) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(194, 166, 97, 0.4);
}

.btn-outline-primary {
    border: 2px solid var(--golden-beige);
    color: var(--golden-beige);
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background-color: var(--golden-beige);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
    color: white;
    border-radius: 50px;
}

.btn-danger:hover {
    background-color: #c82333;
    border-color: #bd2130;
    transform: translateY(-2px);
}

.btn-success {
    background: linear-gradient(135deg, var(--olive-green) 0%, #6B6B47 100%);
    border: none;
    border-radius: 50px;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-brown) 0%, var(--olive-green) 100%);
    color: var(--white);
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23FFFFFF" fill-opacity="0.03"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    color: var(--cream);
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--cream);
    opacity: 0.9;
}

.hero-image {
    border: 5px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.5s ease;
}

.hero-image:hover {
    transform: scale(1.03);
}

/* Product Cards */
.product-card {
    background: var(--white);
    border-radius: 15px;
    overflow: visible;
    /* Critical: Prevent clipping of absolutely positioned elements */
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: none;
    height: 100%;
    position: relative;
    z-index: 1;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    z-index: 1040;
    /* High z-index but below navbar (z-index: 1050) */
}

/* Critical fix: Ensure image container doesn't clip absolutely positioned children */
.product-card .position-relative {
    overflow: visible !important;
    position: relative;
    z-index: 2;
}

.product-card img {
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
    border-radius: 15px 15px 0 0;
    position: relative;
    z-index: 1;
}

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

/* Quick View Button - Completely reworked for maximum visibility */
.quick-view {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10000;
    /* Extremely high z-index */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    width: max-content;
    /* Ensure button width fits content */
}

.product-card:hover .quick-view {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.product-card .quick-view .btn {
    padding: 12px 24px;
    /* Larger padding for better visibility */
    font-size: 16px;
    /* Larger font size */
    font-weight: 600;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    border: none;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--golden-beige) 0%, var(--light-brown) 100%);
    color: white;
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
    z-index: 10001;
}

.product-card .quick-view .btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* Ensure parent containers don't clip the quick view button */
.row.g-4 {
    overflow: visible;
}

.col-lg-4.col-md-6.product-item {
    overflow: visible;
    z-index: auto;
}

.product-card-body {
    padding: 1.5rem;
}

.product-price {
    color: var(--golden-beige);
    font-size: 1.5rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
}

.product-title {
    color: var(--primary-brown);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.product-description {
    color: var(--gray-600);
    font-size: 0.9rem;
    line-height: 1.4;
    min-height: 60px;
}

/* Product Detail Page */
.main-product-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
}

.thumbnail-images {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    overflow-x: auto;
    padding: 5px;
}

.thumbnail-item {
    flex: 0 0 auto;
}

.thumbnail-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.thumbnail-image:hover,
.thumbnail-image.active {
    border-color: var(--golden-beige);
    transform: scale(1.05);
}

.breadcrumb {
    background-color: transparent;
    padding: 0;
}

.breadcrumb-item+.breadcrumb-item::before {
    color: var(--gray-600);
}

/* Category Cards */
.category-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
    height: 200px;
    position: relative;
}

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

.category-card .card-body {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(75, 46, 5, 0.8));
    color: var(--white);
    padding: 2rem 1.5rem 1.5rem;
}

.category-card h5 {
    color: var(--white);
    margin-bottom: 0;
}

/* Testimonial Cards */
.testimonial-card {
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: none;
    height: 100%;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--golden-beige), var(--olive-green));
}

.testimonial-header {
    position: relative;
    z-index: 2;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--golden-beige);
    background-color: var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-author-info {
    flex: 1;
}

.testimonial-author {
    font-weight: 600;
    color: var(--primary-brown);
    font-size: 1.1rem;
}

.testimonial-stars {
    color: var(--warning);
    font-size: 0.9rem;
}

.testimonial-stars i {
    width: 18px;
    height: 18px;
    margin-right: 2px;
}

.testimonial-text {
    font-style: italic;
    color: var(--dark-brown);
    line-height: 1.6;
    margin-bottom: 0;
    position: relative;
    z-index: 2;
}

.testimonial-quote-icon {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    z-index: 1;
}

.testimonial-quote-icon i {
    width: 40px;
    height: 40px;
}

/* Dashboard Cards */
.dashboard-card {
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: none;
    height: 100%;
}

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

.dashboard-card .card-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    font-size: 1.5rem;
}

/* Admin Panel */
.admin-panel {
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    padding: 2rem;
}

.admin-panel h2 {
    color: var(--primary-brown);
    font-family: 'Playfair Display', serif;
    border-bottom: 2px solid var(--golden-beige);
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

/* Form Styles */
.form-control,
.form-select {
    border: 2px solid var(--gray-200);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--golden-beige);
    box-shadow: 0 0 0 0.25rem rgba(194, 166, 97, 0.25);
}

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

/* Table Styles */
.table {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.table th {
    background: var(--primary-brown);
    color: var(--white);
    font-weight: 600;
    border: none;
}

.table-hover tbody tr:hover {
    background-color: rgba(194, 166, 97, 0.1);
}

/* Alert Styles */
.alert {
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

/* Notification Popup Container */
#notification-popup-container {
    z-index: 1050;
    position: fixed;
    bottom: 0;
    right: 0;
    padding: 1rem;
    pointer-events: none;
}

#notification-popup-container>* {
    pointer-events: auto;
}

/* Badge Styles */
.badge {
    font-weight: 600;
    padding: 0.5em 0.75em;
    border-radius: 50px;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--primary-brown) 0%, var(--dark-brown) 100%);
    color: var(--cream);
    padding: 3rem 0 1rem;
    margin-top: 3rem;
}

.footer h5 {
    color: var(--golden-beige);
    font-family: 'Playfair Display', serif;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer a {
    color: var(--cream);
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    margin-bottom: 0.5rem;
}

.footer a:hover {
    color: var(--golden-beige);
    transform: translateX(5px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 2rem;
    padding-top: 1rem;
}

/* Responsive Styles */
@media (max-width: 991.98px) {
    .header-top {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .main-navigation {
        padding: 0.5rem 0 !important;
    }

    .navbar-nav .nav-link {
        margin: 0;
        padding: 0.75rem 1rem;
    }

    .search-form {
        margin: 1rem 0;
    }

    .search-input {
        width: 100%;
    }

    .search-input:focus {
        width: 100%;
    }

    .navbar-collapse {
        background: rgba(45, 27, 2, 0.95);
        border-radius: 10px;
        margin-top: 1rem;
        padding: 1rem;
    }

    .navbar-nav {
        flex-direction: column;
    }

    .navbar-nav .nav-link::after {
        display: none;
    }

    /* Responsive navbar adjustments */
    .navbar-left {
        justify-content: flex-start;
        width: auto;
    }

    .navbar-right {
        flex-direction: column;
        align-items: stretch;
    }

    .navbar-brand {
        flex-direction: column;
        text-align: center;
    }

    .navbar-brand-text {
        display: block;
        margin-top: 0.5rem;
        font-size: 1.4rem;
    }

    .navbar-brand img {
        height: 50px !important;
    }
}

@media (max-width: 767.98px) {
    .navbar-brand {
        font-size: 1.5rem;
    }

    .navbar-brand img {
        height: 60px !important;
    }

    .search-input {
        width: 150px;
    }

    .contact-info {
        font-size: 0.75rem;
    }

    .header-actions .nav-link {
        font-size: 0.75rem;
        padding: 0.1rem 0.3rem;
    }

    .hero-section h1 {
        font-size: 2.5rem;
    }

    .hero-section p {
        font-size: 1rem;
    }
}

@media (max-width: 575.98px) {
    .search-form {
        display: none !important;
    }

    .contact-info {
        display: none;
    }

    .testimonial-card {
        padding: 1.5rem;
        margin: 0.5rem 0;
    }

    .testimonial-card::before {
        height: 3px;
    }

    .testimonial-avatar {
        width: 50px;
        height: 50px;
    }

    .testimonial-author {
        font-size: 1rem;
    }

    .testimonial-text {
        font-size: 0.95rem;
    }

    .testimonial-quote-icon {
        bottom: 0.5rem;
        right: 0.5rem;
    }

    .testimonial-quote-icon i {
        width: 30px;
        height: 30px;
    }

    .main-product-image {
        height: 200px;
    }

    .thumbnail-images {
        gap: 5px;
    }

    .thumbnail-image {
        width: 50px;
        height: 50px;
    }
}

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

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

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

.slide-up {
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

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

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

::-webkit-scrollbar-track {
    background: var(--gray-200);
}

::-webkit-scrollbar-thumb {
    background: var(--golden-beige);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--light-brown);
}

/* Image loading improvements */
img {
    transition: opacity 0.3s ease;
}

img[data-src] {
    opacity: 0;
}

img.loaded {
    opacity: 1;
}

/* Product Card Consistent Sizing */
.product-card img {
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
    border-radius: 15px 15px 0 0;
    position: relative;
    z-index: 1;
}

/* Promotional Banner - Hero Section */
.hero-promotional-banner {
    background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
    border: 2px solid #ffd54f;
    border-radius: 12px;
    padding: 16px;
    margin: 20px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 4px 12px rgba(255,213,79,0.4); }
    50% { box-shadow: 0 6px 16px rgba(255,213,79,0.6); }
    100% { box-shadow: 0 4px 12px rgba(255,213,79,0.4); }
}

.hero-promotional-banner .d-flex {
    align-items: center;
    gap: 12px;
}

.hero-promotional-banner i {
    font-size: 24px;
    min-width: 24px;
}

.hero-promotional-banner .text-content {
    flex: 1;
    font-weight: 600;
    color: #e65100;
    font-size: 16px;
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    .hero-promotional-banner {
        padding: 12px;
        margin: 15px 0;
    }
    
    .hero-promotional-banner .text-content {
        font-size: 14px;
    }
    
    .hero-promotional-banner i {
        font-size: 20px;
    }
}

/* Gift Box Carousel - Fixed Card Dimensions */
.carousel-item .card {
    height: 400px; /* Fixed height for consistent layout */
    overflow: hidden;
}

.carousel-item .row.g-0 {
    height: 100%;
}

.carousel-item .col-md-6:first-child {
    height: 100%;
}

.carousel-item .col-md-6:first-child img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.carousel-item .col-md-6:last-child {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.carousel-item .card-body.d-flex.flex-column.h-100 {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    overflow: hidden;
}

@media (max-width: 767.98px) {
    .carousel-item .card {
        height: auto;
        min-height: 350px;
    }
    
    .carousel-item .col-md-6 {
        flex: 1 0 100%;
    }
    
    .carousel-item .col-md-6:first-child {
        height: 250px;
    }
}

/* Focus states for accessibility */
.btn:focus,
.form-control:focus,
.navbar-nav .nav-link:focus {
    outline: 2px solid var(--golden-beige);
    outline-offset: 2px;
}








/* ══════════════════════════════
   NAVBAR
══════════════════════════════ */
.navbar {
  background: linear-gradient(135deg, #1a2e1f 0%, #0f1e14 100%);
  border-bottom: 1px solid rgba(194, 166, 97, 0.2);
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

.navbar.scrolled {
  background: rgba(15, 30, 20, 0.97);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
  backdrop-filter: blur(12px);
}

.nav-link {
  font-family: 'Poppins', sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.82) !important;
  padding: 0.5rem 0.85rem !important;
  border-radius: 6px;
  transition: color 0.18s ease, background 0.18s ease;
  position: relative;
}

.nav-link:hover,
.nav-link:focus {
  color: #C2A661 !important;
  background: rgba(194, 166, 97, 0.08);
}

/* Active link underline accent */
.nav-link.active,
.navbar-nav .nav-item.active > .nav-link {
  color: #C2A661 !important;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 2px;
  background: #C2A661;
  border-radius: 999px;
}

/* Dropdown menu */
.dropdown-menu {
  background: #1a2e1f;
  border: 1px solid rgba(194, 166, 97, 0.2);
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  padding: 0.5rem;
  margin-top: 0.5rem;
}

.dropdown-item {
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  border-radius: 6px;
  padding: 0.5rem 0.85rem;
  transition: background 0.15s ease, color 0.15s ease;
}

.dropdown-item:hover,
.dropdown-item:focus {
  background: rgba(194, 166, 97, 0.12);
  color: #C2A661;
}

/* Cart badge */
.cart-count {
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 999px;
  font-weight: 700;
  vertical-align: middle;
}

/* Mobile navbar collapse */
@media (max-width: 991px) {
  .navbar-collapse {
    background: #0f1e14;
    border-top: 1px solid rgba(194, 166, 97, 0.15);
    margin-top: 0.5rem;
    padding: 0.75rem 0.5rem 1rem;
    border-radius: 0 0 12px 12px;
  }

  .nav-link {
    padding: 0.6rem 1rem !important;
    border-radius: 8px;
  }

  .nav-link.active::after {
    display: none;
  }

  .dropdown-menu {
    background: rgba(255, 255, 255, 0.05);
    border: none;
    box-shadow: none;
    margin-top: 0;
  }

  .dropdown-item {
    color: rgba(255, 255, 255, 0.75);
  }
}


/* ══════════════════════════════
   FOOTER
══════════════════════════════ */
.footer {
  background: linear-gradient(160deg, #111c13 0%, #0c1a10 100%) !important;
  border-top: 1px solid rgba(194, 166, 97, 0.18);
  font-family: 'Poppins', sans-serif;
}

/* Section headings */
.footer h5,
.footer h6 {
  font-family: 'Playfair Display', serif;
  letter-spacing: 0.03em;
  color: #fff;
  margin-bottom: 1.1rem;
  position: relative;
  padding-bottom: 0.6rem;
}

.footer h5::after,
.footer h6::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 28px;
  height: 2px;
  background: #C2A661;
  border-radius: 999px;
}

/* Links */
.footer a.text-light {
  opacity: 0.78;
  font-size: 0.85rem;
  transition: opacity 0.15s ease, color 0.15s ease, padding-left 0.15s ease;
  display: inline-block;
}

.footer a.text-light:hover {
  opacity: 1;
  color: #C2A661 !important;
  padding-left: 4px;
}

/* Body text */
.footer p.text-light,
.footer span.text-light,
.footer .small {
  opacity: 0.72;
  font-size: 0.85rem;
  line-height: 1.65;
}

/* Contact list icons alignment */
.footer ul.list-unstyled li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.85rem;
}

.footer ul.list-unstyled li i {
  flex-shrink: 0;
  margin-top: 2px;
  opacity: 0.75;
}

/* Social icons */
.footer .d-flex a i {
  transition: transform 0.2s ease, opacity 0.2s ease;
  opacity: 0.75;
}

.footer .d-flex a:hover i {
  transform: translateY(-3px);
  opacity: 1;
  color: #C2A661;
}

/* Payment methods row */
.footer .d-flex.flex-wrap > div {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(194, 166, 97, 0.15);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 0.75rem;
}

/* Newsletter input */
#newsletter-form .input-group .form-control {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(194, 166, 97, 0.25);
  border-right: none;
  color: #fff;
  font-size: 0.85rem;
  border-radius: 8px 0 0 8px;
  padding: 0.55rem 0.9rem;
  transition: border-color 0.18s ease, background 0.18s ease;
}

#newsletter-form .input-group .form-control::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

#newsletter-form .input-group .form-control:focus {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(194, 166, 97, 0.5);
  box-shadow: none;
  color: #fff;
  outline: none;
}

#newsletter-form .input-group .btn {
  background: #C2A661;
  border: 1px solid #C2A661;
  color: #0f1e14;
  border-radius: 0 8px 8px 0;
  padding: 0 1rem;
  font-weight: 600;
  transition: background 0.18s ease, transform 0.15s ease;
}

#newsletter-form .input-group .btn:hover {
  background: #a88c4e;
  border-color: #a88c4e;
  transform: scale(1.04);
}

/* Footer bottom bar */
.footer-bottom {
  border-top: 1px solid rgba(194, 166, 97, 0.12);
  padding-top: 1.25rem;
  margin-top: 0.5rem;
}

.footer-bottom p,
.footer-bottom a {
  font-size: 0.8rem;
  opacity: 0.65;
}

.footer-bottom a:hover {
  opacity: 1;
  color: #C2A661 !important;
}

/* Footer mobile */
@media (max-width: 767px) {
  .footer {
    padding-top: 2.5rem !important;
    padding-bottom: 2rem !important;
  }

  .footer .col-lg-4,
  .footer .col-lg-2 {
    margin-bottom: 2rem;
  }

  .footer h5::after,
  .footer h6::after {
    width: 22px;
  }

  .footer-bottom .col-md-6:last-child {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.5rem;
  }

  .footer-bottom a {
    margin-right: 0 !important;
  }
}


/* ══════════════════════════════
   WHATSAPP FLOATING BUTTON
══════════════════════════════ */
.whatsapp-float-button {
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
  box-shadow: 2px 2px 12px rgba(37, 211, 102, 0.4) !important;
}

.whatsapp-float-button:hover {
  transform: scale(1.1) translateY(-2px) !important;
  box-shadow: 2px 4px 20px rgba(37, 211, 102, 0.55) !important;
}

@media (max-width: 575px) {
  .whatsapp-float-button {
    width: 50px !important;
    height: 50px !important;
    bottom: 20px !important;
    right: 16px !important;
  }

  .whatsapp-float-button i {
    width: 24px !important;
    height: 24px !important;
  }
}


/* ══════════════════════════════
   ALERT MESSAGES
══════════════════════════════ */
#alert-container .alert {
  font-family: 'Poppins', sans-serif;
  font-size: 0.88rem;
  border-radius: 10px;
  border: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  animation: slideDown 0.3s ease;
}

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


/* ══════════════════════════════
   SESSION TIMEOUT MODAL
══════════════════════════════ */
#sessionTimeoutModal .modal-content {
  border-radius: 14px;
  border: none;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
  font-family: 'Poppins', sans-serif;
}

#sessionTimeoutModal .modal-header {
  border-radius: 14px 14px 0 0;
  padding: 1rem 1.25rem;
}

#sessionTimeoutModal #countdown-timer {
  font-weight: 700;
  color: #dc3545;
}


/* ══════════════════════════════
   GLOBAL MOBILE — 2-column product grid
   Applies to all product cards site-wide
   at small screen sizes (≤ 480px)
══════════════════════════════ */
@media (max-width: 480px) {
  /* Reduce product image height so cards fit in 2 columns */
  .product-card img,
  .product-card .card-img-top {
    height: 130px !important;
    object-fit: cover;
  }

  /* Compact card body */
  .product-card-body,
  .product-body {
    padding: 0.5rem 0.6rem 0.65rem !important;
  }

  /* Smaller title */
  .product-title,
  .product-name {
    font-size: 0.78rem !important;
    margin-bottom: 0.2rem;
    line-height: 1.3;
  }

  /* Hide description to save vertical space */
  .product-description,
  .product-desc {
    display: none !important;
  }

  /* Compact price */
  .product-price,
  .price-current {
    font-size: 0.85rem !important;
  }

  /* Compact buttons */
  .product-card .btn-sm,
  .product-card .btn-add-cart,
  .product-card .btn-view-details {
    font-size: 0.68rem !important;
    padding: 0.35rem 0.45rem !important;
  }

  /* Compact badges */
  .product-card .badge {
    font-size: 0.58rem !important;
    padding: 0.15rem 0.35rem;
  }

  /* Hero section stacked on mobile */
  .hero-section h1 {
    font-size: 1.8rem;
  }

  /* Category cards on mobile */
  .category-card {
    height: 150px;
  }
}