/* =====================================================
   ĐÀN VIỆT - Nhạc Cụ Dân Tộc Việt Nam
   Vietnamese Traditional Musical Instruments
   ===================================================== */

/* ---- Google Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@300;400;500;600;700;800&family=Playfair+Display:wght@400;500;600;700;800&family=Teko:wght@500;600;700&display=swap');

/* ---- CSS Variables ---- */
:root {
    --dv-primary: #2d1810;
    --dv-primary-light: #4a2c20;
    --dv-accent: #d4a853;
    --dv-accent-hover: #c09340;
    --dv-burgundy: #8b1a2b;
    --dv-burgundy-light: #a52a3a;
    --dv-rosewood: #6b3a2a;
    --dv-gold: #d4a853;
    --dv-gold-light: #e8c878;
    --dv-cream: #fdf6ec;
    --dv-warm-white: #faf4e8;
    --dv-text: #2d1810;
    --dv-text-muted: #7a6555;
    --dv-bg-light: #faf3e6;
    --dv-shadow: 0 0.5rem 1.5rem rgba(45, 24, 16, 0.1);
    --dv-shadow-lg: 0 1rem 3rem rgba(45, 24, 16, 0.15);
    --dv-glow: 0 0 20px rgba(212, 168, 83, 0.3);
    --dv-transition: all 0.3s ease;
    --dv-bamboo: #8fad5c;
    --dv-terracotta: #c4613a;
}

/* ---- Global ---- */
body {
    font-family: 'Be Vietnam Pro', sans-serif;
    color: var(--dv-text);
    overflow-x: hidden;
    background-color: var(--dv-cream);
}

/* ---- Navbar ---- */
.navbar {
    transition: var(--dv-transition);
    padding: 0.8rem 0;
    background: linear-gradient(135deg, var(--dv-primary) 0%, var(--dv-primary-light) 100%) !important;
    border-bottom: 2px solid rgba(212, 168, 83, 0.3);
}

.navbar-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--dv-accent) !important;
}

.brand-mark {
    width: 2.25rem;
    height: 2.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(212, 168, 83, 0.2), rgba(255, 255, 255, 0.12));
    color: var(--dv-gold-light);
}

.navbar .nav-link {
    font-weight: 600;
    padding: 0.5rem 1rem !important;
    transition: var(--dv-transition);
    border-radius: 2rem;
    font-size: 0.95rem;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    background-color: rgba(212, 168, 83, 0.2);
    color: var(--dv-gold-light) !important;
}

.navbar .btn-outline-light {
    border-color: var(--dv-gold);
    color: var(--dv-gold-light);
    border-radius: 2rem;
}

.navbar .btn-outline-light:hover {
    background-color: var(--dv-gold);
    border-color: var(--dv-gold);
    color: var(--dv-primary);
}

.navbar .btn-register {
    background: linear-gradient(135deg, var(--dv-burgundy) 0%, var(--dv-burgundy-light) 100%);
    border: none;
    color: #fff !important;
    border-radius: 2rem;
    font-weight: 700;
}

.navbar .btn-register:hover {
    background: linear-gradient(135deg, var(--dv-burgundy-light) 0%, var(--dv-burgundy) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(139, 26, 43, 0.4);
}

/* ---- Hero Section ---- */
.hero-section {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #1a0e08 0%, #2d1810 40%, #4a2c20 100%);
    overflow: hidden;
}

.hero-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.55;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 14, 8, 0.75) 0%, rgba(45, 24, 16, 0.4) 50%, rgba(74, 44, 32, 0.3) 100%);
    z-index: 1;
}

/* Decorative Vietnamese pattern overlay */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(2px 2px at 30px 40px, rgba(212, 168, 83, 0.4), transparent),
        radial-gradient(2px 2px at 80px 60px, rgba(232, 200, 120, 0.3), transparent),
        radial-gradient(1.5px 1.5px at 120px 30px, rgba(255, 255, 255, 0.2), transparent),
        radial-gradient(1px 1px at 180px 70px, rgba(212, 168, 83, 0.3), transparent),
        radial-gradient(2px 2px at 220px 50px, rgba(232, 200, 120, 0.2), transparent);
    background-repeat: repeat;
    background-size: 250px 100px;
    animation: shimmer 5s ease-in-out infinite alternate;
    z-index: 1;
    opacity: 0.5;
}

@keyframes shimmer {
    0% { opacity: 0.3; }
    100% { opacity: 0.6; }
}

.min-vh-75 {
    min-height: 75vh;
}

.hero-badge {
    background: linear-gradient(135deg, var(--dv-burgundy), var(--dv-burgundy-light)) !important;
    color: #fff !important;
    border: none;
}

.hero-title-accent {
    background: linear-gradient(135deg, var(--dv-gold), var(--dv-gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn-hero-primary {
    background: linear-gradient(135deg, var(--dv-burgundy) 0%, var(--dv-burgundy-light) 100%);
    border: none;
    color: #fff;
    font-weight: 700;
    border-radius: 2rem;
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(139, 26, 43, 0.4);
    color: #fff;
}

.btn-hero-secondary {
    border: 2px solid var(--dv-gold-light);
    color: var(--dv-gold-light);
    border-radius: 2rem;
}

.btn-hero-secondary:hover {
    background-color: var(--dv-gold);
    border-color: var(--dv-gold);
    color: var(--dv-primary);
    transform: translateY(-3px);
}

/* ---- Hero Animations ---- */
.animate-fade-in {
    animation: fadeIn 0.8s ease forwards;
}

.animate-slide-up {
    animation: slideUp 0.8s ease forwards;
    animation-delay: 0.2s;
    opacity: 0;
}

.animate-slide-up-delay {
    animation: slideUp 0.8s ease forwards;
    animation-delay: 0.5s;
    opacity: 0;
}

.animate-slide-up-delay-2 {
    animation: slideUp 0.8s ease forwards;
    animation-delay: 0.8s;
    opacity: 0;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

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

/* ---- Stats Bar ---- */
.stats-bar {
    background: linear-gradient(135deg, var(--dv-primary-light), var(--dv-rosewood));
}

.stats-bar h3 {
    color: var(--dv-gold) !important;
}

/* ---- About Section ---- */
.about-section {
    background: var(--dv-cream);
}

.about-image-wrapper {
    display: inline-block;
}

.about-badge {
    width: 100px;
    height: 100px;
    bottom: -15px;
    right: -15px;
    border: 4px solid #fff;
    background: linear-gradient(135deg, var(--dv-gold), var(--dv-accent-hover)) !important;
}

.section-badge {
    background: linear-gradient(135deg, var(--dv-burgundy), var(--dv-burgundy-light)) !important;
    color: #fff !important;
    border: none;
    border-radius: 2rem;
    font-weight: 600;
}

.section-title-accent {
    color: var(--dv-burgundy);
}

.feature-icon-box {
    background: linear-gradient(135deg, rgba(212, 168, 83, 0.15), rgba(139, 26, 43, 0.08));
    border-radius: 0.75rem;
    padding: 0.5rem;
}

.feature-icon-box i {
    color: var(--dv-burgundy) !important;
}

/* ---- Value Cards ---- */
.values-section {
    background: var(--dv-bg-light);
}

.value-card {
    transition: var(--dv-transition);
    border-radius: 1.5rem !important;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(212, 168, 83, 0.15) !important;
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--dv-shadow-lg) !important;
    border-color: var(--dv-gold) !important;
}

.icon-circle {
    width: 85px;
    height: 85px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--dv-transition);
}

.value-card:hover .icon-circle {
    transform: scale(1.1);
}

.icon-circle-burgundy {
    background: linear-gradient(135deg, rgba(139, 26, 43, 0.15), rgba(165, 42, 58, 0.08));
}

.icon-circle-gold {
    background: linear-gradient(135deg, rgba(212, 168, 83, 0.25), rgba(192, 147, 64, 0.1));
}

.icon-circle-rosewood {
    background: linear-gradient(135deg, rgba(107, 58, 42, 0.2), rgba(196, 97, 58, 0.1));
}

/* Keep old icon-circle classes as fallbacks */
.icon-circle-purple {
    background: linear-gradient(135deg, rgba(139, 26, 43, 0.15), rgba(165, 42, 58, 0.08));
}

.icon-circle-pink {
    background: linear-gradient(135deg, rgba(212, 168, 83, 0.25), rgba(192, 147, 64, 0.1));
}

.icon-circle-amber {
    background: linear-gradient(135deg, rgba(107, 58, 42, 0.2), rgba(196, 97, 58, 0.1));
}

/* ---- Product Cards ---- */
.product-card {
    border-radius: 12px !important;
    overflow: hidden;
    transition: all 0.4s ease;
    background: #fff;
    border: 1px solid rgba(212, 168, 83, 0.25) !important;
    box-shadow: 0 4px 15px rgba(45, 24, 16, 0.05);
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(45, 24, 16, 0.1) !important;
    border-color: var(--dv-gold) !important;
}

.product-img-wrapper {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(212, 168, 83, 0.1);
}

.product-img-wrapper img {
    transition: transform 0.6s ease;
}

.product-card:hover .product-img-wrapper img {
    transform: scale(1.05);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 11, 8, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.product-overlay .btn {
    border-radius: 2rem;
}

.btn-product-view {
    background: linear-gradient(135deg, var(--dv-burgundy), var(--dv-burgundy-light));
    border: none;
    color: #fff;
}

.btn-product-view:hover {
    color: #fff;
    box-shadow: 0 4px 15px rgba(139, 26, 43, 0.4);
}

.product-price {
    color: var(--dv-burgundy);
    font-weight: 700;
    font-size: 1.15rem;
}

.product-card .btn-outline-dark {
    border-color: var(--dv-burgundy);
    color: var(--dv-burgundy);
    border-radius: 2rem;
    font-weight: 600;
}

.product-card .btn-outline-dark:hover {
    background: linear-gradient(135deg, var(--dv-burgundy), var(--dv-burgundy-light));
    border-color: var(--dv-burgundy);
    color: #fff;
}

.product-card h5 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--dv-primary);
}

.product-card-strong {
    box-shadow: 0 12px 30px rgba(45, 24, 16, 0.08) !important;
}

.product-chip {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    color: var(--dv-burgundy);
    font-size: 0.8rem;
    font-weight: 700;
    backdrop-filter: blur(10px);
}

/* ---- CTA Section ---- */
.cta-section {
    background: linear-gradient(135deg, var(--dv-primary) 0%, var(--dv-primary-light) 50%, var(--dv-rosewood) 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(2px 2px at 50px 50px, rgba(212, 168, 83, 0.4), transparent),
        radial-gradient(2px 2px at 150px 30px, rgba(232, 200, 120, 0.3), transparent),
        radial-gradient(1px 1px at 250px 80px, rgba(255, 255, 255, 0.2), transparent);
    background-repeat: repeat;
    background-size: 300px 100px;
    animation: shimmer 3s ease-in-out infinite alternate;
}

.btn-cta-primary {
    background: linear-gradient(135deg, var(--dv-gold) 0%, var(--dv-accent-hover) 100%);
    border: none;
    color: var(--dv-primary);
    font-weight: 700;
    border-radius: 2rem;
}

.btn-cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 168, 83, 0.4);
    color: var(--dv-primary);
}

/* ---- Footer ---- */
footer.sacviet-footer {
    background: linear-gradient(180deg, var(--dv-primary) 0%, #1a0e08 100%) !important;
}

footer a:hover {
    color: var(--dv-gold-light) !important;
}

.footer-brand {
    font-family: 'Playfair Display', serif;
    color: var(--dv-gold);
    font-weight: 700;
}

.footer-title {
    color: var(--dv-gold-light) !important;
}

.footer-social .btn {
    width: 40px;
    height: 40px;
    border-radius: 50% !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-color: var(--dv-gold);
    color: var(--dv-gold-light);
    transition: var(--dv-transition);
}

.footer-social .btn:hover {
    background: var(--dv-gold);
    border-color: var(--dv-gold);
    color: var(--dv-primary);
    transform: translateY(-3px);
}

/* ---- Floating Social Buttons ---- */
.floating-social {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.floating-social .social-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: var(--dv-transition);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.floating-social .social-btn:hover {
    transform: scale(1.15);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
}

.social-btn.facebook {
    background: linear-gradient(135deg, #1877f2, #0c5dc7);
}

.social-btn.messenger {
    background: linear-gradient(135deg, #00b2ff, #006aff);
}

.social-btn.tiktok {
    background: linear-gradient(135deg, #25f4ee, #fe2c55);
    color: #000;
}

.social-btn.instagram {
    background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.social-btn.zalo {
    background: linear-gradient(135deg, #0068ff, #0045b5);
}

.social-btn.phone-call {
    background: linear-gradient(135deg, #25d366, #128c7e);
    animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); }
    70% { box-shadow: 0 0 0 12px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ---- Buttons Global ---- */
.btn {
    transition: var(--dv-transition);
    border-radius: 0.75rem;
    font-weight: 600;
}

/* ---- Auth Cards ---- */
.auth-card-header {
    background: linear-gradient(135deg, var(--dv-primary) 0%, var(--dv-rosewood) 100%);
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--dv-cream);
}
::-webkit-scrollbar-thumb {
    background: var(--dv-gold);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--dv-burgundy);
}

/* ---- Smooth Scroll ---- */
html {
    scroll-behavior: smooth;
}

/* ---- Badge ---- */
.badge.bg-sale {
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
}

/* ---- Category Tags ---- */
.category-tag {
    display: inline-block;
    background: linear-gradient(135deg, rgba(139, 26, 43, 0.08), rgba(212, 168, 83, 0.1));
    border: 1px solid rgba(139, 26, 43, 0.15);
    color: var(--dv-burgundy);
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.8rem;
    font-weight: 600;
    transition: var(--dv-transition);
}

.category-tag:hover {
    background: var(--dv-burgundy);
    color: #fff;
    border-color: var(--dv-burgundy);
}

.page-hero {
    position: relative;
    padding: 5.5rem 0 2.25rem;
    background:
        radial-gradient(circle at top right, rgba(212, 168, 83, 0.18), transparent 30%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(253, 246, 236, 0.96));
}

.page-hero-soft {
    padding-bottom: 3.5rem;
}

.about-stage {
    position: relative;
    overflow: hidden;
    padding: 8rem 0 6rem;
    background: linear-gradient(135deg, #1a0b08 0%, #3a1616 50%, #2d1810 100%);
}

.about-stage::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('data:image/svg+xml;utf8,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><path d="M0 0h100v100H0z" fill="none"/><path d="M50 0v100M0 50h100" stroke="rgba(212,168,83,0.05)" stroke-width="1"/></svg>');
    background-size: 60px 60px;
    opacity: 0.6;
    pointer-events: none;
}

.about-display {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.25;
    color: var(--dv-gold-light);
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.about-section-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--dv-burgundy);
    line-height: 1.3;
}

.about-stage-copy {
    font-size: 1.15rem;
    line-height: 1.8;
    color: rgba(255, 244, 232, 0.85);
    max-width: 90%;
    font-weight: 300;
    letter-spacing: 0.3px;
}

.about-stage-visual {
    position: relative;
    min-height: 550px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-stage-frame {
    position: absolute;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    transition: var(--dv-transition);
}

.about-stage-frame:hover {
    transform: translateY(-10px) !important;
    box-shadow: 0 40px 70px rgba(0, 0, 0, 0.5), 0 0 30px rgba(212, 168, 83, 0.2);
}

.about-stage-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.about-stage-frame:hover img {
    transform: scale(1.05);
}

.about-stage-frame-back {
    top: 5%;
    right: 0;
    width: 80%;
    height: 400px;
    border: 1px solid rgba(212, 168, 83, 0.3);
    z-index: 1;
}

.about-stage-frame-front {
    bottom: -5%;
    left: 0;
    width: 65%;
    height: 350px;
    border: 4px solid #1a0b08;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    z-index: 2;
}

.about-story-section {
    position: relative;
    padding: 6rem 0;
    background: linear-gradient(180deg, var(--dv-cream) 0%, #fefcf8 100%);
    color: var(--dv-text);
}

.about-panel {
    height: 100%;
    padding: 3rem;
    border-radius: 20px;
    background: #fff;
    border: 1px solid rgba(212, 168, 83, 0.25);
    box-shadow: 0 15px 40px rgba(139, 26, 43, 0.04);
    transition: var(--dv-transition);
}

.about-panel:hover {
    box-shadow: 0 20px 50px rgba(139, 26, 43, 0.08);
    border-color: var(--dv-gold);
    transform: translateY(-4px);
}

.about-panel-image {
    padding: 0;
    overflow: hidden;
    min-height: 400px;
    border: 1px solid rgba(212, 168, 83, 0.25);
}

.about-panel-art {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.about-panel-image:hover .about-panel-art {
    transform: scale(1.05);
}

.about-values-stack {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.about-value-line {
    display: grid;
    gap: 0.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(212, 168, 83, 0.15);
}

.about-value-line:first-of-type {
    padding-top: 0;
    border-top: 0;
}

.about-value-line strong {
    color: var(--dv-gold-light);
    font-size: 1.15rem;
    font-weight: 700;
}

.about-value-line span {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
}

.filter-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(107, 58, 42, 0.15);
    background: rgba(255, 255, 255, 0.75);
    color: var(--dv-text);
    font-weight: 600;
    text-decoration: none;
    transition: var(--dv-transition);
}

.filter-chip:hover,
.filter-chip.active {
    color: #fff;
    border-color: var(--dv-burgundy);
    background: linear-gradient(135deg, var(--dv-burgundy), var(--dv-burgundy-light));
}

.soft-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
    font-size: 0.82rem;
    font-weight: 700;
    background: rgba(107, 58, 42, 0.08);
    color: var(--dv-burgundy);
}

.soft-chip.accent {
    background: rgba(212, 168, 83, 0.16);
    color: var(--dv-primary);
}

.editorial-card {
    height: 100%;
    padding: 2rem;
    border-radius: 1.5rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(250, 244, 232, 0.96));
    border: 1px solid rgba(212, 168, 83, 0.18);
    box-shadow: 0 12px 30px rgba(45, 24, 16, 0.06);
}

.editorial-image {
    min-height: 320px;
    object-fit: cover;
}

.section-heading-row {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
}

.article-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border-radius: 12px;
    background: #fff;
    border: 1px solid rgba(212, 168, 83, 0.25);
    box-shadow: 0 8px 25px rgba(45, 24, 16, 0.05);
    transition: all 0.4s ease;
}

.article-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(45, 24, 16, 0.1);
    border-color: var(--dv-gold);
}

.article-card-media {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-bottom: 1px solid rgba(212, 168, 83, 0.1);
}

.article-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.article-card:hover .article-card-media img {
    transform: scale(1.05);
}

.article-card-body {
    display: flex;
    flex-direction: column;
    padding: 1.75rem 1.5rem;
    flex: 1;
}

.article-card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 1rem;
}

.article-card-title a {
    color: var(--dv-text);
    text-decoration: none;
}

.article-card-title a:hover,
.article-link:hover {
    color: var(--dv-burgundy);
}

.article-link {
    color: var(--dv-burgundy);
    font-weight: 700;
    text-decoration: none;
}

.featured-article {
    overflow: hidden;
    border-radius: 1.75rem;
    background: #fff;
    border: 1px solid rgba(212, 168, 83, 0.14);
    box-shadow: 0 22px 50px rgba(45, 24, 16, 0.08);
}

.featured-article-image {
    width: 100%;
    height: 100%;
    min-height: 360px;
    object-fit: cover;
}

.featured-article-body {
    height: 100%;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.detail-gallery-card {
    overflow: hidden;
    border-radius: 1.75rem;
    background: #fff;
    border: 1px solid rgba(212, 168, 83, 0.16);
}

.detail-gallery-main {
    aspect-ratio: 4 / 4.8;
    object-fit: cover;
}

.gallery-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    gap: 0.9rem;
}

.gallery-thumb {
    padding: 0;
    border: 0;
    border-radius: 1rem;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 20px rgba(45, 24, 16, 0.08);
}

.gallery-thumb img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.detail-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    color: var(--dv-text-muted);
    font-size: 0.95rem;
}

.detail-price-panel {
    padding: 1.3rem 1.4rem;
    border-radius: 1.5rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(250, 244, 232, 0.96));
    border: 1px solid rgba(212, 168, 83, 0.18);
}

.detail-price-current {
    font-size: clamp(1.9rem, 3vw, 2.6rem);
    line-height: 1.1;
    font-weight: 800;
    color: var(--dv-burgundy);
}

.detail-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.quantity-group {
    width: 150px;
}

.detail-panel,
.article-detail-shell,
.linked-product-box,
.empty-panel {
    padding: 1.6rem;
    border-radius: 1.5rem;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(212, 168, 83, 0.14);
    box-shadow: 0 14px 30px rgba(45, 24, 16, 0.06);
}

.rich-copy {
    color: var(--dv-text);
    line-height: 1.8;
}

.plain-copy {
    white-space: pre-line;
}

.article-detail-cover {
    width: 100%;
    border-radius: 1.5rem;
    object-fit: cover;
    max-height: 520px;
}

.article-content p,
.article-content ul,
.article-content ol,
.article-content blockquote {
    margin-bottom: 1rem;
}

.linked-product-box {
    background: linear-gradient(180deg, rgba(253, 246, 236, 0.95), rgba(255, 255, 255, 0.98));
}

.linked-product-image {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 1.25rem;
    flex-shrink: 0;
}

/* ---- Decorative Vietnamese Border ---- */
.vn-border-top {
    border-top: 3px solid transparent;
    border-image: linear-gradient(90deg, transparent, var(--dv-gold), var(--dv-burgundy), var(--dv-gold), transparent) 1;
}

.vn-border-bottom {
    border-bottom: 3px solid transparent;
    border-image: linear-gradient(90deg, transparent, var(--dv-gold), var(--dv-burgundy), var(--dv-gold), transparent) 1;
}

/* ---- Responsive ---- */
@media (max-width: 991.98px) {
    .hero-section {
        min-height: 60vh;
    }
    .hero-section h1 {
        font-size: 2.5rem;
    }
    .navbar .d-flex.align-items-center {
        margin-top: 1rem;
        flex-direction: column;
    }
    .navbar .d-flex.align-items-center .btn {
        width: 100%;
    }
    .floating-social {
        right: 10px;
    }
    .floating-social .social-btn {
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }
    .section-heading-row {
        flex-direction: column;
        align-items: start;
    }
    .featured-article-body {
        padding: 1.75rem;
    }
    .about-stage {
        padding-top: 5.5rem;
    }
    .about-stage-visual {
        min-height: 390px;
    }
}

@media (max-width: 575.98px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    .about-badge {
        width: 80px;
        height: 80px;
    }
    .floating-social {
        right: 8px;
        gap: 8px;
    }
    .floating-social .social-btn {
        width: 38px;
        height: 38px;
        font-size: 0.9rem;
    }
    .detail-action-row {
        flex-direction: column;
        align-items: stretch;
    }
    .quantity-group {
        width: 100%;
    }
    .linked-product-image {
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
    }
    .about-stage-frame-back {
        width: 100%;
        height: 190px;
    }
    .about-stage-frame-front {
        width: 82%;
        height: 220px;
    }
    .about-panel {
        padding: 1.4rem;
    }
}

.profile-nav-cluster {
    flex-wrap: wrap;
}

.profile-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.profile-nav-avatar {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 999px;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.14);
    color: var(--dv-gold-light);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.profile-nav-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-summary-card {
    padding: 2rem;
    border-radius: 1.75rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 244, 232, 0.95));
    border: 1px solid rgba(212, 168, 83, 0.16);
    box-shadow: 0 18px 40px rgba(45, 24, 16, 0.07);
}

.profile-avatar-shell {
    width: 180px;
    height: 180px;
    border-radius: 999px;
    overflow: hidden;
    border: 6px solid rgba(212, 168, 83, 0.18);
    box-shadow: 0 18px 38px rgba(45, 24, 16, 0.16);
    background: linear-gradient(135deg, rgba(139, 26, 43, 0.12), rgba(212, 168, 83, 0.18));
}

.profile-avatar-image,
.profile-avatar-fallback {
    width: 100%;
    height: 100%;
}

.profile-avatar-image {
    object-fit: cover;
}

.profile-avatar-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dv-burgundy);
    font-size: 4rem;
}

.profile-meta-list {
    display: grid;
    gap: 1rem;
}

.profile-meta-item {
    padding-top: 1rem;
    border-top: 1px solid rgba(107, 58, 42, 0.12);
}

.profile-meta-item:first-child {
    padding-top: 0;
    border-top: 0;
}

.profile-meta-label {
    display: block;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--dv-text-muted);
    margin-bottom: 0.35rem;
}

/* =====================================================
   ADMIN AREA
   ===================================================== */

.admin-shell {
    background: #f1f5f9;
    min-height: 100vh;
    font-family: 'Inter', sans-serif;
}

/* Clean minimal sidebar nav */
.sidebar-nav-link {
    color: #64748b;
    transition: background 0.12s, color 0.12s;
}
.sidebar-nav-link:hover {
    background: #e9eef5;
    color: #1e293b;
}
.sidebar-nav-active {
    background: #e9eef5 !important;
    color: #1e293b !important;
    font-weight: 600 !important;   /* semibold */
    border-left: 3px solid #334155 !important;
    padding-left: calc(0.75rem - 3px) !important;
}
.sidebar-nav-active i,
.sidebar-nav-active span {
    color: #1e293b !important;
}

.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 270px;
    flex: 0 0 270px;
    display: flex;
    flex-direction: column;
    padding: 1.25rem 1.1rem;
    background: linear-gradient(135deg, var(--dv-primary) 0%, var(--dv-primary-light) 100%);
    border-right: 1px solid rgba(212, 168, 83, 0.2);
    position: sticky;
    top: 0;
    height: 100vh;
}

.admin-sidebar-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.admin-brand-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: var(--dv-gold-light);
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.admin-badge {
    background: linear-gradient(135deg, rgba(212, 168, 83, 0.22), rgba(255, 255, 255, 0.12));
    border: 1px solid rgba(232, 200, 120, 0.28);
    color: var(--dv-gold-light);
}

.admin-sidebar-user {
    padding: 0.9rem 0.95rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    margin-bottom: 1.1rem;
}

.admin-user-title {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

.admin-user-name {
    font-weight: 700;
    color: #fff;
    word-break: break-word;
}

.admin-nav .nav-link {
    color: rgba(255, 255, 255, 0.82);
    border-radius: 0.9rem;
    padding: 0.65rem 0.75rem;
    font-weight: 650;
    transition: var(--dv-transition);
}

.admin-nav .nav-link:hover {
    background: rgba(212, 168, 83, 0.16);
    color: #fff;
}

.admin-nav .nav-link.active {
    background: linear-gradient(135deg, rgba(212, 168, 83, 0.22), rgba(139, 26, 43, 0.16));
    border: 1px solid rgba(232, 200, 120, 0.22);
    color: #fff;
}

.admin-sidebar-footer {
    margin-top: auto;
    padding-top: 1rem;
}

.admin-main {
    flex: 1;
    min-width: 0;
}

.admin-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: rgba(255, 255, 255, 0.88);
    border-bottom: 1px solid rgba(212, 168, 83, 0.15);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 10;
}

.admin-card {
    border-radius: 1.5rem;
    border: 1px solid rgba(212, 168, 83, 0.16);
    box-shadow: 0 16px 34px rgba(45, 24, 16, 0.06);
}

.admin-stat-card {
    border-radius: 1.5rem;
    border: 1px solid rgba(212, 168, 83, 0.18);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(250, 244, 232, 0.92));
    box-shadow: 0 18px 40px rgba(45, 24, 16, 0.08);
}

.admin-stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 1.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--dv-burgundy);
    background: linear-gradient(135deg, rgba(212, 168, 83, 0.2), rgba(139, 26, 43, 0.1));
    border: 1px solid rgba(212, 168, 83, 0.18);
}

.admin-chart-wrap {
    position: relative;
    height: 320px;
}

.admin-alert {
    border-radius: 1rem;
    border: 1px solid rgba(212, 168, 83, 0.18);
}

@media (max-width: 991.98px) {
    .admin-sidebar {
        position: relative;
        width: 100%;
        flex: none;
        height: auto;
        border-right: 0;
        border-bottom: 1px solid rgba(212, 168, 83, 0.2);
    }
    .admin-layout {
        display: block;
    }
    
    .admin-layout aside {
        display: none !important;
    }
    
    .admin-layout aside.sidebar-mobile-open {
        display: flex !important;
        position: fixed !important;
        top: 0;
        left: 0;
        bottom: 0;
        width: 260px !important;
        height: 100vh !important;
        z-index: 1050 !important;
        box-shadow: 4px 0 15px rgba(0,0,0,0.1);
        overflow-y: auto;
    }
    
    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: 1040;
        display: none;
    }
    .sidebar-overlay.show {
        display: block;
    }
}

@media (min-width: 992px) {
    .admin-layout aside.sidebar-desktop-closed {
        display: none !important;
    }
}

/* Custom Profile Tabs */
.profile-tabs {
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 2rem;
    gap: 1.5rem;
}

.profile-tabs .nav-link {
    color: #64748b;
    font-weight: 600;
    padding: 0.75rem 0.25rem;
    border: none;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    margin-bottom: -2px;
    background: transparent;
    transition: all 0.2s ease;
}

.profile-tabs .nav-link:hover {
    color: #0f172a;
    border-bottom-color: #cbd5e1;
}

.profile-tabs .nav-link.active {
    color: #0f172a;
    border-bottom-color: #0f172a;
    background: transparent;
}

/* =====================================================
   CUSTOMER CART RESPONSIVE
   ===================================================== */
@media (max-width: 991.98px) {
    .cart-summary-card {
        position: fixed !important;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1040;
        margin: 0;
        border-radius: 1rem 1rem 0 0 !important;
        box-shadow: 0 -4px 20px rgba(0,0,0,0.15) !important;
    }
    .cart-main-container {
        padding-bottom: 240px !important;
    }
}

@media (max-width: 767.98px) {
    .cart-row {
        flex-wrap: wrap;
        position: relative;
    }
    .cart-item-img {
        width: 80px;
    }
    .cart-item-info {
        width: calc(100% - 95px);
        margin-bottom: 0.5rem;
    }
    .cart-item-qty {
        width: 50%;
        margin-top: 0.5rem;
    }
    .cart-item-subtotal {
        width: 50%;
        text-align: right !important;
        margin-top: 0.5rem;
        display: flex;
        align-items: center;
        justify-content: flex-end;
    }
    .cart-item-remove {
        position: absolute;
        top: 1rem;
        right: 1rem;
    }
}

/* =====================================================
   PRODUCT DETAIL PAGE v2 — Redesigned
   ===================================================== */

/* Breadcrumb bar */
.pd-breadcrumb-bar {
    padding: 0.7rem 0;
    background: rgba(250, 243, 230, 0.96);
    border-bottom: 1px solid rgba(212, 168, 83, 0.18);
    margin-top: 56px;
    backdrop-filter: blur(4px);
}
.pd-breadcrumb-bar .breadcrumb-item a {
    color: var(--dv-text-muted);
    text-decoration: none;
    transition: var(--dv-transition);
}
.pd-breadcrumb-bar .breadcrumb-item a:hover { color: var(--dv-burgundy); }
.pd-breadcrumb-bar .breadcrumb-item.active  { color: var(--dv-primary); font-weight: 600; }
.pd-breadcrumb-bar .breadcrumb-item + .breadcrumb-item::before { color: var(--dv-gold); }

/* Gallery sticky (desktop only) */
@media (min-width: 992px) {
    .pd-gallery-sticky { position: sticky; top: 76px; }
}

/* ── Keyframes ── */
@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-35px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInUpSoft {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes starPop {
    0%   { opacity: 0; transform: scale(0) rotate(-20deg); }
    70%  { opacity: 1; transform: scale(1.3) rotate(5deg); }
    100% { opacity: 1; transform: scale(1) rotate(0); }
}
@keyframes priceFlash {
    0%,100% { color: var(--dv-primary); transform: scale(1); }
    50%     { color: var(--dv-burgundy); transform: scale(1.08); }
}

/* ── Gallery frame ── */
.pd-gallery-frame {
    border-radius: 20px; overflow: hidden;
    background: #fff;
    box-shadow: 0 8px 32px rgba(45, 24, 16, 0.12), inset 0 0 0 1px rgba(212, 168, 83, 0.22);
    animation: slideInLeft 0.7s ease forwards;
    opacity: 0;
}
.pd-gallery-inner { position: relative; overflow: hidden; }
.pd-gallery-main {
    width: 100%; display: block;
    aspect-ratio: 4 / 4.8; object-fit: cover;
    transition: opacity 0.3s ease, transform 0.5s ease;
    cursor: zoom-in;
}
.pd-gallery-frame:hover .pd-gallery-main { transform: scale(1.04); }

.pd-gallery-counter {
    position: absolute; bottom: 12px; right: 12px;
    background: rgba(26, 11, 8, 0.65); color: #fff;
    backdrop-filter: blur(6px);
    font-size: 0.74rem; font-weight: 600;
    padding: 0.22rem 0.7rem; border-radius: 999px;
    pointer-events: none; letter-spacing: 0.4px;
}
.pd-gallery-badge {
    position: absolute; top: 14px; left: 14px;
    background: linear-gradient(135deg, var(--dv-burgundy), var(--dv-burgundy-light));
    color: #fff; font-size: 0.72rem; font-weight: 800;
    padding: 0.28rem 0.72rem; border-radius: 999px; letter-spacing: 0.4px;
}

/* Thumbnails — override grid layout */
.gallery-strip {
    display: flex; gap: 0.65rem; flex-wrap: wrap;
    grid-template-columns: unset;
}
.gallery-thumb {
    width: 78px; height: 78px; padding: 0;
    border: 2px solid rgba(212, 168, 83, 0.2);
    border-radius: 12px; overflow: hidden;
    background: var(--dv-warm-white);
    box-shadow: none; cursor: pointer; flex-shrink: 0;
    transition: var(--dv-transition);
}
.gallery-thumb img {
    width: 100%; height: 100%;
    aspect-ratio: 1 / 1; object-fit: cover;
    transition: transform 0.45s ease;
}
.gallery-thumb:hover             { border-color: var(--dv-gold); box-shadow: 0 4px 12px rgba(212, 168, 83, 0.2); }
.gallery-thumb:hover img         { transform: scale(1.08); }
.gallery-thumb.active            { border-color: var(--dv-burgundy); box-shadow: 0 0 0 3px rgba(139, 26, 43, 0.15); }

/* ── Info panel — staggered entrance ── */
.pd-info-wrap > * { opacity: 0; animation: fadeInUpSoft 0.55s ease forwards; }
.pd-info-wrap > *:nth-child(1)  { animation-delay: 0.10s; }
.pd-info-wrap > *:nth-child(2)  { animation-delay: 0.20s; }
.pd-info-wrap > *:nth-child(3)  { animation-delay: 0.30s; }
.pd-info-wrap > *:nth-child(4)  { animation-delay: 0.38s; }
.pd-info-wrap > *:nth-child(5)  { animation-delay: 0.46s; }
.pd-info-wrap > *:nth-child(6)  { animation-delay: 0.54s; }
.pd-info-wrap > *:nth-child(7)  { animation-delay: 0.62s; }
.pd-info-wrap > *:nth-child(8)  { animation-delay: 0.70s; }
.pd-info-wrap > *:nth-child(9)  { animation-delay: 0.78s; }

/* Product title */
.pd-product-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.55rem, 3.5vw, 2.15rem);
    font-weight: 800; line-height: 1.25;
    color: var(--dv-primary);
}
.pd-rating-num { color: var(--dv-primary); font-size: 0.95rem; }

/* Animated stars */
.pd-star {
    color: var(--dv-gold); font-size: 1rem;
    animation: starPop 0.4s ease forwards; opacity: 0;
}
.pd-star:nth-child(1) { animation-delay: 0.30s; }
.pd-star:nth-child(2) { animation-delay: 0.40s; }
.pd-star:nth-child(3) { animation-delay: 0.50s; }
.pd-star:nth-child(4) { animation-delay: 0.60s; }
.pd-star:nth-child(5) { animation-delay: 0.70s; }

/* Gold divider */
.pd-gold-divider {
    height: 2px; border: none;
    background: linear-gradient(90deg, var(--dv-gold) 0%, var(--dv-burgundy) 55%, transparent 100%);
    margin: 0.75rem 0 1.1rem; border-radius: 1px; opacity: 1;
}

/* ── Price section ── */
.pd-price-section {
    padding: 1rem 1.25rem; border-radius: 16px;
    background: linear-gradient(135deg, rgba(253, 246, 236, 0.98), rgba(250, 244, 232, 0.98));
    border: 1px solid rgba(212, 168, 83, 0.28); margin-bottom: 1.1rem;
}
.pd-price-original {
    font-size: 0.9rem; color: var(--dv-text-muted);
    text-decoration: line-through; margin-bottom: 0.1rem;
}
.pd-price-main {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 3vw, 2.2rem);
    font-weight: 800; color: var(--dv-burgundy); line-height: 1.1;
}
.pd-discount-badge {
    display: inline-flex; align-items: center;
    background: linear-gradient(135deg, var(--dv-burgundy), var(--dv-burgundy-light));
    color: #fff; font-size: 0.74rem; font-weight: 700;
    padding: 0.22rem 0.65rem; border-radius: 999px;
}
.pd-stock-warn { color: #c0392b; }

/* ── Trust badges ── */
.pd-trust-row { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.pd-trust-item {
    display: inline-flex; align-items: center; gap: 0.3rem;
    padding: 0.35rem 0.8rem; border-radius: 999px;
    background: rgba(212, 168, 83, 0.08); border: 1px solid rgba(212, 168, 83, 0.22);
    font-size: 0.76rem; font-weight: 600; color: var(--dv-primary);
}
.pd-trust-item i { color: var(--dv-gold); }

/* ── Total row ── */
.pd-total-row { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1rem; }
.pd-total-label { color: var(--dv-text-muted); }
.pd-total-price {
    font-weight: 800; font-size: 1.1rem; color: var(--dv-primary);
    transition: transform 0.25s ease, color 0.25s ease;
}
.pd-total-price.updated { animation: priceFlash 0.3s ease; }

/* ── Action row ── */
.pd-action-row { display: flex; gap: 0.65rem; align-items: center; flex-wrap: wrap; margin-bottom: 1.5rem; }
.pd-qty-group {
    display: flex; align-items: stretch;
    border-radius: 12px; overflow: hidden;
    border: 1.5px solid rgba(212, 168, 83, 0.4);
}
.pd-qty-btn {
    width: 42px; background: var(--dv-warm-white); border: none;
    color: var(--dv-primary); font-size: 1rem; cursor: pointer;
    transition: var(--dv-transition);
    display: flex; align-items: center; justify-content: center;
}
.pd-qty-btn:hover { background: var(--dv-gold); color: var(--dv-primary); }
.pd-qty-input {
    width: 54px; text-align: center;
    border: none;
    border-left: 1.5px solid rgba(212, 168, 83, 0.3);
    border-right: 1.5px solid rgba(212, 168, 83, 0.3);
    font-weight: 700; font-size: 0.95rem; color: var(--dv-primary);
    background: #fff; outline: none; padding: 0.5rem 0;
}
.pd-qty-input:focus { border-color: var(--dv-gold); }

/* Cart button with shine sweep */
.pd-cart-btn {
    flex: 1; min-width: 150px; padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--dv-burgundy) 0%, #b52030 50%, var(--dv-burgundy-light) 100%);
    background-size: 200% auto;
    border: none; color: #fff; font-weight: 700; font-size: 0.95rem;
    border-radius: 2rem; cursor: pointer; transition: all 0.4s ease;
    position: relative; overflow: hidden;
}
.pd-cart-btn:hover {
    background-position: right center;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 26, 43, 0.4); color: #fff;
}
.pd-cart-btn::before {
    content: ''; position: absolute; top: 50%; left: -100%;
    width: 55%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
    transform: translateY(-50%) skewX(-20deg);
    transition: left 0.6s ease;
}
.pd-cart-btn:hover::before { left: 150%; }

/* Wishlist button */
.pd-wishlist-btn {
    width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0;
    background: var(--dv-warm-white); border: 1.5px solid rgba(212, 168, 83, 0.35);
    color: var(--dv-text-muted); font-size: 1.05rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: var(--dv-transition);
}
.pd-wishlist-btn:hover { border-color: var(--dv-burgundy); color: var(--dv-burgundy); transform: scale(1.1); }

/* ── Detail panels ── */
.pd-detail-panel {
    padding: 1.25rem 1.4rem; border-radius: 16px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(212, 168, 83, 0.18);
    box-shadow: 0 8px 25px rgba(45, 24, 16, 0.05);
    margin-bottom: 0.85rem;
}
.pd-detail-panel h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem; font-weight: 700;
    color: var(--dv-burgundy); margin-bottom: 0.85rem;
    display: flex; align-items: center;
}

/* ── Review section ── */
.pd-review-summary {
    display: flex; align-items: center; gap: 1.25rem;
    padding: 0.9rem 1.1rem;
    background: var(--dv-bg-light);
    border-radius: 10px; border: 1px solid rgba(212, 168, 83, 0.18);
    margin-bottom: 1rem;
}
.pd-rating-big {
    font-family: 'Playfair Display', serif;
    font-size: 3rem; font-weight: 800;
    color: var(--dv-primary); line-height: 1;
}
.pd-stars-row { display: flex; gap: 3px; margin-bottom: 0.2rem; }
.pd-star-rev {
    color: var(--dv-gold); font-size: 1rem;
    animation: starPop 0.4s ease forwards; opacity: 0;
}
.pd-star-rev:nth-child(1) { animation-delay: 0.9s; }
.pd-star-rev:nth-child(2) { animation-delay: 1.0s; }
.pd-star-rev:nth-child(3) { animation-delay: 1.1s; }
.pd-star-rev:nth-child(4) { animation-delay: 1.2s; }
.pd-star-rev:nth-child(5) { animation-delay: 1.3s; }

.pd-review-card {
    padding: 1rem 1.15rem; border-radius: 10px; background: #fff;
    border: 1px solid rgba(212, 168, 83, 0.15); margin-bottom: 0.65rem;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.pd-review-card:last-child { margin-bottom: 0; }
.pd-review-card:hover { box-shadow: 0 4px 15px rgba(45, 24, 16, 0.07); border-color: rgba(212, 168, 83, 0.3); }
.pd-avatar {
    width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
    background: linear-gradient(135deg, var(--dv-burgundy), var(--dv-burgundy-light));
    color: #fff; font-size: 0.9rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}
.pd-star-sm   { color: var(--dv-gold); font-size: 0.7rem; }
.pd-review-text { color: var(--dv-text-muted); line-height: 1.75; }

/* ── Scroll reveal ── */
.sr-hidden { opacity: 0; transform: translateY(28px); transition: opacity 0.65s ease, transform 0.65s ease; }
.sr-visible { opacity: 1 !important; transform: translateY(0) !important; }

/* ── Responsive ── */
@media (max-width: 575.98px) {
    .pd-action-row  { flex-wrap: wrap; }
    .pd-cart-btn    { min-width: unset; width: 100%; order: -1; }
    .pd-trust-item  { font-size: 0.7rem; padding: 0.3rem 0.65rem; }
    .pd-gallery-main { aspect-ratio: 4 / 3.5; }
}

/* =====================================================
   CUSTOMER CART — Quantity Controls
   ===================================================== */
.cart-qty-group {
    display: flex; align-items: stretch;
    border-radius: 10px; overflow: hidden;
    border: 1.5px solid rgba(212, 168, 83, 0.35);
    width: fit-content;
}
.cart-qty-btn {
    width: 36px; background: var(--dv-warm-white); border: none;
    color: var(--dv-primary); cursor: pointer; padding: 6px 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.9rem; transition: var(--dv-transition);
}
.cart-qty-btn:hover:not(:disabled) { background: rgba(212, 168, 83, 0.22); }
.cart-qty-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.cart-qty-num {
    padding: 0 12px; font-size: 0.9rem; color: var(--dv-primary);
    display: flex; align-items: center; justify-content: center;
    min-width: 40px; background: #fff;
    border-left: 1.5px solid rgba(212, 168, 83, 0.2);
    border-right: 1.5px solid rgba(212, 168, 83, 0.2);
}

/* =====================================================
   CUSTOMER ORDERS — Card hover effect
   ===================================================== */
.order-card:hover {
    box-shadow: 0 8px 30px rgba(45, 24, 16, 0.1) !important;
    border-color: rgba(212, 168, 83, 0.35) !important;
}

/* =====================================================
   CUSTOMER MOBILE RESPONSIVE
   ===================================================== */

/* ── Tablet (≤991px) ─────────────────────────────── */
@media (max-width: 991.98px) {
    /* Header: compact padding */
    .admin-main > div > header,
    .admin-main header {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    /* Breadcrumb area */
    .admin-main .bg-white.border-bottom.px-4 {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    /* Dashboard greeting row */
    .admin-main .bg-white.border-bottom .d-flex.justify-content-between {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start !important;
    }

    /* Container fluid padding */
    .admin-main .container-fluid {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    /* Order detail: payment summary fixed width → fluid */
    .admin-main .d-flex.justify-content-between[style*="width: 300px"],
    .admin-main .d-flex.justify-content-between[style*="width:300px"] {
        width: 100% !important;
    }

    /* Order detail: action footer → stack vertically */
    .admin-main .card-footer.d-flex.justify-content-between {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch !important;
    }
    .admin-main .card-footer .d-flex.gap-3.flex-wrap {
        justify-content: stretch !important;
        width: 100%;
    }
    .admin-main .card-footer .d-flex.gap-3.flex-wrap > * {
        flex: 1;
        text-align: center;
    }

    /* Footer */
    .admin-main footer .d-flex.justify-content-between {
        flex-direction: column;
        gap: 0.5rem;
    }

    /* Profile: avatar smaller */
    .profile-avatar-shell {
        width: 140px;
        height: 140px;
    }

    /* Profile summary card */
    .profile-summary-card {
        padding: 1.25rem;
    }
}

/* ── Phone landscape & small tablet (≤767px) ──────── */
@media (max-width: 767.98px) {
    /* Header simplification */
    .admin-main header {
        height: 52px !important;
    }
    .admin-main header .d-flex.align-items-center > div[style*="font-size: 0.72rem"] {
        display: none !important;
    }

    /* Breadcrumb: heading smaller */
    .admin-main .bg-white.border-bottom h4 {
        font-size: 1.05rem !important;
    }

    /* Dashboard stat values */
    .admin-main .h3.fw-bold {
        font-size: 1.25rem !important;
    }

    /* Orders list: header row → stack */
    .order-card .px-4.py-3.d-flex.justify-content-between {
        flex-direction: column;
        gap: 0.5rem;
        padding: 12px 16px !important;
    }
    /* Orders list: item image smaller */
    .order-card .d-flex.align-items-center.px-4.py-3 img {
        width: 64px !important;
        height: 64px !important;
    }
    .order-card .d-flex.align-items-center.px-4.py-3 {
        padding: 10px 16px !important;
    }

    /* Orders list: footer → stack total and buttons */
    .order-card .bg-white .d-flex.flex-column.align-items-end {
        align-items: stretch !important;
    }
    .order-card .bg-white .d-flex.flex-column.align-items-end > .d-flex.align-items-center.gap-2 {
        justify-content: flex-end;
    }
    .order-card .bg-white .d-flex.flex-wrap.justify-content-end.gap-2 {
        justify-content: stretch !important;
        width: 100%;
    }
    .order-card .bg-white .d-flex.flex-wrap.justify-content-end.gap-2 > * {
        flex: 1;
        text-align: center;
        min-width: 0;
    }

    /* Order detail: item row on mobile */
    .admin-main .card-body.p-0 > .d-flex.align-items-center.px-4.py-3 {
        padding: 10px 12px !important;
    }
    .admin-main .card-body.p-0 > .d-flex.align-items-center.px-4.py-3 img {
        width: 64px !important;
        height: 64px !important;
    }
    .admin-main .card-body.p-0 > .d-flex.align-items-center.px-4.py-3 .ms-3 {
        margin-left: 10px !important;
    }

    /* Order detail: payment info rows */
    .admin-main .d-flex.justify-content-end.px-4.py-3 {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    /* Order detail: delivery address section */
    .admin-main .card-body.p-4.pt-4.mt-2 {
        padding: 12px !important;
        margin-top: 8px !important;
    }

    /* Profile: avatar and meta */
    .profile-avatar-shell {
        width: 110px;
        height: 110px;
    }
    .profile-avatar-fallback {
        font-size: 2.5rem;
    }
}

/* ── Phone portrait (≤575px) ──────────────────────── */
@media (max-width: 575.98px) {
    /* Global: tighter padding */
    .admin-main .container-fluid {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

    /* Header: minimal */
    .admin-main header {
        height: 48px !important;
        padding-left: 8px !important;
        padding-right: 8px !important;
    }
    .admin-main header #sidebarToggle {
        padding: 0.2rem 0.45rem !important;
    }

    /* Breadcrumb area */
    .admin-main .bg-white.border-bottom.px-4,
    .admin-main .bg-white.border-bottom[class*="px-4"] {
        padding: 10px 12px !important;
    }
    .admin-main .bg-white.border-bottom h4 {
        font-size: 0.95rem !important;
    }

    /* Dashboard stat cards: 2 columns */
    .admin-main .row.g-3.mb-4 > .col-12.col-sm-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    .admin-main .row.g-3.mb-4 .card-body.p-3 {
        padding: 10px !important;
    }
    .admin-main .h3.fw-bold {
        font-size: 1.1rem !important;
    }
    .admin-main .text-muted.small {
        font-size: 0.7rem !important;
    }

    /* Dashboard: recent orders table → horizontal scroll hint */
    .admin-main .table-responsive {
        font-size: 0.78rem;
    }
    .admin-main .table-responsive th,
    .admin-main .table-responsive td {
        white-space: nowrap;
        padding: 8px 10px !important;
    }

    /* Orders list card: tighter */
    .order-card .px-4.py-3 {
        padding: 10px 12px !important;
    }

    /* Order detail: payment total - larger & emphasized */
    .admin-main .fw-bold[style*="font-size: 1.35rem"],
    .admin-main .fw-bold[style*="font-size:1.35rem"] {
        font-size: 1.15rem !important;
    }

    /* Order detail: card body padding */
    .admin-main .card-body.p-4 {
        padding: 10px 12px !important;
    }

    /* Order detail: action buttons → full width stack */
    .admin-main .card-footer {
        padding: 12px !important;
    }
    .admin-main .card-footer .d-flex.gap-3.flex-wrap {
        flex-direction: column;
        gap: 0.5rem !important;
    }
    .admin-main .card-footer .d-flex.gap-3.flex-wrap > .btn,
    .admin-main .card-footer .d-flex.gap-3.flex-wrap > a {
        width: 100%;
        text-align: center;
    }

    /* Footer: simpler */
    .admin-main footer {
        padding: 12px 0 !important;
    }
    .admin-main footer .container-fluid {
        padding: 0 12px !important;
    }

    /* Profile: compact on mobile */
    .profile-summary-card {
        padding: 1rem;
        border-radius: 1rem;
    }
    .profile-avatar-shell {
        width: 90px;
        height: 90px;
        border-width: 4px;
    }
    .profile-meta-item {
        padding-top: 0.75rem;
    }

    /* User dropdown: keep compact */
    .admin-main header .dropdown-menu {
        min-width: 200px !important;
        max-width: 280px !important;
    }

    /* Notification dropdown */
    .admin-main header .dropdown-menu[style*="min-width: 320px"] {
        min-width: 260px !important;
        max-width: 300px !important;
        right: -10px !important;
    }

    /* Chart container */
    .admin-main canvas {
        max-height: 200px !important;
    }
}

/* =====================================================
   CHECKOUT PAGE MOBILE
   ===================================================== */
@media (max-width: 767.98px) {
    .checkout-stepper {
        padding: 0.75rem 0.5rem !important;
    }
    .step-item .step-label {
        font-size: 0.6rem !important;
    }
    .step-item .step-circle {
        width: 30px !important;
        height: 30px !important;
        font-size: 0.75rem !important;
    }
    .step-connector {
        width: 30px !important;
    }

    /* Checkout form & summary */
    .co-breadcrumb {
        padding: 0.65rem 0.75rem !important;
    }
    .co-page-heading {
        font-size: 1rem !important;
    }
}

@media (max-width: 575.98px) {
    .checkout-stepper {
        padding: 0.6rem 0.25rem !important;
        gap: 0 !important;
    }
    .step-item .step-label {
        font-size: 0.55rem !important;
        max-width: 60px;
        text-align: center;
        line-height: 1.2;
    }
    .step-item .step-circle {
        width: 26px !important;
        height: 26px !important;
        font-size: 0.65rem !important;
    }
    .step-connector {
        width: 20px !important;
    }
}

/* =====================================================
   ORDER SUCCESS / QR PAYMENT MOBILE
   ===================================================== */
@media (max-width: 767.98px) {
    .payment-wrapper {
        padding: 1rem 0.5rem !important;
    }
    .payment-card {
        padding: 16px !important;
        border-radius: 16px !important;
    }
    .qr-box img {
        width: 180px !important;
        height: 180px !important;
    }
    .bank-info-row {
        flex-direction: column;
        gap: 2px !important;
        padding: 8px 0 !important;
    }
    .bank-info-label {
        font-size: 0.72rem !important;
    }
    .bank-info-value {
        font-size: 0.88rem !important;
    }

    /* Success overlay modal */
    .success-modal {
        width: 92% !important;
        max-width: 340px !important;
        padding: 1.5rem !important;
    }
    .success-modal .success-icon {
        width: 60px !important;
        height: 60px !important;
    }
}

@media (max-width: 575.98px) {
    .payment-wrapper {
        padding: 0.5rem 0 !important;
    }
    .payment-card {
        padding: 12px !important;
        margin: 0 4px;
        border-radius: 12px !important;
    }
    .qr-box img {
        width: 160px !important;
        height: 160px !important;
    }
    .countdown-bar-wrap {
        margin: 6px 0 !important;
    }
    .status-badge {
        font-size: 0.72rem !important;
        padding: 4px 10px !important;
    }
    .copy-btn {
        font-size: 0.65rem !important;
        padding: 2px 8px !important;
    }

    /* Icon wrapper in success view */
    .icon-wrapper {
        width: 60px !important;
        height: 60px !important;
    }
    .icon-wrapper i {
        font-size: 1.5rem !important;
    }
    .success-title {
        font-size: 1.15rem !important;
    }
    .success-subtitle {
        font-size: 0.82rem !important;
    }
    .order-details-box {
        padding: 12px !important;
    }
    .btn-custom {
        padding: 10px 16px !important;
        font-size: 0.88rem !important;
    }
}

/* =====================================================
   CUSTOMER CART MOBILE ENHANCEMENTS
   ===================================================== */
@media (max-width: 575.98px) {
    .cart-main-container {
        padding-bottom: 200px !important;
    }
    .cart-summary-card {
        border-radius: 0.75rem 0.75rem 0 0 !important;
        padding: 12px !important;
    }
    .cart-row {
        gap: 0.5rem;
    }
    .cart-item-img {
        width: 60px !important;
        height: 60px !important;
    }
}

