/* =============================================
   ModestieQoton — Custom Stylesheet
   Feminine, Elegant, Modest Fashion Aesthetic
   ============================================= */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Poppins:wght@300;400;500;600;700&display=swap');

/* =============================================
   CSS Custom Properties (Light / Dark Themes)
   ============================================= */
:root {
    /* ---- Light Mode (Default) ---- */
    --bg-primary: #FFF7F3;
    --bg-secondary: #FFFFFF;
    --bg-card: #FFFFFF;
    --bg-navbar: rgba(255, 247, 243, 0.85);
    --bg-footer: #2D2226;

    --text-primary: #3D2B2B;
    --text-secondary: #6B5050;
    --text-muted: #9B8585;
    --text-on-dark: #FFF7F3;

    --accent-rose: #C48B9F;
    --accent-rose-hover: #A9667E;
    --accent-gold: #C9A96E;
    --accent-gold-hover: #B08D4A;
    --accent-blush: #F2D7D9;
    --accent-cream: #FDF0E9;

    --border-color: rgba(196, 139, 159, 0.2);
    --shadow-sm: 0 2px 8px rgba(61, 43, 43, 0.06);
    --shadow-md: 0 4px 20px rgba(61, 43, 43, 0.08);
    --shadow-lg: 0 8px 40px rgba(61, 43, 43, 0.12);
    --shadow-card-hover: 0 12px 48px rgba(196, 139, 159, 0.18);

    --glass-bg: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(255, 255, 255, 0.3);

    --gradient-hero: linear-gradient(135deg, #FDF0E9 0%, #F2D7D9 50%, #E8C8D0 100%);
    --gradient-btn: linear-gradient(135deg, #C48B9F 0%, #A9667E 100%);
    --gradient-btn-gold: linear-gradient(135deg, #C9A96E 0%, #B08D4A 100%);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

[data-theme="dark"] {
    --bg-primary: #1A1215;
    --bg-secondary: #241A1E;
    --bg-card: #2D2226;
    --bg-navbar: rgba(26, 18, 21, 0.9);
    --bg-footer: #0F0A0C;

    --text-primary: #F5E6EA;
    --text-secondary: #C8B0B8;
    --text-muted: #8A7178;
    --text-on-dark: #F5E6EA;

    --accent-rose: #D4A0B3;
    --accent-rose-hover: #E0B5C5;
    --accent-gold: #D4B87A;
    --accent-gold-hover: #E0C88F;
    --accent-blush: #3D2A30;
    --accent-cream: #2A1E22;

    --border-color: rgba(212, 160, 179, 0.15);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.4);
    --shadow-card-hover: 0 12px 48px rgba(212, 160, 179, 0.12);

    --glass-bg: rgba(36, 26, 30, 0.7);
    --glass-border: rgba(212, 160, 179, 0.1);

    --gradient-hero: linear-gradient(135deg, #1A1215 0%, #2D2226 50%, #3D2A30 100%);
    --gradient-btn: linear-gradient(135deg, #D4A0B3 0%, #C48B9F 100%);
    --gradient-btn-gold: linear-gradient(135deg, #D4B87A 0%, #C9A96E 100%);
}

/* =============================================
   Global Resets & Base Styles
   ============================================= */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: background-color var(--transition-smooth), color var(--transition-smooth);
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

body[data-require-auth="true"]:not([data-auth-ready="true"]),
body[data-require-admin="true"]:not([data-auth-ready="true"]) {
    visibility: hidden;
}

h1, h2, h3, h4, h5 {
    font-family: 'Playfair Display', serif;
    color: var(--text-primary);
    line-height: 1.3;
}

a {
    text-decoration: none;
    color: var(--accent-rose);
    transition: color var(--transition-fast);
}

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

img {
    max-width: 100%;
    height: auto;
}

main {
    flex: 1;
}

/* =============================================
   Navbar
   ============================================= */
.mq-navbar {
    background: var(--bg-navbar);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 0.6rem 0;
    position: sticky;
    top: 0;
    z-index: 1050;
    transition: background var(--transition-smooth), border-color var(--transition-smooth);
}

.mq-brand {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.6rem;
    color: var(--accent-rose) !important;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mq-brand i {
    color: var(--accent-gold);
    font-size: 1.3rem;
}

.mq-brand:hover {
    color: var(--accent-rose-hover) !important;
}

.mq-navbar .nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 1rem !important;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    position: relative;
}

.mq-navbar .nav-link:hover,
.mq-navbar .nav-link.active {
    color: var(--accent-rose) !important;
    background: var(--accent-blush);
}

.mq-navbar .nav-link i {
    margin-right: 0.35rem;
}

.cart-nav-link {
    display: inline-flex !important;
    align-items: center;
    gap: 0.35rem;
}

.cart-count {
    min-width: 1.35rem;
    height: 1.35rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    background: var(--gradient-btn);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
}

/* =============================================
   Dark/Light Mode Toggle Switch
   ============================================= */
.theme-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem;
    cursor: pointer;
}

.theme-toggle-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.toggle-switch {
    position: relative;
    width: 52px;
    height: 28px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: var(--accent-blush);
    border: 2px solid var(--border-color);
    border-radius: 50px;
    transition: all var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 6px;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    left: 3px;
    bottom: 2px;
    background: var(--gradient-btn);
    border-radius: 50%;
    transition: transform var(--transition-bounce);
    box-shadow: 0 2px 6px rgba(196, 139, 159, 0.3);
    z-index: 2;
}

.toggle-slider .sun-icon,
.toggle-slider .moon-icon {
    font-size: 0.65rem;
    z-index: 1;
}

.toggle-slider .sun-icon {
    color: var(--accent-gold);
}

.toggle-slider .moon-icon {
    color: var(--text-muted);
}

.toggle-switch input:checked + .toggle-slider {
    background: var(--accent-blush);
    border-color: var(--border-color);
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(23px);
    background: var(--gradient-btn-gold);
}

/* =============================================
   Hero / Banner Section
   ============================================= */
.mq-hero {
    background: var(--gradient-hero);
    padding: 5rem 0 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.mq-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(196, 139, 159, 0.08) 0%, transparent 70%);
    animation: floatOrb 8s ease-in-out infinite;
}

.mq-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    right: -15%;
    width: 50%;
    height: 160%;
    background: radial-gradient(circle, rgba(201, 169, 110, 0.06) 0%, transparent 70%);
    animation: floatOrb 10s ease-in-out infinite reverse;
}

@keyframes floatOrb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -20px) scale(1.05); }
}

.mq-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.mq-hero h1 span {
    background: var(--gradient-btn);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mq-hero p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2rem;
    position: relative;
    z-index: 1;
}

.mq-hero .btn-shop {
    position: relative;
    z-index: 1;
}

/* =============================================
   Buttons
   ============================================= */
.btn-rose {
    background: var(--gradient-btn);
    color: #fff !important;
    border: none;
    padding: 0.65rem 1.8rem;
    border-radius: var(--radius-xl);
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.3px;
    transition: all var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(196, 139, 159, 0.25);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.btn-rose:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(196, 139, 159, 0.35);
    color: #fff !important;
}

.btn-rose:active {
    transform: translateY(0);
}

.btn-gold {
    background: var(--gradient-btn-gold);
    color: #fff !important;
    border: none;
    padding: 0.65rem 1.8rem;
    border-radius: var(--radius-xl);
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(201, 169, 110, 0.25);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(201, 169, 110, 0.35);
    color: #fff !important;
}

.btn-outline-rose {
    background: transparent;
    color: var(--accent-rose) !important;
    border: 2px solid var(--accent-rose);
    padding: 0.55rem 1.6rem;
    border-radius: var(--radius-xl);
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all var(--transition-smooth);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.btn-outline-rose:hover {
    background: var(--gradient-btn);
    color: #fff !important;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(196, 139, 159, 0.3);
}

.btn-sm-custom {
    padding: 0.4rem 1.2rem;
    font-size: 0.8rem;
}

/* =============================================
   Product Cards
   ============================================= */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.section-title p {
    color: var(--text-muted);
    font-size: 1rem;
}

.section-title .title-divider {
    width: 60px;
    height: 3px;
    background: var(--gradient-btn);
    margin: 0.8rem auto 0;
    border-radius: 2px;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-smooth);
    box-shadow: var(--shadow-sm);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-card-hover);
    border-color: var(--accent-rose);
}

.product-card .card-img-wrapper {
    position: relative;
    overflow: hidden;
    height: 280px;
}

.product-media-gallery {
    position: relative;
    width: 100%;
    height: 100%;
    background: var(--accent-cream);
}

.product-media-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.product-media-slide[hidden] {
    display: none;
}

.product-card .card-img-wrapper img,
.product-media-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card .card-img-wrapper img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.product-media-video {
    background: #1A1215;
    object-fit: contain;
}

.product-media-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    min-width: 2.4rem;
    height: 1.8rem;
    padding: 0 0.65rem;
    border-radius: var(--radius-xl);
    background: rgba(45, 34, 38, 0.76);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1;
    z-index: 5;
}

.product-media-nav {
    position: absolute;
    top: 50%;
    width: 2.25rem;
    height: 2.25rem;
    border: 0;
    border-radius: 50%;
    background: rgba(45, 34, 38, 0.74);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-50%);
    transition: background var(--transition-fast), transform var(--transition-fast);
    z-index: 5;
}

.product-media-nav:hover,
.product-media-nav:focus {
    background: var(--accent-rose);
    transform: translateY(-50%) scale(1.05);
}

.product-media-nav-prev {
    left: 0.75rem;
}

.product-media-nav-next {
    right: 0.75rem;
}

.product-card .card-img-wrapper .card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.3), transparent);
    opacity: 0;
    transition: opacity var(--transition-smooth);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 1rem;
}

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

.product-card.product-card--video-active .card-overlay {
    display: none;
}

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

.product-card .card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--text-primary);
}

.product-card .card-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card .card-footer-custom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.9rem;
    padding-top: 0.8rem;
    border-top: 1px solid var(--border-color);
}

.product-card .product-price {
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--accent-rose);
}

.product-card .product-price small {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
}

.product-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.5rem;
}

.btn-cart {
    width: 2.35rem;
    height: 2.35rem;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    background: var(--bg-secondary);
    color: var(--accent-rose);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.btn-cart:hover,
.btn-cart:focus {
    background: var(--gradient-btn);
    color: #fff;
    border-color: transparent;
    transform: translateY(-2px);
}

/* =============================================
   Cart
   ============================================= */
.mq-cart-section {
    background: var(--bg-secondary);
}

.cart-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.cart-empty {
    text-align: center;
    padding: 3rem 1.5rem;
    color: var(--text-muted);
}

.cart-empty i {
    font-size: 3rem;
    color: var(--accent-rose);
}

.cart-list {
    display: flex;
    flex-direction: column;
}

.cart-item {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    padding: 1rem 1.2rem;
    border-bottom: 1px solid var(--border-color);
}

.cart-item:last-child {
    border-bottom: 0;
}

.cart-thumb {
    width: 76px;
    height: 76px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    background: var(--accent-cream);
}

.cart-item-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}

.cart-item-meta {
    color: var(--text-muted);
    font-size: 0.84rem;
    margin: 0;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.65rem;
}

.cart-qty {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    background: var(--accent-cream);
}

.cart-icon-btn {
    width: 2rem;
    height: 2rem;
    border: 0;
    border-radius: 50%;
    background: var(--bg-card);
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.cart-icon-btn:hover,
.cart-icon-btn:focus {
    background: var(--gradient-btn);
    color: #fff;
}

.cart-remove {
    color: #e74c3c;
}

.cart-qty-count {
    min-width: 1.5rem;
    text-align: center;
    font-weight: 700;
    color: var(--text-primary);
}

.cart-line-total {
    min-width: 5.5rem;
    text-align: right;
    font-weight: 700;
    color: var(--accent-rose);
}

.cart-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.2rem;
    background: var(--accent-cream);
    border-top: 1px solid var(--border-color);
}

.cart-summary-total {
    color: var(--text-muted);
    font-size: 0.86rem;
}

.cart-summary-total strong {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 1.55rem;
    color: var(--accent-rose);
}

.checkout-items {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.2rem;
}

.checkout-line {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) auto;
    gap: 0.8rem;
    align-items: center;
}

.checkout-line img {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.checkout-line-title {
    color: var(--text-primary);
    font-weight: 700;
    margin: 0;
}

.checkout-line-meta {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin: 0;
}

.checkout-line-total {
    color: var(--accent-rose);
    font-weight: 700;
    text-align: right;
}

.payment-card-wide {
    max-width: 680px;
}

/* =============================================
   Auth Forms (Login / Register)
   ============================================= */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-hero);
    padding: 2rem 1rem;
    position: relative;
    overflow: hidden;
}

.auth-wrapper::before {
    content: '';
    position: absolute;
    top: 10%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(196, 139, 159, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: floatOrb 7s ease-in-out infinite;
}

.auth-card {
    background: var(--glass-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    width: 100%;
    max-width: 480px;
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 1;
    animation: slideUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.auth-card .auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-card .auth-header h2 {
    font-size: 1.8rem;
    margin-bottom: 0.4rem;
}

.auth-card .auth-header p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.auth-card .auth-header .brand-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-btn);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    box-shadow: 0 4px 15px rgba(196, 139, 159, 0.3);
}

.auth-card .auth-header .brand-icon i {
    font-size: 1.5rem;
    color: #fff;
}

/* ---- Form Controls ---- */
.mq-form-group {
    margin-bottom: 1.3rem;
    position: relative;
}

.mq-form-group label {
    font-weight: 500;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
    display: block;
}

.mq-form-control {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    transition: all var(--transition-fast);
    outline: none;
}

.mq-form-control:focus {
    border-color: var(--accent-rose);
    box-shadow: 0 0 0 3px rgba(196, 139, 159, 0.15);
}

.mq-form-help {
    color: var(--text-muted);
    font-size: 0.76rem;
    margin-top: 0.35rem;
}

.admin-upload-status {
    width: 100%;
    margin: 1rem 0;
    padding: 0.85rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--accent-cream);
    box-shadow: var(--shadow-sm);
}

.admin-upload-status[hidden] {
    display: none;
}

.admin-upload-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    color: var(--text-primary);
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 0.55rem;
}

.admin-upload-header span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-upload-header strong {
    color: var(--accent-rose);
    flex: 0 0 auto;
}

.admin-upload-track {
    height: 0.6rem;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: rgba(196, 139, 159, 0.16);
}

.admin-upload-bar {
    width: 0%;
    height: 100%;
    border-radius: inherit;
    background: var(--gradient-btn);
    transition: width 0.18s ease;
}

.admin-upload-meta {
    color: var(--text-muted);
    font-size: 0.74rem;
    margin-top: 0.45rem;
}

.mq-checkline {
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.82rem;
    margin-bottom: 1rem;
}

.mq-form-control.is-invalid {
    border-color: #e74c3c;
}

.mq-form-control.is-valid {
    border-color: #2ecc71;
}

.invalid-feedback-custom {
    color: #e74c3c;
    font-size: 0.78rem;
    margin-top: 0.3rem;
    display: none;
}

.invalid-feedback-custom.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

.password-toggle {
    position: absolute;
    right: 12px;
    top: 38px;
    cursor: pointer;
    color: var(--text-muted);
    transition: color var(--transition-fast);
    background: none;
    border: none;
    font-size: 0.9rem;
}

.password-toggle:hover {
    color: var(--accent-rose);
}

/* =============================================
   Profile Page
   ============================================= */
.profile-wrapper {
    padding: 3rem 0;
}

.profile-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    animation: slideUp 0.5s ease;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    background: var(--gradient-btn);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 4px 20px rgba(196, 139, 159, 0.25);
}

.profile-avatar i {
    font-size: 2.5rem;
    color: #fff;
}

.profile-orders-section {
    text-align: left;
}

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

.profile-order {
    padding: 1rem 0;
    border-top: 1px solid var(--border-color);
}

.profile-order:last-child {
    border-bottom: 1px solid var(--border-color);
}

.profile-order-header,
.profile-order-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.profile-order-header strong {
    color: var(--text-primary);
}

.profile-order-header small,
.profile-order-muted,
.profile-order-footer span,
.profile-order-details span {
    color: var(--text-muted);
}

.profile-order-items {
    display: grid;
    gap: 0.45rem;
    margin: 0.9rem 0;
}

.profile-order-line {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 0.75rem;
    align-items: center;
    color: var(--text-secondary);
    font-size: 0.88rem;
}

.profile-order-line span {
    color: var(--text-primary);
    font-weight: 600;
}

.profile-order-line small {
    color: var(--text-muted);
}

.profile-order-line strong,
.profile-order-footer strong {
    color: var(--accent-rose);
}

.profile-order-details {
    display: grid;
    gap: 0.3rem;
    margin-top: 0.75rem;
    font-size: 0.84rem;
}

.profile-order-empty {
    display: grid;
    gap: 0.5rem;
    justify-items: center;
    padding: 1.5rem 1rem;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    color: var(--text-muted);
    text-align: center;
}

.profile-order-empty i {
    color: var(--accent-rose);
    font-size: 1.8rem;
}

.profile-order-empty p {
    margin: 0;
}

/* =============================================
   Admin Dashboard
   ============================================= */
.admin-wrapper {
    padding: 2rem 0 3rem;
}

.admin-header {
    margin-bottom: 2rem;
}

.admin-stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-smooth);
    width: 100%;
    height: 100%;
    min-height: 174px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.admin-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.admin-stat-card .stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.8rem;
    font-size: 1.2rem;
}

.admin-stat-card .stat-icon.rose {
    background: rgba(196, 139, 159, 0.15);
    color: var(--accent-rose);
}

.admin-stat-card .stat-icon.gold {
    background: rgba(201, 169, 110, 0.15);
    color: var(--accent-gold);
}

.admin-stat-card .stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.admin-stat-card .stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.admin-stat-link {
    color: inherit;
    text-decoration: none;
}

.admin-stat-link:hover {
    color: inherit;
}

.admin-stat-action {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.75rem;
    color: var(--accent-rose);
    font-size: 0.82rem;
    font-weight: 700;
}

.order-summary-text {
    color: var(--text-muted);
    font-size: 0.82rem;
    max-width: 320px;
    white-space: normal;
}

.admin-orders-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.admin-orders-search {
    flex: 1 1 420px;
    min-width: 0;
}

.admin-orders-search label,
.admin-orders-page-size label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.admin-orders-search-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.admin-orders-search-row .mq-form-control {
    min-width: 220px;
}

.admin-orders-page-size {
    flex: 0 0 120px;
}

.admin-orders-meta,
.admin-orders-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.admin-orders-meta {
    color: var(--text-muted);
    font-size: 0.84rem;
    margin-bottom: 0.9rem;
}

.admin-orders-pagination {
    color: var(--text-muted);
    font-size: 0.84rem;
    margin-top: 1rem;
}

.admin-orders-pagination span {
    font-weight: 600;
    color: var(--text-secondary);
}

.order-detail-list {
    display: grid;
    gap: 0.25rem;
    min-width: 220px;
    max-width: 340px;
}

.order-detail-list strong {
    color: var(--text-primary);
}

.order-detail-list span,
.order-detail-list small {
    color: var(--text-muted);
    line-height: 1.45;
    white-space: normal;
}

.order-note {
    display: block;
}

.order-status-form {
    margin: 0;
}

.order-status-select {
    min-width: 12rem;
    padding: 0.45rem 0.75rem;
    font-size: 0.8rem;
}

.order-status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.25rem 0.65rem;
    background: rgba(196, 139, 159, 0.14);
    color: var(--accent-rose);
    font-size: 0.72rem;
    font-weight: 700;
}

.admin-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
}

.admin-card h4 {
    font-size: 1.3rem;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-card h4 i {
    color: var(--accent-rose);
}

.admin-media-section {
    margin-bottom: 1rem;
}

.admin-media-section h6 {
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-family: 'Poppins', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 0.55rem;
}

.admin-media-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
}

.admin-media-item,
.admin-media-row {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
}

.admin-media-item {
    display: grid;
    gap: 0.45rem;
    padding: 0.45rem;
}

.admin-media-item img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.admin-media-remove,
.admin-media-row {
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
}

.admin-media-list {
    display: grid;
    gap: 0.5rem;
}

.admin-media-row {
    justify-content: flex-start;
    padding: 0.65rem 0.75rem;
}

.admin-media-row a {
    color: var(--accent-gold);
    font-weight: 600;
}

.admin-media-empty {
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-muted);
    font-size: 0.8rem;
    padding: 0.85rem;
    text-align: center;
}

/* Admin Table */
.mq-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.mq-table thead th {
    background: var(--accent-blush);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 0.9rem 1rem;
    border: none;
}

.mq-table thead th:first-child {
    border-radius: var(--radius-md) 0 0 0;
}

.mq-table thead th:last-child {
    border-radius: 0 var(--radius-md) 0 0;
}

.mq-table tbody td {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.88rem;
    color: var(--text-secondary);
    vertical-align: middle;
}

.mq-table tbody tr {
    transition: background var(--transition-fast);
}

.mq-table tbody tr:hover {
    background: var(--accent-cream);
}

.mq-table .product-thumb {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

/* =============================================
   Payment Page
   ============================================= */
.payment-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-hero);
    padding: 2rem 1rem;
}

.payment-card {
    background: var(--glass-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    width: 100%;
    max-width: 520px;
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.5s ease;
}

.payment-success {
    text-align: center;
    padding: 3rem 1rem;
    animation: slideUp 0.6s ease;
}

.payment-success .success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    animation: scaleIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.2s both;
}

@keyframes scaleIn {
    from { transform: scale(0); }
    to { transform: scale(1); }
}

.payment-success .success-icon i {
    font-size: 2.2rem;
    color: #fff;
}

/* =============================================
   Alert Messages
   ============================================= */
.mq-alert {
    padding: 0.8rem 1.2rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.2rem;
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: fadeIn 0.3s ease;
}

.mq-alert-danger {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.2);
}

.mq-alert-success {
    background: rgba(46, 204, 113, 0.1);
    color: #27ae60;
    border: 1px solid rgba(46, 204, 113, 0.2);
}

/* =============================================
   Footer
   ============================================= */
.mq-footer {
    background: var(--bg-footer);
    color: var(--text-on-dark);
    padding: 3rem 0 1.5rem;
    margin-top: auto;
}

.mq-footer .footer-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent-rose);
    margin-bottom: 0.5rem;
}

.mq-footer p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

.mq-footer .footer-links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    transition: color var(--transition-fast);
}

.mq-footer .footer-links a:hover {
    color: var(--accent-rose);
}

.mq-footer .social-icons a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    margin-right: 0.5rem;
    transition: all var(--transition-smooth);
    font-size: 0.9rem;
}

.mq-footer .social-icons a:hover {
    background: var(--gradient-btn);
    border-color: transparent;
    color: #fff;
    transform: translateY(-3px);
}

.mq-footer .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 1.2rem;
    margin-top: 2rem;
    text-align: center;
}

.mq-footer .footer-bottom p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.35);
}

/* =============================================
   Edit Modal
   ============================================= */
.modal-content {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg) !important;
}

.modal-header {
    border-bottom: 1px solid var(--border-color);
}

.modal-header .modal-title {
    font-family: 'Playfair Display', serif;
    color: var(--text-primary);
}

.modal-header .btn-close {
    filter: var(--text-primary);
}

.modal-footer {
    border-top: 1px solid var(--border-color);
}

/* =============================================
   Responsive Adjustments
   ============================================= */
@media (max-width: 768px) {
    .mq-hero h1 {
        font-size: 2rem;
    }

    .mq-hero p {
        font-size: 0.95rem;
    }

    .auth-card,
    .payment-card {
        padding: 1.8rem;
        margin: 1rem;
    }

    .profile-card {
        padding: 1.5rem;
    }

    .admin-card {
        padding: 1.2rem;
    }

    .admin-orders-toolbar,
    .admin-orders-meta,
    .admin-orders-pagination {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-orders-page-size {
        flex-basis: auto;
        max-width: 160px;
    }

    .mq-table {
        font-size: 0.8rem;
    }

    .section-title h2 {
        font-size: 1.7rem;
    }

    .cart-item {
        grid-template-columns: 64px minmax(0, 1fr);
    }

    .cart-thumb {
        width: 64px;
        height: 64px;
    }

    .cart-item-actions {
        grid-column: 1 / -1;
        justify-content: space-between;
    }

    .cart-summary {
        align-items: stretch;
        flex-direction: column;
    }

    .checkout-line {
        grid-template-columns: 44px minmax(0, 1fr);
    }

    .checkout-line img {
        width: 44px;
        height: 44px;
    }

    .checkout-line-total {
        grid-column: 2;
        text-align: left;
    }

    .profile-order-header,
    .profile-order-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .profile-order-line {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 576px) {
    .mq-hero h1 {
        font-size: 1.7rem;
    }

    .product-card .card-img-wrapper {
        height: 220px;
    }

    .mq-brand {
        font-size: 1.3rem;
    }

    .product-card .card-footer-custom {
        align-items: flex-start;
        flex-direction: column;
    }

    .product-actions {
        justify-content: flex-start;
        width: 100%;
    }

    .admin-media-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .admin-orders-search-row {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-orders-search-row .mq-form-control {
        min-width: 0;
    }

    .admin-orders-search-row .btn-sm-custom,
    .admin-orders-pagination .btn-sm-custom {
        justify-content: center;
        width: 100%;
    }
}

/* =============================================
   Utility / Misc
   ============================================= */
.text-rose {
    color: var(--accent-rose) !important;
}

.text-gold {
    color: var(--accent-gold) !important;
}

.bg-rose-subtle {
    background: var(--accent-blush) !important;
}

.divider {
    height: 1px;
    background: var(--border-color);
    margin: 1.5rem 0;
}

/* Loader spinner */
.mq-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--accent-rose);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 2rem auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-blush);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-rose);
}
