/* --- style.css --- */
* { box-sizing: border-box; }

body { 
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; 
    background-color: #fff; 
    color: #000; 
    margin: 0; padding: 0; line-height: 1.5;
}

.container { max-width: 1000px; margin: 0 auto; padding: 40px 20px; }

/* ШАПКА */
header { text-align: center; margin-bottom: 60px; border-bottom: 4px solid #000; padding-bottom: 30px; }
header.home-header { border-bottom: none; margin-bottom: 80px; } /* Без лінії на головній */

h1 { text-transform: uppercase; letter-spacing: 1px; font-size: 28px; margin: 0 0 15px 0; font-weight: 900; }
.subtitle { color: #444; font-size: 16px; max-width: 700px; margin: 0 auto; }
.instructions { font-size: 14px; color: #555; }

/* НАВІГАЦІЯ */
.nav-back { 
    display: inline-block; margin-bottom: 30px; text-decoration: none; 
    color: #000; font-weight: bold; border-bottom: 2px solid #000; 
    padding-bottom: 2px; font-size: 14px; text-transform: uppercase;
}
.nav-back:hover { opacity: 0.7; }

/* ГОЛОВНА: КАТЕГОРІЇ */
.category-grid { display: grid; grid-template-columns: 1fr; gap: 30px; }
@media (min-width: 768px) { .category-grid { grid-template-columns: 1fr 1fr; } }

.cat-card {
    border: 4px solid #000; padding: 40px; text-decoration: none; color: #000;
    transition: all 0.3s ease; display: flex; flex-direction: column;
    justify-content: space-between; min-height: 280px; background-color: #fff;
}
.cat-card:hover { background-color: #000; color: #fff; transform: translateY(-5px); }
.cat-icon { font-size: 48px; margin-bottom: 25px; display: block; }
.cat-title { font-size: 22px; font-weight: 800; margin-bottom: 15px; text-transform: uppercase; }
.cat-desc { font-size: 15px; margin-bottom: 30px; opacity: 0.9; }
.arrow { text-align: right; font-size: 32px; font-weight: bold; line-height: 1; }

/* ТОВАРИ */
#searchBox { width: 100%; padding: 15px; border: 3px solid #000; font-size: 16px; margin-bottom: 40px; font-weight: bold; }

.product-card {
    border: 3px solid #000; padding: 25px; margin-bottom: 25px;
    display: flex; flex-direction: column; gap: 20px; background: #fff;
}
@media (min-width: 768px) {
    .product-card { flex-direction: row; align-items: center; justify-content: space-between; }
    .product-info { flex: 1; margin-right: 40px; }
    .product-actions { width: 280px; flex-shrink: 0; }
}

.title { font-size: 20px; font-weight: 900; margin: 0 0 8px 0; text-decoration: underline; }
.desc { font-size: 15px; margin-bottom: 12px; color: #333; }
.price { font-size: 18px; font-weight: bold; background: #000; color: #fff; display: inline-block; padding: 4px 8px; }

/* ЕЛЕМЕНТИ УПРАВЛІННЯ */
.agreement-block {
    margin-bottom: 15px; font-size: 13px; display: flex; align-items: center;
    border: 1px solid #ddd; padding: 10px; background: #f9f9f9;
}
.agreement-block input { margin-right: 10px; transform: scale(1.3); cursor: pointer; }
.agreement-block label { cursor: pointer; user-select: none; }
.agreement-block a { color: #000; text-decoration: underline; font-weight: bold; }

.btn-group { transition: opacity 0.3s; }
.btn-group.disabled { opacity: 0.4; pointer-events: none; }

.btn-main {
    display: block; width: 100%; background-color: #000; color: #fff;
    text-align: center; padding: 16px 10px; text-decoration: none;
    font-weight: bold; text-transform: uppercase; border: 2px solid #000;
    cursor: pointer; font-size: 15px; transition: all 0.2s; line-height: 1.2;
}
.btn-main:hover { background-color: #333; border-color: #333; }

/* ПІДВАЛ */
footer { margin-top: 100px; text-align: center; color: #000; border-top: 4px solid #000; padding-top: 50px; padding-bottom: 50px; }
footer p, footer div { font-size: 14px; line-height: 1.6; margin-bottom: 15px; }
.footer-legal { margin-bottom: 30px; font-weight: bold; text-transform: uppercase; letter-spacing: 1px; }
.footer-legal a { color: #000; text-decoration: none; margin: 0 15px; border-bottom: 2px solid transparent; transition: border-bottom 0.3s; }
.footer-legal a:hover { border-bottom: 2px solid #000; }
.footer-disclaimer { max-width: 800px; margin: 0 auto 40px auto; text-align: justify; text-align-last: center; color: #333; }
.footer-contacts { margin-bottom: 40px; border-top: 1px solid #ddd; padding-top: 30px; max-width: 600px; margin-left: auto; margin-right: auto; }
.contact-row { margin-bottom: 10px; }
.footer-contacts a { color: #000; text-decoration: none; font-weight: bold; border-bottom: 1px solid #ccc; }
.footer-contacts a:hover { background-color: #000; color: #fff; border-color: #000; }
.copyright { font-size: 13px; color: #666; margin-top: 20px; }
/* =========================================
   СТИЛІ ДЛЯ ФОРМИ В ПІДВАЛІ (FOOTER FORM)
   ========================================= */

.footer-mini-form {
    max-width: 400px;       /* Обмеження ширини */
    margin: 30px auto;      /* Центрування */
    padding-top: 20px;
    border-top: 1px solid #ddd; /* Тонка лінія зверху */
    text-align: center;
}

.footer-mini-form h3 {
    font-size: 16px;
    text-transform: uppercase;
    margin-bottom: 15px;
    font-weight: bold;
    letter-spacing: 0.5px;
}

/* Поля вводу */
.mini-input, .mini-textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc; /* Акуратна рамка */
    background-color: #fff;
    font-size: 14px;
    font-family: inherit;
    box-sizing: border-box; /* Щоб рамка не розпирала ширину */
    outline: none;
}

.mini-input:focus, .mini-textarea:focus {
    border-color: #000;     /* При натисканні рамка чорніє */
}

.mini-textarea {
    height: 80px;           /* Невисоке поле для тексту */
    resize: vertical;       /* Можна розтягувати вниз */
}

/* Кнопка */
.btn-mini {
    width: 100%;
    background-color: #000;
    color: #fff;
    border: none;
    padding: 12px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    font-size: 13px;
    transition: opacity 0.2s;
}

.btn-mini:hover {
    opacity: 0.8;           /* Ефект при наведенні */
}