/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f8f9fa;
    color: #1a1a2e;
    line-height: 1.6;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    flex-wrap: wrap;
    gap: 12px;
}

.logo a {
    text-decoration: none;
    color: #1a1a2e;
}

.logo h1 {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo span {
    font-size: 14px;
    color: #6c757d;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.main-nav {
    display: flex;
    gap: 20px;
}

.main-nav a {
    text-decoration: none;
    color: #1a1a2e;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.2s;
}

.main-nav a:hover {
    color: #0077b6;
}

.user-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-actions a {
    text-decoration: none;
    color: #1a1a2e;
    font-size: 14px;
}

.btn-login, .btn-register, .btn-logout, .btn-admin {
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-login {
    border: 1px solid #dee2e6;
}

.btn-login:hover {
    background: #f8f9fa;
}

.btn-register {
    background: #1a1a2e;
    color: #fff !important;
}

.btn-register:hover {
    background: #2d2d44;
}

.btn-logout {
    color: #dc3545 !important;
}

.btn-admin {
    background: #0077b6;
    color: #fff !important;
}

.btn-admin:hover {
    background: #006494;
}

.cart-link {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.cart-count {
    background: #dc3545;
    color: #fff;
    border-radius: 50%;
    padding: 2px 8px;
    font-size: 12px;
}

/* Hero Section */
.hero {
    padding: 60px 0;
    background: linear-gradient(135deg, #e8f4f8 0%, #f8f9fa 100%);
}

.hero-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.hero h1 {
    font-size: 48px;
    font-weight: 700;
    letter-spacing: -1px;
    line-height: 1.1;
}

.hero h1 span {
    display: block;
    font-size: 32px;
    font-weight: 400;
    color: #6c757d;
    margin-top: 4px;
}

.hero-subtitle {
    font-size: 28px;
    font-weight: 300;
    color: #2d2d44;
    margin: 16px 0;
}

.hero-description {
    font-size: 18px;
    color: #495057;
    padding-bottom: 30px;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
    margin: 30px 0;
    overflow-anchor: none;
}

.product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 380px;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.product-image {
    position: relative;
    padding-top: 100%;
    background: #f8f9fa;
    flex-shrink: 0;
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.badge.new {
    background: #28a745;
    color: #fff;
}

.badge.popular {
    background: #ffc107;
    color: #1a1a2e;
}

.badge.exclusive {
    background: #6f42c1;
    color: #fff;
}

.product-info {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-info h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    line-height: 1.3;
    min-height: 42px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-category {
    font-size: 13px;
    color: #6c757d;
    margin-bottom: 8px;
    min-height: 20px;
}

.product-volume {
    font-size: 13px;
    color: #6c757d;
    margin-bottom: 8px;
    min-height: 20px;
}

.product-price {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 12px;
    margin-top: auto;
}

.product-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
    flex-shrink: 0;
}

.product-actions .btn {
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    text-align: center;
    width: 100%;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-detail {
    background: #f8f9fa;
    color: #1a1a2e;
    border: 1px solid #dee2e6;
}

.btn-detail:hover {
    background: #e9ecef;
}

.btn-wishlist {
    background: #dc3545;
    color: #fff;
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    text-align: center;
    width: 40%;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-wishlist:hover {
    background: #c82333;
}

.btn-wishlist.in-wishlist {
    background: #28a745;
}

.btn-wishlist.in-wishlist:hover {
    background: #218838;
}

.btn-cart {
    background: #1a1a2e;
    color: #fff;
}

.btn-cart:hover {
    background: #2d2d44;
}

.btn-cart:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Categories */
.categories-section {
    padding: 40px 0;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    margin: 20px 0;
}

.category-item {
    background: #fff;
    padding: 16px;
    border-radius: 8px;
    text-decoration: none;
    color: #1a1a2e;
    text-align: center;
    font-weight: 500;
    transition: all 0.2s;
    border: 1px solid #e9ecef;
}

.category-item:hover {
    background: #1a1a2e;
    color: #fff;
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background: #1a1a2e;
    color: #fff;
    padding: 40px 0 20px;
    margin-top: 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    margin-bottom: 32px;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 12px;
}

.footer-section p {
    color: #adb5bd;
    line-height: 1.8;
    font-size: 14px;
}

.footer-bottom {
    border-top: 1px solid #2d2d44;
    padding-top: 20px;
    text-align: center;
    font-size: 14px;
    color: #adb5bd;
}

/* Slider Section */
.slider-section {
    padding: 40px 0;
    background: #fff;
}

.slider-container {
    position: relative;
    overflow: hidden;
    margin: 20px 0;
}

.slider-track {
    display: flex;
    gap: 40px;
    transition: transform 0.5s ease;
}

.slider-item {
    flex: 0 0 calc(25% - 15px);
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.2s;
    z-index: 10;
}

.slider-btn:hover {
    background: #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.slider-btn.prev {
    left: 8px;
}

.slider-btn.next {
    right: 8px;
}

/* Catalog Page */
.catalog-page {
    padding: 40px 0;
}

.catalog-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 32px;
}

.catalog-sidebar {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    height: fit-content;
}

.catalog-sidebar h3 {
    margin-bottom: 16px;
}

.category-list {
    list-style: none;
}

.category-list li {
    margin-bottom: 4px;
}

.category-list a {
    display: block;
    padding: 8px 12px;
    border-radius: 6px;
    text-decoration: none;
    color: #1a1a2e;
    transition: all 0.2s;
    font-size: 14px;
}

.category-list a:hover {
    background: #f8f9fa;
}

.category-list a.active {
    background: #1a1a2e;
    color: #fff;
}

.catalog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.search-form {
    display: flex;
    gap: 8px;
}

.search-form input {
    padding: 8px 16px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: 14px;
    min-width: 200px;
}

.search-form button {
    padding: 8px 20px;
    background: #1a1a2e;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

/* Auth Pages */
.auth-page {
    padding: 60px 0;
}

.auth-container {
    max-width: 400px;
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.auth-container h1 {
    text-align: center;
    margin-bottom: 24px;
}

.auth-form .form-group {
    margin-bottom: 16px;
}

.auth-link {
    text-align: center;
    margin-top: 16px;
}

.alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 16px;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Form */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1a1a2e;
}

/* Admin */
.admin-page {
    padding: 40px 0;
}

.admin-nav {
    display: flex;
    gap: 12px;
    margin: 20px 0 30px;
    flex-wrap: wrap;
}

.admin-nav a {
    padding: 8px 20px;
    border-radius: 6px;
    text-decoration: none;
    color: #1a1a2e;
    background: #f8f9fa;
    transition: all 0.2s;
}

.admin-nav a:hover {
    background: #e9ecef;
}

.admin-nav a.active {
    background: #1a1a2e;
    color: #fff;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.stat-card {
    background: #fff;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    text-align: center;
}

.stat-card h3 {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 8px;
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
}

.admin-table {
    width: 100%;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border-collapse: collapse;
}

.admin-table th {
    background: #f8f9fa;
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
}

.admin-table td {
    padding: 12px 16px;
    border-top: 1px solid #f8f9fa;
    vertical-align: middle;
}

.admin-product-thumb {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 6px;
}

.admin-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-actions .btn-edit,
.admin-actions .btn-delete {
    padding: 4px 12px;
    font-size: 12px;
    white-space: nowrap;
}

.btn-edit {
    background: #ffc107;
    color: #1a1a2e;
    border: none;
    padding: 6px 14px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}

.btn-edit:hover {
    background: #e0a800;
    transform: translateY(-1px);
}

.btn-delete {
    background: #dc3545;
    color: #fff;
    border: none;
    padding: 6px 14px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}

.btn-delete:hover {
    background: #c82333;
    transform: translateY(-1px);
}

.btn-primary {
    background: #1a1a2e;
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    background: #2d2d44;
    transform: translateY(-1px);
}

/* Responsive */
@media (max-width: 1024px) {
    .slider-item {
        flex: 0 0 calc(33.33% - 14px);
    }
}

@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
        align-items: stretch;
    }
    
    .header-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .main-nav {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .user-actions {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .catalog-layout {
        grid-template-columns: 1fr;
    }
    
    .catalog-sidebar {
        order: 2;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .slider-item {
        flex: 0 0 calc(50% - 10px);
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .slider-item {
        flex: 0 0 100%;
    }
    
    .products-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    
    .product-info h3 {
        font-size: 14px;
    }
    
    .product-price {
        font-size: 16px;
    }
}

/* Cart Page */
.cart-page {
    padding: 40px 0;
}

.cart-item {
    display: grid;
    grid-template-columns: 100px 1fr auto auto auto;
    gap: 40px;
    align-items: center;
    background: #fff;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.cart-item-image img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.cart-item-info h3 {
    font-size: 16px;
}

.cart-item-price {
    font-weight: 600;
    color: #1a1a2e;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-item-quantity .qty-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    font-size: 16px;
}

.cart-item-quantity .qty-input {
    width: 50px;
    text-align: center;
    padding: 4px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
}

.cart-item-total {
    font-weight: 700;
    font-size: 18px;
}

.cart-item-remove {
    background: none;
    border: none;
    font-size: 24px;
    color: #dc3545;
    cursor: pointer;
    padding: 0 8px;
}

.cart-summary {
    background: #fff;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    margin-top: 24px;
    text-align: right;
}

.cart-total {
    font-size: 28px;
    font-weight: 700;
    margin: 16px 0;
}

.btn-checkout {
    background: #28a745;
    color: #fff;
    padding: 12px 32px;
    font-size: 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.btn-checkout:hover {
    background: #218838;
}

.cart-empty {
    text-align: center;
    padding: 60px 0;
}

.cart-empty p {
    font-size: 20px;
    color: #6c757d;
    margin-bottom: 20px;
}

/* Checkout */
.checkout-page {
    padding: 40px 0;
}

.checkout-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
}

.checkout-form {
    background: #fff;
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.checkout-summary {
    background: #fff;
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    height: fit-content;
}

.btn-submit {
    background: #28a745;
    color: #fff;
    padding: 12px 32px;
    font-size: 16px;
    width: 100%;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

.btn-submit:hover {
    background: #218838;
}

.checkout-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f8f9fa;
}

.checkout-total {
    display: flex;
    justify-content: space-between;
    font-size: 20px;
    font-weight: 700;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 2px solid #dee2e6;
}

/* Order Success */
.order-success {
    padding: 60px 0;
}

.success-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.success-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.success-content h1 {
    margin-bottom: 12px;
}

.order-details {
    text-align: left;
    background: #fff;
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    margin: 30px 0;
}

.order-details h3,
.order-details h4 {
    margin-bottom: 16px;
}

.order-info p {
    margin: 8px 0;
}

.order-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
}

.order-table th {
    background: #f8f9fa;
    padding: 10px 12px;
    text-align: left;
    font-weight: 600;
}

.order-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #f8f9fa;
}

.order-table tfoot td {
    font-weight: 700;
    padding-top: 16px;
    border-top: 2px solid #dee2e6;
}

.success-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 20px;
}

.btn-secondary {
    background: #f8f9fa;
    color: #1a1a2e;
}

.btn-secondary:hover {
    background: #e9ecef;
}

/* Product Detail */
.product-detail {
    padding: 40px 0;
}

.product-detail-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.product-detail-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.product-detail-info h1 {
    font-size: 32px;
    margin-bottom: 12px;
}

.product-detail-description {
    margin: 16px 0;
    color: #495057;
    line-height: 1.8;
}

.product-detail-specs {
    margin: 20px 0;
}

.spec-item {
    display: flex;
    padding: 8px 0;
    border-bottom: 1px solid #f8f9fa;
}

.spec-label {
    font-weight: 500;
    width: 120px;
}

.spec-value.price {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a2e;
}

.spec-value.in-stock {
    color: #28a745;
}

.spec-value.out-of-stock {
    color: #dc3545;
}

.product-detail-actions {
    margin-top: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 8px;
}

.qty-btn {
    width: 36px;
    height: 36px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    background: #fff;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s;
}

.qty-btn:hover {
    background: #f8f9fa;
}

.qty-input {
    width: 60px;
    text-align: center;
    padding: 8px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: 16px;
}

@media (max-width: 768px) {
    .product-detail-layout {
        grid-template-columns: 1fr;
        padding: 20px;
    }
    
    .product-detail-info h1 {
        font-size: 24px;
    }
}

/* Wishlist */
.wishlist-link {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    text-decoration: none;
    color: #1a1a2e;
}

.wishlist-count {
    background: #dc3545;
    color: #fff;
    border-radius: 50%;
    padding: 2px 8px;
    font-size: 12px;
}

.btn-wishlist {
    background: #dc3545;
    color: #fff;
}

.btn-wishlist:hover {
    background: #c82333;
}

.btn-wishlist.in-wishlist {
    background: #28a745;
}

.btn-wishlist.in-wishlist:hover {
    background: #218838;
}

.btn-call {
    background: #007bff;
    color: #fff;
    padding: 14px 32px;
    font-size: 18px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin: 0 auto;
}

.btn-call:hover {
    background: #0056b3;
}

/* Wishlist Page */
.wishlist-page {
    padding: 40px 0;
}

.wishlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 30px;
    margin-bottom: 80px;
}

.wishlist-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 380px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.wishlist-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.wishlist-item-image {
    padding-top: 100%;
    position: relative;
    background: #f8f9fa;
    flex-shrink: 0;
}

.wishlist-item-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wishlist-item-info {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.wishlist-item-info h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    line-height: 1.3;
    min-height: 42px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.wishlist-item-info h3 a {
    text-decoration: none;
    color: #1a1a2e;
}

.wishlist-item-info h3 a:hover {
    color: #0077b6;
}

.wishlist-item-price {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 12px;
    margin-top: auto;
}

.wishlist-item-info .btn {
    margin-top: 8px;
    flex-shrink: 0;
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.wishlist-order {
    background: #fff;
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    margin-top: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.wishlist-order h2 {
    margin-bottom: 12px;
    text-align: center;
}

.wishlist-empty {
    text-align: center;
    padding: 60px 0;
}

.wishlist-order p {
    text-align: center;
    color: #6c757d;
    margin-bottom: 20px;
}

.wishlist-item-info .btn {
    margin-top: 8px;
    flex-shrink: 0;
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Modal */
.modal {
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 28px;
    font-weight: 700;
    color: #6c757d;
    cursor: pointer;
}

.modal-close:hover {
    color: #1a1a2e;
}

/* ============================================
   АДАПТИВНОСТЬ
   ============================================ */

/* Главная - карточки популярных товаров */
@media (max-width: 1024px) {
    .slider-item {
        flex: 0 0 calc(33.33% - 14px);
    }
}

@media (max-width: 768px) {
    .slider-item {
        flex: 0 0 calc(50% - 10px);
    }
}

@media (max-width: 480px) {
    .slider-item {
        flex: 0 0 100%;
    }
}

/* Новинки - адаптивная сетка */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin: 30px 0;
    overflow-anchor: none;
}

@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

/* Карточка товара на мобильных */
@media (max-width: 768px) {
    .product-card {
        border-radius: 8px;
        min-height: 300px;
    }
    
    .product-info {
        padding: 12px;
    }
    
    .product-info h3 {
        font-size: 14px;
        margin-bottom: 2px;
        min-height: 36px;
    }
    
    .product-category {
        font-size: 11px;
        margin-bottom: 4px;
    }
    
    .product-price {
        font-size: 16px;
    }
    
    .product-actions {
        flex-direction: column;
        gap: 6px;
    }
    
    .product-actions .btn {
        padding: 6px 10px;
        font-size: 12px;
        width: 100%;
        text-align: center;
        min-height: 36px;
    }
}

/* Кнопка "Показать больше" */
.btn-show-more {
    display: block;
    width: 100%;
    padding: 14px;
    background: #f8f9fa;
    color: #1a1a2e;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    margin: 20px 0;
}

.btn-show-more:hover {
    background: #e9ecef;
    border-color: #1a1a2e;
}

/* Желаемое - адаптивная сетка */
.wishlist-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin: 30px 0;
}

@media (max-width: 1024px) {
    .wishlist-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .wishlist-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .wishlist-item {
        min-height: 250px;
    }
    
    .wishlist-item-info h3 {
        font-size: 14px;
        min-height: 36px;
    }
    
    .wishlist-item-price {
        font-size: 15px;
    }
}

/* Контакты - адаптив */
@media (max-width: 768px) {
    .contacts-page .contacts-content {
        grid-template-columns: 1fr !important;
    }
}

/* Модальное окно - центрирование */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex !important;
}

.modal-content {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    margin: auto;
}

/* Страница товара - кнопка назад */
.back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: #6c757d;
    text-decoration: none;
    font-size: 14px;
}

.back-link:hover {
    color: #1a1a2e;
}

@media (max-width: 768px) {
    .product-detail-layout {
        padding: 16px;
    }
    
    .product-detail-info h1 {
        font-size: 22px;
    }
    
    .spec-item {
        flex-direction: column;
        padding: 6px 0;
    }
    
    .spec-label {
        width: 100%;
    }
}

/* Для планшетов и десктопов - кнопки в ряд */
@media (min-width: 769px) {
    .product-actions {
        flex-direction: column;
    }
    
    .product-actions .btn {
        flex: 1;
        min-height: 40px;
    }
}

/* Слайдер на странице товара */
.product-detail-image .slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
    background: #f8f9fa;
}

.product-detail-image .slider-main {
    position: relative;
    width: 100%;
    padding-top: 100%;
}

.product-detail-image .slider-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.product-detail-image .slider-slide.active {
    opacity: 1;
}

.product-detail-image .slider-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.slider-btn-prev,
.slider-btn-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.8);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn-prev:hover,
.slider-btn-next:hover {
    background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.slider-btn-prev {
    left: 12px;
}

.slider-btn-next {
    right: 12px;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 12px 0;
}

.slider-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #dee2e6;
    cursor: pointer;
    transition: all 0.2s;
}

.slider-dots .dot.active {
    background: #1a1a2e;
    width: 24px;
    border-radius: 4px;
}

.slider-dots .dot:hover {
    background: #6c757d;
}

/* Бейджи в админке */
.status-in {
    color: #28a745;
    font-weight: 600;
}

.status-out {
    color: #dc3545;
    font-weight: 600;
}

.badge-new {
    background: #28a745;
    color: #fff;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.badge-popular {
    background: #ffc107;
    color: #1a1a2e;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

/* ============================================
   ВИДЕО СЕКЦИЯ
   ============================================ */
.video-section {
    padding: 60px 0;
    background: #f8f9fa;
}

.video-section h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 32px;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

@media (max-width: 768px) {
    .video-section {
        padding: 30px 0;
    }
    
    .video-section h2 {
        font-size: 24px;
    }
}

.catalog-page,
.new-products,
.container {
    overflow-anchor: none;
}

/* Категории - чекбоксы */
.categories-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 0;
}

.category-checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #f8f9fa;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
    border: 1px solid #dee2e6;
}

.category-checkbox:hover {
    background: #e9ecef;
}

.category-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.category-checkbox input[type="checkbox"]:checked + span {
    font-weight: 600;
}

.category-checkbox:has(input:checked) {
    background: #e8f4f8;
    border-color: #0077b6;
}