/* Font Family Override */
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
span,
div,
button,
input,
select,
textarea {
    font-family: "Century Gothic" !important;
}

/* Specific overrides for headings */
.navbar-brand h1,
.display-1,
.display-2,
.display-3,
.display-4,
.display-5,
.display-6 {
    font-family: "Century Gothic" !important;
    font-weight: 600 !important;
}

/* Navigation */
.navbar .navbar-nav .nav-link {
    font-family: "Century Gothic" !important;
    font-weight: 500 !important;
}

/* Buttons */
.btn {
    font-family: "Century Gothic" !important;
    font-weight: 600 !important;
}

/* Product titles and descriptions */
.fruite-item h4,
.vesitable-item h4 {
    font-family: "Century Gothic" !important;
    font-weight: 600 !important;
}

.fruite-item p,
.vesitable-item p {
    font-family: "Century Gothic" !important;
    font-weight: normal !important;
}

/* Price elements */
.price-old,
.price-new,
.product-price {
    font-family: "Century Gothic" !important;
}

/* Form elements */
input,
textarea,
select,
.form-control {
    font-family: "Century Gothic" !important;
}

/* Footer text */
.footer-item h4,
.footer-item p,
.footer-item a {
    font-family: "Century Gothic" !important;
}

/* Mobile Section Overrides */
.mobile-menu-card,
.mobile-menu-card *,
.mobile-nav-section,
.mobile-nav-header,
.mobile-nav-link,
.mobile-nav-button,
.mobile-nav-section .badge,
.offcanvas-header .logo-text,
.mobile-menu-card .btn {
    font-family: "Century Gothic", sans-serif !important;
}

/* Mobile Offcanvas Menu Card Styling */

.mobile-menu-card {
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100vh !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
    backdrop-filter: blur(20px);
    border: none !important;
    font-family: 'Century Gothic', sans-serif !important;
}

.mobile-menu-card .offcanvas-header {
    background: linear-gradient(135deg, #0d5f3c 0%, #146c43 100%);
    border-radius: 0 !important;
    padding: 25px 30px;
    border-bottom: none !important;
    position: relative;
    overflow: hidden;
    min-height: 100px;
}

.mobile-menu-card .offcanvas-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20px;
    width: 100px;
    height: 200%;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(15deg);
}

.mobile-menu-card .offcanvas-header .logo-paper {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 8px 15px;
}

.mobile-menu-card .offcanvas-header .logo-text h5,
.mobile-menu-card .offcanvas-header .logo-text p {
    color: white !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.mobile-menu-card .btn-close {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    opacity: 1;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.mobile-menu-card .btn-close:hover {
    background: rgba(255, 255, 255, 1);
    transform: rotate(90deg);
}

/* Menu Body Styling */
.mobile-menu-card .offcanvas-body {
    padding: 0;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
}

/* Navigation Sections */
.mobile-nav-section {
    padding: 20px 25px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.mobile-nav-section:last-child {
    border-bottom: none;
}

.mobile-nav-header {
    font-size: 0.85rem;
    font-weight: 700;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 8px;
}

.mobile-nav-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, #0d5f3c, #146c43);
    border-radius: 1px;
}

/* Navigation Links */
.mobile-nav-link {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    margin: 5px 0;
    color: #495057;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    border: none;
    background: transparent;
    width: 100%;
    cursor: pointer;
}

.mobile-nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(25, 135, 84, 0.1), rgba(253, 126, 20, 0.1));
    transition: left 0.3s ease;
    z-index: -1;
}

.mobile-nav-link:hover::before {
    left: 0;
}

.mobile-nav-link:hover {
    color: #198754;
    background: linear-gradient(45deg, rgba(25, 135, 84, 0.08), rgba(253, 126, 20, 0.08));
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(25, 135, 84, 0.15);
}

.mobile-nav-link.active {
    background: linear-gradient(45deg, #0d5f3c, #146c43);
    color: white !important;
    font-weight: 600;
    box-shadow: 0 6px 20px rgba(25, 135, 84, 0.3);
}

.mobile-nav-link.active::before {
    display: none;
}

.mobile-nav-link i {
    font-size: 1.1rem;
    width: 20px;
    transition: all 0.3s ease;
}

.mobile-nav-link:hover i {
    transform: scale(1.1);
}

.mobile-nav-link.active i {
    color: white !important;
}

/* Badge for cart count */
.mobile-nav-link .badge {
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 10px;
    font-weight: 600;
}

.mobile-nav-link.active .badge {
    background: rgba(255, 255, 255, 0.3) !important;
    color: white !important;
}

/* Button specific styling for search */
.mobile-nav-button {
    text-align: left !important;
}

/* Animation for menu entrance */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.offcanvas.show .mobile-menu-card {
    animation: slideInRight 0.3s ease-out;
}

/* Backdrop styling */
.offcanvas-backdrop {
    background-color: rgba(0, 0, 0, 0.6) !important;
    backdrop-filter: blur(3px);
}

/* Responsive adjustments */
@media (max-width: 575.98px) {
    .mobile-nav-section {
        padding: 15px 20px;
    }
    
    .mobile-nav-link {
        padding: 10px 12px;
        font-size: 0.95rem;
    }
}

/* Smooth transitions for all interactive elements */
.mobile-menu-card * {
    transition: all 0.3s ease;
}

/* Custom scrollbar for menu if content overflows */
.mobile-menu-card .offcanvas-body::-webkit-scrollbar {
    width: 4px;
}

.mobile-menu-card .offcanvas-body::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
}

.mobile-menu-card .offcanvas-body::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #0d5f3c, #146c43);
    border-radius: 2px;
}

.mobile-menu-card .offcanvas-body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #146c43, #0d5f3c);
}

/* Focus states for accessibility */
.mobile-nav-link:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(25, 135, 84, 0.25);
}

.mobile-menu-card .btn-close:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.5);
}
