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

/* CSS Custom Variables for Premium Aesthetic */
:root {
    --primary: #1b3b2b;        /* Deep Forest Emerald */
    --primary-light: #2c5e45;  /* Soft Emerald */
    --accent: #d4af37;         /* Luxury Gold */
    --accent-hover: #c5a030;   /* Deep Gold */
    --bg-light: #faf8f5;       /* Warm Linen Cream */
    --text-dark: #202b24;      /* Charcoal Forest */
    --text-muted: #6b7a70;     /* Muted Sage */
    --card-bg: rgba(255, 255, 255, 0.8);
    --border-color: rgba(27, 59, 43, 0.08);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 10px 25px -5px rgba(27, 59, 43, 0.08), 0 8px 10px -6px rgba(27, 59, 43, 0.08);
    --shadow-lg: 0 20px 35px -10px rgba(27, 59, 43, 0.12), 0 15px 15px -10px rgba(27, 59, 43, 0.08);
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset and Global Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-light);
}
::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* Typography */
h1, h2, h3, h4, .brand-name {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Header & Navigation */
header {
    background-color: var(--primary);
    color: white;
    padding: 1.5rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-md);
    border-bottom: 2px solid var(--accent);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.brand-icon {
    font-size: 1.8rem;
    color: var(--accent);
}

.brand-name {
    font-size: 1.8rem;
    letter-spacing: 1px;
}

.admin-badge {
    background: var(--accent);
    color: var(--primary);
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    margin-left: 0.4rem;
    align-self: center;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    padding-bottom: 4px;
    transition: var(--transition);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--accent);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Til almashtirgich (UZ · RU · EN) */
.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    border: 1px solid rgba(212, 175, 55, 0.5);
    border-radius: 999px;
    padding: 2px;
}
.lang-switch a {
    padding: 0.25rem 0.6rem !important;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}
.lang-switch a::after { display: none !important; }
.lang-switch a:hover { color: var(--accent); }
.lang-switch a.active {
    background: var(--accent);
    color: var(--primary);
}

.btn-nav-admin {
    background-color: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 0.5rem 1.2rem;
    border-radius: 30px;
    transition: var(--transition);
}

.btn-nav-admin:hover {
    background-color: var(--accent);
    color: var(--primary);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(27, 59, 43, 0.95), rgba(19, 46, 32, 0.95)), url('https://images.unsplash.com/photo-1526047932273-341f2a7631f9?q=80&w=1200') no-repeat center center/cover;
    color: white;
    text-align: center;
    padding: 6rem 2rem;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: linear-gradient(to top, var(--bg-light), transparent);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    z-index: 2;
    position: relative;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    color: var(--accent);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.hero-description {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

/* Main Container */
main.container {
    max-width: 1200px;
    margin: -3rem auto 4rem;
    padding: 0 2rem;
    position: relative;
    z-index: 10;
}

/* Glassmorphism Filters Box */
.filters-wrapper {
    background: var(--card-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.filters-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 1.5rem;
    align-items: end;
}

@media (max-width: 900px) {
    .filters-grid {
        grid-template-columns: 1fr;
    }
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.search-input-wrapper {
    position: relative;
}

.search-input-wrapper i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.form-control {
    background-color: rgba(27, 59, 43, 0.03);
    border: 1px solid rgba(27, 59, 43, 0.1);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text-dark);
    outline: none;
    transition: var(--transition);
    width: 100%;
}

.form-control:focus {
    border-color: var(--primary);
    background-color: white;
    box-shadow: 0 0 0 4px rgba(27, 59, 43, 0.08);
}

.search-input-wrapper .form-control {
    padding-left: 2.5rem;
}

/* Custom Checkbox Toggle */
.stock-toggle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-weight: 500;
    user-select: none;
    padding: 0.75rem 0;
}

.stock-toggle input {
    display: none;
}

.custom-switch {
    width: 44px;
    height: 24px;
    background-color: rgba(27, 59, 43, 0.15);
    border-radius: 100px;
    position: relative;
    transition: var(--transition);
}

.custom-switch::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: white;
    top: 3px;
    left: 3px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.stock-toggle input:checked + .custom-switch {
    background-color: var(--primary);
}

.stock-toggle input:checked + .custom-switch::after {
    left: 23px;
}

/* Flowers Grid & Cards */
.flowers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
}

.flower-card {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
}

.flower-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(212, 175, 55, 0.4);
}

.flower-img-wrapper {
    position: relative;
    height: 260px;
    overflow: hidden;
    background-color: #eee;
}

.flower-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.stock-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-sm);
}

.stock-badge.in-stock {
    background-color: rgba(27, 59, 43, 0.95);
    color: var(--accent);
}

.stock-badge.out-of-stock {
    background-color: rgba(220, 53, 69, 0.95);
    color: white;
}

.flower-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.flower-sort {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.flower-name {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.flower-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px dashed var(--border-color);
    border-bottom: 1px dashed var(--border-color);
    padding: 0.75rem 0;
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--text-muted);
}

.meta-item i {
    color: var(--accent);
}

.flower-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.flower-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
}

.btn-buy {
    background-color: var(--accent);
    color: var(--primary);
    border: none;
    border-radius: 30px;
    padding: 0.65rem 1.25rem;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-buy:hover {
    background-color: var(--primary);
    color: white;
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(27, 59, 43, 0.2);
}

/* Flower Detail Page */
.detail-grid {
    display: grid;
    grid-template-columns: 1.1fr 1.2fr;
    gap: 4rem;
    background: white;
    border-radius: var(--radius-lg);
    padding: 3rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    align-items: center;
    margin-top: 2rem;
    animation: fadeInUp 0.8s ease;
}

@media (max-width: 900px) {
    .detail-grid {
        grid-template-columns: 1fr;
        padding: 1.5rem;
        gap: 2rem;
    }
}

.detail-img-container {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    height: 500px;
}

.detail-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-content {
    display: flex;
    flex-direction: column;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.back-link:hover {
    color: var(--primary);
    transform: translateX(-5px);
}

.detail-title {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    line-height: 1.1;
}

.detail-sort {
    font-size: 1.1rem;
    color: var(--accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.detail-spec-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.spec-card {
    background-color: var(--bg-light);
    border-radius: var(--radius-sm);
    padding: 1rem;
    text-align: center;
    border: 1px solid var(--border-color);
}

.spec-val {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
}

.spec-lbl {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.detail-price-box {
    background-color: var(--primary);
    color: white;
    padding: 1.5rem;
    border-radius: var(--radius-md);
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 5px solid var(--accent);
}

.detail-price-lbl {
    font-size: 0.9rem;
    color: var(--accent);
    text-transform: uppercase;
    font-weight: 600;
}

.detail-price-val {
    font-size: 2rem;
    font-weight: 700;
}

.detail-desc-title {
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 0.35rem;
    width: fit-content;
}

.detail-desc {
    color: var(--text-dark);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

/* Admin Panel Styling */
.admin-grid {
    display: grid;
    grid-template-columns: 1.2fr 2fr;
    gap: 3rem;
    margin-top: 2rem;
}

@media (max-width: 1024px) {
    .admin-grid {
        grid-template-columns: 1fr;
    }
}

.admin-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.admin-card h2 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 0.5rem;
}

.admin-form-group {
    margin-bottom: 1.25rem;
}

.admin-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.file-input-wrapper {
    position: relative;
    border: 2px dashed rgba(27, 59, 43, 0.2);
    border-radius: var(--radius-sm);
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.file-input-wrapper:hover {
    border-color: var(--primary);
    background-color: rgba(27, 59, 43, 0.02);
}

.file-input-wrapper input[type="file"] {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-input-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
}

.file-input-label i {
    font-size: 2rem;
    color: var(--accent);
}

.btn-submit {
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    padding: 0.85rem 2rem;
    font-weight: 600;
    width: 100%;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 1rem;
}

.btn-submit:hover {
    background-color: var(--primary-light);
    box-shadow: var(--shadow-md);
}

/* Admin Flower List Table */
.table-responsive {
    overflow-x: auto;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    text-align: left;
}

.admin-table th {
    background-color: var(--primary);
    color: white;
    padding: 1rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.admin-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.admin-table tbody tr:hover {
    background-color: rgba(27, 59, 43, 0.02);
}

.admin-thumb {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid var(--border-color);
}

.input-inline-edit {
    width: 80px;
    padding: 0.35rem 0.5rem;
    border-radius: 4px;
    border: 1px solid rgba(27, 59, 43, 0.2);
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition);
}

.input-inline-edit:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(27, 59, 43, 0.1);
}

.actions-cell {
    display: flex;
    gap: 0.5rem;
}

.btn-action {
    border: none;
    border-radius: 4px;
    padding: 0.4rem 0.8rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.8rem;
    transition: var(--transition);
}

.btn-action.btn-save {
    background-color: var(--primary);
    color: white;
}

.btn-action.btn-save:hover {
    background-color: var(--primary-light);
}

.btn-action.btn-delete {
    background-color: #dc3545;
    color: white;
}

.btn-action.btn-delete:hover {
    background-color: #c82333;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Footer Style */
footer {
    background-color: var(--primary);
    color: white;
    text-align: center;
    padding: 2.5rem 2rem;
    border-top: 4px solid var(--accent);
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.footer-text {
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Alerts and Notifications */
.alert {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    color: white;
    z-index: 1000;
    animation: slideInRight 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
}

.alert-success {
    background-color: #2e7d32;
    border-left: 5px solid var(--accent);
}

.alert-error {
    background-color: #c62828;
    border-left: 5px solid #ff8a80;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ========================================================================
   SAVATCHA, GALEREYA, MIQDOR STEPPERI (qo'shimcha)
   ======================================================================== */

/* Header savat ikonkasi */
.cart-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.cart-count,
.notif-count {
    display: none;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: var(--accent);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: 999px;
    line-height: 1;
}

.notif-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

/* Miqdor stepperi */
.qty-stepper {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #fff;
}
.qty-stepper button {
    width: 34px;
    height: 36px;
    border: none;
    background: var(--bg-light);
    color: var(--primary);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}
.qty-stepper button:hover { background: var(--accent); color: #fff; }
.qty-stepper .qty-input {
    width: 56px;
    height: 36px;
    border: none;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    text-align: center;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    -moz-appearance: textfield;
}
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Karta amallar qatori */
.card-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    flex-wrap: wrap;
}
.card-actions .btn-buy { flex: 1; min-width: 120px; }

/* Detal galereya */
.detail-thumbs {
    display: flex;
    gap: 0.6rem;
    margin-top: 0.9rem;
    flex-wrap: wrap;
}
.detail-thumb {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}
.detail-thumb:hover { transform: translateY(-2px); }
.detail-thumb.active { border-color: var(--accent); }
.detail-buy-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

/* ── Savatcha sahifasi ── */
.cart-page { max-width: 1000px; }
.cart-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2rem;
    align-items: start;
}
.cart-items { display: flex; flex-direction: column; gap: 1rem; }
.cart-item {
    display: grid;
    grid-template-columns: 90px 1fr auto;
    gap: 1rem;
    align-items: center;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.9rem;
    box-shadow: var(--shadow-sm);
}
.cart-item img {
    width: 90px; height: 90px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}
.cart-item-name { font-weight: 700; color: var(--primary); margin-bottom: 0.3rem; }
.cart-item-price { color: var(--text-muted); font-size: 0.9rem; }
.cart-item-right { display: flex; flex-direction: column; align-items: flex-end; gap: 0.5rem; }
.cart-item-subtotal { font-weight: 700; color: var(--text-dark); white-space: nowrap; }
.btn-remove {
    background: none; border: none; color: #c0392b;
    cursor: pointer; font-size: 0.9rem;
}
.btn-remove:hover { text-decoration: underline; }

.cart-summary {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 1rem;
}
.cart-summary h3 { font-family: 'Playfair Display', serif; color: var(--primary); margin-bottom: 1rem; }
.summary-row { display: flex; justify-content: space-between; margin-bottom: 0.6rem; color: var(--text-muted); }
.summary-total {
    display: flex; justify-content: space-between;
    font-size: 1.25rem; font-weight: 800; color: var(--primary);
    border-top: 1px solid var(--border-color);
    padding-top: 0.9rem; margin-top: 0.9rem;
}
.btn-checkout {
    width: 100%;
    margin-top: 1.2rem;
    padding: 0.95rem;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}
.btn-checkout:hover { background: var(--accent-hover); }
.btn-checkout:disabled { background: var(--text-muted); cursor: not-allowed; }
.min-order-notice {
    margin-top: 1.2rem;
    padding: 0.75rem 0.9rem;
    border-radius: var(--radius-sm);
    background: #fff4e5;
    color: #8a5300;
    font-size: 0.92rem;
    line-height: 1.4;
}
.min-order-notice i { margin-right: 0.35rem; }
.cart-empty {
    text-align: center;
    padding: 4rem 1rem;
    color: var(--text-muted);
}
.cart-empty i { font-size: 3rem; color: var(--accent); margin-bottom: 1rem; }

@media (max-width: 768px) {
    .cart-layout { grid-template-columns: 1fr; }
    .cart-summary { position: static; }
}

/* Savatcha — checkout mijoz formasi */
.checkout-form { margin-top: 1.2rem; border-top: 1px solid var(--border-color); padding-top: 1rem; }
.checkout-form .admin-form-group { margin-bottom: 0.8rem; }
.checkout-form label { display:block; font-size:0.82rem; font-weight:600; color:var(--primary); margin-bottom:0.3rem; }

/* ── Admin: buyurtmalar sahifasi ── */
.order-badge-new {
    display:inline-block; vertical-align:middle; margin-left:0.75rem;
    background: var(--accent); color:#fff; font-size:0.85rem; font-weight:700;
    padding:0.25rem 0.7rem; border-radius:999px; font-family: system-ui, sans-serif;
}
.orders-list { display:flex; flex-direction:column; gap:1.2rem; }
.order-card {
    background:#fff; border:1px solid var(--border-color); border-left:5px solid var(--text-muted);
    border-radius:var(--radius-md); padding:1.2rem; box-shadow:var(--shadow-sm);
    transition: var(--transition);
}
.order-card.holat-yangi { border-left-color: var(--accent); }
.order-card.holat-bajarildi { border-left-color: #2c5e45; }
.order-card.holat-bekor { border-left-color: #c0392b; opacity:0.75; }
.order-head { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:0.5rem; margin-bottom:0.9rem; }
.order-id { font-size:1.2rem; font-weight:800; color:var(--primary); margin-right:0.6rem; }
.order-status { font-size:0.78rem; font-weight:700; padding:0.2rem 0.7rem; border-radius:999px; }
.status-yangi { background:#fdf3d8; color:#9a7d12; }
.status-bajarildi { background:#dff0e6; color:#2c5e45; }
.status-bekor { background:#fae2de; color:#c0392b; }
.order-date { font-size:0.85rem; color:var(--text-muted); }
.order-body { display:grid; grid-template-columns: 1fr 1.4fr; gap:1.5rem; }
.order-customer p { margin:0.3rem 0; font-size:0.92rem; color:var(--text-dark); }
.order-customer i { color:var(--primary); width:18px; }
.order-customer a { color:var(--primary-light); text-decoration:none; }
.order-note { font-style:italic; color:var(--text-muted) !important; }
.order-items table { width:100%; border-collapse:collapse; font-size:0.9rem; }
.order-items th { text-align:left; color:var(--text-muted); font-weight:600; padding:0.3rem 0.5rem; border-bottom:1px solid var(--border-color); font-size:0.8rem; }
.order-items td { padding:0.35rem 0.5rem; border-bottom:1px solid var(--border-color); }
.order-foot { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:0.75rem; margin-top:1rem; padding-top:0.9rem; border-top:1px dashed var(--border-color); }
.order-total { font-size:1.15rem; font-weight:800; color:var(--primary); }
.order-actions { display:flex; gap:0.4rem; flex-wrap:wrap; }
.order-actions .btn-action {
    border:none; cursor:pointer; padding:0.45rem 0.8rem; border-radius:var(--radius-sm);
    font-size:0.82rem; font-weight:600; background:var(--bg-light); color:var(--text-dark);
    transition:var(--transition);
}
.order-actions .btn-done { background:#dff0e6; color:#2c5e45; }
.order-actions .btn-cancel { background:#fae2de; color:#c0392b; }
.order-actions .btn-delete { background:#f3f1ee; color:#c0392b; }
.order-actions .btn-action:hover { filter:brightness(0.94); }

@media (max-width: 720px) {
    .order-body { grid-template-columns: 1fr; gap:1rem; }
    .order-foot { flex-direction: column; align-items: stretch; }
    .order-actions { justify-content: flex-start; }
}

/* ========================================================================
   BILDIRISHNOMALAR (mijoz sahifasi)
   ======================================================================== */
.notif-bar {
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 0.75rem;
    background: #fff; border: 1px solid var(--border-color);
    border-radius: var(--radius-sm); padding: 0.7rem 1rem;
    margin-bottom: 1.2rem; color: var(--text-muted); font-size: 0.92rem;
}
.notif-bar i { color: var(--primary); }
.notif-list { display: flex; flex-direction: column; gap: 1rem; }
.notif-card {
    background: #fff; border: 1px solid var(--border-color);
    border-left: 5px solid var(--text-muted);
    border-radius: var(--radius-md); padding: 1.1rem 1.3rem;
    box-shadow: var(--shadow-sm);
}
.notif-card.unread { border-left-color: var(--accent); background: #fffdf6; }
.notif-card-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.6rem; }
.notif-tag { font-size: 0.8rem; font-weight: 700; padding: 0.25rem 0.7rem; border-radius: 999px; display: inline-flex; align-items: center; gap: 0.35rem; }
.notif-tag.tag-ok { background: #dff0e6; color: #2c5e45; }
.notif-tag.tag-cancel { background: #fae2de; color: #c0392b; }
.notif-date { font-size: 0.82rem; color: var(--text-muted); }
.notif-msg { color: var(--text-dark); font-size: 1rem; line-height: 1.55; margin: 0; }
.notif-prompt {
    text-align: center; padding: 3rem 1.5rem; background: #fff;
    border: 1px solid var(--border-color); border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}
.notif-phone-row { display: flex; gap: 0.6rem; justify-content: center; flex-wrap: wrap; align-items: center; }

/* ========================================================================
   ADMIN STATISTIKA
   ======================================================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.2rem;
}
.stat-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.4rem;
    box-shadow: var(--shadow-sm);
    text-align: center;
}
.stat-card.stat-accent {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.stat-card.stat-accent .stat-lbl { color: rgba(255, 255, 255, 0.8); }
.stat-ico { font-size: 1.6rem; color: var(--accent); margin-bottom: 0.5rem; }
.stat-val { font-size: 1.9rem; font-weight: 800; line-height: 1.1; }
.stat-card.stat-accent .stat-val { color: var(--accent); }
.stat-lbl { font-size: 0.82rem; color: var(--text-muted); margin-top: 0.3rem; }

@media (max-width: 760px) {
    .admin-grid[style*="1fr 1fr"] { grid-template-columns: 1fr !important; }
}

/* ========================================================================
   CHOP ETISH (print) — faqat buyurtma ko'rinadi
   ======================================================================== */
@media print {
    header, footer, .nav-toggle, .nav-links, .back-link,
    .notif-bar, .order-actions, .no-print, #notification-area, .fab-cart {
        display: none !important;
    }
    body { background: #fff; }
    main.container { margin: 0; padding: 0; }
    .order-card {
        box-shadow: none;
        border: 1px solid #ccc;
        page-break-inside: avoid;
        margin-bottom: 1rem;
    }
    a[href]::after { content: ""; }
    /* Bitta buyurtmani chop etish rejimi */
    body.printing-one .order-card:not(.print-me) { display: none !important; }
}

/* ========================================================================
   QUICK-VIEW GALEREYA (bosh sahifa kartasi -> popup)
   ======================================================================== */
.flower-img-wrapper { cursor: pointer; }

.qv-hint {
    position: absolute;
    bottom: 0.8rem;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    background: rgba(27, 59, 43, 0.92);
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    white-space: nowrap;
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
.flower-card:hover .qv-hint { opacity: 1; transform: translateX(-50%) translateY(0); }

.img-count-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(27, 59, 43, 0.92);
    color: #fff;
    font-size: 0.74rem;
    font-weight: 700;
    padding: 0.3rem 0.6rem;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.qv-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 28, 21, 0.72);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 2000;
    padding: 1.5rem;
    overflow-y: auto;
}
.qv-overlay.open { display: flex; align-items: center; justify-content: center; animation: fadeInUp 0.25s ease; }

.qv-box {
    background: #fff;
    border-radius: var(--radius-lg);
    max-width: 640px;
    width: 100%;
    padding: 1.4rem;
    box-shadow: var(--shadow-lg);
    border-top: 4px solid var(--accent);
    position: relative;
}

.qv-close {
    position: absolute;
    top: 0.6rem;
    right: 0.9rem;
    background: none;
    border: none;
    font-size: 2rem;
    line-height: 1;
    color: var(--text-muted);
    cursor: pointer;
    z-index: 2;
}
.qv-close:hover { color: var(--primary); }

.qv-stage {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #f1efea;
    height: 360px;
}
.qv-main { width: 100%; height: 100%; object-fit: contain; background: #f1efea; }

.qv-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(27, 59, 43, 0.85);
    color: #fff;
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
    z-index: 2;
}
.qv-arrow:hover { background: var(--accent); color: var(--primary); }
.qv-prev { left: 0.7rem; }
.qv-next { right: 0.7rem; }

.qv-thumbs {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.8rem;
    flex-wrap: wrap;
    justify-content: center;
}
.qv-thumb {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}
.qv-thumb:hover { transform: translateY(-2px); }
.qv-thumb.active { border-color: var(--accent); }

.qv-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
    margin-top: 1.1rem;
    flex-wrap: wrap;
}
.qv-sort { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; }
.qv-title { font-size: 1.6rem; color: var(--primary); margin: 0.1rem 0 0.3rem; }
.qv-price { font-size: 1.5rem; font-weight: 800; color: var(--primary); }
.qv-buy { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.qv-detail {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}
.qv-detail:hover { color: var(--primary); }

@media (max-width: 540px) {
    .qv-stage { height: 260px; }
    .qv-title { font-size: 1.3rem; }
    .qv-info { flex-direction: column; align-items: stretch; }
    .qv-buy { justify-content: space-between; }
}

/* ========================================================================
   MOBIL MENYU (hamburger) + UMUMIY RESPONSIVE
   ======================================================================== */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    padding: 0.25rem 0.5rem;
}

/* Menyu tugmasidagi eslatma (yangi bildirishnoma soni) */
.nav-toggle { position: relative; }
.nav-toggle-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    font-size: 0.68rem;
    box-shadow: 0 0 0 2px var(--primary);
}

/* Doim ko'rinib turadigan savatcha tugmasi (faqat telefonda) */
.fab-cart {
    display: none;
    position: fixed;
    right: 1.1rem;
    bottom: calc(1.1rem + env(safe-area-inset-bottom, 0px));
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--primary);
    border: 2px solid var(--accent);
    color: #fff;
    font-size: 1.4rem;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
    z-index: 900;
    -webkit-tap-highlight-color: transparent;
}
.fab-cart:active { transform: scale(0.94); }
.fab-cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #2ecc71;   /* yashil nuqta — savatchada gul bor */
    box-shadow: 0 0 0 2px #fff;
}
.fab-cart.bump { animation: fabBump 0.45s ease; }
@keyframes fabBump {
    0%, 100% { transform: scale(1); }
    40% { transform: scale(1.18); }
    70% { transform: scale(0.95); }
}

@media (max-width: 768px) {
    header { padding: 1rem 1.2rem; }
    .nav-container { position: relative; }
    .nav-toggle { display: block; }
    .fab-cart { display: flex; }
    footer { padding-bottom: 6rem; } /* savatcha tugmasi pastki matnni yopmasin */
    .nav-links {
        display: none;
        position: absolute;
        top: calc(100% + 1rem);
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background: var(--primary);
        border-bottom: 2px solid var(--accent);
        box-shadow: var(--shadow-md);
        padding: 0.25rem 1.2rem 0.75rem;
        z-index: 200;
    }
    .nav-links.open { display: flex; animation: fadeInUp 0.25s ease; }
    .nav-links li { width: 100%; }
    .nav-links a {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.9rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }
    .nav-links a::after { display: none; }

    /* Hero va sarlavhalarni kichraytirish */
    .hero { padding: 3.5rem 1.2rem; }
    .hero h1 { font-size: 2.1rem; }
    .hero-subtitle { font-size: 1.15rem; }
    .hero-description { font-size: 1rem; margin-bottom: 1.5rem; }

    main.container { padding: 0 1.1rem; margin-top: -2rem; }
    .brand-name { font-size: 1.45rem; }
    .brand-icon { font-size: 1.5rem; }
    .filters-wrapper { padding: 1.3rem; }

    /* Katalog — telefon uchun 2 ustunli, ixcham kartalar */
    .flowers-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .flower-img-wrapper { height: 150px; }
    .flower-info { padding: 0.85rem; }
    .flower-sort { font-size: 0.7rem; margin-bottom: 0.3rem; }
    .flower-name { font-size: 1.05rem; margin-bottom: 0.45rem; line-height: 1.25; }
    .flower-meta { font-size: 0.75rem; padding: 0.5rem 0; margin-bottom: 0.8rem; gap: 0.4rem; }
    .flower-price-row { flex-direction: column; align-items: stretch; gap: 0.6rem; }
    .flower-price { font-size: 1.2rem; }
    .flower-price-row .btn-buy { justify-content: center; padding: 0.6rem 0.75rem; font-size: 0.85rem; }
    .stock-badge { top: 0.6rem; right: 0.6rem; padding: 0.25rem 0.6rem; font-size: 0.65rem; }

    /* Detal sahifa */
    .detail-title { font-size: 2rem; }
    .detail-img-container { height: 300px; }
    .detail-price-val { font-size: 1.6rem; }

    /* Admin */
    .admin-card { padding: 1.3rem; }
    .admin-card h2 { font-size: 1.4rem; }

    h1 { font-size: 2rem !important; }
}

@media (max-width: 480px) {
    .flowers-grid { gap: 0.7rem; }
    .flower-img-wrapper { height: 125px; }
    .flower-info { padding: 0.7rem; }
    .flower-name { font-size: 0.95rem; }
    .flower-price { font-size: 1.05rem; }
    .flower-meta { font-size: 0.68rem; }
    .detail-price-box { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .detail-buy-row { width: 100%; }
    .detail-buy-row .btn-buy { flex: 1; justify-content: center; }
    .cart-item { grid-template-columns: 70px 1fr; }
    .cart-item img { width: 70px; height: 70px; }
    .cart-item-right { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
    .notif-phone-row .form-control { max-width: 100% !important; }
}

/* ─── To'lov tugmalari (Payme / Click) ─────────────────────────────────────── */
.pay-btn {
    color: #fff !important;
    font-size: 1.05rem;
    font-weight: 700;
    border: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.pay-btn:hover { transform: translateY(-2px); filter: brightness(1.05); box-shadow: var(--shadow-md); }
.pay-payme { background: linear-gradient(135deg, #33d9d9, #00b8b8); }
.pay-click { background: linear-gradient(135deg, #22a7f0, #0077c8); }

/* Admin buyurtmalar: to'lov holati belgisi */
.pay-status { display:inline-flex; align-items:center; gap:0.3rem; padding:0.2rem 0.6rem; border-radius:20px; font-size:0.75rem; font-weight:700; }
.pay-status.tolangan { background: rgba(44, 94, 69, 0.12); color: #2c5e45; }
.pay-status.tolanmagan { background: rgba(192, 57, 43, 0.1); color: #c0392b; }
