/* assets/styles/shop.css */

body {
    margin: 0;
    background:
        radial-gradient(circle at top left, rgba(17, 24, 39, 0.08), transparent 28%),
        #f7f5f0;
    color: #111827;
    font-family: Inter, system-ui, sans-serif;
}

.shop-page {
    max-width: 1240px;
    margin: 0 auto;
    padding: 28px;
}

.shop-header {
    min-height: 72px;
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 54px;
}

.shop-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #111827;
    text-decoration: none;
    font-weight: 800;
    margin-right: auto;
}

.shop-logo {
    width: 42px;
    height: 42px;
    border-radius: 16px;
    background: #111827;
    color: white;
    display: grid;
    place-items: center;
}

.shop-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.shop-nav-link,
.shop-nav-cart {
    min-height: 42px;
    padding: 0 13px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    color: #374151;
    text-decoration: none;

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

    transition:
        background .2s,
        color .2s,
        transform .2s,
        box-shadow .2s;
}

.shop-nav-link:hover,
.shop-nav-cart:hover {
    background: rgba(255,255,255,.72);
    color: #111827;
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(17,24,39,.05);
}

.shop-nav-cart {
    position: relative;
    padding-right: 11px;
}

.shop-nav-cart-icon {
    font-size: 15px;
    line-height: 1;
}

.shop-nav-cart-text {
    line-height: 1;
}

.shop-cart-badge {
    min-width: 19px;
    height: 19px;
    padding: 0 6px;

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

    border-radius: 999px;
    background: #111827;
    color: white;

    font-size: 10px;
    font-weight: 800;
    line-height: 1;

    box-shadow: 0 6px 14px rgba(17,24,39,.16);
}

.shop-nav-cart.has-items {
    background: rgba(255,255,255,.58);
}

.shop-points {
    background: rgba(255,255,255,.78);
    border: 1px solid rgba(17,24,39,.08);
    border-radius: 999px;
    padding: 10px 14px;
    font-weight: 800;
    box-shadow: 0 10px 30px rgba(17,24,39,.05);
}

.shop-hero {
    max-width: 760px;
    margin-bottom: 48px;
}

.shop-kicker {
    margin: 0 0 12px;
    color: #8b7355;
    text-transform: uppercase;
    letter-spacing: .16em;
    font-size: 12px;
    font-weight: 800;
}

.shop-hero h1,
.shop-section-header h1,
.shop-detail-content h1 {
    margin: 0;
    font-size: clamp(42px, 6vw, 76px);
    line-height: .95;
    letter-spacing: -.06em;
}

.shop-hero p:last-child {
    max-width: 560px;
    color: #4b5563;
    font-size: 18px;
    line-height: 1.7;
}

.shop-products {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.shop-product-card {
    background: rgba(255,255,255,.86);
    border: 1px solid rgba(17,24,39,.08);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(17,24,39,.06);
    transition: transform .2s, box-shadow .2s;
}

.shop-product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 34px 90px rgba(17,24,39,.10);
}

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

.shop-product-image {
    aspect-ratio: 1.1;
    background: #ebe7df;
    display: grid;
    place-items: center;
}

.shop-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.shop-product-image span {
    font-size: 72px;
    font-weight: 900;
    color: #8b7355;
}

.shop-product-content {
    padding: 22px;
}

.shop-product-content p {
    margin: 0 0 8px;
    color: #8b7355;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .12em;
}

.shop-product-content h2 {
    margin: 0 0 16px;
    font-size: 22px;
    letter-spacing: -.03em;
}

.shop-product-content strong,
.shop-price {
    font-size: 22px;
    font-weight: 900;
}

.shop-product-detail {
    display: grid;
    grid-template-columns: 1fr .85fr;
    gap: 42px;
    align-items: start;
}

.shop-detail-main-image {
    width: 80%;
    border-radius: 34px;
    object-fit: cover;
    box-shadow: 0 30px 80px rgba(17,24,39,.08);
}

.shop-detail-thumbs {
    display: flex;
    gap: 14px;
    margin-top: 14px;
}

.shop-detail-thumbs img {
    width: 110px;
    height: 110px;
    object-fit: cover;
    border-radius: 22px;
}

.shop-detail-content {
    background: rgba(255,255,255,.86);
    border: 1px solid rgba(17,24,39,.08);
    border-radius: 34px;
    padding: 34px;
    box-shadow: 0 30px 80px rgba(17,24,39,.06);
}

.shop-description {
    color: #4b5563;
    line-height: 1.7;
}

.shop-price {
    margin: 24px 0;
}

.shop-buy-form {
    display: grid;
    gap: 12px;
}

.shop-buy-form label {
    font-size: 14px;
    font-weight: 700;
}

.shop-buy-form input,
.shop-buy-form select {
    height: 52px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 0 16px;
    font-size: 15px;
}

.shop-button {
    height: 52px;
    border: none;
    border-radius: 18px;
    background: #111827;
    color: white;
    font-weight: 800;
    cursor: pointer;
    padding: 0 22px;
    transition: transform .2s, box-shadow .2s;
}

.shop-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 35px rgba(17,24,39,.18);
}

.shop-button-inline {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    margin-top: 22px;
}

.shop-card {
    background: rgba(255,255,255,.88);
    border: 1px solid rgba(17,24,39,.08);
    border-radius: 28px;
    padding: 28px;
    box-shadow: 0 30px 80px rgba(17,24,39,.06);
}

.shop-table {
    width: 100%;
    border-collapse: collapse;
}

.shop-table th {
    text-align: left;
    color: #6b7280;
    padding-bottom: 16px;
    font-size: 13px;
}

.shop-table td {
    padding: 18px 0;
    border-top: 1px solid #f3f4f6;
}

.shop-cart-footer {
    border-top: 1px solid #f3f4f6;
    margin-top: 20px;
    padding-top: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.shop-account-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.shop-card small {
    display: block;
    color: #6b7280;
    margin-bottom: 8px;
}

.shop-big-number {
    font-size: 42px;
    letter-spacing: -.05em;
}

.shop-link-danger {
    color: #b91c1c;
    text-decoration: none;
}

.shop-alert {
    margin-bottom: 20px;
    padding: 14px 16px;
    border-radius: 16px;
    background: white;
}

.shop-alert-success {
    background: #dcfce7;
    color: #166534;
}

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

@media (max-width: 900px) {
    .shop-header {
        flex-wrap: wrap;
        height: auto;
    }

    .shop-products,
    .shop-product-detail,
    .shop-account-grid {
        grid-template-columns: 1fr;
    }
}

.shop-link-soft {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    height: 42px;
    padding: 0 16px;

    border-radius: 14px;
    border: 1px solid rgba(17,24,39,.08);
    background: rgba(255,255,255,.72);

    color: #374151;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;

    transition:
        background .2s,
        border-color .2s,
        color .2s,
        transform .2s,
        box-shadow .2s;
}

.shop-link-soft:hover {
    background: white;
    border-color: rgba(17,24,39,.14);
    color: #111827;
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(17,24,39,.06);
}

.shop-link-soft-muted {
    color: #6b7280;
}
.shop-order-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 22px;
}

.shop-order-product {
    display: flex;
    align-items: center;
    gap: 14px;
}

.shop-order-product-image {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    object-fit: cover;
    border: 1px solid rgba(17,24,39,.08);
    background: #ebe7df;
    flex-shrink: 0;
}

.shop-order-product-placeholder {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    background: #ebe7df;
    color: #8b7355;
    display: grid;
    place-items: center;
    font-weight: 900;
    flex-shrink: 0;
}

.shop-order-product-info strong {
    display: block;
}

.shop-order-product-info small {
    display: block;
    margin-top: 4px;
    color: #6b7280;
}

.shop-button.is-loading {
    opacity: .65;
    pointer-events: none;
}

.shop-cart-toast {
    position: fixed;
    right: 28px;
    bottom: 28px;
    z-index: 50;

    width: min(420px, calc(100vw - 40px));

    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;

    padding: 18px;
    border-radius: 24px;

    background: rgba(255,255,255,.92);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(17,24,39,.08);
    box-shadow: 0 30px 80px rgba(17,24,39,.16);

    opacity: 0;
    transform: translateY(16px) scale(.98);
    pointer-events: none;

    transition:
        opacity .22s ease,
        transform .22s ease;
}

.shop-cart-toast.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.shop-cart-toast.is-error .shop-cart-toast-icon {
    background: #fee2e2;
    color: #991b1b;
}

.shop-cart-toast-icon {
    width: 42px;
    height: 42px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: #dcfce7;
    color: #166534;
    font-weight: 900;
}

.shop-cart-toast-content strong {
    display: block;
    margin-bottom: 4px;
    color: #111827;
}

.shop-cart-toast-content span {
    display: block;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.5;
}

.shop-cart-toast-actions {
    grid-column: 1 / -1;
    display: flex;
    gap: 10px;
    margin-top: 4px;
}

.shop-cart-toast-link,
.shop-cart-toast-close {
    flex: 1;
    height: 42px;

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

    border-radius: 14px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.shop-cart-toast-link {
    background: #111827;
    color: white;
    border: 1px solid #111827;
}

.shop-cart-toast-close {
    background: white;
    color: #374151;
    border: 1px solid rgba(17,24,39,.08);
}

.shop-cart-toast-close:hover {
    background: #f9fafb;
}

.shop-detail-thumb-button {
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    border-radius: 22px;
    opacity: .72;
    transition:
        opacity .2s,
        transform .2s,
        box-shadow .2s;
}

.shop-detail-thumb-button:hover,
.shop-detail-thumb-button.is-active {
    opacity: 1;
    transform: translateY(-2px);
}

.shop-detail-thumb-button img {
    width: 110px;
    height: 110px;
    object-fit: cover;
    border-radius: 22px;
    border: 1px solid rgba(17,24,39,.08);
}

.shop-detail-main-placeholder {
    aspect-ratio: 1;
    width: 100%;
    border-radius: 34px;
    background: #ebe7df;
    color: #8b7355;
    display: grid;
    place-items: center;
    font-size: 45px;
    font-weight: 900;
}

.shop-hero-store {
    text-align: left;
    /*margin: 40px auto 42px;*/
}

/*.shop-hero-store p:last-child {*/
/*    margin-left: auto;*/
/*    margin-right: auto;*/
/*}*/

.shop-store-toolbar {
    position: sticky;
    top: 18px;
    z-index: 20;

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

    margin-bottom: 20px;
    padding: 14px;

    border-radius: 26px;
    background: rgba(255,255,255,.72);
    backdrop-filter: blur(22px);
    border: 1px solid rgba(17,24,39,.08);
    box-shadow: 0 24px 70px rgba(17,24,39,.08);
}

.shop-search {
    flex: 1;
    height: 52px;

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

    padding: 0 18px;
    border-radius: 18px;
    background: #f9fafb;
    border: 1px solid rgba(17,24,39,.06);
}

.shop-search span {
    color: #9ca3af;
    font-size: 22px;
}

.shop-search input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-size: 15px;
    color: #111827;
}

.shop-search input::placeholder {
    color: #9ca3af;
}

.shop-filter-group {
    display: flex;
    gap: 10px;
}

.shop-filter-group select {
    height: 52px;
    min-width: 190px;

    border: 1px solid rgba(17,24,39,.08);
    border-radius: 18px;

    background: white;
    color: #111827;

    padding: 0 16px;
    font-size: 14px;
    font-weight: 600;

    outline: none;
    cursor: pointer;
}

.shop-results-line {
    margin: 0 0 22px;
    color: #6b7280;
    font-size: 14px;
    text-align: right;
}

.shop-results-line span {
    color: #111827;
    font-weight: 800;
}

.shop-products-store .shop-product-card {
    animation: shopFadeIn .25s ease;
}

@keyframes shopFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 900px) {
    .shop-store-toolbar {
        position: static;
        flex-direction: column;
        align-items: stretch;
    }

    .shop-filter-group {
        flex-direction: column;
    }

    .shop-filter-group select {
        width: 100%;
    }

    .shop-results-line {
        text-align: left;
    }
}

.shop-nav-cart {
    position: relative;
    height: 46px;
    padding: 0 16px;

    display: inline-flex;
    align-items: center;
    gap: 9px;

    border-radius: 999px;
    text-decoration: none;

    background: rgba(255,255,255,.78);
    border: 1px solid rgba(17,24,39,.08);
    color: #111827;

    box-shadow: 0 12px 30px rgba(17,24,39,.06);
    backdrop-filter: blur(18px);

    font-size: 14px;
    font-weight: 700;

    transition: transform .2s, box-shadow .2s, background .2s;
}

.shop-nav-cart:hover {
    transform: translateY(-1px);
    background: white;
    box-shadow: 0 18px 38px rgba(17,24,39,.10);
}

.shop-nav-cart-icon {
    font-size: 17px;
    line-height: 1;
}

.shop-cart-badge {
    min-width: 22px;
    height: 22px;
    padding: 0 7px;

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

    border-radius: 999px;
    background: #111827;
    color: white;

    font-size: 11px;
    font-weight: 800;
}

.shop-nav-cart.has-items {
    border-color: rgba(17,24,39,.16);
}
