/* RosalesGarden — сохранён исходный порядок каскада и медиазапросов. */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #faf8f3;
    color: #223d32;
    font: 18px/1.6 system-ui,-apple-system,"Segoe UI",sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

    a:hover {
        text-decoration: underline;
    }

button, input, select, textarea {
    font: inherit;
}

button, .button {
    display: inline-block;
    border: 0;
    border-radius: 8px;
    background: #234c3d;
    color: white;
    padding: 13px 22px;
    cursor: pointer;
    font-size: 16px;
    text-align: center;
}

    button:hover, .button:hover {
        background: #35604c;
        text-decoration: none;
    }

    button:disabled {
        opacity: .5;
        cursor: not-allowed;
    }

input, select, textarea {
    width: 100%;
    border: 1px solid #c5cec3;
    border-radius: 7px;
    padding: 11px;
    background: #fff;
    color: #223d32;
}

label {
    display: block;
    margin: 18px 0;
}

textarea {
    resize: vertical;
    min-height: 90px;
}

h1, h2, h3 {
    line-height: 1.15;
    letter-spacing: -.025em;
}

h1 {
    font-family: Georgia,serif;
    font-weight: 400;
    font-size: clamp(36px,5vw,66px);
    margin: 22px 0 30px;
}

h2 {
    font-family: Georgia,serif;
    font-size: 34px;
    font-weight: 400;
}

h3 {
    font-size: 21px;
}

small {
    font-size: 14px;
}

header {
    max-width: 1280px;
    margin: auto;
    padding: 26px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 22px;
}

.topline {
    text-align: center;
    font-size: 12px;
    letter-spacing: .18em;
    background: #e8ecdf;
    padding: 8px;
}

.brand {
    font-family: Georgia,serif;
    font-size: 30px;
    letter-spacing: -1px;
}

    .brand span {
        color: #8e4b60;
    }

    .brand small {
        display: block;
        font: 11px system-ui;
        letter-spacing: .16em;
    }

nav {
    display: flex;
    gap: 28px;
    align-items: center;
    font-size: 16px;
}

    nav b {
        display: inline-grid;
        place-items: center;
        border-radius: 50%;
        min-width: 24px;
        background: #e8ecdf;
    }

main {
    max-width: 1280px;
    margin: auto;
    padding: 16px 32px 60px;
    min-height: 60vh;
}

.hero {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    min-height: 530px;
    align-items: center;
    gap: 50px;
}

    .hero p {
        max-width: 540px;
    }

.eyebrow {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .18em;
    color: #667a60;
}

em {
    color: #905367;
    font-weight: 400;
}

.hero-art {
    background: #e9ece0;
    border-radius: 160px 160px 18px 18px;
    position: relative;
    overflow: hidden;
    min-height: 450px;
    display: grid;
    place-items: center;
}

    .hero-art img {
        width: 85%;
        height: 400px;
        object-fit: contain;
    }

.art-caption {
    position: absolute;
    bottom: 25px;
    right: 28px;
    font: 26px Georgia;
}

.section {
    padding: 35px 0;
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 22px;
}

    .section-title h2 {
        margin: 10px 0;
    }

.categories {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 15px;
}

    .categories a {
        padding: 25px 18px;
        border: 1px solid #dce1d4;
        border-radius: 10px;
        background: #f0f1e8;
        display: flex;
        justify-content: space-between;
    }

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

.product {
    border: 1px solid #e1e3d9;
    border-radius: 12px;
    overflow: hidden;
    background: white;
}

.photo {
    height: 235px;
    background: #eee7e0;
    position: relative;
}

    .photo img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .photo span {
        position: absolute;
        bottom: 9px;
        left: 12px;
        font-size: 12px;
        color: #75555b;
        background: #fff9;
        padding: 2px 8px;
        border-radius: 5px;
    }

.product-info {
    padding: 16px 18px 3px;
}

    .product-info small {
        color: #667a60;
    }

    .product-info h3 {
        min-height: 48px;
        margin: 10px 0;
    }

.product-bottom {
    padding: 0 18px 18px;
}

    .product-bottom strong {
        display: block;
        margin-bottom: 14px;
    }

    .product-bottom button {
        width: 100%;
    }

.banner {
    margin-top: 45px;
    padding: 40px;
    border-radius: 14px;
    background: #eedddc;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .banner h2 {
        margin: 0;
    }

.filters {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 28px;
}

    .filters input {
        flex: 1.2;
    }

    .filters select {
        flex: 1;
    }

    .filters a {
        font-size: 14px;
    }

.pagination {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 35px;
}

.detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 45px;
    margin-top: 24px;
}

.detail-photo {
    background: #eee7e0;
    border-radius: 15px;
    overflow: hidden;
}

    .detail-photo img {
        width: 100%;
        height: 500px;
        object-fit: cover;
    }

.description {
    white-space: pre-line;
}

.price {
    font-size: 28px;
}

.inline {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

    .inline input[type=number] {
        max-width: 100px;
    }

    .inline label {
        margin: 0;
    }

.cart-row {
    display: flex;
    align-items: center;
    gap: 24px;
    border-bottom: 1px solid #dfe3d8;
    padding: 24px 0;
}

    .cart-row > div {
        flex: 1;
    }

.cart-total {
    text-align: right;
    margin-top: 35px;
}

.empty {
    text-align: center;
    padding: 70px 20px;
}

.panel {
    background: white;
    border: 1px solid #dfe3d8;
    border-radius: 12px;
    padding: 28px;
}

.narrow {
    max-width: 720px;
    margin: 30px auto;
}

.checkout {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 28px;
    align-items: start;
}

    .checkout aside strong {
        display: block;
    }

.check {
    display: flex;
    gap: 12px;
    align-items: start;
    font-size: 15px;
}

    .check input {
        width: auto;
        margin-top: 8px;
    }

.notice {
    padding: 15px;
    background: #e4eddf;
    border-radius: 8px;
    margin-bottom: 15px;
}

.validation, .validation-summary-errors {
    color: #a12d43;
}

.validation-summary-valid {
    display: none;
}

.admin-nav {
    background: #e8ecdf;
    padding: 18px;
    border-radius: 9px;
    flex-wrap: wrap;
}

    .admin-nav form {
        margin-left: auto;
    }

.stats {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 20px;
}

    .stats h2 {
        font-size: 45px;
        margin: 8px 0;
    }

.text-button {
    background: none;
    color: #75515a;
    padding: 4px 0;
}

    .text-button:hover {
        background: none;
        color: #a12d43;
    }

.secondary {
    background: #e8ecdf;
    color: #234c3d;
}

.category-row {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

    .category-row span {
        flex: 1;
    }

.table-wrap {
    overflow: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

th, td {
    text-align: left;
    padding: 16px;
    border-bottom: 1px solid #e1e3d9;
}

th {
    background: #e8ecdf;
}

.thumbnail {
    width: 160px;
    height: 160px;
    object-fit: cover;
}

.order {
    margin-bottom: 20px;
}

    .order select {
        width: auto;
    }

footer {
    background: #e8ecdf;
    padding: 40px 32px;
    text-align: center;
    font-size: 14px;
}

:focus-visible {
    outline: 3px solid #b68091;
    outline-offset: 3px;
}

@media(max-width:950px) {
    .grid, .categories {
        grid-template-columns: repeat(2,1fr);
    }

    .hero {
        gap: 25px;
    }

    .hero-art {
        min-height: 360px;
    }

        .hero-art img {
            height: 320px;
        }

    .cart-row {
        flex-wrap: wrap;
    }

    .filters {
        flex-wrap: wrap;
    }

        .filters input, .filters select {
            flex-basis: 40%;
        }

    header nav {
        gap: 15px;
    }

    .checkout {
        grid-template-columns: 1fr;
    }
}

@media(max-width:620px) {
    body {
        font-size: 17px;
    }

    header {
        padding: 20px;
        align-items: start;
        flex-direction: column;
    }

        header nav {
            flex-wrap: wrap;
            font-size: 14px;
            gap: 16px;
        }

    main {
        padding: 8px 18px 45px;
    }

    .hero {
        grid-template-columns: 1fr;
        gap: 15px;
    }

        .hero h1 {
            font-size: 43px;
        }

    .hero-art {
        min-height: 280px;
        border-radius: 110px 110px 14px 14px;
    }

        .hero-art img {
            height: 260px;
        }

    .section-title {
        align-items: start;
    }

        .section-title h2 {
            font-size: 28px;
        }

    .grid {
        gap: 12px;
    }

    .photo {
        height: 170px;
    }

    .product-info, .product-bottom {
        padding-left: 12px;
        padding-right: 12px;
    }

        .product-info h3 {
            font-size: 18px;
        }

        .product-bottom button {
            font-size: 14px;
            padding: 11px 5px;
        }

    .categories {
        gap: 10px;
    }

        .categories a {
            font-size: 15px;
            padding: 18px 12px;
        }

    .banner {
        display: block;
        padding: 25px;
    }

        .banner h2 {
            font-size: 29px;
            margin-bottom: 25px;
        }

    .detail {
        grid-template-columns: 1fr;
    }

    .detail-photo img {
        height: 350px;
    }

    .panel {
        padding: 20px;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .cart-row > div {
        flex-basis: 100%;
    }

    .cart-total {
        text-align: left;
    }

    .filters input, .filters select {
        flex-basis: 100%;
    }
}

/* RosalesGarden: оформление из утверждённого макета. */

body {
    color-scheme: light;
    background: #faf8f3;
    color: #223d32;
    font: 17px/1.6 system-ui,-apple-system,'Segoe UI',sans-serif;
    width: 100%;
    overflow-x: hidden;
    overflow-y: auto;
}

    body * {
        box-sizing: border-box;
    }

    body a {
        color: inherit;
        text-decoration: none;
    }

    body button {
        font: inherit;
        border: 0;
        border-radius: 7px;
        background: #234c3d;
        color: #fff;
        padding: 12px 21px;
        min-height: 44px;
    }

    body .topline {
        text-align: center;
        background: #e8ecdf;
        padding: 8px;
        font-size: 12px;
        letter-spacing: .13em;
    }

    body .store-header {
        padding: 25px 35px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 20px;
    }

    body .brand {
        font: 30px Georgia,serif;
        letter-spacing: -1px;
    }

        body .brand span {
            color: #8e4b60;
        }

        body .brand small {
            display: block;
            font: 11px system-ui;
            letter-spacing: .16em;
            margin-top: 7px;
        }

    body .store-nav {
        display: flex;
        gap: 24px;
        font-size: 15px;
        flex-wrap: wrap;
    }

        body .store-nav a {
            padding: 6px 0;
        }

    body .store-content {
        padding: 0 35px 35px;
    }

    body .hero {
        display: grid;
        grid-template-columns: 1.15fr 1fr;
        gap: 30px;
        align-items: center;
        padding: 15px 0 25px;
    }

    body .eyebrow {
        font-size: 11px;
        letter-spacing: .17em;
        color: #63765c;
        font-weight: 500;
    }

    body h1 {
        font: 400 clamp(35px,5vw,58px)/1.08 Georgia,serif;
        letter-spacing: -1.4px;
        margin: 19px 0 24px;
    }

        body h1 em {
            color: #905367;
        }

    body .intro {
        max-width: 430px;
        font-size: 16px;
        color: #55675a;
        margin-bottom: 25px;
    }

    body .hero-art {
        background: #e9ece0;
        border-radius: 170px 170px 15px 15px;
        position: relative;
        overflow: hidden;
        min-height: 390px;
        display: grid;
        place-items: center;
    }

        body .hero-art img {
            width: 100%;
            height: 390px;
            object-fit: cover;
            mix-blend-mode: multiply;
        }

    body .art-caption {
        position: absolute;
        bottom: 26px;
        right: 25px;
        font: 23px/1.25 Georgia,serif;
        color: #6f7358;
    }

        body .art-caption em {
            color: #8e4b60;
        }

    body .section {
        padding: 25px 0;
    }

    body .section-title {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 20px;
    }

    body h2 {
        font: 400 31px/1.2 Georgia,serif;
        margin: 10px 0 22px;
    }

    body .section-title > a {
        font-size: 14px;
        white-space: nowrap;
    }

    body .categories {
        display: grid;
        grid-template-columns: repeat(4,1fr);
        gap: 12px;
    }

        body .categories a {
            color: #234c3d;
            background: #f0f1e8;
            border: 1px solid #dce1d4;
            text-align: left;
            padding: 18px 14px;
            display: flex;
            justify-content: space-between;
            gap: 10px;
            font-size: 14px;
        }

            body .categories a[aria-pressed=true] {
                background: #234c3d;
                color: white;
            }

    body .grid {
        display: grid;
        grid-template-columns: repeat(4,1fr);
        gap: 17px;
    }

    body .product {
        background: #fff;
        border: 1px solid #e1e3d9;
        border-radius: 10px;
        overflow: hidden;
    }

    body .photo {
        height: 195px;
        background: #eee7e0;
        position: relative;
    }

        body .photo img {
            height: 100%;
            width: 100%;
            object-fit: cover;
        }

    body .availability {
        position: absolute;
        top: 10px;
        left: 10px;
        font-size: 11px;
        padding: 3px 8px;
        background: #ffffffe0;
        color: #5a6855;
        border-radius: 5px;
    }

    body .product-info {
        padding: 16px;
    }

        body .product-info small {
            font-size: 12px;
            color: #63765c;
        }

    body h3 {
        font: 400 22px/1.15 Georgia,serif;
        margin: 7px 0 15px;
    }

    body .product-price {
        font-size: 18px;
        font-weight: 500;
        margin: 0 0 14px;
    }

        body .product-price span {
            font-size: 13px;
            font-weight: 400;
        }

    body .product-bottom button {
        width: 100%;
        font-size: 14px;
        padding: 10px 8px;
    }

    body .banner {
        background: #eedddc;
        border-radius: 12px;
        padding: 30px 35px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 20px;
        margin-top: 20px;
    }

        body .banner h2 {
            margin: 0;
        }

    body .store-footer {
        border-top: 1px solid #dce1d4;
        padding: 24px 35px;
        display: flex;
        justify-content: space-between;
        gap: 20px;
        font-size: 13px;
    }

    body .status {
        min-height: 26px;
        font-size: 14px;
        color: #667a60;
    }

    body [hidden] {
        display: none;
    }

@media(max-width:720px) {
    body .store-header {
        padding: 22px;
        flex-direction: column;
        align-items: start;
    }

    body .store-content {
        padding: 0 22px 25px;
    }

    body .hero {
        gap: 15px;
    }

    body .hero-art, body .hero-art img {
        min-height: 310px;
        height: 310px;
    }

    body h1 {
        font-size: 40px;
    }

    body .grid {
        grid-template-columns: repeat(2,1fr);
    }

    body .categories {
        grid-template-columns: repeat(2,1fr);
    }

    body .banner {
        padding: 26px;
    }
}

@media(max-width:460px) {
    body .hero {
        grid-template-columns: 1fr;
    }

    body .hero-art, body .hero-art img {
        min-height: 270px;
        height: 270px;
    }

    body .photo {
        height: 155px;
    }

    body .grid {
        gap: 10px;
    }

    body .product-info {
        padding: 12px;
    }

    body h2 {
        font-size: 26px;
    }

    body .banner {
        display: block;
    }

        body .banner h2 {
            margin-bottom: 22px;
        }

    body .store-footer {
        flex-direction: column;
    }

    body .store-nav {
        gap: 17px;
    }
}

body .button {
    font: inherit;
    border-radius: 7px;
    padding: 12px 21px;
    min-height: 44px;
    font-size: 16px;
}

body .hero h1 {
    max-width: 620px;
}

body .hero {
    min-height: 0;
}

body .product-info h3 {
    min-height: 0;
}

body .product-bottom {
    padding: 0 16px 16px;
}

body .product-price small {
    font-size: 13px;
    font-weight: 400;
}

body .photo .availability {
    top: 10px;
    bottom: auto;
    left: 10px;
    font-size: 11px;
    padding: 3px 8px;
    background: #ffffffe0;
    color: #5a6855;
    border-radius: 5px;
}

body .photo .photo-placeholder {
    bottom: 10px;
    top: auto;
}

body .store-footer {
    background: transparent;
    max-width: 1280px;
    margin: auto;
    text-align: left;
    align-items: center;
    flex-wrap: wrap;
}

body .footer-links {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

body .section-title {
    margin-bottom: 0;
}

body .store-nav b {
    background: transparent;
    font-weight: 400;
    min-width: 0;
}

body .hero-art {
    width: 100%;
}

body .store-content {
    padding-top: 0;
    min-height: 60vh;
}

body .store-nav {
    align-items: center;
}

body .categories a:hover {
    background: #234c3d;
    color: white;
    text-decoration: none;
}

body a.button:hover {
    background: #35604c;
}

@media(max-width:460px) {
    body .product-bottom {
        padding: 0 12px 12px;
    }

    body .hero h1 {
        font-size: 40px;
    }

    body .store-footer {
        align-items: start;
    }
}
