/* assets/css/product_recommendation.css */
/* Styles for Astrologer Recommended Product Cards in Chat */

.az-product-rec-card {
    background: linear-gradient(145deg, #ffffff, #fffaf5);
    border: 1.5px solid #fed7aa;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(234, 88, 12, 0.12);
    padding: 14px;
    max-width: 360px;
    width: 100%;
    margin: 6px 0;
    box-sizing: border-box;
    position: relative;
    font-family: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.az-product-rec-card:hover {
    box-shadow: 0 10px 26px rgba(234, 88, 12, 0.18);
    transform: translateY(-2px);
}

.gc-messages-list .az-product-rec-card {
    max-width: 100%;
}

.az-rec-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #fef3c7, #fed7aa);
    color: #9a3412;
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 10px;
    border: 1px solid #fde68a;
}

.az-rec-badge i {
    color: #ea580c;
}

.az-rec-content {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 10px;
}

.az-rec-img-wrap {
    width: 74px;
    height: 74px;
    min-width: 74px;
    border-radius: 12px;
    overflow: hidden;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.az-rec-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.az-product-rec-card:hover .az-rec-img {
    transform: scale(1.06);
}

.az-rec-details {
    flex: 1;
    min-width: 0;
}

.az-rec-title {
    font-weight: 700;
    font-size: 0.9rem;
    color: #1e293b;
    line-height: 1.35;
    margin: 0 0 6px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.az-rec-pricing {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.az-rec-price {
    font-size: 1.12rem;
    font-weight: 800;
    color: #ea580c;
}

.az-rec-compare {
    font-size: 0.82rem;
    color: #94a3b8;
    text-decoration: line-through;
}

.az-rec-note {
    background: #fff;
    border: 1px dashed #fcd34d;
    border-radius: 10px;
    padding: 8px 10px;
    font-size: 0.82rem;
    color: #78350f;
    margin-bottom: 10px;
    line-height: 1.35;
}

.az-rec-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.az-rec-actions .az-rec-btn-buy {
    flex: 1;
    margin-top: 0;
}

.az-rec-btn-copy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 14px;
    height: 38px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 20px;
    color: #475569;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    white-space: nowrap;
}

.az-rec-btn-copy:hover {
    background: #f8fafc;
    color: #ea580c;
    border-color: #ea580c;
}

.az-rec-btn-buy {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    background: linear-gradient(135deg, #ea580c, #f97316);
    color: #ffffff !important;
    text-decoration: none !important;
    padding: 9px 16px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.88rem;
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.28);
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.az-rec-btn-buy:hover {
    background: linear-gradient(135deg, #c2410a, #ea580c);
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(234, 88, 12, 0.38);
}

.az-rec-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 6px;
    font-size: 0.72rem;
    color: #94a3b8;
}

/* Suggest product button next to voice button */
.btn-suggest-product {
    background: #fef3c7;
    color: #d97706;
    border: 1px solid #fde68a;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    flex-shrink: 0;
}

.btn-suggest-product:hover {
    background: #fde68a;
    color: #b45309;
    transform: scale(1.06);
    box-shadow: 0 3px 10px rgba(245, 158, 11, 0.25);
}

/* Astrologer Products Offcanvas Drawer */
.az-product-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1050;
    display: none;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.az-product-drawer-overlay.active {
    display: block;
    opacity: 1;
}

.az-product-drawer {
    position: fixed;
    top: 0;
    right: -450px;
    width: 440px;
    max-width: 95vw;
    height: 100vh;
    background: #ffffff;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
    z-index: 1060;
    display: flex;
    flex-direction: column;
    transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.az-product-drawer.active {
    right: 0;
}

.az-drawer-header {
    background: linear-gradient(135deg, #ea580c, #f97316);
    color: #fff;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.az-drawer-header h5 {
    margin: 0;
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.az-drawer-close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: background 0.2s;
}

.az-drawer-close-btn:hover {
    background: rgba(255, 255, 255, 0.35);
}

.az-drawer-search-wrap {
    padding: 12px 16px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.az-drawer-search-input {
    width: 100%;
    padding: 9px 14px;
    border-radius: 20px;
    border: 1.5px solid #cbd5e1;
    font-size: 0.9rem;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.az-drawer-search-input:focus {
    border-color: #ea580c;
}

.az-drawer-chips {
    display: flex;
    gap: 6px;
    margin-top: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.az-drawer-chip {
    white-space: nowrap;
    padding: 4px 10px;
    border-radius: 15px;
    background: #e2e8f0;
    color: #475569;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.az-drawer-chip.active,
.az-drawer-chip:hover {
    background: #ea580c;
    color: #fff;
}

.az-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.az-drawer-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #fff;
    align-items: center;
    transition: all 0.2s ease;
}

.az-drawer-item:hover {
    border-color: #fdba74;
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.08);
}

.az-drawer-item-img {
    width: 65px;
    height: 65px;
    min-width: 65px;
    border-radius: 10px;
    object-fit: cover;
    background: #f1f5f9;
}

.az-drawer-item-info {
    flex: 1;
    min-width: 0;
}

.az-drawer-item-title {
    font-weight: 700;
    font-size: 0.86rem;
    color: #1e293b;
    line-height: 1.3;
    margin: 0 0 4px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.az-drawer-item-price {
    font-weight: 800;
    color: #ea580c;
    font-size: 0.95rem;
}

.az-drawer-item-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-end;
}

.az-btn-suggest-send {
    background: linear-gradient(135deg, #ea580c, #f97316);
    color: #fff;
    border: none;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(234, 88, 12, 0.25);
    transition: all 0.2s;
    white-space: nowrap;
}

.az-btn-suggest-send:hover {
    background: #c2410a;
    transform: translateY(-1px);
}

.az-btn-preview-link {
    font-size: 0.75rem;
    color: #64748b;
    text-decoration: none;
}

.az-btn-preview-link:hover {
    color: #ea580c;
}

/* Astrologer Dashboard Catalogue Grid Styles */
.az-mall-hero {
    background: linear-gradient(135deg, #7c2d12 0%, #ea580c 50%, #f97316 100%);
    border-radius: 16px;
    padding: 24px 30px;
    color: #fff;
    margin-bottom: 24px;
    box-shadow: 0 10px 25px rgba(234, 88, 12, 0.2);
    position: relative;
    overflow: hidden;
}

.az-mall-hero::after {
    content: '\f3a5';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 20px;
    bottom: -20px;
    font-size: 8rem;
    color: rgba(255, 255, 255, 0.08);
    pointer-events: none;
}

.az-mall-card {
    background: #fff;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    transition: all 0.25s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.az-mall-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    border-color: #fdba74;
}

.az-mall-card-img-wrap {
    width: 100%;
    padding-top: 85%;
    position: relative;
    background: #f8fafc;
    overflow: hidden;
}

.az-mall-card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

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

.az-mall-card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.az-mall-card-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: #1e293b;
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.7em;
}

.az-mall-card-price {
    font-size: 1.25rem;
    font-weight: 800;
    color: #ea580c;
}

.az-mall-card-compare {
    font-size: 0.9rem;
    color: #94a3b8;
    text-decoration: line-through;
    margin-left: 6px;
}

.az-mall-tag-badge {
    display: inline-block;
    background: #fef3c7;
    color: #92400e;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
    margin-right: 4px;
    margin-bottom: 4px;
}

