.store-page {
    margin: 0;
    background: #fff;
    color: #222;
}

.store-page .site {
    width: 100%;
    max-width: none;
    margin: 0;
}

.store-page .site-header {
    min-height: 85px;
    padding-top: 8px;
    padding-bottom: 8px;
}

.store-page .brand img {
    width: 120px;
    height: 70px;
}

.store-banner {
    position: relative;
    isolation: isolate;
    min-height: clamp(220px, 20vw, 320px);
    display: grid;
    place-items: center;
    padding: 40px 20px;
    overflow: hidden;
    border-bottom-right-radius: clamp(140px, 20vw, 330px);
    background:
        linear-gradient(rgba(0, 0, 0, .57), rgba(0, 0, 0, .57)),
        url("../images/shutterstock_1457257346.jpg") center / cover;
}

.store-banner h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(38px, 3.5vw, 56px);
    line-height: 1.15;
}

.shop-layout {
    width: min(1320px, calc(100% - 80px));
    margin: 75px auto 120px;
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 65px;
    align-items: start;
}

.shop-sidebar h2 {
    font-size: 20px;
    font-weight: 500;
    margin: 0 0 25px;
}

.shop-sidebar p {
    font-size: 14px;
    line-height: 1.6;
}

.category-list {
    list-style: none;
    margin: 0 0 35px;
    padding: 0;
}

.category-list a {
    display: block;
    padding: 9px 0;
    font-size: 14px;
}

.category-list .selected {
    color: #d30505;
    font-weight: 700;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.product-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: 0 16px 22px;
    text-align: center;
    background: #fff;
    border: 1px solid #e9e9e9;
    box-shadow: 0 0 7px #0002;
}

.product-picture {
    width: 100%;
    height: 285px;
    display: grid;
    place-items: center;
    margin: 0 0 18px;
    background: #fff;
}

.product-picture img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-card h2 {
    font-size: 17px;
    font-weight: 500;
    line-height: 1.35;
    margin: 0 0 22px;
    overflow-wrap: anywhere;
}

.product-price {
    font-size: 15px;
    margin-bottom: 20px;
}

.product-description {
    font-size: 14px;
    line-height: 1.55;
    margin-bottom: 20px;
}

.product-card .store-button {
    margin-top: auto;
}

.store-button {
    display: inline-block;
    padding: 11px 20px;
    background: #d30505;
    border: 1px solid #d30505;
    color: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
}

.store-button:hover {
    background: #ae0000;
    color: #fff;
}

.store-button.secondary {
    background: #fff;
    color: #333;
    border-color: #ccc;
}

.store-button.small {
    padding: 7px 12px;
    font-size: 13px;
}

.store-container {
    width: min(1150px, calc(100% - 40px));
    margin: 55px auto 90px;
}

.store-container > h1 {
    color: #08629b;
    font-size: 32px;
    margin: 0 0 25px;
}

.checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 35px;
    align-items: start;
}

.store-panel {
    min-width: 0;
    padding: 28px;
    background: #fff;
    border: 1px solid #ddd;
}

.store-panel h2 {
    margin: 0 0 22px;
    font-size: 23px;
    color: #08629b;
}

.store-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 17px;
}

.store-field {
    min-width: 0;
}

.store-field.full {
    grid-column: 1 / -1;
}

.store-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 600;
}

.store-field input,
.store-field select,
.store-field textarea,
.admin-filter select {
    width: 100%;
    min-height: 42px;
    border: 1px solid #ccc;
    border-radius: 0;
    padding: 10px;
    background: #fff;
    color: #222;
    font: inherit;
    font-size: 14px;
}

.store-field textarea {
    min-height: 100px;
    resize: vertical;
}

.store-help {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
}

.store-notice {
    padding: 15px;
    margin-bottom: 22px;
    border-left: 4px solid #08629b;
    background: #edf6fb;
}

.store-notice.error {
    border-color: #c00;
    background: #fff0f0;
}

.store-notice ul {
    margin: 0;
    padding-left: 20px;
}

.summary-image {
    width: 100%;
    height: 230px;
    object-fit: contain;
    margin-bottom: 20px;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.summary-line strong {
    text-align: right;
}

.auth-panel {
    max-width: 470px;
    margin: 50px auto;
}

.auth-panel .store-field {
    margin-bottom: 18px;
}

.admin-toolbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 25px;
}

.admin-tabs {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.admin-products {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr);
    gap: 25px;
    align-items: start;
}

.table-scroll {
    width: 100%;
    overflow-x: auto;
}

.store-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.store-table th,
.store-table td {
    border-bottom: 1px solid #ddd;
    padding: 13px 10px;
    text-align: left;
    vertical-align: top;
}

.store-table th {
    background: #f3f5f7;
}

.admin-filter {
    display: flex;
    gap: 10px;
    margin-bottom: 22px;
}

.admin-filter select {
    width: auto;
}

.status-badge {
    display: inline-block;
    padding: 4px 8px;
    background: #edf1f5;
    font-size: 12px;
    text-transform: capitalize;
}

.order-address {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 25px;
}

.empty-state {
    padding: 40px 20px;
    text-align: center;
    background: #f7f7f7;
    grid-column: 1 / -1;
}

@media (max-width: 1100px) {
    .shop-layout {
        width: calc(100% - 40px);
        grid-template-columns: 200px minmax(0, 1fr);
        gap: 25px;
    }

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-products {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 767px) {
    .shop-layout,
    .checkout-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .shop-layout {
        margin-top: 35px;
        margin-bottom: 60px;
    }

    .category-list {
        display: flex;
        flex-wrap: wrap;
        gap: 6px 18px;
        margin-bottom: 15px;
    }

    .product-picture {
        height: 210px;
    }

    .store-panel {
        padding: 20px;
    }

    .store-form-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .store-container {
        margin-top: 35px;
        margin-bottom: 60px;
    }
}

@media (max-width: 430px) {
    .product-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .product-picture {
        height: 260px;
    }
}