/* Main Theme Stylesheet - Harmonium & Dholak Store */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700;800;900&display=swap');

:root {
    --primary-color: #2b1810;       /* Dark Rosewood */
    --secondary-color: #8b0000;     /* Deep Crimson */
    --gold-accent: #d4af37;         /* Polished Brass Gold */
    --gold-hover: #b89628;
    --bg-light: #fcf9f2;           /* Warm Ivory */
    --card-bg: #ffffff;
    --text-color: #332822;
    --muted-color: #7a6b63;
    --border-color: #e6ded3;
    --shadow-sm: 0 4px 12px rgba(43, 24, 16, 0.08);
    --shadow-md: 0 8px 24px rgba(43, 24, 16, 0.12);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-color);
    line-height: 1.6;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--gold-accent);
}

/* Header & Topbar */
.top-bar {
    background-color: var(--primary-color);
    color: #e6ded3;
    font-size: 0.88rem;
    padding: 6px 0;
    border-bottom: 2px solid var(--gold-accent);
}

.top-bar a {
    color: #f3ece4;
}

/* Ensure Dropdown Menu inside Top Bar has high-contrast dark readable text */
.top-bar .dropdown-menu {
    background-color: #ffffff !important;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
    padding: 8px 0;
    z-index: 1060;
}

.top-bar .dropdown-menu .dropdown-item {
    color: #1e293b !important;
    font-size: 0.88rem;
    padding: 8px 18px;
    font-weight: 500;
    transition: background-color 0.15s ease, color 0.15s ease;
    display: flex;
    align-items: center;
}

.top-bar .dropdown-menu .dropdown-item i {
    width: 20px;
    text-align: center;
}

.top-bar .dropdown-menu .dropdown-item:hover,
.top-bar .dropdown-menu .dropdown-item:focus {
    background-color: #fef3c7 !important;
    color: #92400e !important;
}

.top-bar .dropdown-menu .dropdown-item.text-danger {
    color: #dc2626 !important;
}

.top-bar .dropdown-menu .dropdown-item.text-danger:hover {
    background-color: #fee2e2 !important;
    color: #991b1b !important;
}

/* Navbar */
.navbar-custom {
    background-color: #ffffff;
    box-shadow: var(--shadow-sm);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1040;
}

.navbar-brand {
    padding: 0;
    margin-right: 1.5rem;
    display: inline-flex;
    align-items: center;
}

.brand-logo-img {
    height: 44px;
    width: auto;
    max-width: 280px;
    object-fit: contain;
    transition: transform 0.25s ease, filter 0.25s ease;
}

.brand-logo-img:hover {
    transform: scale(1.02);
    filter: brightness(1.04);
}

.nav-link {
    font-weight: 600;
    color: var(--primary-color) !important;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    margin: 0 8px;
}

.nav-link:hover, .nav-link.active {
    color: var(--secondary-color) !important;
}

/* Buttons */
.btn-gold {
    background-color: var(--gold-accent);
    color: #ffffff;
    font-weight: 600;
    border: none;
    transition: all 0.3s ease;
}

.btn-gold:hover {
    background-color: var(--gold-hover);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
}

.btn-crimson {
    background-color: var(--secondary-color);
    color: #ffffff;
    font-weight: 600;
    border: none;
}

.btn-crimson:hover {
    background-color: #6a0000;
    color: #ffffff;
}

/* Buy Now Button - High-Converting Emerald Green */
.btn-buy-now,
button.btn-buy-now,
a.btn-buy-now {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    background-color: #059669 !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35) !important;
    transition: all 0.25s ease-in-out !important;
}

.btn-buy-now:hover,
button.btn-buy-now:hover,
a.btn-buy-now:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
    background-color: #047857 !important;
    color: #ffffff !important;
    box-shadow: 0 6px 18px rgba(5, 150, 105, 0.45) !important;
    transform: translateY(-1px);
}

.btn-buy-now:active,
button.btn-buy-now:active,
a.btn-buy-now:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(5, 150, 105, 0.3) !important;
}

/* Premium Colorful "View All" Button */
.btn-view-all,
a.btn-view-all {
    background: linear-gradient(135deg, #e11d48 0%, #ea580c 45%, #d97706 100%) !important;
    background-size: 200% auto;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 0.88rem !important;
    padding: 9px 22px !important;
    border-radius: 50px !important;
    border: none !important;
    box-shadow: 0 4px 14px rgba(234, 88, 12, 0.38), 0 2px 6px rgba(225, 29, 72, 0.25) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    text-decoration: none !important;
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    position: relative !important;
    overflow: hidden !important;
    letter-spacing: 0.3px !important;
}

.btn-view-all:hover,
a.btn-view-all:hover {
    background: linear-gradient(135deg, #ea580c 0%, #e11d48 55%, #d97706 100%) !important;
    color: #ffffff !important;
    transform: translateY(-2px) scale(1.03) !important;
    box-shadow: 0 6px 20px rgba(234, 88, 12, 0.55), 0 4px 10px rgba(225, 29, 72, 0.35) !important;
}

.btn-view-all:active,
a.btn-view-all:active {
    transform: translateY(0) scale(0.98) !important;
    box-shadow: 0 2px 8px rgba(234, 88, 12, 0.35) !important;
}

.btn-view-all i {
    transition: transform 0.25s ease !important;
    font-size: 0.85rem !important;
}

.btn-view-all:hover i {
    transform: translateX(4px) !important;
}

/* Shimmer shine reflection across button on hover */
.btn-view-all::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: skewX(-20deg);
    transition: left 0.6s ease;
}

.btn-view-all:hover::before {
    left: 140%;
}

@media (max-width: 576px) {
    .btn-view-all,
    a.btn-view-all {
        font-size: 0.8rem !important;
        padding: 7px 15px !important;
        gap: 6px !important;
    }
}

/* ========================================================
   PHONE ONLY GOOD-LOOKING SEARCH BAR (products.php)
   ======================================================== */
.mobile-search-card {
    background: #ffffff;
    border: 1.5px solid rgba(212, 175, 55, 0.45);
    border-radius: 50px;
    padding: 5px 6px 5px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 18px rgba(43, 24, 16, 0.08);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.mobile-search-card:focus-within {
    border-color: #d4af37;
    box-shadow: 0 6px 24px rgba(212, 175, 55, 0.32);
    transform: translateY(-1px);
}

.mobile-search-card .search-icon {
    color: #d4af37;
    font-size: 1rem;
    flex-shrink: 0;
}

.mobile-search-card .mobile-search-input {
    border: none;
    outline: none;
    background: transparent;
    width: 100%;
    font-size: 0.95rem;
    color: var(--text-color);
    padding: 6px 0;
}

.mobile-search-card .mobile-search-input::placeholder {
    color: #94a3b8;
    font-size: 0.85rem;
}

.mobile-search-card .mobile-search-clear {
    color: #94a3b8;
    background: none;
    border: none;
    padding: 4px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
    text-decoration: none;
    flex-shrink: 0;
}

.mobile-search-card .mobile-search-clear:hover {
    color: #dc2626;
}

.mobile-search-card .mobile-search-btn {
    background: linear-gradient(135deg, #e11d48 0%, #ea580c 50%, #d97706 100%);
    color: #ffffff;
    border: none;
    border-radius: 50px;
    height: 38px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.3px;
    box-shadow: 0 3px 10px rgba(234, 88, 12, 0.35);
    transition: all 0.25s ease;
    flex-shrink: 0;
}

.mobile-search-card .mobile-search-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 14px rgba(234, 88, 12, 0.5);
    color: #ffffff;
}

.mobile-search-card .mobile-search-btn:active {
    transform: scale(0.96);
}

/* ========================================================
   PERFECT CIRCLE FIX FOR USER AVATARS & PROFILE PHOTOS
   ======================================================== */
img.rounded-circle,
.rounded-circle img,
img.profile-avatar-lg,
.profile-avatar-lg {
    aspect-ratio: 1 / 1 !important;
    object-fit: cover !important;
    border-radius: 50% !important;
}

.img-thumbnail.rounded-circle {
    border-radius: 50% !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: cover !important;
}

.profile-avatar-lg {
    width: clamp(7.5rem, 28vw, 9.5rem) !important;
    height: clamp(7.5rem, 28vw, 9.5rem) !important;
    min-width: clamp(7.5rem, 28vw, 9.5rem) !important;
    min-height: clamp(7.5rem, 28vw, 9.5rem) !important;
    max-width: clamp(7.5rem, 28vw, 9.5rem) !important;
    max-height: clamp(7.5rem, 28vw, 9.5rem) !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: cover !important;
    border-radius: 50% !important;
    display: inline-block !important;
}

/* ========================================================
   PRODUCT PRICING & ANTI-OVERFLOW DISCOUNT BADGE
   Using clamp(), vw, and rem for perfect responsive fit
   ======================================================== */
.product-detail-price-row {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: clamp(0.35rem, 2vw, 0.75rem) !important;
    width: 100% !important;
    max-width: 100% !important;
}

.product-detail-selling-price {
    font-size: clamp(1.35rem, 5.2vw, 2rem) !important;
    font-weight: 800 !important;
    color: var(--secondary-color, #8b0000) !important;
    line-height: 1.15 !important;
    white-space: nowrap !important;
}

.product-detail-mrp-price {
    font-size: clamp(0.9rem, 3.2vw, 1.25rem) !important;
    color: #64748b !important;
    text-decoration: line-through !important;
    white-space: nowrap !important;
}

.product-detail-discount-badge {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: clamp(0.72rem, 2.4vw, 0.88rem) !important;
    padding: clamp(0.2rem, 1vw, 0.35rem) clamp(0.45rem, 2vw, 0.75rem) !important;
    border-radius: 50px !important;
    display: inline-flex !important;
    align-items: center !important;
    white-space: nowrap !important;
    box-shadow: 0 2px 6px rgba(220, 38, 38, 0.3) !important;
    flex-shrink: 0 !important;
    max-width: 100% !important;
}

/* Hero Slider - 16:9 Aspect Ratio (Full Image Visible on Laptop & Phone) */
#heroCarousel {
    background-color: #1a0f0a;
    border-radius: 16px;
    overflow: hidden;
}

.carousel-item {
    background-color: #1a0f0a;
}

.carousel-item img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.92);
    display: block;
}

.carousel-caption {
    background: rgba(43, 24, 16, 0.78);
    padding: 20px 25px;
    border-radius: 12px;
    border-left: 5px solid var(--gold-accent);
    backdrop-filter: blur(4px);
    max-width: 580px;
}

/* Section Titles */
.section-title {
    font-family: 'Georgia', serif;
    color: var(--primary-color);
    font-weight: 700;
    text-align: center;
    margin-bottom: 35px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 70px;
    height: 3px;
    background: var(--gold-accent);
    margin: 10px auto 0;
    border-radius: 2px;
}

.section-title.text-start::after {
    margin-left: 0;
    margin-right: auto;
}

@media (max-width: 576px) {
    .section-title {
        font-size: 1.35rem;
        margin-bottom: 20px;
    }
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: #d1c5b8;
    padding-top: 50px;
    padding-bottom: 20px;
    margin-top: 60px;
    border-top: 4px solid var(--gold-accent);
}

footer h5 {
    color: var(--gold-accent);
    font-family: 'Georgia', serif;
    font-weight: 600;
    margin-bottom: 20px;
}

footer a {
    color: #d1c5b8;
    display: block;
    margin-bottom: 8px;
}

footer a:hover {
    color: #ffffff;
    padding-left: 5px;
}

/* ========================================================
   MODERN FEEDBACK & REVIEWS PAGE STYLES
   ======================================================== */
.feedback-form-card {
    border: 1px solid rgba(212, 175, 55, 0.28) !important;
    border-radius: 24px !important;
    background: #ffffff;
    box-shadow: 0 12px 35px rgba(43, 24, 16, 0.08) !important;
    transition: all 0.3s ease;
}

.feedback-form-card:hover {
    box-shadow: 0 16px 45px rgba(212, 175, 55, 0.16) !important;
    border-color: rgba(212, 175, 55, 0.45) !important;
}

.feedback-badge {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.18), rgba(212, 175, 55, 0.05));
    border: 1px solid rgba(212, 175, 55, 0.35);
    color: #936608;
    font-weight: 700;
    font-size: 0.8rem;
    padding: 6px 14px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
}

.modern-input-group {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    transition: all 0.25s ease;
    background: #ffffff;
}

.modern-input-group .input-group-text {
    border: none;
    background-color: #f8fafc;
    padding-left: 15px;
    padding-right: 12px;
    color: #94a3b8;
}

.modern-input-group .form-control {
    border: none;
    padding: 12px 14px;
    font-size: 0.95rem;
    box-shadow: none !important;
}

.modern-input-group:focus-within {
    border-color: var(--gold-accent);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.18) !important;
}

.modern-input-group:focus-within .input-group-text {
    background-color: #ffffff;
}

/* Star Rating Interactive Picker */
.star-rating-box {
    border-radius: 16px;
    border: 1.5px solid rgba(212, 175, 55, 0.4);
    background: linear-gradient(135deg, #2b170e 0%, #170d07 100%);
    padding: 12px 18px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15), inset 0 1px 1px rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

.star-rating-box:hover {
    border-color: rgba(212, 175, 55, 0.7);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.18);
}

.star-rating-picker .star-btn {
    font-size: 2.1rem;
    color: #ffffff !important; /* Pure White when unselected */
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.7);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.45));
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.2s ease, filter 0.2s ease;
    padding: 2px 5px;
    display: inline-block;
    user-select: none;
}

.star-rating-picker .star-btn:hover {
    transform: scale(1.25);
}

.star-rating-picker .star-btn.active {
    color: #f59e0b !important; /* Rich Gold on click/active */
    -webkit-text-stroke: 1px #d97706 !important;
    filter: drop-shadow(0 0 12px rgba(245, 158, 11, 0.85)) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3)) !important;
    transform: scale(1.12);
}

.star-rating-picker .star-btn.hovered {
    color: #fbbf24 !important; /* Shimmering Gold on hover */
    -webkit-text-stroke: 1px #f59e0b !important;
    filter: drop-shadow(0 0 16px rgba(251, 191, 36, 0.95)) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3)) !important;
    transform: scale(1.22);
}

/* Review Cards */
.review-item-card {
    background: #ffffff;
    border: 1px solid #edf2f7;
    border-radius: 18px;
    padding: 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    position: relative;
    overflow: hidden;
}

.review-item-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
    border-color: rgba(212, 175, 55, 0.3);
}

.review-quote-watermark {
    position: absolute;
    top: 14px;
    right: 18px;
    font-size: 2.2rem;
    color: rgba(212, 175, 55, 0.12);
    pointer-events: none;
}

@media (min-width: 992px) {
    .feedback-form-card.sticky-form {
        position: sticky;
        top: 100px;
        z-index: 20;
    }
}

@media (max-width: 991.98px) {
    .feedback-form-card.sticky-form {
        position: static !important;
        margin-top: 0;
    }
}

/* ============================================================
   WhatsApp Chat Style Box (User Dashboard & Profile)
   ============================================================ */
.whatsapp-chat-container {
    background-color: #efeae2;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.08);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.whatsapp-header {
    background: #008069;
    color: #ffffff;
    padding: 12px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.whatsapp-avatar-wrapper {
    position: relative;
    display: inline-block;
}

.whatsapp-online-dot {
    position: absolute;
    bottom: 1px;
    right: 1px;
    width: 11px;
    height: 11px;
    background-color: #25d366;
    border: 2px solid #008069;
    border-radius: 50%;
}

.whatsapp-chat-body {
    background-color: #efeae2;
    background-image: radial-gradient(#d1c7b7 0.75px, transparent 0.75px), radial-gradient(#d1c7b7 0.75px, #efeae2 0.75px);
    background-size: 30px 30px;
    background-position: 0 0, 15px 15px;
    padding: 20px 16px;
    min-height: 260px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.whatsapp-bubble {
    max-width: 82%;
    padding: 8px 12px 6px 12px;
    font-size: 14.5px;
    line-height: 1.45;
    position: relative;
    word-break: break-word;
    box-shadow: 0 1px 2px rgba(11, 20, 26, 0.12);
}

/* Received (Left Bubble - White) */
.whatsapp-bubble-received {
    align-self: flex-start;
    background-color: #ffffff;
    color: #111b21;
    border-radius: 0px 10px 10px 10px;
}

.whatsapp-bubble-received::before {
    content: "";
    position: absolute;
    top: 0;
    left: -8px;
    width: 0;
    height: 0;
    border-top: 10px solid #ffffff;
    border-left: 8px solid transparent;
}

/* Sent (Right Bubble - WhatsApp Green) */
.whatsapp-bubble-sent {
    align-self: flex-end;
    background-color: #d9fdd3;
    color: #111b21;
    border-radius: 10px 0px 10px 10px;
}

.whatsapp-bubble-sent::before {
    content: "";
    position: absolute;
    top: 0;
    right: -8px;
    width: 0;
    height: 0;
    border-top: 10px solid #d9fdd3;
    border-right: 8px solid transparent;
}

.whatsapp-meta {
    font-size: 11px;
    color: #667781;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin-left: 8px;
    float: right;
    margin-top: 4px;
}

.whatsapp-double-tick {
    color: #53bdeb;
    font-size: 11.5px;
}

.whatsapp-input-bar {
    background-color: #f0f2f5;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.whatsapp-input-bar .form-control {
    background: #ffffff;
    border: none;
    border-radius: 24px;
    padding: 10px 18px;
    font-size: 14.5px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.whatsapp-input-bar .form-control:focus {
    box-shadow: 0 1px 4px rgba(0, 168, 132, 0.25);
}

.whatsapp-send-btn {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 50%;
    background-color: #00a884;
    color: #ffffff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    transition: transform 0.15s ease, background-color 0.15s ease;
}

.whatsapp-send-btn:hover {
    background-color: #008f6f;
    transform: scale(1.05);
    color: #ffffff;
}

.whatsapp-send-btn:active {
    transform: scale(0.95);
}

