/* =========================================================
   BASE
   Основни настройки за целия public сайт
========================================================= */

html {
    position: relative;
    min-height: 100%;
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    margin-bottom: 60px;
}


/* Focus ефект за Bootstrap бутони и input полета */
.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}


/* Default ASP.NET floating form placeholders */
.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
    text-align: start;
}


/* =========================================================
   COMMON
   Общи елементи, използвани на повече от една страница
========================================================= */

/* Малките сини заглавия: SHOP, FEATURED, CHECKOUT и т.н. */
.section-label {
    color: #2563eb;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.2px;
}


/* Card на Contact страницата */
.contact-card {
    padding: 30px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}


/* =========================================================
   PUBLIC NAVBAR
   Количката и badge-а в горното меню
========================================================= */

.cart-nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
}

.cart-nav-icon {
    font-size: 17px;
}

/* Синьото кръгче с броя продукти в Cart */
.cart-nav-badge {
    min-width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    background: #2563eb;
    color: #fff;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
}


/* =========================================================
   HOME PAGE - HERO
   Най-горната секция на Home страницата
========================================================= */

.home-hero {
    background: radial-gradient( circle at 85% 20%, #dbeafe 0, transparent 28% ), linear-gradient( 135deg, #f8fafc 0%, #eef2ff 100% );
}

/* Височината на Hero секцията на desktop */
.home-hero-row {
    min-height: 720px;
}


/* Малкото "New products available" badge */
.hero-badge {
    display: inline-block;
    margin-bottom: 18px;
    padding: 7px 12px;
    background: #dbeafe;
    color: #1d4ed8;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
}


/* Главното заглавие на Home */
.hero-title {
    max-width: 650px;
    margin-bottom: 22px;
    color: #111827;
    font-size: 64px;
    line-height: 1.02;
    font-weight: 800;
}

    /* Синята част от главното заглавие */
    .hero-title span {
        color: #2563eb;
    }


/* Текстът под Hero заглавието */
.hero-description {
    max-width: 590px;
    margin-bottom: 30px;
    color: #6b7280;
    font-size: 18px;
    line-height: 1.7;
}


/* Shop Now / About Us бутоните */
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}


/* Quality / Secure / Support секцията */
.hero-benefits {
    display: flex;
    gap: 34px;
    margin-top: 40px;
}

    .hero-benefits div {
        display: flex;
        flex-direction: column;
    }

    .hero-benefits strong {
        color: #111827;
        font-size: 14px;
    }

    .hero-benefits span {
        margin-top: 2px;
        color: #6b7280;
        font-size: 12px;
    }


/* Голямата Nova Store card вдясно в Hero */
.hero-store-card {
    max-width: 470px;
    margin-left: auto;
    padding: 48px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 24px;
    box-shadow: 0 30px 70px rgba(15, 23, 42, 0.12);
}


/* Иконата в Hero card */
.hero-store-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    background: #eff6ff;
    border-radius: 16px;
    font-size: 28px;
}


/* Текстът Nova Store над заглавието */
.hero-store-label {
    color: #2563eb;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
}


/* Заглавието в Hero card */
.hero-store-card h2 {
    margin: 10px 0 14px;
    color: #111827;
    font-size: 36px;
    font-weight: 750;
}

.hero-store-card p {
    color: #6b7280;
    line-height: 1.7;
}

/* Explore Products линк */
.hero-store-link {
    display: inline-block;
    margin-top: 10px;
    color: #2563eb;
    text-decoration: none;
    font-weight: 700;
}


/* =========================================================
   HOME PAGE - SECTIONS
   Featured products / Categories / Trust
========================================================= */

.home-section,
.home-categories-section,
.home-trust-section {
    padding: 85px 0;
}


/* Header на секции като Latest Products и Categories */
.home-section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 35px;
}

    .home-section-header h2 {
        margin: 5px 0;
        color: #111827;
        font-size: 34px;
        font-weight: 750;
    }

    .home-section-header p {
        margin: 0;
        color: #6b7280;
    }


/* =========================================================
   HOME PAGE - PRODUCT CARDS
========================================================= */

.home-product-card {
    height: 100%;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .home-product-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 18px 40px rgba(15, 23, 42, 0.09);
    }


/* Снимката на продукта в Home card */
.home-product-image {
    height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: #f8fafc;
}

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

.home-product-no-image {
    color: #94a3b8;
    font-size: 45px;
}


/* Долната част на продукта */
.home-product-body {
    padding: 20px;
}

.home-product-category {
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.home-product-body h5 {
    margin: 7px 0 18px;
}

    .home-product-body h5 a {
        color: #111827;
        text-decoration: none;
        font-size: 18px;
        font-weight: 700;
    }


/* Цена + стрелка */
.home-product-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.home-product-price {
    display: block;
    color: #111827;
    font-size: 19px;
}

.home-product-stock {
    display: block;
    margin-top: 2px;
    color: #16a34a;
    font-size: 11px;
    font-weight: 600;
}

.home-product-arrow {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eff6ff;
    color: #2563eb;
    border-radius: 9px;
    text-decoration: none;
    font-size: 20px;
}


/* =========================================================
   HOME PAGE - CATEGORIES
========================================================= */

.home-categories-section {
    background: #f8fafc;
}

.home-category-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 22px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

    .home-category-card:hover {
        transform: translateY(-3px);
        border-color: #bfdbfe;
        box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
    }


/* Иконата на категория */
.home-category-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eff6ff;
    color: #2563eb;
    border-radius: 10px;
}

.home-category-card strong {
    display: block;
    color: #111827;
}

.home-category-card span {
    color: #6b7280;
    font-size: 12px;
}


/* =========================================================
   HOME PAGE - TRUST SECTION
========================================================= */

.home-trust-section {
    background: #fff;
}

.trust-item {
    height: 100%;
    padding: 28px;
    text-align: center;
}

    .trust-item > div {
        width: 50px;
        height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto 16px;
        background: #eff6ff;
        border-radius: 50%;
        font-size: 20px;
    }

    .trust-item h5 {
        font-weight: 700;
    }

    .trust-item p {
        margin: 8px 0 0;
        color: #6b7280;
        font-size: 14px;
        line-height: 1.6;
    }


/* =========================================================
   CATALOG PAGE - HEADER / FILTERS
========================================================= */

.catalog-page-header {
    margin-bottom: 28px;
}

    .catalog-page-header h1 {
        margin: 5px 0 8px;
        color: #111827;
        font-size: 42px;
        font-weight: 800;
    }

    .catalog-page-header p {
        max-width: 620px;
        margin: 0;
        color: #6b7280;
        font-size: 16px;
    }


/* Брой намерени продукти */
.catalog-results-count {
    margin-top: 10px;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 600;
}


/* Големият filter bar */
.catalog-toolbar {
    margin-bottom: 32px;
    padding: 22px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

    .catalog-toolbar .form-label {
        margin-bottom: 7px;
        color: #374151;
        font-size: 13px;
        font-weight: 600;
    }


/* Search / Category / Sort полета */
.catalog-control,
.catalog-search input {
    min-height: 44px;
    border-color: #d1d5db;
    border-radius: 8px;
}

.catalog-search {
    position: relative;
}


    /* Search icon */
    .catalog-search span {
        position: absolute;
        top: 50%;
        left: 14px;
        z-index: 2;
        transform: translateY(-50%);
        color: #94a3b8;
    }

    .catalog-search input {
        padding-left: 40px;
    }

        .catalog-control:focus,
        .catalog-search input:focus {
            border-color: #2563eb;
            box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
        }


/* Apply / Reset buttons */
.catalog-toolbar-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

    .catalog-toolbar-actions .btn {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
    }


/* =========================================================
   CATALOG PAGE - PRODUCT CARDS
========================================================= */

.catalog-product-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

    .catalog-product-card:hover {
        transform: translateY(-4px);
        border-color: #d1d5db;
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    }


/* Product image area */
.catalog-product-image {
    height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: #f8fafc;
    text-decoration: none;
}

    .catalog-product-image img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        transition: transform 0.25s ease;
    }

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


/* Placeholder ако няма image */
.catalog-no-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #9ca3af;
}

    .catalog-no-image span {
        font-size: 42px;
    }


/* Product card content */
.catalog-product-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.catalog-category {
    margin-bottom: 7px;
    color: #6b7280;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.catalog-product-title {
    margin-bottom: 8px;
    font-size: 18px;
    font-weight: 700;
}

    .catalog-product-title a {
        color: #111827;
        text-decoration: none;
    }

        .catalog-product-title a:hover {
            color: #2563eb;
        }


/* Описанието се реже до 2 реда */
.catalog-description {
    display: -webkit-box;
    overflow: hidden;
    margin-bottom: 20px;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.6;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}


/* Price + stock + View Product */
.catalog-product-footer {
    margin-top: auto;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 15px;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}

.catalog-price {
    color: #111827;
    font-size: 20px;
    font-weight: 700;
}

.catalog-stock {
    margin-top: 3px;
    font-size: 12px;
    font-weight: 600;
}

    .catalog-stock.in-stock {
        color: #16a34a;
    }

    .catalog-stock.out-of-stock {
        color: #dc2626;
    }

.catalog-view-button {
    min-width: 125px;
    border-radius: 8px;
}


/* =========================================================
   CATALOG PAGE - PAGINATION
========================================================= */

.catalog-pagination .pagination {
    gap: 6px;
}

.catalog-pagination .page-link {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #374151;
    border: 1px solid #e5e7eb;
    border-radius: 8px !important;
    font-weight: 600;
}

    .catalog-pagination .page-link:hover {
        background: #eff6ff;
        color: #2563eb;
        border-color: #bfdbfe;
    }

.catalog-pagination .page-item.active .page-link {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
}


/* =========================================================
   PRODUCT DETAILS PAGE
========================================================= */

/* Breadcrumb: Home / Products / Product name */
.product-details-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #94a3b8;
    font-size: 13px;
}

    .product-details-breadcrumb a {
        color: #64748b;
        text-decoration: none;
    }

        .product-details-breadcrumb a:hover {
            color: #2563eb;
        }


/* Големият image card */
.product-details-image-card {
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 35px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
}

    .product-details-image-card img {
        width: 100%;
        height: 450px;
        object-fit: contain;
    }


/* No image placeholder */
.product-details-no-image {
    color: #94a3b8;
    text-align: center;
}

    .product-details-no-image span {
        display: block;
        margin-bottom: 10px;
        font-size: 60px;
    }


/* Category над името */
.product-details-category {
    margin-bottom: 10px;
    color: #2563eb;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}


/* Product name */
.product-details-title {
    margin-bottom: 8px;
    color: #111827;
    font-size: 44px;
    line-height: 1.1;
    font-weight: 800;
}


/* SKU */
.product-details-sku {
    margin-bottom: 20px;
    color: #94a3b8;
    font-size: 13px;
}


/* Price */
.product-details-price {
    margin-bottom: 20px;
    color: #111827;
    font-size: 34px;
    font-weight: 800;
}


/* Stock info */
.product-details-stock-section {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
}

.product-stock-badge {
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

    .product-stock-badge.in-stock {
        background: #dcfce7;
        color: #166534;
    }

    .product-stock-badge.out-of-stock {
        background: #fee2e2;
        color: #991b1b;
    }

.product-stock-count {
    color: #6b7280;
    font-size: 13px;
}


/* Divider line */
.product-details-divider {
    height: 1px;
    margin: 25px 0;
    background: #e5e7eb;
}


/* Description */
.product-details-description h5 {
    margin-bottom: 10px;
    color: #111827;
    font-weight: 700;
}

.product-details-description p {
    margin: 0;
    color: #6b7280;
    line-height: 1.8;
}


/* Quantity + Add to Cart form */
.product-add-form {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    margin-top: 30px;
}

.product-quantity-group {
    width: 100px;
}

    .product-quantity-group label {
        display: block;
        margin-bottom: 7px;
        color: #374151;
        font-size: 13px;
        font-weight: 600;
    }

    .product-quantity-group input {
        min-height: 48px;
        text-align: center;
        border-radius: 8px;
    }

.product-add-button {
    min-height: 48px;
    padding-right: 28px;
    padding-left: 28px;
    border-radius: 8px;
    font-weight: 600;
}


/* Back to Products */
.product-details-actions {
    margin-top: 15px;
}


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

/* Header на Cart */
.cart-page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 30px;
}

    .cart-page-header h1 {
        margin: 5px 0 8px;
        color: #111827;
        font-size: 42px;
        font-weight: 800;
    }

    .cart-page-header p {
        margin: 0;
        color: #6b7280;
    }

.cart-count-text {
    margin-top: 8px;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 600;
}


/* Card около всички продукти */
.cart-items-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
}


/* Един продукт в Cart */
.cart-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 20px;
    border-bottom: 1px solid #f1f5f9;
}

    .cart-item:last-child {
        border-bottom: 0;
    }


/* Product image */
.cart-image {
    width: 88px;
    height: 88px;
    min-width: 88px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}

    .cart-image img {
        width: 100% !important;
        height: 100% !important;
        max-width: 88px !important;
        max-height: 88px !important;
        padding: 7px;
        object-fit: contain;
    }


/* Product name + unit price */
.cart-product-info {
    flex: 1;
    min-width: 0;
}

    .cart-product-info h5 {
        margin: 0 0 5px;
        color: #111827;
        font-size: 17px;
        font-weight: 700;
    }

.cart-unit-price {
    color: #6b7280;
    font-size: 13px;
}


/* Quantity +/- */
.cart-quantity {
    display: flex;
    align-items: center;
    gap: 9px;
}

.quantity-button {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 18px;
    transition: background 0.15s ease, border-color 0.15s ease;
}

    .quantity-button:hover {
        background: #f8fafc;
        border-color: #94a3b8;
    }

.quantity-value {
    min-width: 24px;
    text-align: center;
    font-weight: 700;
}


/* Total price на един продукт */
.cart-item-total {
    min-width: 100px;
    color: #111827;
    text-align: right;
    font-size: 18px;
    font-weight: 750;
}


/* X Remove button */
.cart-remove {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: #dc2626;
    border: 0;
    border-radius: 8px;
    font-size: 22px;
}

    .cart-remove:hover {
        background: #fee2e2;
    }


/* Order Summary card */
.cart-summary {
    padding: 26px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
}

    .cart-summary h4 {
        margin: 5px 0 0;
        color: #111827;
        font-size: 22px;
        font-weight: 750;
    }

.cart-summary-divider {
    height: 1px;
    margin: 20px 0;
    background: #e5e7eb;
}


/* Items / Subtotal / Shipping rows */
.summary-row {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 14px;
    color: #6b7280;
}

    .summary-row strong {
        color: #111827;
    }


/* Final total */
.cart-total {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
    color: #111827;
    font-size: 21px;
    font-weight: 800;
}


/* Small note under checkout button */
.cart-summary-note {
    margin-top: 12px;
    color: #94a3b8;
    text-align: center;
    font-size: 11px;
}


/* Summary остава видим при scroll на desktop */
.sticky-summary {
    position: sticky;
    top: 90px;
}


/* Empty cart */
.cart-empty {
    padding: 80px 20px;
    text-align: center;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
}

.cart-empty-icon {
    margin-bottom: 15px;
    font-size: 55px;
}

.cart-empty p {
    color: #6b7280;
}


/* =========================================================
   CHECKOUT PAGE
========================================================= */

/* Checkout header */
.checkout-page-header {
    max-width: 720px;
    margin-bottom: 32px;
}

    .checkout-page-header h1 {
        margin: 5px 0 10px;
        color: #111827;
        font-size: 42px;
        font-weight: 800;
    }

    .checkout-page-header p {
        margin: 0;
        color: #6b7280;
        font-size: 16px;
        line-height: 1.7;
    }


/* Generic Checkout card */
.checkout-card {
    padding: 28px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}


/* Section 1 / Section 2 header */
.checkout-section-title {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    margin-bottom: 24px;
}


    /* Синьото кръгче 1 / 2 */
    .checkout-section-title > span {
        width: 34px;
        height: 34px;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #2563eb;
        color: #fff;
        border-radius: 50%;
        font-weight: 700;
    }

    .checkout-section-title h4 {
        margin: 0;
        color: #111827;
        font-size: 20px;
        font-weight: 750;
    }

    .checkout-section-title p {
        margin: 4px 0 0;
        color: #6b7280;
        font-size: 13px;
    }


/* Labels в checkout form */
.checkout-card .form-label {
    margin-bottom: 7px;
    color: #374151;
    font-size: 13px;
    font-weight: 600;
}


/* Checkout input fields */
.checkout-input {
    min-height: 46px;
    border-color: #d1d5db;
    border-radius: 8px;
}

    .checkout-input:focus {
        border-color: #2563eb;
        box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    }


/* =========================================================
   CHECKOUT - PAYMENT METHODS
========================================================= */

.payment-option {
    width: 100%;
    display: flex;
    align-items: flex-start;
    gap: 13px;
    margin-top: 12px;
    padding: 17px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 11px;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

    .payment-option:hover {
        background: #f8fbff;
        border-color: #93c5fd;
    }

    .payment-option .form-check-input {
        flex-shrink: 0;
        margin-top: 3px;
    }

.payment-option-content {
    flex: 1;
    min-width: 0;
}

.payment-option-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

    .payment-option-header strong {
        color: #111827;
    }

    .payment-option-header span {
        padding: 3px 7px;
        background: #f1f5f9;
        color: #64748b;
        border-radius: 6px;
        font-size: 10px;
        font-weight: 700;
    }

.payment-option small {
    display: block;
    margin-top: 4px;
    color: #6b7280;
    line-height: 1.5;
}


/* =========================================================
   CHECKOUT - ORDER SUMMARY
========================================================= */

.checkout-summary h4 {
    margin: 5px 0 0;
    color: #111827;
    font-size: 22px;
    font-weight: 750;
}

.checkout-summary-divider {
    height: 1px;
    margin: 20px 0;
    background: #e5e7eb;
}

.checkout-items {
    display: flex;
    flex-direction: column;
}


/* Един продукт в Order Summary */
.checkout-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 12px 0;
}

.checkout-item-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

    .checkout-item-info strong {
        color: #111827;
        overflow-wrap: anywhere;
    }

    .checkout-item-info span {
        margin-top: 3px;
        color: #6b7280;
        font-size: 12px;
    }

.checkout-item-price {
    flex-shrink: 0;
    color: #111827;
}


/* Items / Subtotal / Shipping */
.checkout-summary-row {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 13px;
    color: #6b7280;
    font-size: 14px;
}

    .checkout-summary-row strong {
        color: #111827;
        text-align: right;
    }


/* Checkout total */
.checkout-total {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
    color: #111827;
    font-size: 22px;
    font-weight: 800;
}


/* Secure checkout text */
.checkout-security-note {
    margin-top: 13px;
    color: #16a34a;
    text-align: center;
    font-size: 11px;
    font-weight: 600;
}


/* =========================================================
   ORDER CONFIRMATION
========================================================= */

/* Зеленото кръгче с ✓ */
.confirmation-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    background: #dcfce7;
    color: #166534;
    border-radius: 50%;
    font-size: 36px;
    font-weight: 700;
}


/* =========================================================
   AUTH - LOGIN / REGISTER
========================================================= */

/* Центрира Login/Register card-а */
.auth-page {
    min-height: calc(100vh - 150px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    background: #f8fafc;
}


/* Login/Register card */
.auth-card {
    width: 100%;
    max-width: 460px;
    padding: 40px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}


/* Login/Register header */
.auth-header {
    margin-bottom: 32px;
    text-align: center;
}

    .auth-header h1 {
        margin-bottom: 8px;
        font-size: 30px;
        font-weight: 700;
    }

    .auth-header p {
        margin: 0;
        color: #6b7280;
    }


/* Auth input fields */
.auth-input {
    height: 48px;
    border-radius: 8px;
}

    .auth-input:focus {
        box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
    }


/* Login/Register main button */
.auth-button {
    height: 48px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
}

.auth-link {
    text-decoration: none;
    font-size: 14px;
}


/* "Don't have account?" / "Already have account?" */
.auth-footer {
    margin-top: 25px;
    color: #6b7280;
    text-align: center;
}

    .auth-footer a {
        margin-left: 4px;
        text-decoration: none;
        font-weight: 600;
    }


/* =========================================================
   ACCOUNT / PROFILE
========================================================= */

/* Sidebar + content cards */
.account-sidebar,
.account-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
}

.account-sidebar {
    padding: 20px;
}

.account-card {
    padding: 30px;
}


/* User block в sidebar */
.account-user {
    display: flex;
    align-items: center;
    gap: 12px;
}


/* Кръглия avatar */
.account-avatar {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #2563eb;
    color: #fff;
    border-radius: 50%;
    font-size: 18px;
    font-weight: 700;
}


/* Profile / Email / Password / My Orders */
.account-nav {
    display: block;
    margin-bottom: 4px;
    padding: 11px 13px;
    color: #374151;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.15s ease, color 0.15s ease;
}

    .account-nav:hover {
        background: #f3f4f6;
        color: #111827;
    }

    .account-nav.active {
        background: #eff6ff;
        color: #2563eb;
        font-weight: 600;
    }


/* Profile form fields */
.account-input {
    min-height: 46px;
    border-radius: 8px;
}

    .account-input:focus {
        box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
    }


/* =========================================================
   MY ORDERS - MOBILE CARDS
========================================================= */

/* Скрито на desktop */
.myorders-mobile {
    display: none;
}


/* Mobile order card */
.mobile-order-card {
    padding: 18px;
    margin-bottom: 15px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}

.mobile-order-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f1f5f9;
}

    .mobile-order-header > div {
        min-width: 0;
    }

.mobile-order-label {
    display: block;
    margin-bottom: 3px;
    color: #6b7280;
    font-size: 12px;
}

.mobile-order-header strong {
    display: block;
    max-width: 220px;
    overflow-wrap: anywhere;
    font-size: 14px;
}


/* Date / Items / Total */
.mobile-order-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

    .mobile-order-info div {
        display: flex;
        flex-direction: column;
        gap: 3px;
    }

    .mobile-order-info span {
        color: #6b7280;
        font-size: 12px;
    }

    .mobile-order-info strong {
        font-size: 14px;
    }


/* =========================================================
   RESPONSIVE - TABLET
   До 991px
========================================================= */

@media (max-width: 991px) {

    /* HOME */
    .home-hero-row {
        min-height: auto;
        padding: 70px 0;
    }

    .hero-title {
        font-size: 50px;
    }

    .hero-store-card {
        margin: 0 auto;
    }


    /* PRODUCT DETAILS */
    .product-details-image-card {
        min-height: 420px;
    }

        .product-details-image-card img {
            height: 350px;
        }

    .product-details-title {
        font-size: 38px;
    }


    /* CART / CHECKOUT */
    .sticky-summary,
    .checkout-summary.sticky-summary {
        position: static;
    }
}


/* =========================================================
   RESPONSIVE - MOBILE
   До 768px
========================================================= */

@media (max-width: 768px) {

    /* Global container padding */
    .container {
        padding-right: 16px;
        padding-left: 16px;
    }


    /* ---------- HOME ---------- */

    .hero-title {
        font-size: 40px;
    }

    .hero-description {
        font-size: 16px;
    }

    .hero-benefits {
        flex-wrap: wrap;
        gap: 18px;
    }

    .home-section,
    .home-categories-section,
    .home-trust-section {
        padding: 60px 0;
    }

    .home-section-header {
        align-items: flex-start;
        flex-direction: column;
    }


    /* ---------- CATALOG ---------- */

    .catalog-page-header h1 {
        font-size: 34px;
    }

    .catalog-toolbar {
        padding: 16px;
    }

    .catalog-toolbar-actions {
        grid-template-columns: 1fr 1fr;
    }

    .catalog-product-image {
        height: 220px;
    }

    .catalog-product-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .catalog-view-button {
        width: 100%;
    }


    /* ---------- PRODUCT DETAILS ---------- */

    .product-details-image-card {
        min-height: auto;
        padding: 22px;
    }

        .product-details-image-card img {
            height: 300px;
        }

    .product-details-title {
        font-size: 34px;
    }

    .product-details-price {
        font-size: 30px;
    }


    /* ---------- CART ---------- */

    .cart-page-header {
        align-items: flex-start;
        flex-direction: column;
    }

        .cart-page-header h1 {
            font-size: 34px;
        }

    .cart-items-card,
    .cart-summary,
    .cart-item {
        width: 100%;
        max-width: 100%;
    }


    /* Cart item става grid на mobile */
    .cart-item {
        display: grid;
        grid-template-columns: 75px 1fr;
        gap: 12px;
    }

    .cart-image {
        width: 75px;
        height: 75px;
        min-width: 75px;
    }

        .cart-image img {
            max-width: 75px !important;
            max-height: 75px !important;
        }

    .cart-product-info {
        min-width: 0;
        padding-right: 28px;
    }

    .cart-quantity {
        grid-column: 2;
    }

    .cart-item-total {
        grid-column: 2;
        min-width: 0;
        text-align: left;
    }

    .cart-remove {
        position: absolute;
        top: 12px;
        right: 12px;
    }


    /* ---------- CHECKOUT ---------- */

    .checkout-page-header h1 {
        font-size: 34px;
    }

    .checkout-card {
        padding: 20px;
    }

    .checkout-section-title h4 {
        font-size: 18px;
    }


    /* ---------- AUTH ---------- */

    .auth-page {
        padding: 35px 15px;
    }

    .auth-card {
        padding: 28px 20px;
    }


    /* ---------- ACCOUNT ---------- */

    .account-card {
        padding: 20px;
    }

    .account-sidebar {
        margin-bottom: 10px;
    }


    /* ---------- MY ORDERS ---------- */

    .myorders-desktop {
        display: none;
    }

    .myorders-mobile {
        display: block;
    }
}


/* =========================================================
   RESPONSIVE - SMALL MOBILE
   До 480px
========================================================= */

@media (max-width: 480px) {

    /* Bootstrap large buttons */
    .btn-lg {
        padding: 10px 16px;
        font-size: 16px;
    }


    /* ---------- HOME ---------- */

    .hero-title {
        font-size: 34px;
    }

    .hero-store-card {
        padding: 28px;
    }

        .hero-store-card h2 {
            font-size: 28px;
        }

    .hero-benefits {
        flex-direction: column;
        gap: 12px;
    }


    /* ---------- CATALOG ---------- */

    .catalog-product-image {
        height: 190px;
    }


    /* ---------- PRODUCT DETAILS ---------- */

    .product-details-image-card img {
        height: 230px;
    }

    .product-details-title {
        font-size: 30px;
    }

    .product-add-form {
        align-items: stretch;
        flex-direction: column;
    }

    .product-quantity-group {
        width: 100%;
    }

    .product-add-button,
    .product-details-actions .btn {
        width: 100%;
    }


    /* ---------- CHECKOUT ---------- */

    .checkout-card {
        padding: 16px;
    }

    .checkout-section-title {
        gap: 10px;
    }

    .payment-option {
        padding: 14px;
    }

    .payment-option-header {
        align-items: flex-start;
    }

    .checkout-item {
        gap: 12px;
    }

    .checkout-total {
        font-size: 19px;
    }
}


/* =========================================================
   RESPONSIVE - VERY SMALL
   До 420px
========================================================= */

@media (max-width: 420px) {

    /* Catalog Apply / Reset стават един под друг */
    .catalog-toolbar-actions {
        grid-template-columns: 1fr;
    }


    /* Cart */
    .cart-summary {
        padding: 20px;
    }

    .cart-item {
        padding: 15px;
    }
}


/* =========================================================
   RESPONSIVE - EXTRA SMALL
   До 400px
========================================================= */

@media (max-width: 400px) {

    /* My Orders info става на 2 колони */
    .mobile-order-info {
        grid-template-columns: 1fr 1fr;
    }
}


/* =========================================================
   ERROR PAGES
   403 / 404 / 500
========================================================= */

.error-page {
    min-height: calc(100vh - 160px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    background: #f8fafc;
}

.error-card {
    width: 100%;
    max-width: 620px;
    padding: 50px 35px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    text-align: center;
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.06);
}

.error-code {
    margin-bottom: 12px;
    color: #2563eb;
    font-size: 72px;
    line-height: 1;
    font-weight: 800;
}

.error-card h1 {
    margin-bottom: 12px;
    color: #111827;
    font-size: 32px;
    font-weight: 750;
}

.error-card p {
    max-width: 480px;
    margin: 0 auto 25px;
    color: #6b7280;
    line-height: 1.7;
}

.error-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

@media (max-width: 480px) {

    .error-card {
        padding: 35px 20px;
    }

    .error-code {
        font-size: 58px;
    }

    .error-card h1 {
        font-size: 26px;
    }

    .error-actions {
        flex-direction: column;
    }

        .error-actions .btn {
            width: 100%;
        }
}