/* styles.css - Shared storefront and admin styles for Vero Site */

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

body {
    font-family: 'Trebuchet MS', 'Segoe UI', Verdana, sans-serif;
    line-height: 1.6;
    color: #24324a;
    background:
        radial-gradient(circle at top left, rgba(0, 255, 255, 0.12), transparent 28%),
        linear-gradient(180deg, #f6fbff 0%, #eef4fb 42%, #f8f5ef 100%);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background: linear-gradient(135deg, #00ffff 0%, #1e5dbb 100%);
    color: #fff;
    padding: 28px 0 120px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}

header h1 {
    font-size: 3.8rem;
    font-family: Garamond, Georgia, serif;
    color: #fff;
    letter-spacing: 2px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3), 0 0 30px rgba(255, 255, 255, 0.2);
    font-weight: 700;
}

.header-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.store-hero {
    display: flex;
    flex-direction: row;
    gap: 40px;
    align-items: flex-start;
}

.store-hero-copy {
    flex: 0 0 52%;
    max-width: 52%;
}

.store-kicker {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.26);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.store-hero-subtitle {
    margin-top: 8px;
    font-size: 1.08rem;
    max-width: 690px;
    color: rgba(255, 255, 255, 0.94);
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.18);
}

.store-hero-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.store-hero-tags span {
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.24);
    font-size: 0.88rem;
    font-weight: 700;
}

.hero-tag-btn {
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.13);
    border: 1.5px solid rgba(255, 255, 255, 0.28);
    color: #fff;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s, border-color 0.2s, transform 0.15s;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.hero-tag-btn:hover {
    background: rgba(255, 255, 255, 0.24);
    border-color: rgba(255, 255, 255, 0.55);
    transform: translateY(-1px);
}

.hero-tag-btn.active {
    background: rgba(255, 255, 255, 0.92);
    color: #1040a0;
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

/* ── Category navigation strip (inside catalog-shell) ── */
.cat-nav-strip {
    padding: 0 0 18px 0;
    margin-bottom: 18px;
    border-bottom: 1px solid rgba(64, 99, 173, 0.1);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cat-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.cat-crumb-btn {
    background: none;
    border: none;
    color: #274c93;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 6px;
    font-family: inherit;
    transition: background 0.15s;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cat-crumb-btn:hover {
    background: rgba(39, 76, 147, 0.07);
}

.cat-crumb-sep {
    color: #8fa3c8;
    font-size: 1.1rem;
    font-weight: 300;
    line-height: 1;
}

.cat-crumb-leaf {
    color: #1f335b;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 2px 4px;
}

.cat-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cat-chip-btn {
    padding: 7px 16px;
    border-radius: 999px;
    background: #f0f5ff;
    border: 1.5px solid rgba(39, 76, 147, 0.15);
    color: #274c93;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s, border-color 0.2s, transform 0.15s, box-shadow 0.2s;
    white-space: nowrap;
}

.cat-chip-btn:hover {
    background: #dce8ff;
    border-color: rgba(39, 76, 147, 0.35);
    transform: translateY(-1px);
}

.cat-chip-btn.active {
    background: #274c93;
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(39, 76, 147, 0.28);
}

.store-toolbar {
    flex: 1;
    min-width: 0;
    align-self: flex-start;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.12));
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 20px;
    padding: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 22px 50px rgba(12, 46, 110, 0.22);
}

/* ── Search bar ── */
.search-bar-wrap {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    border: 1.5px solid rgba(255, 255, 255, 0.45);
    border-radius: 14px;
    overflow: hidden;
    transition: border-color 0.2s, background 0.2s;
}

.search-bar-wrap:focus-within {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.75);
}

.search-magnifier {
    width: 18px;
    height: 18px;
    margin: 0 10px 0 16px;
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.75);
    pointer-events: none;
}

.search-bar-wrap input {
    flex: 1;
    min-width: 0;
    height: 50px;
    border: none;
    outline: none;
    font-size: 0.97rem;
    color: #fff;
    background: transparent;
    padding: 0;
    font-family: inherit;
}

.search-bar-wrap input::placeholder {
    color: rgba(255, 255, 255, 0.55);
}

.search-bar-wrap button {
    height: 50px;
    margin: 5px 5px 5px 0;
    padding: 0 22px;
    background: rgba(255, 255, 255, 0.95);
    color: #1040a0;
    border: none;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    letter-spacing: 0.04em;
    transition: background 0.2s ease, transform 0.15s ease;
    font-family: inherit;
    flex-shrink: 0;
    white-space: nowrap;
    border-radius: 10px;
}

.search-bar-wrap button:hover {
    background: #ffffff;
    transform: scale(1.02);
}

/* ── Category filters ── */
.category-filter-bar {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

.cat-step {
    display: flex;
    flex-direction: column;
    gap: 4px;
    animation: filterReveal 0.2s ease;
}

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

.cat-step label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
    padding-left: 2px;
}

.cat-step select {
    width: 100%;
    height: 46px;
    padding: 0 36px 0 14px;
    border-radius: 12px;
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.13)
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='rgba(255,255,255,0.7)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E")
        no-repeat right 12px center;
    -webkit-appearance: none;
    appearance: none;
    color: #fff;
    font-size: 0.95rem;
    cursor: pointer;
    font-family: inherit;
    transition: border-color 0.2s, background-color 0.2s;
    outline: none;
}

.cat-step select option {
    color: #23324d;
    background: #fff;
}

.cat-step select:focus {
    border-color: rgba(255, 255, 255, 0.7);
    background-color: rgba(255, 255, 255, 0.2);
}

.clear-btn {
    align-self: flex-start;
    margin-top: 6px;
    padding: 7px 14px;
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 0.04em;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
    font-family: inherit;
}

.clear-btn:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.1);
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.25s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background-color: #4f6fd7;
    color: white;
}

.btn-primary:hover {
    background-color: #4462c5;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.95);
    color: #3158a0;
    border: 1px solid rgba(49, 88, 160, 0.18);
}

.btn-secondary:hover {
    background-color: #f3f8ff;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.875rem;
}

.btn-edit {
    background-color: #37a56c;
    color: white;
}

.btn-edit:hover {
    background-color: #2f915d;
}

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

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

main {
    padding: 0 20px 40px;
    min-height: calc(100vh - 200px);
}

.catalog-shell {
    margin-top: -72px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(64, 99, 173, 0.08);
    border-radius: 28px;
    padding: 28px;
    box-shadow: 0 30px 60px rgba(24, 48, 96, 0.12);
    backdrop-filter: blur(8px);
}

.results-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    margin-bottom: 16px;
}

.results-eyebrow {
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #5f7ec2;
    font-weight: 700;
}

.results-title {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 2rem;
    line-height: 1.1;
    color: #1f335b;
}

.filter-summary {
    padding: 10px 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, #eef4ff 0%, #f9fbff 100%);
    color: #31589a;
    font-size: 0.92rem;
    font-weight: 600;
    border: 1px solid rgba(84, 122, 197, 0.12);
}

.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 26px;
    margin-top: 22px;
}

.item-card {
    background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(24, 42, 74, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid rgba(38, 68, 122, 0.06);
}

.item-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(20, 44, 87, 0.16);
}

.item-image {
    width: 100%;
    height: 238px;
    overflow: hidden;
    background: linear-gradient(180deg, #f4f7fc 0%, #e7edf7 100%);
    position: relative;
    flex-shrink: 0;
}

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

.item-image-overlay {
    position: absolute;
    inset: auto 16px 16px 16px;
    display: flex;
    justify-content: flex-end;
}

.item-image-overlay span {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(14, 33, 72, 0.7);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.item-details {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.item-name {
    font-size: 1.12rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #23324d;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.item-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid #edf1f7;
}

.item-price {
    font-size: 1.35rem;
    font-weight: bold;
    color: #274c93;
}

.item-quantity {
    color: #61708c;
    font-size: 0.85rem;
}

.loading {
    text-align: center;
    padding: 42px;
    font-size: 1.2rem;
    color: #55647e;
}

.no-results {
    text-align: center;
    padding: 44px;
    font-size: 1.2rem;
    color: #6b7690;
    background: linear-gradient(180deg, #fbfdff 0%, #f3f7fc 100%);
    border: 1px dashed #cad7eb;
    border-radius: 20px;
}

.error {
    text-align: center;
    padding: 50px;
    color: #d94c47;
    font-size: 1.1rem;
}

.load-more-wrap {
    text-align: center;
    margin: 28px 0;
}

.load-more-btn {
    padding: 12px 36px;
    background: linear-gradient(135deg, #c9a96e 0%, #b98942 100%);
    color: #fff;
    border: none;
    border-radius: 999px;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(176, 129, 58, 0.24);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(176, 129, 58, 0.32);
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: white;
    margin: 50px auto;
    padding: 30px;
    border-radius: 24px;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideDown 0.3s ease;
    box-shadow: 0 26px 60px rgba(16, 32, 68, 0.24);
}

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

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    color: #8c97aa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1;
}

.close:hover,
.close:focus {
    color: #24324a;
}

.modal-body {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 20px;
}

.modal-images-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.modal-main-image {
    width: 100%;
    max-width: 500px;
    height: 400px;
    background: linear-gradient(180deg, #f8fbff 0%, #edf2f8 100%);
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-main-image img {
    width: auto !important;
    height: auto !important;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.modal-thumbnails {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    max-width: 500px;
}

.thumbnail-img {
    width: 74px !important;
    height: 74px !important;
    min-width: 74px;
    min-height: 74px;
    max-width: 74px;
    max-height: 74px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.thumbnail-img:hover {
    border-color: #667eea;
    transform: scale(1.05);
}

.thumbnail-img.active {
    border-color: #667eea;
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.3);
}

.modal-info-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.modal-item-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: #24324a;
    margin: 0;
    line-height: 1.2;
}

.modal-category-pill {
    display: inline-block;
    width: fit-content;
    background: linear-gradient(135deg, #eef5ff 0%, #f8fbff 100%);
    color: #3558a1;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(74, 111, 188, 0.14);
}

.modal-price-stock {
    display: flex;
    gap: 20px;
    align-items: center;
}

.modal-item-price {
    font-size: 1.8rem;
    font-weight: bold;
    color: #274c93;
    margin: 0;
}

.modal-stock {
    font-size: 1rem;
    color: #61708c;
    margin: 0;
}

.modal-description {
    margin-top: 10px;
}

.modal-description h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #4c5b76;
    margin: 0 0 10px 0;
}

.modal-description p {
    font-size: 1rem;
    line-height: 1.6;
    color: #5d6a81;
    margin: 0;
}

.modal-details p {
    margin-bottom: 15px;
    color: #666;
    line-height: 1.8;
}

.item-info {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.item-info .price {
    font-size: 2rem;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 10px;
}

.item-info .quantity {
    font-size: 1.1rem;
    color: #666;
}

.admin-items-list {
    background: rgba(255, 255, 255, 0.94);
    border-radius: 18px;
    padding: 25px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(64, 99, 173, 0.08);
}

.admin-items-list h2 {
    margin-bottom: 16px;
    color: #23324d;
}

.table-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.search-input {
    flex: 1;
    min-width: 200px;
    padding: 8px 14px;
    border: 1px solid #c7d3e8;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.search-input:focus {
    border-color: #4063ad;
}

.page-size-select {
    padding: 8px 10px;
    border: 1px solid #c7d3e8;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    cursor: pointer;
}

.total-count {
    font-size: 13px;
    color: #7a8ba8;
    white-space: nowrap;
}

.pagination-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 18px;
    flex-wrap: wrap;
}

.pagination-controls .btn-sm {
    min-width: 36px;
}

.btn-page-active {
    background: #4063ad !important;
    color: #fff !important;
    border-color: #4063ad !important;
}

.pagination-ellipsis {
    padding: 0 4px;
    color: #7a8ba8;
    user-select: none;
}

.thumb-cell {
    width: 52px;
    padding: 4px 6px !important;
}

.row-thumb {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px;
    min-height: 44px;
    max-width: 44px !important;
    max-height: 44px !important;
    object-fit: cover;
    border-radius: 6px;
    display: block;
}

.inline-edit {
    width: 80px;
    padding: 4px 6px;
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: 13px;
    background: transparent;
    transition: border-color 0.2s, background 0.2s;
    -moz-appearance: textfield;
}

.inline-edit::-webkit-inner-spin-button,
.inline-edit::-webkit-outer-spin-button { opacity: 0; }

.inline-edit:focus {
    outline: none;
    border-color: #4063ad;
    background: #fff;
}

.inline-saving { opacity: 0.5; }

.inline-saved {
    border-color: #28a745 !important;
    background: #f0fff4 !important;
}

.inline-error {
    border-color: #dc3545 !important;
    background: #fff5f5 !important;
}

.category-manager-card {
    margin-bottom: 24px;
}

.category-manager-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 24px;
}

.category-action-btn {
    align-self: end;
    height: fit-content;
}

.category-tree {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.category-tree-group {
    border: 1px solid #dfe4ec;
    border-radius: 10px;
    padding: 14px 16px;
    background: #fafcff;
}

.category-tree-group h4 {
    margin-bottom: 8px;
    color: #3f4d72;
}

.category-tree ul {
    margin-left: 18px;
}

.category-tree li {
    margin: 4px 0;
}

table {
    width: 100%;
    border-collapse: collapse;
}

table thead {
    background-color: #5979d7;
    color: white;
}

table th,
table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #dde5f1;
}

table tbody tr:hover {
    background-color: #f5f8fd;
}

.action-buttons {
    display: flex;
    gap: 8px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #23324d;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d4dcea;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    background: #fff;
}

.form-group textarea {
    resize: vertical;
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #6c7790;
    font-size: 0.85rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.triple-row {
    grid-template-columns: repeat(3, 1fr);
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 25px;
}

hr {
    margin: 30px 0;
    border: none;
    border-top: 1px solid #dbe3ef;
}

.modal-wide {
    max-width: 1100px;
}

.current-images h4 {
    margin-bottom: 15px;
    color: #23324d;
}

.images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.image-card {
    position: relative;
    border: 1px solid #dbe3ef;
    border-radius: 12px;
    overflow: hidden;
    background-color: #f9fbff;
}

.image-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.image-info {
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.seq-badge {
    background-color: #5979d7;
    color: white;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: bold;
}

.ai-assist-section {
    border: 1px solid #d8e3ff;
    background: #f5f8ff;
    border-radius: 14px;
    padding: 18px;
    margin-bottom: 22px;
}

.ai-assist-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 16px;
}

.ai-assist-header h3 {
    margin-bottom: 4px;
}

.ai-assist-header p {
    color: #5a6475;
}

.ai-input-row {
    align-items: start;
}

.ai-draft-status,
.muted-card,
.info-card,
.success-card,
.error-card,
.info-banner,
.queued-image-card {
    border-radius: 12px;
    padding: 14px 16px;
}

.muted-card {
    background: #f3f4f7;
    color: #68707f;
}

.info-card {
    background: #eef6ff;
    color: #255f9e;
}

.success-card {
    background: #edf9f0;
    color: #237443;
}

.error-card {
    background: #fff1f0;
    color: #b33a32;
}

.info-banner {
    margin-top: 18px;
    background: #eaf4ff;
    color: #245a96;
    border-left: 4px solid #2196f3;
}

.draft-summary {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.draft-preview-image {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.queued-images-section {
    margin-bottom: 22px;
}

.queued-images-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

.queued-image-card {
    border: 1px solid #d9dfe8;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.queued-image-card.primary {
    border-color: #667eea;
    background: #f5f7ff;
}

@media (max-width: 920px) {
    .store-hero {
        flex-direction: column;
    }

    .store-hero-copy {
        flex: none;
        max-width: 100%;
    }

    .store-toolbar {
        align-self: stretch;
        width: 100%;
    }

    header {
        padding-bottom: 130px;
    }
}

@media (max-width: 1024px) {
    .items-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }

    .category-manager-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    header {
        padding-bottom: 90px;
    }

    header h1 {
        font-size: 2.1rem;
    }

    .form-row,
    .triple-row {
        grid-template-columns: 1fr;
    }

    .catalog-shell {
        margin-top: -48px;
        padding: 22px;
    }

    .results-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .items-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .item-image {
        height: 210px;
    }

    .header-actions {
        flex-direction: column;
        width: 100%;
    }

    .header-actions .btn {
        width: 100%;
        text-align: center;
    }

    .modal-content {
        margin: 20px auto;
        width: 95%;
        padding: 20px;
    }

    .modal-main-image {
        height: 300px;
        max-width: 100%;
    }

    .modal-item-name {
        font-size: 1.5rem;
    }

    .modal-item-price {
        font-size: 1.5rem;
    }

    .modal-price-stock {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .draft-summary,
    .ai-assist-header {
        flex-direction: column;
    }

    table {
        font-size: 0.9rem;
    }

    table th,
    table td {
        padding: 8px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 14px;
    }

    header h1 {
        font-size: 1.6rem;
    }

    .store-toolbar {
        padding: 14px;
        border-radius: 16px;
    }

    .store-hero-tags span {
        font-size: 0.8rem;
    }

    .catalog-shell {
        margin-top: -36px;
        padding: 16px;
        border-radius: 20px;
    }

    .items-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .item-image {
        height: 250px;
    }

    .filter-summary {
        width: 100%;
        border-radius: 14px;
    }

    .modal-content {
        margin: 10px;
        width: calc(100% - 20px);
    }

    .modal-main-image {
        height: 250px;
        max-width: 100%;
    }

    .thumbnail-img {
        width: 54px !important;
        height: 54px !important;
        min-width: 54px;
        min-height: 54px;
        max-width: 54px;
        max-height: 54px;
    }

    .modal-item-name {
        font-size: 1.3rem;
    }

    .modal-item-price {
        font-size: 1.3rem;
    }

    .action-buttons,
    .form-actions {
        flex-direction: column;
    }

    .action-buttons .btn,
    .form-actions .btn {
        width: 100%;
    }

    #itemsTable {
        overflow-x: auto;
    }

    table {
        min-width: 600px;
    }

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

@media (max-width: 320px) {
    header h1 {
        font-size: 1.2rem;
    }

    .item-name {
        font-size: 1rem;
    }

    .item-price {
        font-size: 1.2rem;
    }
}
