.footer-middle {
    padding-top: 2.25rem;
    padding-bottom: 2.25rem;
}
.text-right{
    text-align: right;
}
.pt-90 {
    padding-top: 90px !important;
}
.my-account__address-list {
    display: flex;
    gap: 1.625rem;
}

.form-floating>.form-control,
.form-floating>.form-select {
    height: 48px;
}

.search-result {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 350px;
    overflow-y: auto;
}

.search-result li {
    padding: 10px;
    border-bottom: 1px solid #e9e9e9;
}

.search-result li:last-child {
    border-bottom: none;
}

.search-result li a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
}

.search-result li a img {
    margin-right: 15px;
    object-fit: cover;
}

.search-result li a span {
    font-size: 14px;
    font-weight: 500;
}

/* Fix Header Tools Alignment */
.header-tools__item {
    display: flex;
    align-items: center;
    gap: 15px; /* Add gap between items */
}

.header-tools__item a.header-tools__item {
    display: flex;
    align-items: center;
    color: #222;
    text-decoration: none;
    padding: 5px;
}

.header-tools__item .pr-6px {
    margin-right: 8px;
    font-size: 14px;
    font-weight: 500;
    padding-right: 0 !important;
}

.header-tools__item .cart-amount {
    top: -5px;
    right: -8px;
    left: auto !important; /* Override theme's left positioning */
    width: 18px;
    height: 18px;
    background: #222;
    color: #fff;
    border-radius: 50%;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    z-index: 10;
}

.header-tools__item svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* THARLIF Chatbot Styles */
#tharlif-chatbot {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    font-family: 'Inter', sans-serif;
}

.chatbot-toggle {
    width: 60px;
    height: 60px;
    background-color: #047857;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.chatbot-toggle:hover {
    transform: scale(1.1);
    background-color: #065f46;
}

.chatbot-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 450px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: slideUp 0.3s ease;
}

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

.chatbot-header {
    background-color: #047857;
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background-color: #f8fafc;
}

.chat-bubble {
    padding: 10px 15px;
    border-radius: 15px;
    margin-bottom: 10px;
    max-width: 85%;
    font-size: 14px;
    line-height: 1.4;
}

.bubble-bot {
    background-color: #e2e8f0;
    color: #1e293b;
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}

.bubble-user {
    background-color: #047857;
    color: white;
    align-self: flex-end;
    margin-left: auto;
    border-bottom-right-radius: 2px;
}

.chatbot-footer {
    padding: 15px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    gap: 10px;
}

.chatbot-input {
    flex: 1;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 8px 15px;
    outline: none;
    font-size: 14px;
}

.chatbot-send {
    background: none;
    border: none;
    color: #047857;
    font-weight: bold;
    cursor: pointer;
}

.quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 10px;
}

.quick-reply-btn {
    font-size: 12px;
    padding: 5px 12px;
    border: 1px solid #047857;
    color: #047857;
    border-radius: 15px;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
}

.quick-reply-btn:hover {
    background: #047857;
    color: white;
}

/* Blog Styles */
.border-left-emerald {
    border-left: 5px solid #047857;
}

.blog-content h4 {
    color: #1e293b;
    font-weight: 700;
}

/* Dashboard Styles */
.account-nav li {
    margin-bottom: 5px;
}

.account-nav .menu-link {
    padding: 12px 20px;
    border-radius: 8px;
    transition: all 0.3s;
    display: block;
    color: #64748b;
    font-weight: 500;
}

.account-nav .menu-link:hover, .account-nav .menu-link_active {
    background-color: #f1f5f9;
    color: #047857 !important;
}

.account-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.account-card h5 {
    color: #1e293b;
    font-weight: 700;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-label-custom {
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 8px;
}

.form-control-custom {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    transition: border-color 0.2s;
}

.form-control-custom:focus {
    border-color: #047857;
    outline: none;
    box-shadow: 0 0 0 3px rgba(4, 120, 87, 0.1);
}

.btn-emerald {
    background-color: #047857;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.3s;
}

.btn-emerald:hover {
    background-color: #065f46;
    color: white;
}

.bg-light-red {
    background-color: #fff1f2;
}

.border-radius-12 {
    border-radius: 12px;
}

/* Dashboard Overview Styles */
.welcome-banner {
    background: linear-gradient(135deg, #064e3b 0%, #047857 100%);
    border-radius: 16px;
    padding: 40px;
    color: white;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.welcome-banner::after {
    content: "\f005";
    font-family: "FontAwesome";
    position: absolute;
    right: -20px;
    bottom: -20px;
    font-size: 150px;
    opacity: 0.1;
    transform: rotate(-15deg);
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-item {
    background: white;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    text-align: center;
    transition: transform 0.3s;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: #f1f5f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: #047857;
    font-size: 20px;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 5px;
}

.stat-label {
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
}

/* Minimalist Gift Card */
.gift-card-minimalist {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 0;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.gift-card-minimalist:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.gift-card-minimalist .card-accent {
    height: 8px;
    background-color: #047857;
}

.gift-card-icon-container {
    padding: 40px 20px;
    background: #f9fafb;
    display: flex;
    justify-content: center;
    align-items: center;
}

.gift-card-icon-container svg {
    color: #047857;
    opacity: 0.8;
}

/* Luxury Gift Card Effects */
.bg-emerald-gradient {
    background: linear-gradient(135deg, #064e3b 0%, #047857 100%);
    position: relative;
    overflow: hidden;
}

.bg-emerald-gradient::after {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 20% 30%, rgba(255,255,255,0.1) 0%, transparent 50%);
}

.card-chip {
    width: 40px;
    height: 30px;
    background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
    border-radius: 4px;
    position: absolute;
    top: 20px;
    left: 20px;
    opacity: 0.8;
}

.card-hologram {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.2);
}

.bg-emerald {
    background-color: #047857;
}

.text-emerald {
    color: #047857;
}

.tracking-widest {
    letter-spacing: 0.2em;
}

.border-radius-5 {
    border-radius: 5px;
}

.btn-outline-emerald {
    color: #047857;
    border-color: #047857;
}

.btn-outline-danger {
    color: #dc3545 !important;
    border-color: #dc3545 !important;
}

.btn-outline-danger:hover {
    background-color: #dc3545 !important;
    color: white !important;
}

.border-emerald {
    border-color: #047857 !important;
}

.bg-emerald {
    background-color: #047857 !important;
}

.benefit-icon-wrapper {
    width: 60px;
    height: 60px;
    background: #ecfdf5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.benefit-item:hover .benefit-icon-wrapper {
    background: #10b981;
    transform: translateY(-5px);
}

.benefit-item:hover .benefit-icon-wrapper i {
    color: white !important;
}

.filter-white {
    filter: brightness(0) invert(1);
}

/* Search Popup Enhancements */
.search-popup__results {
    max-height: 500px;
    overflow-y: auto;
    background: white;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-radius: 0 0 15px 15px;
}

.search-result {
    list-style: none;
    padding: 0;
    margin: 0;
}

.search-suggestion__item {
    transition: all 0.2s ease;
}

.search-suggestion__item:hover {
    background-color: #f8fafc;
}

.bg-light-emerald {
    background-color: #ecfdf5 !important;
}

.text-emerald {
    color: #047857 !important;
}

/* Legal & Privacy Styles */
.legal-nav {
    position: sticky;
    top: 120px;
    border-right: 1px solid #e5e7eb;
}

.legal-nav__link {
    display: block;
    padding: 12px 20px;
    color: #4b5563;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
    border-right: 2px solid transparent;
}

.legal-nav__link:hover {
    color: #10b981;
    background: #f9fafb;
}

.legal-nav__link.active {
    color: #10b981;
    font-weight: 600;
    border-right-color: #10b981;
    background: #ecfdf5;
}

.legal-section {
    margin-bottom: 50px;
    scroll-margin-top: 150px;
}

.legal-section h3 {
    font-weight: 700;
    color: #111827;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.legal-section p, .legal-section li {
    color: #374151;
    line-height: 1.7;
    margin-bottom: 15px;
}

.legal-section ul {
    padding-left: 20px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .legal-nav {
        position: static;
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
        margin-bottom: 30px;
    }
}

/* Custom Responsive Dashboard for Mobile/Tablets */
@media (max-width: 991.98px) {
    .dashboard-stats {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 8px !important;
        margin-bottom: 25px !important;
    }
    .stat-item {
        padding: 12px 6px !important;
        border-radius: 8px !important;
    }
    .stat-icon {
        width: 32px !important;
        height: 32px !important;
        margin: 0 auto 6px !important;
        font-size: 14px !important;
    }
    .stat-value {
        font-size: 16px !important;
        margin-bottom: 2px !important;
    }
    .stat-label {
        font-size: 10px !important;
        white-space: nowrap !important;
    }
    .welcome-banner {
        padding: 18px !important;
        margin-bottom: 20px !important;
    }
    .welcome-banner h3 {
        font-size: 16px !important;
    }
    .welcome-banner p {
        font-size: 11px !important;
    }
    .account-card {
        padding: 15px !important;
    }
}

/* Smartphone Specific Scaling (< 576px) to keep wide elements fully intact */
@media (max-width: 575.98px) {
    .my-account {
        padding-left: 4px !important;
        padding-right: 4px !important;
    }
    
    .my-account h2.page-title {
        font-size: 20px !important;
        margin-bottom: 12px !important;
    }
    
    .account-card {
        padding: 12px 8px !important;
        border-radius: 8px !important;
    }
    
    .account-card h5 {
        font-size: 13px !important;
    }
    
    /* Micro-scale the orders table so it displays fully intact */
    .my-account .table {
        font-size: 11px !important;
    }
    
    .my-account .table th,
    .my-account .table td {
        padding: 6px 3px !important;
        vertical-align: middle !important;
    }
    
    .my-account .badge {
        font-size: 8px !important;
        padding: 3px 6px !important;
        border-radius: 4px !important;
    }
    
    .my-account .table-responsive {
        border: none !important;
        margin: 0 !important;
        overflow-x: hidden !important; /* Force fit without horizontal scrolling! */
    }
}

