    /* =========================
       RESET
    ========================= */

    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    body {
        font-family: Arial, sans-serif;
        background: #f4f5f7;
        position: relative;
    }

    /* =========================
       NAVBAR
    ========================= */

    .navbar {
        background: white;

        padding: 10px 45px;

        display: flex;
        align-items: center;
        gap: 20px;

        position: relative;
        z-index: 10;

        margin: 15px 50px 0 50px;

        border-radius: 24px 24px 0 0;

        box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    }

    .logo {
        font-size: 33px;
        font-weight: bold;

        color: black;

        margin-right: 10px;
        min-width: 100px;

        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* =========================
       SEARCH
    ========================= */

    .search-box {
        flex: 1;
    }

    .search-box input {
        width: 100%;
        padding: 14px;

        border: 1px solid #ddd;
        border-radius: 12px;

        font-size: 16px;
    }

    /* =========================
       NAV LINKS
    ========================= */

    .nav-links {
        display: flex;
        gap: 20px;
    }

    .nav-links a {
        text-decoration: none;
        color: black;
        font-weight: 500;
    }

    /* =========================
       9 DOTS BUTTON
    ========================= */

    .menu-dots {
        width: 42px;
        height: 42px;

        background: rgba(255,255,255,0.15);
        border: none;
        border-radius: 10px;

        cursor: pointer;

        position: relative;
    }

    /* 9 dots */
    .menu-dots::after {
        content: "";
        width: 6px;
        height: 6px;
        background: white;
        border-radius: 2px;

        position: absolute;
        top: 9px;
        left: 9px;

        box-shadow:
            10px 0 white,
            20px 0 white,

            0 10px white,
            10px 10px white,
            20px 10px white,

            0 20px white,
            10px 20px white,
            20px 20px white;
    }

    /* =========================
       HERO SEARCH
    ========================= */

    .hero-search {
        margin: -5px 50px 0 50px;

        background: linear-gradient(to right, #111, #2b2b2b);

        padding: 18px 25px;

        color: white;

        position: relative;
        z-index: 5;

        border-radius: 0 0 24px 24px;

        border: 1.5px solid rgba(255, 180, 0, 0.75);

        box-shadow: 0 0 12px rgba(255, 180, 0, 0.10);
    }

    .hero-search h2 {
        margin-bottom: 15px;
        font-size: 24px;
    }

    /* =========================
       QUICK TAGS
    ========================= */

    .quick-tags {
        display: flex;
        gap: 12px;
        flex-wrap: wrap;
    }

    .quick-tags button {
        background: rgba(255,255,255,0.12);
        color: white;

        border: none;
        padding: 10px 18px;

        border-radius: 12px;

        cursor: pointer;

        transition: 0.3s;
    }

    .quick-tags button:hover {
        background: rgba(255,255,255,0.22);
    }

    /* =========================
       PRODUCTS
    ========================= */

    .products-container {
        padding: 30px 50px;

        display: grid;

        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));

        gap: 20px;

        max-width: 1500px;
        margin: 0 auto;
    }

    /* карточка товара */
    .product-card {
        background: white;

        border-radius: 20px;

        padding: 20px;

        box-shadow: 0 2px 10px rgba(0,0,0,0.08);

        display: flex;
        flex-direction: column;

        min-height: 380px;

        transition: 0.3s;

        overflow: hidden;
    }
    .price-row {
        display: flex;
        align-items: center;

        width: 100%;

        margin-bottom: 15px;
    }

    .favorite-top {
        margin-left: auto;

        width: 48px;
        height: 48px;

        border: none;

        border-radius: 14px;

        background: #f3f3f3;

        cursor: pointer;

        font-size: 0;

        display: flex;
        align-items: center;
        justify-content: center;

        transition: 0.25s;

        position: relative;
    }

    .favorite-top.active {
        color: #ff2b2b;

        background: #ffeaea;

        transform: scale(1.08);
    }

    .favorite-top::before {
        content: "♡";

        font-size: 30px;

        color: #777;

        transition: 0.25s;
    }

    .favorite-top.active::before {
        content: "♥";

        color: #ff2b2b;

        transform: scale(1.1);
    }

    /* hover эффект */
    .product-card:hover {
        transform: translateY(-6px);

        box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    }

    /* изображение товара */
    .product-image {
        width: 100%;
        height: 220px;

        background: #ececec;

        border-radius: 15px;

        overflow: hidden;

        margin-bottom: 15px;

        display: flex;
        align-items: center;
        justify-content: center;
    }

    .product-image img {
        width: 100%;
        height: 100%;

        object-fit: cover;

        display: block;

        transition: 0.3s;
    }

    .product-card:hover .product-image img {
        transform: scale(1.05);
    }

    /* описание */
    .product-description {
        color: #666;
        margin: 10px 0;
    }

    /* цена */
    .product-price {
        font-size: 24px;
        font-weight: bold;

        margin-bottom: 15px;
    }

    /* кнопки */
    .product-actions {
        display: flex;
        gap: 10px;

        margin-top: auto;
    }

    /* избранное */
    .favorite-btn {
        width: 50px;

        border: none;

        background: #f0f0f0;

        border-radius: 10px;

        cursor: pointer;
    }

    /* корзина */
    .cart-btn {
        flex: 1;

        background: black;
        color: white;

        border: none;

        padding: 12px;

        border-radius: 10px;

        cursor: pointer;
    }
    /* =========================
       SIDEBAR
    ========================= */

    .overlay {
        position: fixed;
        top: 0;
        left: 0;

        width: 100%;
        height: 100%;

        background: rgba(0,0,0,0.4);

        display: none;

        z-index: 9999;
    }

    .overlay.show {
        display: block;
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: -380px;

        width: 320px;
        height: 100vh;

        background: white;

        box-shadow: 5px 0 20px rgba(0,0,0,0.15);

        padding: 20px;

        transition: 0.3s ease;

        z-index: 10000;

        overflow-y: auto;
    }

    .sidebar.open {
        left: 0;
    }

    .category {
        padding: 12px;
        font-weight: bold;

        cursor: pointer;

        border-radius: 8px;
    }

    .category:hover {
        background: #f2f2f2;
    }

    .subcategory {
        display: none;
        padding-left: 15px;
    }

    .subcategory a {
        display: block;

        padding: 8px;

        text-decoration: none;
        color: black;
    }

    .subcategory a:hover {
        background: #eee;
        border-radius: 6px;
    }
    .page-container {
        max-width: 1500px;
        margin: 0 auto;
    }

    .remove-btn {
        width: 42px;
        height: 42px;

        border-radius: 12px;

        background: #f3f3f3;

        display: flex;
        align-items: center;
        justify-content: center;

        text-decoration: none;

        color: black;

        font-size: 18px;

        transition: 0.25s;
    }

    .remove-btn:hover {
        background: #ffebeb;
        color: red;
    }

    /* =========================
       CART PAGE
    ========================= */

    .cart-wrapper {

        max-width: 1500px;

        margin: 0 auto;

        padding: 20px 50px;
    }

    /* TOP BAR */
.cart-top-bar {
    width: 100%;

    background: white;

    border-radius: 24px;

    padding: 22px 28px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

    /* LEFT */

    .cart-select-all {

        display: flex;
        align-items: center;

        gap: 14px;
    }

    .cart-select-all input {

        width: 21px;
        height: 21px;

        cursor: pointer;
    }

    .cart-select-all label {

        font-size: 18px;
        font-weight: 500;

        cursor: pointer;
    }

    /* RIGHT */

    .cart-delete-btn {

        width: 48px;
        height: 48px;

        border: none;

        border-radius: 14px;

        background: #f5f5f5;

        cursor: pointer;

        font-size: 22px;

        transition: 0.25s;
    }

    .cart-delete-btn:hover {

        background: #ececec;
    }

    /* =========================
       CART ITEMS
    ========================= */

 .cart-items {
    width: 100%;

    margin-top: 20px;

    display: flex;
    flex-direction: column;

    gap: 20px;
}

    /* CARD */

  .cart-item {

    max-width: 980px;

    background: white;

    border-radius: 24px;

    padding: 20px;

    display: flex;
    align-items: center;

    gap: 25px;

    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

    .cart-item:hover {

        transform: translateY(-2px);

        box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    }

    /* IMAGE */

    .cart-item-image {

        width: 120px;
        height: 120px;

        border-radius: 18px;

        overflow: hidden;

        background: #f5f5f5;

        flex-shrink: 0;

        display: flex;
        align-items: center;
        justify-content: center;
    }

    .cart-item-image img {

        width: 90%;
        height: 90%;

        object-fit: contain;
    }

    /* CENTER */

    .cart-item-info {

        flex: 1;

        display: flex;
        flex-direction: column;

        justify-content: center;
    }

    .cart-item-info h3 {

        font-size: 23px;

        margin-bottom: 16px;
    }

    /* BUTTONS */

    .cart-item-buttons {

        display: flex;

        align-items: center;

        gap: 12px;
    }

    /* FAVORITE */

    .cart-favorite-btn {

        width: 46px;
        height: 46px;

        border: none;

        border-radius: 14px;

        background: #f3f3f3;

        cursor: pointer;

        font-size: 28px;

        line-height: 1;

        color: #777;

        display: flex;
        align-items: center;
        justify-content: center;

        transition: 0.25s;
    }

    .cart-favorite-btn.active {

        color: #ff2b2b;

        background: #ffeaea;

        transform: scale(1.06);
    }

    /* REMOVE */

    .cart-remove-btn {

        border: none;

        background: #f3f3f3;

        padding: 12px 18px;

        border-radius: 14px;

        cursor: pointer;

        text-decoration: none;

        color: black;

        font-size: 15px;

        transition: 0.25s;
    }

    .cart-remove-btn:hover {

        background: #ececec;
    }

    /* RIGHT */

    .cart-item-right {

        display: flex;
        flex-direction: column;

        align-items: flex-end;

        gap: 20px;

        min-width: 170px;
    }

    /* PRICE */

    .cart-item-price {

        font-size: 28px;

        font-weight: bold;
    }

    /* QUANTITY */

    .cart-quantity {

        display: flex;
        align-items: center;

        gap: 14px;

        background: #f5f5f5;

        padding: 10px 16px;

        border-radius: 16px;
    }

    /* PLUS MINUS */

    .quantity-btn {

        width: 34px;
        height: 34px;

        border: none;

        border-radius: 10px;

        background: white;

        cursor: pointer;

        font-size: 20px;

        transition: 0.25s;
    }

    .quantity-btn:hover {

        background: #ececec;
    }

    /* EMPTY */

    .empty-cart {

        background: white;

        border-radius: 24px;

        padding: 60px;

        text-align: center;

        font-size: 24px;

        box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    }

    /* =========================
       AUTH
    ========================= */

    .auth-container {

        width: 100%;

        display: flex;

        justify-content: center;

        margin-top: 60px;
    }

    .auth-card {

        width: 420px;

        background: white;

        padding: 40px;

        border-radius: 28px;

        box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    }

    .auth-card h1 {

        margin-bottom: 30px;

        font-size: 34px;
    }

    .auth-card form {

        display: flex;

        flex-direction: column;

        gap: 18px;
    }

    .auth-card input {

        padding: 16px;

        border: 1px solid #ddd;

        border-radius: 14px;

        font-size: 16px;
    }

    .auth-card button {

        background: black;

        color: white;

        border: none;

        padding: 16px;

        border-radius: 14px;

        cursor: pointer;

        font-size: 16px;

        font-weight: bold;
    }

    /* bottom auth */

    .auth-bottom {

        margin-top: 25px;

        display: flex;

        justify-content: center;

        gap: 8px;

        font-size: 15px;
    }

    .auth-bottom a {

        color: black;

        font-weight: bold;

        text-decoration: none;
    }

    /* =========================
   FAVORITES PAGE
========================= */

.favorites-wrapper {

    max-width: 1500px;

    margin: 0 auto;

    padding: 20px 50px;
}

/* TOP BAR */

.favorites-top-bar {

    width: 68%;

    max-width: 980px;

    background: white;

    border-radius: 24px;

    padding: 24px 28px;

    box-shadow: 0 2px 12px rgba(0,0,0,0.06);

    margin-bottom: 20px;
}

.favorites-top-bar h2 {

    font-size: 28px;
}

/* ITEMS */

.favorites-items {

    width: 68%;

    max-width: 980px;

    display: flex;

    flex-direction: column;

    gap: 20px;
}

/* CARD */

.favorite-item {

    background: white;

    border-radius: 24px;

    padding: 20px;

    display: flex;

    align-items: center;

    gap: 25px;

    box-shadow: 0 2px 12px rgba(0,0,0,0.06);

    transition: 0.25s;
}

.favorite-item:hover {

    transform: translateY(-2px);

    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

/* IMAGE */

.favorite-image {

    width: 120px;
    height: 120px;

    border-radius: 18px;

    overflow: hidden;

    background: #f5f5f5;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;
}

.favorite-image img {

    width: 90%;
    height: 90%;

    object-fit: contain;
}

/* INFO */

.favorite-info {

    flex: 1;

    display: flex;

    flex-direction: column;

    justify-content: center;
}

.favorite-info h3 {

    font-size: 23px;

    margin-bottom: 16px;
}

/* BUTTONS */

.favorite-buttons {

    display: flex;

    gap: 12px;
}

/* REMOVE BUTTON */

.favorite-remove-btn {

    border: none;

    background: #f3f3f3;

    padding: 12px 18px;

    border-radius: 14px;

    cursor: pointer;

    text-decoration: none;

    color: black;

    font-size: 15px;

    transition: 0.25s;
}

.favorite-remove-btn:hover {

    background: #ececec;
}

/* RIGHT */

.favorite-right {

    display: flex;

    flex-direction: column;

    align-items: flex-end;

    gap: 20px;

    min-width: 170px;
}

/* PRICE */

.favorite-price {

    font-size: 28px;

    font-weight: bold;
}

/* CART BUTTON */

.favorite-cart-btn {

    background: black;

    color: white;

    text-decoration: none;

    padding: 14px 22px;

    border-radius: 14px;

    font-size: 15px;

    transition: 0.25s;
}

.favorite-cart-btn:hover {

    opacity: 0.9;
}

/* EMPTY */

.empty-favorites {

    background: white;

    border-radius: 24px;

    padding: 60px;

    text-align: center;

    font-size: 24px;

    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.logo a {
    text-decoration: none;
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
}

.product-card-wrapper {
    display: flex;
    flex-direction: column;
}

.product-card {
    background: white;
    border-radius: 20px;
    padding: 20px;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.favorite-item-wrapper {
    display: flex;
    flex-direction: column;
}

.favorite-item {
    display: flex;
    align-items: center;
    gap: 20px;

    background: white;
    border-radius: 24px;
    padding: 20px;

    text-decoration: none;
    color: inherit;

    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: 0.2s;
}

.favorite-item:hover {
    transform: translateY(-2px);
}

.favorite-buttons {
    display: flex;
    gap: 10px;
    padding: 10px 20px;
}

.cart-item-wrapper {
    display: flex;
    flex-direction: column;
}

.cart-item {
    text-decoration: none;
    color: inherit;
    display: flex;
}

/* =========================
   PRODUCT DETAIL
========================= */

.product-detail {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px 50px;
}

.product-detail-card {
    display: flex;
    gap: 40px;

    background: white;
    border-radius: 24px;

    padding: 30px;

    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

/* IMAGE */

.product-detail-image {
    width: 420px;
    height: 420px;

    background: #f5f5f5;
    border-radius: 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;
}

.product-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* INFO */

.product-detail-info {
    flex: 1;

    display: flex;
    flex-direction: column;

    gap: 20px;
}

.product-detail-info h1 {
    font-size: 32px;
}

.product-detail-description {
    color: #666;
    font-size: 16px;
    line-height: 1.5;
}

.product-detail-price {
    font-size: 34px;
    font-weight: bold;
}

/* BUTTON */

.product-detail-actions {
    margin-top: 10px;
}

.btn-black {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    background: #000;
    color: #fff;

    padding: 14px 24px;

    border-radius: 14px;
    font-size: 16px;
    font-weight: 600;

    text-decoration: none;

    transition: 0.25s;

    width: fit-content;
    min-width: 180px;

    cursor: pointer;
}

.btn-black:hover {
    background: #222;
    transform: translateY(-2px);
}

.btn-black:active {
    transform: translateY(0);
}

.product-card a {
    color: inherit;
    text-decoration: none;
}

.category {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 12px 0;

    cursor: pointer;
}

.category-link {
    text-decoration: none;
    color: black;
    font-size: 16px;
    font-weight: 500;
}

.category-link:visited {
    color: black;
}

.category span {
    font-size: 12px;
    cursor: pointer;
}

.cart-summary{
    margin-top: 25px;
    padding: 15px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-total{
    font-size: 18px;
    font-weight: bold;
}

.pay-btn{
    background: #111;
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.2s;
}

.pay-btn:hover{
    opacity: 0.85;
}

.orders-page {
    max-width: 1200px;
    margin: 30px auto;
    padding: 20px 50px;
}

/* заголовок */
.orders-title {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 25px;
}

/* список заказов */
.orders-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* карточка заказа */
.order-card {
    background: white;
    border-radius: 24px;

    padding: 20px 24px;

    box-shadow: 0 2px 12px rgba(0,0,0,0.06);

    transition: 0.2s;
}

.order-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

/* верх заказа */
.order-top {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-bottom: 15px;
}

.order-id {
    font-size: 18px;
    font-weight: bold;
}

.order-date {
    font-size: 13px;
    color: #888;
    margin-top: 4px;
}

/* статус */
.order-status {
    padding: 6px 12px;
    border-radius: 20px;

    font-size: 13px;
    font-weight: 500;
}

/* статусы */
.status-new {
    background: #e3f2fd;
    color: #1976d2;
}

.status-processing {
    background: #fff3e0;
    color: #f57c00;
}

.status-shipped {
    background: #e8f5e9;
    color: #2e7d32;
}

.status-done {
    background: #f1f8e9;
    color: #2e7d32;
}

/* товары внутри заказа */
.order-items {
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;

    padding: 10px 0;

    margin-bottom: 10px;
}

.order-item {
    display: flex;
    justify-content: space-between;

    padding: 6px 0;

    font-size: 15px;
    color: #444;
}

/* итог */
.order-bottom {
    display: flex;
    justify-content: flex-end;
}

.order-total {
    font-size: 18px;
    font-weight: bold;
}

/* пустой блок */
.empty-orders {
    background: white;

    border-radius: 24px;

    padding: 60px;

    text-align: center;

    font-size: 22px;

    color: #777;

    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.cart-layout {
    display: flex;
    gap: 30px;

    width: 100%;
}

.cart-left {
    flex: 0 0 72%;
}

.cart-right {
    width: 360px;
    flex-shrink: 0;
}

.checkout-card {
    background: white;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    flex: 1; /* Заполняет всю высоту правой колонки */
}

.checkout-title {
    font-size: 24px;
    margin-bottom: 15px;
}

.checkout-btn {
    display: inline-block;
    background: #111;
    color: white;
    padding: 14px 24px;
    border-radius: 14px;
    cursor: pointer;
    font-weight: bold;
    margin-top: 20px;
}

.order-card {
    border: 1px solid #eee;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 10px;
}

.load-more-btn {
    padding: 10px 20px;
    border: none;
    background: black;
    color: white;
    border-radius: 8px;
    cursor: pointer;
}

.quantity-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 32px;
    height: 32px;

    border: 1px solid #ddd;
    border-radius: 8px;

    background: #fff;
    color: #111;
    font-size: 18px;
    font-weight: 600;

    text-decoration: none;

    cursor: pointer;
    transition: 0.2s ease;
    user-select: none;
}

.quantity-btn:hover {
    background: #f3f3f3;
    border-color: #bbb;
}

.quantity-btn:active {
    transform: scale(0.95);
}

.quantity-value {
    margin: 0 10px;
    font-size: 16px;
    font-weight: 500;
}