@font-face {
    font-family: 'Jost';
    src: url('/assets/fonts/Jost-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Jost';
    src: url('/assets/fonts/Jost-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

body {
    /* background: url('/assets/bg.jpg') no-repeat center center fixed;*/
    background-size: cover;
    /* color: #222222; */
    color: #000;
    font-family: 'Jost', sans-serif;
    overflow-x: hidden;
    position: relative; /* важно для позиционирования ::before */
}

/* Блюр-оверлей */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background-color: rgb(0 0 0 / 36%); /* полупрозрачный слой */
    background-color: rgb(255, 255, 255);
    backdrop-filter: blur(8px); 
    -webkit-backdrop-filter: blur(8px);
    z-index: 0;
}

/* Всё содержимое страницы поверх ::before */
body > * {
    position: relative;
    z-index: 1;
}


h1, h2, h3,
.btn, .btn-primary, .btn-success,
.category-tabs button {
    font-family: 'Jost', sans-serif;
}

.product-card h3,
.product-info,
.form-group,
.alert,
.form-control,
.cart-table td {
    font-family: 'Jost', sans-serif;
}

body {
    background-color: #000;
    color: #000;
}

h1 {
    text-align: center;
    margin: 20px 0;
    color: #bcd800;
}


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

.row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card {
    background-color: rgba(255, 255, 255, 0.2); /* Прозрачный белый */
    border: 1px solid rgba(255, 255, 255, 0.3); /* Полупрозрачный бордер */
    padding: 7px 12px;
    text-align: center;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); /* Немного сильнее тень для "стекла" */
    backdrop-filter: blur(12px); /* Эффект стекла */
    -webkit-backdrop-filter: blur(12px); /* Для Safari */
    transition: opacity 0.6s ease, transform 0.6s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    opacity: 0; 
    transform: translateY(20px);
    /* height: 285px;*/
    height: 294px;
}

.product-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.product-card:hover {
    background-color: rgba(255, 255, 255, 0.3); /* Чуть ярче при наведении */
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card img {
    max-width: 100%;
    max-height: 180px;
    object-fit: contain;
    margin-bottom: 10px;
}

.product-card h3 {
    font-size: 16px;
    margin: -10px 0 -5px 0;
}

.product-card .product-info {
    font-size: 14px;
    line-height: 0.2;
}

.product-card .btn-primary {
    /* background-color: #690011; */
    background-color: #69001100;
    border: none;
    padding: 8px 16px;
    color: #000;
    text-decoration: none;
    border-radius: 8px;
    border-color: black;
    border: solid;
    transition: background-color 0.3s ease;
    font-weight: bold;
    font-size: 14px;
}

.product-card .btn-primary:hover {
    background-color: #000;
}

.btn-primary {
    background-color: #000;
    border: none;
    padding: 10px 20px;
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.3s ease;
    font-weight: bold;
}

.btn-primary:hover {
    background-color: #000; 
}

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

.form-control {
    padding: 10px;
    font-size: 16px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    color: #222222;
    background-color: #ffffff;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: #690011;
    outline: none;
}

.btn {
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 8px;
    font-weight: bold;
}

.btn-success {
    background-color: #690011;
    border: none;
    color: white;
}

.btn-success:hover {
    background-color: #46000c;
}

.text-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.my-3 {
    margin: 20px 0;
}

.alert {
    padding: 15px;
    margin: 20px 0;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 16px;
}

.alert-success {
    color: #1e3a8a;
    background-color: #e0f2fe;
    border-color: #bae6fd;
}

.alert-error {
    color: #991b1b;
    background-color: #fee2e2;
    border-color: #fecaca;
}

.category-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 15px;
    -webkit-overflow-scrolling: touch; /* Для плавности на мобильных */
}

.category-tabs button {
    border: 1px solid rgba(255, 255, 255, 0.3);
    background-color: rgba(255, 255, 255, 0.15); /* Полупрозрачный фон */
    color: #46000c;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 16px;
    cursor: pointer;
    backdrop-filter: blur(10px); /* Эффект стекла */
    -webkit-backdrop-filter: blur(10px); /* Для Safari */
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.category-tabs button:hover {
    background-color: rgba(255, 255, 255, 0.25); /* Чуть ярче при наведении */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.category-tabs button.active {
    background-color: rgba(105, 0, 17, 0.8); /* Тёмный винный цвет с прозрачностью */
    /* color: #ffffff; */
    color: #000000;
    border-color: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}


.cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    background-color: #f9fafb;
    font-size: 16px;
}

.cart-table th {
    background-color: #000;
    color: #fff;
    padding: 15px;
    text-align: center;
    font-weight: bold;
    border-bottom: 1px solid #ddd;
    font-family: 'Jost', sans-serif;
}

.cart-table td {
    padding: 12px 10px;
    text-align: center;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: middle;
    white-space: nowrap;
    font-size: 14px;
    color: #000000;
}

/* Первое поле — название товара, даём больше места */
.cart-table td:first-child {
    text-align: left;
    max-width: 150px;
    white-space: normal;
    word-wrap: break-word;
}

/* Последнее поле — кнопка удаления */
.cart-table td:last-child {
    text-align: right;
}

.delete-btn {
    background-color: transparent;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease;
    padding: 5px;
}

.delete-btn svg {
    fill: #dc3545;
    width: 24px;
    height: 24px;
}

.delete-btn:hover {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .cart-table td {
        font-size: 12px;
        padding: 8px 5px;
    }
}

.product-card:hover {
    transform: scale(1.15);
    position: relative;
    z-index: 999;
}

.price-section {
    position: relative;
    text-align: center;
    padding: 10px 15px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

h1, h2, h3 {
    font-family: 'Jost', sans-serif;
    font-weight: 300;
}

.btn, .btn-primary, .btn-success,
.category-tabs button {
    font-family: 'Jost', sans-serif;
    font-weight: 400;
}
