/* SOLID VERTEX | Technical Excellence & Minimalist Utility 
   Main Stylesheet 
*/

:root { 
    --bg-body: #F3F4F6; 
    --text-main: #1F2937; 
    --accent: #FACC15; 
    --accent-hover: #EAB308;
    --card-bg: #FFFFFF;
    --border-color: #E5E7EB;
}

/* Base Reset */
html, body { 
    font-family: 'Inter', sans-serif; 
    background-color: var(--bg-body); 
    color: var(--text-main); 
    overflow-x: hidden; 
    scroll-behavior: smooth;
}

/* UI Components: Buttons */
.btn-solid { 
    background-color: #111827; 
    color: #FFFFFF; 
    font-weight: 700; 
    text-transform: uppercase; 
    font-size: 13px; 
    padding: 12px; 
    border-radius: 4px; 
    width: 100%; 
    display: flex; 
    justify-content: center; 
    gap: 8px; 
    transition: background-color 0.2s; 
    align-items: center; 
    cursor: pointer; 
    border: none; 
}
.btn-solid:hover:not(:disabled) { background-color: #000000; }
.btn-solid:disabled { background-color: #9CA3AF; cursor: not-allowed; }

.btn-accent { 
    background-color: var(--accent); 
    color: #000000; 
    font-weight: 800; 
    text-transform: uppercase; 
    font-size: 13px; 
    padding: 12px; 
    border-radius: 4px; 
    width: 100%; 
    display: flex; 
    justify-content: center; 
    gap: 8px; 
    transition: background-color 0.2s; 
    align-items: center; 
    cursor: pointer; 
    border: none; 
}
.btn-accent:hover:not(:disabled) { background-color: var(--accent-hover); }
.btn-accent:disabled { background-color: #FEF08A; color: #9CA3AF; cursor: not-allowed; }

/* Layout: Sidebar & Navigation */
.sidebar { 
    position: fixed; 
    top: 0; 
    left: 0; 
    height: 100vh; 
    width: 85%; 
    max-width: 300px; 
    background: #FFFFFF; 
    z-index: 100; 
    transform: translateX(-100%); 
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
    border-right: 1px solid var(--border-color); 
    display: flex; 
    flex-direction: column; 
    overflow-y: auto; 
}
.sidebar.open { transform: translateX(0); }

.overlay { 
    position: fixed; 
    inset: 0; 
    background: rgba(0, 0, 0, 0.5); 
    z-index: 90; 
    opacity: 0; 
    pointer-events: none; 
    transition: opacity 0.3s; 
    backdrop-filter: blur(2px); 
}
.overlay.open { opacity: 1; pointer-events: auto; }

.menu-item { 
    padding: 14px 20px; 
    border-bottom: 1px solid #F3F4F6; 
    cursor: pointer; 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    font-weight: 600; 
    font-size: 14px; 
    transition: 0.2s; 
    color: #374151; 
    user-select: none; 
}
.menu-item:hover { background-color: #FEFCE8; color: #000000; }

.submenu { 
    max-height: 0; 
    opacity: 0; 
    overflow: hidden; 
    background: #F9FAFB; 
    transition: all 0.3s ease-in-out; 
}
.nav-group.open .submenu { max-height: 1200px; opacity: 1; }

.submenu-item {
    padding: 10px 20px 10px 45px;
    font-size: 13px;
    color: #4B5563;
    cursor: pointer;
    transition: 0.2s;
}
.submenu-item:hover { color: #000000; background-color: #F3F4F6; }

/* Product Cards (BEM Structure) */
.product-card { 
    background: var(--card-bg); 
    border: 1px solid var(--border-color); 
    border-radius: 8px; 
    overflow: hidden; 
    display: flex; 
    flex-direction: column; 
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s; 
    height: 100%; 
    position: relative; 
}
.product-card:hover { 
    border-color: #D1D5DB; 
    transform: translateY(-4px); 
    box-shadow: 0 12px 20px -5px rgba(0, 0, 0, 0.1); 
}

.product-card__visual { 
    height: 190px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    padding: 15px; 
    background: #FFFFFF;
}
.product-card__img { 
    max-height: 100%; 
    max-width: 100%; 
    object-fit: contain; 
    mix-blend-mode: multiply; 
}

.product-card__body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-card__brand {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    color: #EAB308;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.product-card__title {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
    line-height: 1.25;
    margin-bottom: 8px;
}

.product-card__sku {
    font-size: 11px;
    color: #9CA3AF;
    margin-bottom: 12px;
}

.product-card__footer {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #F3F4F6;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.product-card__price {
    font-size: 18px;
    font-weight: 900;
    color: #111827;
}

/* Cart & Overlay */
.cart-overlay { 
    position: absolute; 
    inset: 0; 
    background: rgba(0,0,0,0.5); 
    opacity: 0; 
    transition: opacity 0.3s; 
    pointer-events: none; 
}
.cart-overlay.open { opacity: 1; pointer-events: auto; }

.disabled-np { 
    opacity: 0.4; 
    cursor: not-allowed !important; 
    background-color: #F9FAFB; 
}

/* Modals & UI Details */
details > summary { 
    list-style: none; 
    cursor: pointer; 
    font-weight: 700; 
    padding: 15px; 
    background: #F9FAFB; 
    border-bottom: 1px solid var(--border-color); 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}
details > summary::-webkit-details-marker { display: none; }

/* Responsive adjustments */
@media (min-width: 1024px) {
    .sidebar { transform: translateX(0); width: 280px; z-index: 40; }
    .overlay { display: none !important; } 
}

@media (max-width: 640px) {
    .product-card__visual { height: 150px; }
    .product-card__title { font-size: 13px; }
}
/* ==========================================
   SOLID VERTEX | ПРЕМІАЛЬНІ ВІЗУАЛЬНІ ЕФЕКТИ
   (Перекривають базові стилі)
   ========================================== */

/* 1. Соковиті картки товарів (Тіні та заокруглення) */
.product-card { 
    border: 1px solid #F3F4F6; 
    border-radius: 16px; /* Сучасні круглі кути */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05); /* М'яка базова тінь */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
}

/* Ефект "левітації" при наведенні мишки */
.product-card:hover { 
    border-color: var(--accent); /* Рамка стає фірмовою жовтою */
    transform: translateY(-6px); /* Картка підіймається вгору */
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); 
}

/* 2. Анімація фотографії (Легкий зум) */
.product-card__visual { 
    border-radius: 16px 16px 0 0;
    overflow: hidden; /* Щоб фото не вилазило за краї при збільшенні */
}
.product-card__img { 
    transition: transform 0.5s ease; /* Плавність збільшення */
}
.product-card:hover .product-card__img {
    transform: scale(1.12); /* Збільшуємо фото на 12% при наведенні */
}

/* 3. Головна кнопка "Додати" (Світіння та 3D-натискання) */
.btn-accent { 
    border-radius: 8px; 
    transition: all 0.2s ease; 
    box-shadow: 0 4px 14px 0 rgba(250, 204, 21, 0.39); /* Жовте світіння */
}
.btn-accent:hover:not(:disabled) { 
    transform: translateY(-2px); /* Кнопка тягнеться до мишки */
    box-shadow: 0 6px 20px rgba(250, 204, 21, 0.6); /* Світіння посилюється */
}
.btn-accent:active:not(:disabled) {
    transform: translateY(1px); /* Ефект реального фізичного кліку */
    box-shadow: 0 2px 5px rgba(250, 204, 21, 0.3);
}

/* Анімація маленької кнопки з плюсиком на картці */
.product-card .js-add-to-cart {
    border-radius: 8px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.product-card:hover .js-add-to-cart {
    background-color: var(--accent);
    color: #000;
}
.product-card .js-add-to-cart:active {
    transform: scale(0.9);
}

/* 4. Кастомна смуга прокрутки (Замість стандартної сірої) */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #F3F4F6; 
}
::-webkit-scrollbar-thumb {
    background: #D1D5DB; 
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent); /* Жовтий скрол при наведенні мишки */
}