/* ===== RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #f5f7fb;
    --surface: #ffffff;
    --surface-soft: #f8fafc;
    --border: #e6ebf2;
    --border-strong: #d7dee8;
    --text: #1f2937;
    --text-soft: #6b7280;
    --text-muted: #9aa4b2;
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --accent: #ff6b35;
    --accent-hover: #ef5a24;
    --danger: #e11d48;
    --danger-hover: #be123c;
    --success: #16a34a;
    --warning: #d97706;
    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 16px 40px rgba(15, 23, 42, 0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --transition: 0.22s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.05), transparent 26%),
        radial-gradient(circle at top right, rgba(255, 107, 53, 0.05), transparent 24%),
        var(--bg);
    color: var(--text);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: color var(--transition);
}

a:hover {
    text-decoration: none;
    color: var(--primary-hover);
}

/* ===== LAYOUT ===== */
.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 24px 20px 40px;
}

/* ===== HEADER ===== */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(17, 24, 39, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    color: #fff;
    padding: 16px 30px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.header-inner {
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.header-left,
.header-right {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.header .logo {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 0.2px;
    color: #fff;
    margin-right: 6px;
}

.header .logo:hover {
    color: #fff;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.main-nav a,
.header-right > a,
.profile-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 9px 14px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 14px;
    background: transparent;
    border: none;
    transition: background var(--transition), color var(--transition), transform var(--transition);
    white-space: nowrap;
    cursor: pointer;
    font-family: inherit;
}

.main-nav a:hover,
.header-right > a:hover,
.profile-menu-toggle:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.add-product-link {
    background: linear-gradient(135deg, var(--accent), #ff8a50) !important;
    color: #fff !important;
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(255, 107, 53, 0.22);
}

.add-product-link:hover {
    background: linear-gradient(135deg, var(--accent-hover), var(--accent)) !important;
    color: #fff !important;
}

.header-link-with-badge {
    gap: 6px;
}

.profile-menu {
    position: relative;
}

.profile-menu-toggle {
    color: #86efac;
}

.profile-menu-toggle:hover {
    color: #bbf7d0;
}

.profile-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 250px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    padding: 8px 0;
    z-index: 1000;
    overflow: hidden;
}

.profile-menu.open .profile-dropdown {
    display: block;
}

.profile-dropdown a {
    display: block;
    padding: 11px 16px;
    color: var(--text);
    font-size: 14px;
    text-decoration: none;
    transition: background var(--transition), color var(--transition);
}

.profile-dropdown a:hover {
    background: var(--surface-soft);
    color: var(--primary);
}

.profile-logout-form {
    margin: 8px 0 0;
    padding-top: 8px;
    border-top: 1px solid var(--border);
}

.profile-logout-form button {
    width: 100%;
    text-align: left;
    padding: 11px 16px;
    background: none;
    border: none;
    color: var(--danger);
    cursor: pointer;
    font-size: 14px;
    font-family: inherit;
    transition: background var(--transition), color var(--transition);
}

.profile-logout-form button:hover {
    background: #fff1f2;
    color: var(--danger-hover);
}

/* ===== BADGES ===== */
.cart-badge,
.fav-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 6px;
    margin-left: 6px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), #ff8a50);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    vertical-align: middle;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.28);
}

.cart-badge.hidden,
.fav-badge.hidden {
    display: none;
}

/* ===== CARDS / SURFACES ===== */
.auth-card,
.search-panel,
.product-description-block,
.cart-total,
.order-info-card,
.order-card,
.my-product-card,
.cart-item,
.category-card,
.category-card-large,
.section-card,
.section-card-large {
    background: var(--surface);
    border: 1px solid rgba(230, 235, 242, 0.8);
    box-shadow: var(--shadow-sm);
}

/* ===== ALERTS ===== */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    font-size: 14px;
    border: 1px solid transparent;
}

.alert-success {
    background: #ecfdf3;
    color: #166534;
    border-color: #b7ebc9;
}

.alert-danger {
    background: #fff1f2;
    color: #be123c;
    border-color: #fecdd3;
}

.error-list {
    list-style: none;
}

.error-list li {
    margin-bottom: 4px;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
    text-align: center;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #3b82f6);
    color: #fff;
    width: 100%;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.22);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-hover), var(--primary));
    color: #fff;
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger), #fb7185);
    color: #fff;
}

.btn-danger:hover {
    background: linear-gradient(135deg, var(--danger-hover), var(--danger));
    color: #fff;
}

.btn-secondary {
    background: #fff;
    color: var(--text);
    border-color: var(--border);
    padding: 12px 25px;
}

.btn-secondary:hover {
    background: var(--surface-soft);
    color: var(--text);
}

.btn-small {
    padding: 8px 14px;
    font-size: 13px;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    border: none;
    font-weight: 600;
}

.btn-edit {
    background: #eff6ff;
    color: var(--primary);
}

.btn-edit:hover {
    background: #dbeafe;
    text-decoration: none;
}

.btn-delete {
    background: #fff1f2;
    color: var(--danger);
}

.btn-delete:hover {
    background: #ffe4e6;
}

/* ===== FORMS ===== */
.form-group {
    margin-bottom: 20px;
}

.form-group label,
.filter-group label {
    display: block;
    margin-bottom: 7px;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-soft);
}

.form-group input,
.form-select,
.form-textarea,
.filter-select,
.filter-input,
.search-input {
    width: 100%;
    padding: 13px 15px;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
    background: #fff;
    color: var(--text);
}

.form-group input:focus,
.form-select:focus,
.form-textarea:focus,
.filter-select:focus,
.filter-input:focus,
.search-input:focus {
    outline: none;
    border-color: rgba(37, 99, 235, 0.5);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.form-file {
    width: 100%;
    padding: 10px 0;
    font-size: 14px;
}

/* ===== AUTH ===== */
.auth-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
}

.auth-card {
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 430px;
    box-shadow: var(--shadow-md);
}

.auth-card h2 {
    text-align: center;
    margin-bottom: 28px;
    color: #111827;
    font-size: 28px;
}

.auth-card .footer-text {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: var(--text-soft);
}

/* ===== HOME ===== */
.welcome-section {
    text-align: center;
    padding: 60px 20px;
}

.welcome-section h1 {
    font-size: 38px;
    color: #111827;
    margin-bottom: 14px;
    line-height: 1.15;
}

.welcome-section p {
    font-size: 18px;
    color: var(--text-soft);
}

.hero-banner {
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.14), transparent 30%),
        radial-gradient(circle at 80% 30%, rgba(255, 255, 255, 0.12), transparent 28%),
        linear-gradient(135deg, #111827 0%, #1e3a8a 50%, #0f766e 100%);
    border-radius: 24px;
    padding: 56px 42px;
    text-align: center;
    color: #fff;
    margin-bottom: 42px;
    box-shadow: var(--shadow-lg);
}

.hero-banner h1 {
    font-size: 36px;
    margin-bottom: 10px;
    color: #fff;
    line-height: 1.15;
}

.hero-banner p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.78);
    margin-bottom: 28px;
}

.hero-search {
    display: flex;
    gap: 10px;
    max-width: 640px;
    margin: 0 auto;
}

.hero-search-input {
    flex: 1;
    border: none;
}

.home-sections,
.home-new-products {
    margin-bottom: 42px;
}

.home-sections h2,
.home-new-products h2 {
    margin-bottom: 20px;
    font-size: 24px;
    color: #111827;
}

/* ===== CATALOG / BREADCRUMBS / SORT ===== */
.catalog-header {
    margin-bottom: 28px;
}

.catalog-header h1 {
    font-size: 32px;
    color: #111827;
    margin-bottom: 8px;
    line-height: 1.2;
}

.catalog-header p {
    color: var(--text-soft);
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.breadcrumbs a {
    color: var(--primary);
}

.sort-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
    font-size: 14px;
    color: var(--text-soft);
    flex-wrap: wrap;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 12px 14px;
    box-shadow: var(--shadow-sm);
}

.sort-bar a {
    color: var(--text);
    padding: 8px 14px;
    border-radius: 999px;
    transition: all var(--transition);
}

.sort-bar a:hover {
    background: #eff6ff;
    color: var(--primary);
    text-decoration: none;
}

.sort-bar a.active {
    background: linear-gradient(135deg, var(--primary), #3b82f6);
    color: #fff;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.18);
}

/* ===== SECTIONS ===== */
.sections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 16px;
}

.sections-grid-large {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.section-card,
.section-card-large {
    color: var(--text);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.section-card {
    border-radius: 18px;
    padding: 28px 22px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.section-card-large {
    border-radius: 20px;
    padding: 30px;
    display: flex;
    gap: 20px;
    align-items: center;
}

.section-card:hover,
.section-card-large:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: #dbe4f0;
    text-decoration: none;
}

.section-icon {
    font-size: 38px;
}

.section-icon-large {
    font-size: 48px;
    flex-shrink: 0;
}

.section-name {
    font-weight: 700;
    font-size: 16px;
    color: #111827;
}

.section-card h2,
.section-card-large h3 {
    color: #111827;
}

.section-count,
.section-card-desc {
    font-size: 13px;
    color: var(--text-soft);
}

.section-card-categories,
.section-card .category-count {
    font-size: 13px;
    color: var(--primary);
    font-weight: 700;
}

/* ===== CATEGORIES ===== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

.category-card,
.category-card-large {
    color: var(--text);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.category-card {
    border-radius: 18px;
    padding: 28px 24px;
    text-align: center;
    display: block;
}

.category-card-large {
    border-radius: 18px;
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.category-card:hover,
.category-card-large:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: #dbe4f0;
    text-decoration: none;
}

.category-card h3,
.category-card-content h3 {
    color: #111827;
    margin-bottom: 8px;
    font-size: 18px;
}

.category-card .product-count,
.category-card-desc {
    color: var(--text-soft);
    font-size: 14px;
}

.category-card-count {
    font-size: 13px;
    color: var(--primary);
    font-weight: 700;
}

.category-card-arrow {
    font-size: 24px;
    color: #c2cad5;
    flex-shrink: 0;
    margin-left: 15px;
    transition: transform var(--transition), color var(--transition);
}

.category-card-large:hover .category-card-arrow {
    transform: translateX(4px);
    color: var(--primary);
}

/* ===== PRODUCT GRIDS ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
    gap: 20px;
}

/* ===== PRODUCT CARD ===== */
.product-card-wrapper {
    position: relative;
}

.product-card {
    background: var(--surface);
    border: 1px solid rgba(230, 235, 242, 0.9);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    display: block;
    color: var(--text);
    height: 100%;
}

.product-card-featured {
    position: relative;
    border: 2px solid #f59e0b;
    background: linear-gradient(180deg, #fffdf7 0%, #ffffff 42%);
    box-shadow:
        0 0 0 2px rgba(251, 191, 36, 0.22),
        0 10px 26px rgba(245, 158, 11, 0.14);
}

.product-card-featured::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #fbbf24 0%, #f59e0b 55%, #f97316 100%);
    z-index: 1;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: #dce5ef;
    text-decoration: none;
}

.product-card-featured:hover {
    border-color: #ea580c;
    box-shadow:
        0 0 0 2px rgba(245, 158, 11, 0.30),
        0 16px 34px rgba(245, 158, 11, 0.20);
}

.featured-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 3;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 6px 14px rgba(245, 158, 11, 0.30);
}

.product-card-featured .product-card-price {
    color: #ea580c;
}

.product-card-featured .product-card-title-link:hover h3 {
    color: #d97706;
}

.product-card-featured .product-card-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(251, 191, 36, 0.10) 0%, rgba(251, 191, 36, 0) 45%);
    pointer-events: none;
}

.product-card-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0)),
        #f3f5f9;
    position: relative;
    display: block;
    text-decoration: none;
}

.product-card-image img,
.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.product-card:hover .product-card-image img {
    transform: scale(1.04);
}

.no-image {
    width: 100%;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at top, rgba(37, 99, 235, 0.06), transparent 30%),
        #f3f5f9;
    font-size: 52px;
    color: #b8c1cc;
}

.featured-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 1px solid #fde68a;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.featured-option:hover {
    border-color: #f59e0b;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.15);
}

.featured-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #f59e0b;
    flex-shrink: 0;
}

.featured-label {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.featured-price {
    font-size: 13px;
    color: #92400e;
    font-weight: 500;
}

.product-card-info,
.product-info {
    padding: 16px 16px 18px;
}

.product-card-featured .product-card-info {
    background: linear-gradient(180deg, #faf4d0 0%, #fff8df 100%);
}

.product-card-info h3 {
    font-size: 16px;
    margin-bottom: 8px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #111827;
    min-height: 43px;
}

.product-info h4 {
    font-size: 16px;
    margin-bottom: 8px;
    color: #111827;
}

.product-card-title-link {
    text-decoration: none;
    color: inherit;
}

.product-card-title-link:hover h3 {
    color: #ff6600;
}

.product-card-category {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.product-card-condition,
.product-condition {
    font-size: 12px;
    color: var(--text-soft);
    margin-bottom: 12px;
}

.product-card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 10px;
}

.product-card-price,
.product-price {
    font-size: 22px;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: -0.3px;
}

.product-price {
    display: block;
    margin-bottom: 5px;
}

.product-card-seller {
    display: inline-block;
    font-size: 12px;
    color: #ff6600;
    margin-bottom: 6px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
}

.product-card-seller:hover {
    text-decoration: underline;
}

/* ===== PRODUCT CARD ACTIONS ===== */
.product-card-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 10;
}

.favorite-card-form,
.cart-card-form,
.cart-action-wrap {
    margin: 0;
    padding: 0;
    display: flex;
}

.favorite-card-btn,
.cart-card-btn {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--text);
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    text-decoration: none;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.14);
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.favorite-card-btn:hover,
.cart-card-btn:hover {
    background: #fff;
    transform: scale(1.06);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.18);
    text-decoration: none;
}

.favorite-card-btn.active {
    background: #fff1f2;
    border-color: #fecdd3;
}

.cart-card-btn.in-cart {
    background: #ecfdf3;
    color: #166534;
    border-color: #bbf7d0;
}

.cart-card-btn:disabled {
    opacity: 0.72;
    cursor: wait;
    transform: none;
}

/* ===== PRODUCT CARD OVERLAY ===== */
.product-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(17, 24, 39, 0.58);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    border-radius: 20px 20px 0 0;
    letter-spacing: 0.2px;
}

/* ===== PRODUCT DETAIL ===== */
.product-detail,
.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 34px;
    margin-bottom: 32px;
}

.product-detail-image {
    border-radius: 24px;
    overflow: hidden;
    background: #f3f5f9;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.product-detail-image img {
    width: 100%;
    height: auto;
    display: block;
}

.no-image-large {
    width: 100%;
    height: 440px;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at top, rgba(37, 99, 235, 0.06), transparent 30%),
        #f3f5f9;
    border-radius: 24px;
    font-size: 28px;
    color: #b2bcc9;
}

.product-detail-info h1 {
    font-size: 32px;
    margin-bottom: 16px;
    color: #111827;
    line-height: 1.2;
}

.product-price-large,
.product-detail-price {
    font-size: 42px;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 24px;
    letter-spacing: -0.8px;
}

.product-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 26px;
}

.meta-item {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 12px 14px;
}

.meta-item-seller {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, #fff7ed 0%, #fff 100%);
    border: 1px solid #fed7aa;
    padding: 16px 18px;
    transition: box-shadow 0.2s ease;
}

.meta-item-seller:hover {
    box-shadow: 0 2px 8px rgba(255, 102, 0, 0.08);
}

.meta-item-seller .meta-value {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
}

.meta-item-seller .meta-value a {
    color: #ff6600;
    text-decoration: none;
    font-weight: 700;
}

.meta-item-seller .meta-value a:hover {
    text-decoration: underline;
}

.seller-city-inline {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #64748b;
    background: #fff;
    padding: 3px 8px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    font-weight: 500;
    margin-left: 4px;
}

.seller-review-count {
    font-size: 13px;
    color: #94a3b8;
    font-weight: 500;
    margin-left: 4px;
}

.seller-rating-inline {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 4px;
}

.seller-rating-stars {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 13px;
    color: #f59e0b;
    background: #fffbeb;
    padding: 3px 8px;
    border-radius: 6px;
    border: 1px solid #fde68a;
    font-weight: 700;
}

.seller-rating-count {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 500;
}

.seller-quick-info {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #fed7aa;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: flex-start;
}

.seller-city {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    color: #475569;
    background: #fff;
    padding: 5px 10px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.seller-delivery-info {
    margin: 0;
    font-size: 13px;
    color: #64748b;
    line-height: 1.45;
    flex: 1 1 100%;
}

.seller-profile-link {
    display: inline-block;
    margin-top: 8px;
    color: #ff6600;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
}

.seller-profile-link:hover {
    text-decoration: underline;
}

.meta-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 4px;
    letter-spacing: 0.4px;
}

.meta-value {
    font-size: 15px;
    color: var(--text);
    font-weight: 600;
}

.meta-value a {
    color: var(--primary);
}

.product-meta p {
    margin-bottom: 8px;
    font-size: 15px;
    color: var(--text-soft);
}

.condition-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.condition-new {
    background: #ecfdf3;
    color: #166534;
}

.condition-used {
    background: #fff7ed;
    color: #b45309;
}

.product-action-form {
    margin-top: 10px;
}

.btn-cart-large {
    width: auto;
    font-size: 15px;
    padding: 12px 24px;
}

.btn-buy {
    width: auto;
    font-size: 15px;
    padding: 12px 24px;
}

.btn-buy.in-cart {
    background-color: #16a34a !important;
    border-color: #16a34a !important;
}

.btn-buy.in-cart:hover {
    background-color: #15803d !important;
    border-color: #15803d !important;
}

.product-owner-actions {
    margin-top: 15px;
}

.product-actions-row {
    display: flex;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.favorite-form {
    flex-shrink: 0;
}

.btn-favorite {
    padding: 12px 24px;
    border-radius: 14px;
    border: 1px solid #fecdd3;
    background: #fff;
    color: var(--danger);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-favorite:hover {
    background: #fff1f2;
}

.btn-favorite.active {
    background: linear-gradient(135deg, var(--danger), #fb7185);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 10px 20px rgba(225, 29, 72, 0.2);
}

.btn-favorite.active:hover {
    background: linear-gradient(135deg, var(--danger-hover), var(--danger));
}

/* ===== PRODUCT DESCRIPTION ===== */
.product-description,
.product-description-block {
    margin-top: 25px;
}

.product-description {
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.product-description h3,
.product-description-block h2,
.similar-section h2 {
    margin-bottom: 15px;
    color: #111827;
}

.product-description-block {
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-sm);
}

.product-description-text {
    color: var(--text-soft);
    line-height: 1.8;
    font-size: 15px;
}

.product-secondary-info {
    margin-top: 30px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.product-secondary-info .share-btn {
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.product-secondary-info .share-btn:hover {
    opacity: 1;
}

.similar-section {
    margin-top: 10px;
}

/* ===== SEARCH ===== */
.search-panel {
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 26px;
    box-shadow: var(--shadow-sm);
}

.search-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    position: relative;
}

.search-suggest-list {
    position: absolute;
    left: 0;
    right: 140px;
    top: calc(100% - 12px);
    background: #fff;
    border: 1px solid #dbe4f0;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    z-index: 30;
    overflow: hidden;
}

.search-suggest-item {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    text-decoration: none;
    color: #111827;
    border-bottom: 1px solid #eef2f7;
}

.search-suggest-item:last-child { border-bottom: none; }
.search-suggest-item:hover { background: #f8fbff; }
.search-suggest-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-suggest-price { color: #4b5563; white-space: nowrap; }

.search-btn {
    width: auto;
    padding: 14px 28px;
    white-space: nowrap;
}

.filters-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.filter-group label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.filters-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.search-results-info {
    margin-bottom: 15px;
    color: var(--text-soft);
}

/* ===== MY PRODUCTS ===== */
.my-products-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.my-product-card {
    border-radius: 18px;
    padding: 20px;
    display: flex;
    gap: 20px;
    align-items: center;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.my-product-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: #dbe4f0;
}

.my-product-image {
    flex-shrink: 0;
    width: 120px;
    height: 90px;
    border-radius: 12px;
    overflow: hidden;
    background: #f3f5f9;
}

.my-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.my-product-image .no-image {
    width: 100%;
    height: 100%;
    font-size: 32px;
}

.my-product-info {
    flex: 1;
}

.my-product-info h3 {
    margin-bottom: 5px;
}

.my-product-info h3 a {
    color: #111827;
}

.my-product-meta {
    font-size: 13px;
    color: var(--text-soft);
    margin-bottom: 5px;
}

.my-product-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
}

/* ===== STATUS ===== */
.status-badge {
    display: inline-block;
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.status-active,
.status-confirmed,
.status-completed {
    background: #ecfdf3;
    color: #166534;
}

.status-sold,
.status-shipped {
    background: #fff7ed;
    color: #b45309;
}

.status-hidden {
    background: #f3f4f6;
    color: #4b5563;
}

.status-new {
    background: #eff6ff;
    color: var(--primary);
}

.status-featured {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
    border: 1px solid #f59e0b;
}

.status-cancelled {
    background: #fff1f2;
    color: var(--danger);
}

/* ===== CART ===== */
.cart-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cart-item {
    border-radius: 18px;
    padding: 20px;
    display: flex;
    gap: 20px;
    align-items: center;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.cart-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: #dbe4f0;
}

.cart-item-image {
    flex-shrink: 0;
    width: 100px;
    height: 75px;
    border-radius: 10px;
    overflow: hidden;
    background: #f3f5f9;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-image .no-image {
    width: 100%;
    height: 100%;
    font-size: 28px;
}

.cart-item-info {
    flex: 1;
}

.cart-item-info h3 {
    margin-bottom: 5px;
    font-size: 16px;
}

.cart-item-info h3 a {
    color: #111827;
}

.cart-item-quantity,
.cart-item-subtotal,
.cart-item-remove {
    flex-shrink: 0;
}

.quantity-input {
    width: 64px;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 10px;
    text-align: center;
    font-size: 14px;
}

.cart-item-subtotal {
    min-width: 100px;
    text-align: right;
    font-size: 18px;
    font-weight: 700;
    color: #111827;
}

.cart-total {
    border-radius: 20px;
    padding: 26px;
    margin-top: 20px;
    text-align: right;
    box-shadow: var(--shadow-sm);
}

.cart-total-row {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;
    font-size: 18px;
}

.cart-total-price {
    font-size: 30px;
    font-weight: 800;
    color: var(--accent);
}

/* ===== CHECKOUT ===== */
.checkout-summary {
    background: linear-gradient(180deg, #ffffff, #f8fbff);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 20px;
    margin-bottom: 25px;
}

.checkout-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
    color: var(--text-soft);
}

.checkout-total-line {
    border-top: 2px solid var(--border);
    margin-top: 10px;
    padding-top: 12px;
    font-size: 16px;
    color: #111827;
    font-weight: 700;
}

/* ===== ORDERS ===== */
.orders-list,
.order-items-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.order-card {
    border-radius: 18px;
    padding: 20px;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    color: var(--text);
}

.order-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: #dbe4f0;
    text-decoration: none;
}

.order-card-header,
.order-card-body {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-card-header {
    margin-bottom: 10px;
}

.order-card-body {
    margin-bottom: 8px;
}

.order-number {
    font-weight: 800;
    color: #111827;
    font-size: 16px;
}

.order-card-total {
    font-size: 22px;
    font-weight: 800;
    color: var(--accent);
}

.order-card-date {
    font-size: 13px;
    color: var(--text-soft);
}

.order-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.order-info-card {
    border-radius: 20px;
    padding: 25px;
    box-shadow: var(--shadow-sm);
}

.order-info-card h3 {
    margin-bottom: 15px;
    color: #111827;
}

.order-info-table {
    width: 100%;
}

.order-info-table td {
    padding: 10px 0;
    vertical-align: top;
    border-bottom: 1px solid #eef2f7;
}

.order-info-table td:first-child {
    color: var(--text-soft);
    width: 120px;
    font-size: 14px;
}

.order-item-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eef2f7;
}

.order-total-row {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid var(--border);
    text-align: right;
    font-size: 19px;
    font-weight: 800;
    color: var(--accent);
}

/* ===== FAVORITES PAGE REMOVE ===== */
.favorite-remove-form {
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: 5;
}

.favorite-remove-btn {
    padding: 7px 14px;
    border-radius: 999px;
    border: 1px solid #fecdd3;
    background: rgba(255, 255, 255, 0.95);
    color: var(--danger);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.1);
}

.favorite-remove-btn:hover {
    background: var(--danger);
    color: #fff;
    border-color: var(--danger);
}

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: 70px 20px;
    color: var(--text-soft);
    font-size: 16px;
    background: rgba(255, 255, 255, 0.65);
    border: 1px dashed var(--border-strong);
    border-radius: 20px;
}

/* ===== PAGINATION ===== */
.pagination,
.pagination ul {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    list-style: none;
}

/* ===== EXTRA ===== */
.nav-bell {
    position: relative;
    margin-right: 15px;
    text-decoration: none;
    font-size: 20px;
}

.bell-badge {
    position: absolute;
    top: -6px;
    right: -10px;
    background: #ef4444;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Auction and photo badges on product cards */
.product-card-image .badge-auction {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #f59e0b;
    color: #fff;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    z-index: 2;
}

.product-card-image .badge-photo-count {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    z-index: 2;
}

/* Star rating interactive */
.star-rating {
    cursor: pointer;
    transition: color 0.15s;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .product-detail,
    .product-detail-grid,
    .order-detail-grid {
        grid-template-columns: 1fr;
    }

    .product-detail-info h1 {
        font-size: 28px;
    }

    .product-price-large,
    .product-detail-price {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .header {
        position: static;
        padding: 14px 18px;
    }

    .header-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .header-left,
    .header-right {
        width: 100%;
        flex-wrap: wrap;
        gap: 10px;
    }

    .main-nav {
        width: 100%;
    }

    .main-nav a,
    .header-right > a,
    .profile-menu-toggle {
        padding: 8px 12px;
        font-size: 13px;
    }

    .profile-dropdown {
        right: auto;
        left: 0;
        min-width: 220px;
    }

    .container {
        padding: 18px 14px 32px;
    }

    .hero-banner {
        padding: 32px 20px;
        border-radius: 20px;
    }

    .hero-banner h1 {
        font-size: 24px;
    }

    .hero-search,
    .search-bar {
        flex-direction: column;
    }

    .sections-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sections-grid-large,
    .categories-grid {
        grid-template-columns: 1fr;
    }

    .filters-row {
        grid-template-columns: 1fr 1fr;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
        gap: 12px;
    }

    .product-card {
        border-radius: 16px;
    }

    .product-card-image,
    .no-image {
        height: 160px;
    }

    .product-card-info,
    .product-info {
        padding: 12px 12px 14px;
    }

    .product-card-info h3 {
        font-size: 14px;
        min-height: 38px;
    }

    .product-card-price,
    .product-price {
        font-size: 18px;
    }

    .product-card-actions {
        top: 8px;
        right: 8px;
        gap: 6px;
    }

    .favorite-card-btn,
    .cart-card-btn {
        width: 38px;
        height: 38px;
        border-radius: 12px;
        font-size: 16px;
    }

    .product-card-featured::before {
        height: 4px;
    }

    .featured-badge {
        top: 8px;
        left: 8px;
        width: 28px;
        height: 28px;
        font-size: 13px;
    }

    .no-image-large {
        height: 280px;
    }

    .product-meta-grid {
        grid-template-columns: 1fr;
    }

    .cart-item {
        flex-wrap: wrap;
    }

    .my-product-card {
        flex-direction: column;
        text-align: center;
    }

    .my-product-actions {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }

    .order-card-header,
    .order-card-body {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

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

    .filters-row {
        grid-template-columns: 1fr;
    }

    .products-grid {
        grid-template-columns: 1fr 1fr;
    }

    .catalog-header h1 {
        font-size: 26px;
    }

    .sort-bar {
        padding: 10px;
        gap: 8px;
    }

    .sort-bar a {
        padding: 7px 12px;
        font-size: 13px;
    }
}

.home-search-strip {
    margin-bottom: 28px;
}

.home-search-strip-form {
    display: flex;
    gap: 10px;
    align-items: center;
    position: relative;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 12px;
    box-shadow: var(--shadow-sm);
}

.home-search-strip-input {
    flex: 1;
    margin: 0;
}

.home-search-strip-btn {
    width: auto;
    min-width: 120px;
    padding: 13px 22px;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .search-suggest-list {
        right: 0;
        top: calc(100% + 6px);
    }

    .home-search-strip-form {
        flex-direction: column;
        align-items: stretch;
    }

    .home-search-strip-btn {
        width: 100%;
    }
}

.favorite-card-btn[disabled] {
    opacity: 0.6;
    pointer-events: none;
}

.favorite-card-btn.active {
    transform: scale(1.05);
}

.hidden {
    display: none !important;
}

.verify-email-page {
    padding: 60px 20px;
}

.verify-email-container {
    max-width: 760px;
    margin: 0 auto;
}

.verify-email-card {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.08);
    border: 1px solid #ececec;
}

.verify-email-icon {
    font-size: 52px;
    margin-bottom: 20px;
    text-align: center;
}

.verify-email-title {
    margin: 0 0 16px;
    font-size: 32px;
    text-align: center;
}

.verify-email-text {
    margin: 0 0 24px;
    font-size: 16px;
    line-height: 1.6;
    color: #666;
    text-align: center;
}

.verify-email-success {
    background: #eafaf1;
    color: #1f7a4d;
    border: 1px solid #bfe7cf;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 24px;
}

.verify-email-info {
    background: #f8f9fb;
    border: 1px solid #e8ebf0;
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 24px;
}

.verify-email-info h2 {
    font-size: 18px;
    margin: 0 0 12px;
}

.verify-email-info ul {
    margin: 0;
    padding-left: 20px;
    color: #555;
    line-height: 1.7;
}

.verify-email-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.verify-email-btn {
    display: inline-flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    padding: 14px 18px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: 0.2s ease;
}

.verify-email-btn-primary {
    background: #111827;
    color: #fff;
}

.verify-email-btn-primary:hover {
    background: #1f2937;
}

.verify-email-btn-secondary {
    background: #fff;
    color: #111827;
    border: 1px solid #d1d5db;
}

.verify-email-btn-secondary:hover {
    background: #f9fafb;
}

.verify-email-footer {
    text-align: center;
    margin-top: 28px;
    color: #666;
}

.verify-email-link-btn {
    background: none;
    border: none;
    color: #2563eb;
    cursor: pointer;
    font-size: 15px;
    padding: 0;
}

.verify-email-link-btn:hover {
    text-decoration: underline;
}

/* ===== PRODUCT SHARE BUTTONS ===== */
.product-share-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: 0.2s ease;
    color: #fff;
}

.share-telegram {
    background: #0088cc;
}

.share-telegram:hover {
    background: #006699;
}

.share-whatsapp {
    background: #25d366;
}

.share-whatsapp:hover {
    background: #128c7e;
}

.share-vk {
    background: #4a76a8;
}

.share-vk:hover {
    background: #3b5f8a;
}

.share-copy {
    background: #6b7280;
}

.share-copy:hover {
    background: #4b5563;
}

/* ===== RECENTLY VIEWED SECTION ===== */
.recently-viewed-section {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.recently-viewed-section h2 {
    font-size: 20px;
    margin-bottom: 16px;
    color: #111827;
}

/* ===== PRICE ALERT SECTION ===== */
.price-alert-section {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 12px;
    padding: 16px;
    margin-top: 16px;
}

.price-alert-section h3 {
    font-size: 16px;
    margin: 0 0 12px;
    color: #0c4a6e;
}

.price-alert-inputs {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

.price-alert-field {
    flex: 1;
}

.price-alert-field label {
    display: block;
    font-size: 13px;
    color: #64748b;
    margin-bottom: 4px;
}

.price-alert-field input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
}

.btn-price-alert {
    background: #0ea5e9;
    color: #fff;
    white-space: nowrap;
}

.btn-price-alert:hover {
    background: #0284c7;
}

.price-alert-hint {
    font-size: 12px;
    color: #64748b;
    margin: 8px 0 0;
}

.price-alert-current {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: #fff;
    border: 1px solid #bae6fd;
    border-radius: 8px;
    margin-bottom: 10px;
}

.price-alert-current-text {
    margin: 0;
    font-size: 14px;
    color: #0c4a6e;
}

.price-alert-current-text strong {
    font-size: 16px;
    color: #059669;
}

/* ===== EXHIBITIONS ===== */
.exhibitions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.exhibition-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s;
    text-decoration: none;
    color: inherit;
}

.exhibition-card:hover {
    transform: translateY(-4px);
}

.exhibition-cover {
    height: 180px;
    overflow: hidden;
}

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

.exhibition-cover-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    font-size: 48px;
}

.exhibition-info {
    padding: 15px;
}

.exhibition-info h3 {
    margin: 0 0 8px;
    font-size: 18px;
}

.exhibition-author {
    color: #6b7280;
    font-size: 14px;
    margin: 0 0 10px;
}

.exhibition-stats {
    display: flex;
    gap: 12px;
    font-size: 13px;
    color: #9ca3af;
}

/* ===== EXHIBITION DETAIL ===== */
.exhibition-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.exhibition-hero {
    height: 400px;
}

.exhibition-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.exhibition-hero-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    font-size: 80px;
}

.exhibition-details {
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.exhibition-details h1 {
    margin: 0 0 10px;
    font-size: 32px;
}

.exhibition-author a {
    color: #ff6600;
    text-decoration: none;
    font-weight: 500;
}

.exhibition-description {
    color: #4b5563;
    font-size: 16px;
    line-height: 1.5;
    margin: 15px 0;
}

.exhibition-stats-row {
    display: flex;
    gap: 20px;
    font-size: 15px;
    color: #6b7280;
    margin-bottom: 20px;
}

.exhibition-actions {
    display: flex;
    gap: 10px;
}

.btn-like-exhibition {
    background: #f3f4f6;
    color: #111827;
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: 0.2s;
}

.btn-like-exhibition.liked {
    background: #fee2e2;
    color: #ef4444;
}

.btn-like-exhibition:hover {
    opacity: 0.9;
}

.btn-share-exhibition {
    background: #3b82f6;
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: 0.2s;
}

.btn-share-exhibition:hover {
    background: #2563eb;
}

.exhibition-items {
    margin-top: 30px;
}

.exhibition-items h2 {
    margin-bottom: 20px;
    font-size: 24px;
}

.exhibition-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.exhibition-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.exhibition-item-image {
    height: 200px;
    overflow: hidden;
}

.exhibition-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s;
}

.exhibition-item:hover .exhibition-item-image img {
    transform: scale(1.05);
}

.exhibition-item-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    font-size: 48px;
}

.exhibition-item-info {
    padding: 15px;
}

.exhibition-item-info h3 {
    margin: 0 0 8px;
    font-size: 16px;
}

.exhibition-item-meta {
    font-size: 13px;
    color: #6b7280;
    margin: 4px 0;
}

.exhibition-item-value {
    font-size: 14px;
    font-weight: 600;
    color: #059669;
    margin: 6px 0;
}

.exhibition-item-desc {
    font-size: 13px;
    color: #4b5563;
    margin-top: 8px;
    line-height: 1.4;
}

/* ===== SELLER INFO BLOCK ===== */
.seller-info-block {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    margin-top: 16px;
}

.seller-info-block h3 {
    margin: 0 0 12px;
    font-size: 16px;
    color: #1e293b;
}

.seller-info-item {
    margin: 8px 0;
    font-size: 14px;
    color: #475569;
}

.seller-info-text {
    margin: 8px 0 12px;
    font-size: 14px;
    color: #334155;
    line-height: 1.5;
}

.price-alert-details {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0;
}

.price-original {
    text-decoration: line-through;
    color: #94a3b8;
    font-size: 14px;
}

.price-target {
    color: #059669;
    font-weight: 600;
    font-size: 16px;
}

.arrow {
    color: #64748b;
}

.status-triggered {
    background: #fef3c7;
    color: #92400e;
}

.status-active {
    background: #d1fae5;
    color: #065f46;
}

/* ===== NOTIFICATIONS ===== */
.notifications-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.notification-card {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    align-items: flex-start;
}

.notification-card.unread {
    background: #eff6ff;
    border-color: #bfdbfe;
}

.notification-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.notification-content {
    flex: 1;
}

.notification-message {
    margin: 0 0 6px;
    font-size: 15px;
    font-weight: 500;
    color: #111827;
}

.notification-meta {
    margin: 0 0 6px;
    font-size: 13px;
    color: #6b7280;
}

.notification-time {
    margin: 0;
    font-size: 12px;
    color: #9ca3af;
}

.notification-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

/* ===== ERROR PAGE ===== */
.error-page {
    text-align: center;
    padding: 60px 20px;
}

.error-code {
    font-size: 120px;
    font-weight: 800;
    color: #ff6600;
    line-height: 1;
    margin-bottom: 20px;
}

.error-page h1 {
    font-size: 28px;
    margin: 0 0 15px;
    color: #1e293b;
}

.error-message {
    font-size: 18px;
    color: #64748b;
    margin: 0 0 30px;
}

.error-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-secondary {
    background: #f1f5f9;
    color: #1e293b;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.2s;
}

.btn-secondary:hover {
    background: #e2e8f0;
}
