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

:root {
    --color-primary: #1a1a1a;
    --color-secondary: #4a4a4a;
    --color-accent: #2563eb;
    --color-white: #ffffff;
    --color-gray-50: #f9fafb;
    --color-gray-100: #f3f4f6;
    --color-gray-200: #e5e7eb;
    --color-gray-300: #d1d5db;
    --color-gray-600: #4b5563;
    --color-gray-700: #374151;
    --color-success: #10b981;
    --color-error: #ef4444;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --border-radius: 4px;
    --transition: all 0.2s ease;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-primary);
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Header */
.header {
    background: var(--color-white);
    border-bottom: 1px solid var(--color-gray-200);
    padding: var(--spacing-md) 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-lg);
}

.logo a {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.logo-img {
    height: 32px;
    width: auto;
    display: block;
}

.nav {
    display: flex;
    gap: var(--spacing-lg);
}

.nav-link {
    color: var(--color-secondary);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: var(--transition);
    font-weight: 500;
}

.nav-link:hover {
    color: var(--color-primary);
}

/* Hero Section */
.hero {
    padding: var(--spacing-xl) 0;
    text-align: center;
    background: url('../css/main-image.jpg') center center / cover no-repeat;
    border-bottom: 1px solid var(--color-gray-200);
    position: relative;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 769px) {
    .hero {
        min-height: 440px;
    }
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    letter-spacing: -0.03em;
    color: var(--color-white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--color-white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Catalog Section */
.catalog {
    padding: var(--spacing-xl) 0;
}

.catalog-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: var(--spacing-xl);
}

/* Categories Sidebar */
.categories-sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
}

/* Filter Sidebar */
.filters-sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
    width: 280px;
    padding-right: var(--spacing-md);
}

.filter-group {
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--color-gray-200);
}

.filter-group:last-child {
    border-bottom: none;
}

.search-box {
    width: 100%;
    padding: var(--spacing-sm);
    border: 1px solid var(--color-gray-300);
    border-radius: 6px;
    font-size: 0.9375rem;
    transition: border-color 0.2s ease;
}

.search-box:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.filter-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 6px 0;
    user-select: none;
    margin-bottom: 8px;
}

.filter-checkbox input[type="radio"],
.filter-checkbox input[type="checkbox"] {
    margin-right: 8px;
    cursor: pointer;
    accent-color: var(--color-accent);
}

.filter-checkbox span {
    font-size: 0.9375rem;
    color: var(--color-secondary);
}

.filter-checkbox input:checked + span {
    color: var(--color-accent);
    font-weight: 500;
}

.filter-select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--color-gray-300);
    border-radius: 6px;
    font-size: 0.9375rem;
    background-color: white;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.filter-select:hover {
    border-color: var(--color-gray-400);
}

.filter-select:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.price-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
}

.price-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--color-gray-300);
    border-radius: 6px;
    font-size: 0.9375rem;
}

.price-input:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.products-header {
    margin-bottom: 20px;
    font-size: 0.95rem;
    color: var(--color-secondary);
    font-weight: 500;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--color-gray-200);
}

.pag-btn,
.pag-current {
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.pag-btn {
    background: var(--color-gray-100);
    color: var(--color-primary);
    text-decoration: none;
    border: 1px solid var(--color-gray-300);
    cursor: pointer;
}

.pag-btn:hover {
    background: var(--color-accent);
    color: white;
    border-color: var(--color-accent);
}

.pag-current {
    background: var(--color-accent);
    color: white;
    border: 1px solid var(--color-accent);
}

.empty-state {
    grid-column: 1 / -1;
    padding: 60px 20px;
    text-align: center;
    color: var(--color-secondary);
    font-size: 1.1rem;
}

/* Product card rating and capacity styles */
.product-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 8px 0;
    font-size: 0.85rem;
}

.stars {
    color: #fbbf24;
    letter-spacing: 1px;
}

.rating-count {
    color: var(--color-gray-600);
    font-size: 0.8rem;
}

.product-capacity {
    font-size: 0.85rem;
    color: var(--color-secondary);
    margin: 4px 0;
}

.sidebar-title {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-secondary);
    margin-bottom: var(--spacing-md);
}

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

.category-list li {
    margin-bottom: var(--spacing-xs);
}

.category-link {
    display: block;
    padding: var(--spacing-sm);
    color: var(--color-secondary);
    text-decoration: none;
    border-radius: var(--border-radius);
    font-size: 0.9375rem;
}

.category-link:hover {
    color: var(--color-primary);
}

.category-link.active {
    color: var(--color-primary);
    font-weight: 600;
}

/* Products Grid */
.products-container {
    min-height: 400px;
}

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

.product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.product-card-link {
    text-decoration: none;
    color: inherit;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card-link:hover,
.product-card-link:visited,
.product-card-link:active {
    color: inherit;
    text-decoration: none;
}

.product-actions {
    padding: 0 24px 24px;
    position: relative;
    z-index: 2;
}

.product-image {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f8f8 0%, #e8e8e8 100%);
    z-index: 0;
}
.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 0.875rem;
}

.product-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.product-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;

.product-location {
    font-size: 0.9rem;
    color: #666;
    margin-top: 4px;
}
    line-height: 1.3;
}

.product-price {
    font-size: 1.375rem;
    font-weight: 700;
    color: #111;
    margin: 0;
}

.product-price-request {
    font-size: 1.125rem;
    color: #666;
    font-weight: 600;
}

.product-description {
    color: #666;
    font-size: 0.9375rem;
    line-height: 1.6;
    margin: 0;
}

/* Remove all link styling inside cards */
.product-card a,
.product-card a:link,
.product-card a:visited,
.product-card a:hover,
.product-card a:active {
    color: inherit;
    text-decoration: none;
}

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

.product-actions .btn {
    display: block;
    width: 100%;
    text-align: center;
    background: #111 !important;
    color: #fff !important;
    border: none;
    padding: 14px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    cursor: pointer;
}

.product-actions .btn:hover {
    background: #000;
}

/* Product Detail Page */
.product-detail {
    padding: 40px 0;
}

.product-detail .container {
    max-width: 1100px;
}

.breadcrumb {
    margin-bottom: var(--spacing-xl);
    font-size: 0.875rem;
    color: var(--color-secondary);
}

.breadcrumb a {
    color: #666;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: #111;
}

.product-detail-layout {
    display: flex;
    gap: 60px;
    margin-bottom: 80px;
    align-items: flex-start;
}

.product-detail-image {
    flex-shrink: 0;
    width: 450px;
    max-width: 450px;
}

.product-detail-image img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

.product-image-placeholder-large {
    position: relative;
    width: 100%;
    padding-bottom: 75%;
    background: linear-gradient(135deg, #f8f8f8 0%, #e8e8e8 100%);
    border-radius: 10px;
    overflow: hidden;
}

.product-image-placeholder-large span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #999;
    font-size: 1rem;
    font-weight: 500;
}

.product-detail-info {
    flex: 1;
    min-width: 0;
    max-width: 540px;
}

.product-category {
    font-size: 0.8125rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
    font-weight: 500;
}

.product-detail-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.15;
    color: #111;
    letter-spacing: -0.02em;
}

.product-detail-price {
    font-size: 2rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 32px;
}

.product-detail-short-desc {
    font-size: 1.0625rem;
    color: #666;
    margin-bottom: 40px;
    line-height: 1.7;
}

.product-detail-actions {
    margin-bottom: var(--spacing-xl);
}

.product-detail-description {
    padding-top: 64px;
    border-top: 1px solid #e5e5e5;
    max-width: 800px;
}

.product-detail-description h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-weight: 700;
    color: #111;
}

.product-detail-description p {
    line-height: 1.8;
    color: #666;
    font-size: 1rem;
}

.related-products {
    margin-top: 100px;
    padding-top: 80px;
    border-top: 1px solid #e5e5e5;
}

.related-products h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 48px;
    color: #111;
}

.related-products .section-title {
    text-align: left;
    margin-bottom: calc(var(--spacing-xl) * 1.5);
}

/* Product Gallery Slider - COMPLETE REWRITE */
.product-detail-gallery-wrapper {
    flex-shrink: 0;
    width: 420px;
}

.product-gallery-slider {
    width: 100%;
}

.gallery-slider-container {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    background: #f5f5f5;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 10px;
}

.gallery-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-slide.active {
    opacity: 1;
}

.gallery-slide img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.gallery-nav:hover {
    background: rgba(0, 0, 0, 0.8);
}

.gallery-nav.prev {
    left: 8px;
}

.gallery-nav.next {
    right: 8px;
}

.gallery-dots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 8px;
}

.gallery-dot {
    position: relative;
    padding-bottom: 100%;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 6px;
    overflow: hidden;
    opacity: 0.4;
    transition: all 0.2s;
}

.gallery-dot:hover {
    opacity: 0.7;
}

.gallery-dot.active {
    opacity: 1;
    border-color: #111;
}

.gallery-dot img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-no-image {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    background: linear-gradient(135deg, #f5f5f5 0%, #e5e5e5 100%);
    border-radius: 8px;
}

.product-no-image span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #999;
    font-size: 0.9rem;
}

.gallery-navigation {
    opacity: 0.75;
}

.thumbnail.active {
    border-color: #111;
    opacity: 1;
}

.thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-navigation {
    display: none;
}

.empty-state {
    text-align: center;
    padding: var(--spacing-xl);
    color: var(--color-secondary);
}

/* Contact Section */
.contact {
    padding: var(--spacing-xl) 0;
    background: var(--color-gray-50);
    border-top: 1px solid var(--color-gray-200);
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    max-width: 900px;
    margin: 0 auto var(--spacing-lg);
}

.contact-item {
    text-align: center;
}

.contact-label {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-secondary);
    margin-bottom: var(--spacing-xs);
}

.contact-value {
    font-size: 1.125rem;
    font-weight: 600;
}

.contact-value a {
    color: var(--color-primary);
    text-decoration: none;
}

.contact-value a:hover {
    color: var(--color-accent);
}

.contact-cta {
    text-align: center;
    margin-top: var(--spacing-xl);
}

/* Footer */
.footer {
    padding: var(--spacing-lg) 0;
    text-align: center;
    border-top: 1px solid var(--color-gray-200);
    color: var(--color-secondary);
    font-size: 0.875rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--border-radius);
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background: var(--color-primary);
    color: var(--color-white);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #2a2a2a;
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--color-white);
    color: var(--color-primary);
    border: 1px solid var(--color-gray-300);
}

.btn-secondary:hover {
    background: var(--color-gray-50);
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
    border-radius: 6px;
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1rem;
}

.btn-block {
    display: block;
    width: 100%;
}

/* Floating Contact Buttons */
.floating-contacts {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
}

.contact-float {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s, box-shadow 0.2s;
}

.contact-float:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

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

.whatsapp-float:hover {
    background: #20ba5a;
}

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

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

.contact-float svg {
    width: 32px;
    height: 32px;
}


/* Admin Styles */
.admin-body {
    background: var(--color-gray-100);
}

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

.admin-sidebar {
    width: 250px;
    background: var(--color-white);
    border-right: 1px solid var(--color-gray-200);
    padding: var(--spacing-lg);
}

.admin-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-xl);
}

.admin-logo img {
    height: 28px;
    width: auto;
    display: block;
}

.admin-logo h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
}

.admin-nav {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.admin-nav-link {
    padding: var(--spacing-sm) var(--spacing-md);
    color: var(--color-secondary);
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: var(--transition);
    font-weight: 500;
}

.admin-nav-link:hover {
    background: var(--color-gray-100);
    color: var(--color-primary);
}

.admin-nav-link.active {
    background: var(--color-primary);
    color: var(--color-white);
}

.admin-nav-logout {
    margin-top: var(--spacing-lg);
    color: var(--color-error);
}

.admin-nav-logout:hover {
    background: #fee;
}

.admin-main {
    flex: 1;
    padding: var(--spacing-xl);
}

.admin-content {
    max-width: 1200px;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
}

.page-title {
    font-size: 1.875rem;
    font-weight: 700;
}

/* Dashboard */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.stat-card {
    background: var(--color-white);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    border: 1px solid var(--color-gray-200);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
}

.stat-label {
    color: var(--color-secondary);
    margin-bottom: var(--spacing-sm);
}

.stat-link {
    color: var(--color-accent);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
}

.stat-link:hover {
    text-decoration: underline;
}

.dashboard-actions h2 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-md);
}

.action-buttons {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

/* Forms */
.form-container {
    background: var(--color-white);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    border: 1px solid var(--color-gray-200);
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 600;
    font-size: 0.9375rem;
}

.form-control {
    width: 100%;
    padding: 0.625rem;
    border: 1px solid var(--color-gray-300);
    border-radius: var(--border-radius);
    font-size: 0.9375rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

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

.form-group small {
    display: block;
    margin-top: var(--spacing-xs);
    color: var(--color-secondary);
    font-size: 0.8125rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    cursor: pointer;
}

.form-actions {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-lg);
}

/* Tables */
.table-container {
    background: var(--color-white);
    border-radius: var(--border-radius);
    border: 1px solid var(--color-gray-200);
    overflow: hidden;
}

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

.admin-table thead {
    background: var(--color-gray-50);
}

.admin-table th {
    padding: var(--spacing-sm) var(--spacing-md);
    text-align: left;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-secondary);
    border-bottom: 1px solid var(--color-gray-200);
}

.admin-table td {
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--color-gray-200);
}

.admin-table tbody tr:hover {
    background: var(--color-gray-50);
}

.admin-table .actions {
    white-space: nowrap;
}

.btn-link {
    color: var(--color-accent);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    margin-right: var(--spacing-sm);
}

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

.btn-link-danger {
    color: var(--color-error);
}

.table-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--border-radius);
}

/* Product Images Grid in Admin */
.product-images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.product-image-item {
    position: relative;
    border: 2px solid var(--color-gray-200);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: border-color 0.2s;
}

.product-image-item.is-main {
    border-color: #10b981;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.product-image-item img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
}

.image-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 6px;
    opacity: 0;
    transition: opacity 0.2s;
}

.product-image-item:hover .image-controls {
    opacity: 1;
}

.main-image-radio {
    display: flex;
    align-items: center;
    gap: 6px;
    color: white;
    font-size: 0.75rem;
    cursor: pointer;
    padding: 4px;
    border-radius: 3px;
    background: rgba(16, 185, 129, 0.3);
}

.main-image-radio input {
    cursor: pointer;
}

.main-image-radio:has(input:checked) {
    background: rgba(16, 185, 129, 0.6);
    font-weight: 600;
}

.delete-image-checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
    color: white;
    font-size: 0.75rem;
    cursor: pointer;
    padding: 4px;
    border-radius: 3px;
    background: rgba(239, 68, 68, 0.3);
}

.delete-image-checkbox input {
    cursor: pointer;
}

.delete-image-checkbox:has(input:checked) {
    background: rgba(239, 68, 68, 0.6);
}

.image-order {
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
}

.form-help {
    font-size: 0.875rem;
    color: var(--color-secondary);
    margin-top: var(--spacing-sm);
}

.text-muted {
    color: var(--color-secondary);
    font-size: 0.875rem;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-success {
    background: #d1fae5;
    color: #065f46;
}

.badge-inactive {
    background: var(--color-gray-200);
    color: var(--color-gray-700);
}

/* Alerts */
.alert {
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    margin-bottom: var(--spacing-lg);
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid var(--color-error);
}

/* Login */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-gray-100);
}

.login-box {
    background: var(--color-white);
    padding: var(--spacing-xl);
    border-radius: var(--border-radius);
    border: 1px solid var(--color-gray-200);
    width: 100%;
    max-width: 400px;
}

.login-title {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    font-size: 1.5rem;
}

.login-form {
    margin-bottom: var(--spacing-md);
}

.login-footer {
    text-align: center;
}

.login-footer a {
    color: var(--color-accent);
    text-decoration: none;
    font-size: 0.875rem;
}

.login-footer a:hover {
    text-decoration: underline;
}

.settings-info {
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-xl);
    border-top: 1px solid var(--color-gray-200);
}

.settings-info h3 {
    margin-bottom: var(--spacing-md);
}

.settings-info ul {
    list-style-position: inside;
    color: var(--color-secondary);
}

.settings-info li {
    margin-bottom: var(--spacing-xs);
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .catalog-layout {
        grid-template-columns: 1fr;
    }
    
    .categories-sidebar {
        position: static;
    }
    
    .category-list {
        display: flex;
        flex-wrap: wrap;
        gap: var(--spacing-xs);
    }
    
    .category-link {
        padding: var(--spacing-xs) var(--spacing-md);
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .header-content {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    .nav {
        gap: var(--spacing-md);
    }
    
    .admin-layout {
        flex-direction: column;
    }
    
    .admin-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--color-gray-200);
    }
    
    .admin-nav {
        flex-direction: row;
        overflow-x: auto;
    }
    
    .hero-title {
        font-size: 1.875rem;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    .floating-contacts {
        bottom: 20px;
        right: 20px;
        gap: 12px;
    }
    
    .contact-float {
        width: 50px;
        height: 50px;
    }
    
    .contact-float svg {
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 480px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-float svg {
        width: 26px;
        height: 26px;
    }
}

/* Minimal Modal (shared) */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: #fff;
    width: 100%;
    max-width: 560px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    overflow: hidden;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
}

.modal-header h3 { margin: 0; font-size: 1.1rem; }
.modal-close { background: transparent; border: none; font-size: 1.4rem; cursor: pointer; }

.form-row { padding: 14px 20px; }
.form-row label { display:block; font-weight:500; margin-bottom:8px; }
.form-row input,
.form-row select,
.form-row textarea { width:100%; padding:10px 12px; border:1px solid var(--color-gray-300); border-radius:8px; font-size:0.95rem; }
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus { outline:none; border-color:#2563eb; box-shadow:0 0 0 3px rgba(37,99,235,0.1); }

.modal-actions { display:flex; gap:10px; padding: 12px 20px 20px; }
