/* Fix Bootstrap utility classes */
.py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}

.p-4 {
    padding: 1.5rem !important;
}


/* Cart count positioning fix */
#header .cart {
    position: relative !important;
    margin-left: 8px !important;
    margin-right: 0 !important;
}

/* Cart counter */
.cart-count {
    position: absolute !important;
    top: -8px !important;
    right: -8px !important;
    background: #28a745 !important;
    /* Changed to green to match theme */
    color: #fff !important;
    font-size: 11px !important;
    padding: 2px 5px !important;
    border-radius: 10px !important;
    font-weight: 600 !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
    min-width: 16px !important;
    text-align: center !important;
    line-height: 1 !important;
    border: 1px solid #fff !important;
}

/* Wishlist counter */
.wishlist-count {
    position: absolute !important;
    top: -8px !important;
    right: -8px !important;
    background: #dc3545 !important;
    /* Red to match heart icon */
    color: #fff !important;
    font-size: 11px !important;
    padding: 2px 5px !important;
    border-radius: 10px !important;
    font-weight: 600 !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
    min-width: 16px !important;
    text-align: center !important;
    line-height: 1 !important;
    border: 1px solid #fff !important;
}

/* Wishlist button styling */
.wishlist-btn {
    display: inline-block !important;
    position: relative !important;
    text-decoration: none !important;
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    cursor: pointer !important;
    color: #495057 !important;
    font-size: 20px !important;
    transition: color 0.3s ease !important;
}

.wishlist-btn:hover {
    color: #dc3545 !important;
}

.wishlist-btn .fa {
    font-size: 20px !important;
}

/* Header inner alignment fix */
#header .header-inner {
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 8px !important;
    height: 101px !important;
    display: flex !important;
}

/* Search icon spacing */
#header .search {
    margin-right: 0 !important;
}

/* Cart icon spacing */
#header .cart {
    position: relative !important;
    margin-left: 8px !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
}

/* User Profile Icon Styling */
#header .user-profile {
    position: relative !important;
    margin-left: 8px !important;
    margin-right: 0 !important;
}

.profile-btn {
    display: inline-block !important;
    position: relative !important;
    text-decoration: none !important;
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    cursor: pointer !important;
}

#header .user-profile .fa,
.profile-btn .fa {
    font-size: 20px !important;
    padding: 16px 16px 16px 16px !important;
    color: #2d5f3f !important;
    border-radius: 65px !important;
    background-color: #fff !important;
    display: inline-block !important;
    -webkit-transition: all 0.3s ease-in-out !important;
    -moz-transition: all 0.3s ease-in-out !important;
    -ms-transition: all 0.3s ease-in-out !important;
    -o-transition: all 0.3s ease-in-out !important;
    transition: all 0.3s ease-in-out !important;
}

#header .user-profile .fa:hover,
.profile-btn:hover .fa,
.profile-btn:focus .fa {
    background-color: #2d5f3f !important;
    color: #fff !important;
}

.profile-btn:hover,
.profile-btn:focus {
    text-decoration: none !important;
    outline: none !important;
}

/* Profile Dropdown Menu */
.profile-dropdown {
    min-width: 220px !important;
    padding: 0 !important;
    margin-top: 10px !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    border: 1px solid #e9ecef !important;
    background: #fff !important;
}

.profile-dropdown .profile-header {
    padding: 16px !important;
    background: #f8f9fa !important;
    border-bottom: 1px solid #e9ecef !important;
    border-radius: 8px 8px 0 0 !important;
}

.profile-info {
    text-align: left !important;
}

.profile-name {
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #2d5f3f !important;
    margin-bottom: 4px !important;
}

.profile-email {
    font-size: 12px !important;
    color: #666 !important;
    word-break: break-word !important;
}

.profile-dropdown .divider {
    height: 1px !important;
    margin: 8px 0 !important;
    overflow: hidden !important;
    background-color: #e9ecef !important;
    list-style: none !important;
}

.profile-dropdown>li>a {
    display: flex !important;
    align-items: center !important;
    padding: 12px 16px !important;
    color: #333 !important;
    text-decoration: none !important;
    font-size: 14px !important;
    transition: all 0.2s ease !important;
}

.profile-dropdown>li>a i {
    margin-right: 10px !important;
    width: 18px !important;
    text-align: center !important;
    color: #2d5f3f !important;
}

.profile-dropdown>li>a:hover {
    background-color: #f0f8f0 !important;
    color: #2d5f3f !important;
    text-decoration: none !important;
}

.profile-dropdown>li>a:hover i {
    color: #2d5f3f !important;
}

/* Header right alignment fix */
#header .site-header-right {
    align-items: center !important;
    line-height: normal !important;
    height: 101px !important;
    display: flex !important;
}

/* Button styling removed for cleaner look */

/* Logo header alignment fix */
#header .logo-header {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    height: 101px !important;
    line-height: normal !important;
}

/* Cart quantity controls styling */
.cart-quantity-controls {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-top: 8px !important;
}

.quantity-btn {
    background: #f8f9fa !important;
    border: 1px solid #dee2e6 !important;
    color: #6c757d !important;
    width: 32px !important;
    height: 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 6px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.quantity-btn:hover {
    background: #e9ecef !important;
    border-color: #2d5f3f !important;
    color: #2d5f3f !important;
}

.quantity-input {
    border: 1px solid #dee2e6 !important;
    background: #fff !important;
    width: 50px !important;
    height: 32px !important;
    text-align: center !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #2d5f3f !important;
    border-radius: 6px !important;
    outline: none !important;
    margin-bottom: 0px !important;
}

.quantity-input:focus {
    border-color: #2d5f3f !important;
    box-shadow: 0 0 0 2px rgba(45, 95, 63, 0.1) !important;
}

/* Cart footer section styling */
.cart-footer-section {
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    padding: 1rem 0 !important;
    border-top: 1px solid #e9ecef !important;
    margin-top: 1rem !important;
    gap: 1rem !important;
}

.cart-footer-section .d-flex.flex-column {
    flex: 1 !important;
    min-width: 0 !important;
}

.cart-footer-section .text-end {
    flex-shrink: 0 !important;
    text-align: right !important;
    min-width: 120px !important;
}

/* Remove button styling */
.cart-footer-section .btn-link {
    color: #dc3545 !important;
    text-decoration: none !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    padding: 0.25rem 0 !important;
    margin-top: 0.5rem !important;
    transition: color 0.2s ease !important;
}

.cart-footer-section .btn-link:hover {
    color: #b02a37 !important;
    text-decoration: underline !important;
}

/* Price display styling */
.cart-footer-section .text-success {
    color: #28a745 !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    margin-bottom: 0.25rem !important;
}

.cart-footer-section del {
    color: #6c757d !important;
    font-size: 0.9rem !important;
    font-weight: 400 !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .cart-footer-section {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.75rem !important;
    }

    .cart-footer-section .text-end {
        text-align: left !important;
        margin-top: 0.5rem !important;
    }
}

/* Order Summary Styling - Removed to avoid conflicts with cart.blade.php styles */

/* Promo code section */
.promo-section {
    border: 1px solid #e9ecef !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    margin-top: 1.5rem !important;
}

.promo-toggle {
    background: #f8f9fa !important;
    border: none !important;
    width: 100% !important;
    text-align: left !important;
    padding: 1rem 1.25rem !important;
    font-weight: 600 !important;
    color: #2d5f3f !important;
    transition: background-color 0.2s ease !important;
}

.promo-toggle:hover {
    background: #e9ecef !important;
}

.promo-toggle:focus {
    box-shadow: none !important;
    outline: none !important;
}

.promo-content {
    padding: 1rem 1.25rem !important;
    background: white !important;
}

.promo-input-group .form-control {
    border: 1px solid #ced4da !important;
    border-radius: 6px 0 0 6px !important;
    padding: 0.75rem 1rem !important;
}

.promo-input-group .btn {
    border-radius: 0 6px 6px 0 !important;
    padding: 0.75rem 1.5rem !important;
    background: #28a745 !important;
    border: 1px solid #28a745 !important;
    font-weight: 600 !important;
}

.promo-input-group .btn:hover {
    background: #218838 !important;
    border-color: #218838 !important;
}

/* ============================================
   Responsive Mobile Menu Updates
   ============================================ */

/* Hide social icons in responsive */
@media (max-width: 991px) {
    .widgets-nav-social {
        display: none !important;
    }

    .top-header1 .top-bar-right .widgets-nav-social,
    .top-header .top-bar-right .widgets-nav-social {
        display: none !important;
    }
}

/* Mobile Menu Action Buttons (Cart, Wishlist, Profile/Login) */
#mainnav-mobi .mobile-menu-actions {
    display: flex !important;
    justify-content: space-around !important;
    align-items: center !important;
    padding: 20px 15px !important;
    background-color: #fff !important;
    border-top: 2px solid rgba(45, 95, 63, 0.1) !important;
    margin-top: 10px !important;
    gap: 10px !important;
}

#mainnav-mobi .mobile-action-btn {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    color: #2d5f3f !important;
    padding: 12px 15px !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    flex: 1 !important;
    min-width: 0 !important;
}

#mainnav-mobi .mobile-action-btn:hover {
    background-color: rgba(45, 95, 63, 0.05) !important;
    color: #18ba60 !important;
    transform: translateY(-2px) !important;
}

#mainnav-mobi .mobile-action-btn i {
    font-size: 24px !important;
    margin-bottom: 6px !important;
    display: block !important;
}

#mainnav-mobi .mobile-action-text {
    font-size: 12px !important;
    font-weight: 500 !important;
    text-align: center !important;
    line-height: 1.2 !important;
}

/* Mobile Cart Count Badge */
#mainnav-mobi .mobile-cart-count {
    position: absolute !important;
    top: 8px !important;
    right: 8px !important;
    background: #28a745 !important;
    color: #fff !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    padding: 2px 6px !important;
    border-radius: 10px !important;
    min-width: 18px !important;
    text-align: center !important;
    line-height: 1.4 !important;
    border: 2px solid #fff !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
}

#mainnav-mobi .mobile-cart-count:empty {
    display: none !important;
}

/* Mobile menu action buttons responsive adjustments */
@media (max-width: 480px) {
    #mainnav-mobi .mobile-menu-actions {
        padding: 15px 10px !important;
        gap: 8px !important;
    }

    #mainnav-mobi .mobile-action-btn {
        padding: 10px 8px !important;
    }

    #mainnav-mobi .mobile-action-btn i {
        font-size: 20px !important;
    }

    #mainnav-mobi .mobile-action-text {
        font-size: 11px !important;
    }
}