:root {
    --primary: #214b35;
    --primary-dark: #173628;
    --primary-soft: #e7f1eb;
    --accent: #c99345;
    --accent-soft: #f7ecd9;
    --surface: #ffffff;
    --background: #f4f6f2;
    --text: #23342a;
    --muted: #758178;
    --border: #e4e9e5;
    --danger: #bd3d3d;
    --shadow: 0 12px 35px rgba(26, 61, 40, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    direction: rtl;
}

body {
    margin: 0;
    color: var(--text);
    background: var(--background);
    font-family: Tahoma, Arial, sans-serif;
}

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

button,
input,
select {
    font: inherit;
}

img {
    max-width: 100%;
}

.customer-app {
    min-height: 100vh;
    padding-bottom: 92px;
}

.customer-header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    min-height: 72px;
    padding: 10px max(16px, env(safe-area-inset-right));
    color: #fff;
    background: rgba(33, 75, 53, 0.97);
    box-shadow: 0 5px 24px rgba(16, 44, 28, 0.18);
    backdrop-filter: blur(12px);
}

.customer-brand {
    display: flex;
    align-items: center;
    gap: 11px;
}

.customer-brand-icon {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.13);
    font-size: 25px;
}

.customer-brand strong,
.customer-brand small {
    display: block;
}

.customer-brand strong {
    font-size: 16px;
}

.customer-brand small {
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 10px;
}

.cart-button {
    position: relative;
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.13);
    font-size: 21px;
}

.cart-button b {
    position: absolute;
    top: -4px;
    left: -4px;
    display: grid;
    min-width: 21px;
    height: 21px;
    padding: 0 5px;
    place-items: center;
    border-radius: 20px;
    color: #fff;
    background: var(--accent);
    font-size: 10px;
}

.customer-main {
    width: min(1180px, calc(100% - 24px));
    margin: 18px auto;
}

.hero-banner {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(170px, 0.6fr);
    min-height: 330px;
    padding: 42px;
    border-radius: 30px;
    background:
        radial-gradient(circle at left top, rgba(201, 147, 69, 0.28), transparent 38%),
        linear-gradient(135deg, #e9f0e9, #f7f0e0);
    box-shadow: var(--shadow);
}

.hero-banner::after {
    position: absolute;
    left: -70px;
    bottom: -90px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: rgba(33, 75, 53, 0.07);
    content: "";
}

.hero-content {
    position: relative;
    z-index: 2;
    align-self: center;
}

.hero-kicker,
.section-heading span,
.catalog-top span {
    color: var(--accent);
    font-size: 13px;
    font-weight: bold;
}

.hero-content h1 {
    margin: 10px 0 14px;
    font-size: clamp(30px, 5vw, 50px);
}

.hero-content p {
    max-width: 620px;
    margin: 0;
    color: #5f6d64;
    line-height: 1.9;
    font-size: 16px;
}

.hero-actions {
    display: flex;
    gap: 10px;
    margin-top: 24px;
}

.primary-action,
.secondary-action {
    display: inline-flex;
    min-height: 48px;
    padding: 12px 20px;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    font-size: 13px;
    font-weight: bold;
}

.primary-action {
    color: #fff;
    background: var(--primary);
}

.secondary-action {
    color: var(--primary);
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(33, 75, 53, 0.16);
}

.hero-visual {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    font-size: clamp(100px, 17vw, 190px);
}

.benefits-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 16px;
}

.benefits-row > div {
    display: grid;
    grid-template-columns: 46px 1fr;
    padding: 16px;
    border-radius: 20px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.benefits-row span {
    grid-row: span 2;
    align-self: center;
    font-size: 25px;
}

.benefits-row strong,
.benefits-row small {
    display: block;
}

.benefits-row small {
    margin-top: 5px;
    color: var(--muted);
    font-size: 11px;
}

.content-section {
    margin-top: 28px;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 16px;
}

.section-heading h2,
.catalog-top h1 {
    margin: 6px 0 0;
    font-size: 24px;
}

.section-heading > a {
    color: var(--primary);
    font-size: 12px;
    font-weight: bold;
}

.breed-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.breed-chip {
    display: inline-flex;
    min-width: max-content;
    padding: 12px 16px;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: 0 6px 18px rgba(32, 71, 48, 0.05);
    font-size: 13px;
    font-weight: bold;
}

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

.product-card {
    overflow: hidden;
    border-radius: 22px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.product-image-wrap {
    position: relative;
    display: block;
    aspect-ratio: 1.18 / 1;
    overflow: hidden;
    background: #edf2ed;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.offer-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 7px 10px;
    border-radius: 12px;
    color: #fff;
    background: var(--accent);
    font-size: 11px;
    font-weight: bold;
}

.product-body {
    padding: 15px;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: var(--muted);
    font-size: 10px;
}

.product-body h3 {
    margin: 10px 0;
    font-size: 16px;
}

.product-specs {
    display: flex;
    gap: 10px;
    color: var(--muted);
    font-size: 11px;
}

.product-price-row {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
}

.product-price-row strong,
.details-price strong {
    display: block;
    color: var(--primary);
    font-size: 18px;
}

.product-price-row del,
.details-price del {
    display: block;
    margin-top: 4px;
    color: #a2aaa4;
    font-size: 11px;
}

.details-button {
    padding: 9px 12px;
    border-radius: 12px;
    color: var(--primary);
    background: var(--primary-soft);
    font-size: 11px;
    font-weight: bold;
}

.empty-customer-state {
    padding: 45px 20px;
    border-radius: 24px;
    color: var(--muted);
    background: var(--surface);
    box-shadow: var(--shadow);
    text-align: center;
}

.empty-customer-state > div {
    margin-bottom: 12px;
    font-size: 45px;
}

.empty-customer-state a {
    display: block;
    width: max-content;
    margin: 15px auto 0;
    color: var(--primary);
    font-weight: bold;
}

.catalog-top {
    padding: 22px 4px;
}

.catalog-top p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.filter-card {
    padding: 18px;
    border-radius: 22px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.catalog-filter-form {
    display: grid;
    grid-template-columns: 1.5fr repeat(4, minmax(120px, 1fr)) auto;
    gap: 10px;
    align-items: end;
}

.catalog-filter-form label {
    display: block;
    margin-bottom: 7px;
    color: #526057;
    font-size: 11px;
    font-weight: bold;
}

.catalog-filter-form input,
.catalog-filter-form select {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 13px;
    outline: none;
    background: #f9fbfa;
}

.filter-actions {
    display: flex;
    gap: 7px;
}

.filter-actions button,
.filter-actions a {
    display: inline-flex;
    min-height: 44px;
    padding: 10px 14px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 13px;
    font-size: 11px;
    font-weight: bold;
    cursor: pointer;
}

.filter-actions button {
    color: #fff;
    background: var(--primary);
}

.filter-actions a {
    color: var(--text);
    background: #edf2ef;
}

.details-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
    gap: 20px;
    align-items: start;
}

.details-gallery,
.details-info {
    padding: 20px;
    border-radius: 25px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.main-image-box {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1.2 / 1;
    border-radius: 20px;
    background: #edf2ed;
}

.main-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail-row {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    overflow-x: auto;
}

.thumbnail-button {
    flex: 0 0 72px;
    height: 66px;
    padding: 0;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 13px;
    background: #edf2ed;
    cursor: pointer;
}

.thumbnail-button:hover {
    border-color: var(--primary);
}

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

.details-heading span {
    color: var(--accent);
    font-size: 12px;
    font-weight: bold;
}

.details-heading h1 {
    margin: 7px 0 6px;
    font-size: 28px;
}

.details-heading small {
    color: var(--muted);
}

.details-price {
    margin: 20px 0;
}

.details-price strong {
    font-size: 26px;
}

.spec-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.spec-grid > div {
    display: grid;
    grid-template-columns: 40px 1fr;
    padding: 13px;
    border-radius: 16px;
    background: #f7faf8;
}

.spec-grid span {
    grid-row: span 2;
    align-self: center;
    font-size: 22px;
}

.spec-grid small {
    color: var(--muted);
    font-size: 10px;
}

.spec-grid strong {
    margin-top: 4px;
    font-size: 12px;
}

.description-box {
    margin-top: 18px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 17px;
}

.description-box h2,
.services-form h2,
.cart-summary h2 {
    margin: 0 0 12px;
    font-size: 16px;
}

.description-box p {
    margin: 0;
    color: var(--muted);
    line-height: 1.9;
    font-size: 13px;
}

.services-form {
    margin-top: 18px;
}

.service-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.service-option {
    display: flex;
    padding: 12px;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--border);
    border-radius: 15px;
    background: #f9fbfa;
}

.service-option input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

.service-option strong,
.service-option small {
    display: block;
}

.service-option strong {
    font-size: 12px;
}

.service-option small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 10px;
}

.add-cart-large,
.checkout-button {
    display: flex;
    width: 100%;
    min-height: 52px;
    margin-top: 16px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 16px;
    color: #fff;
    background: var(--primary);
    font-weight: bold;
    cursor: pointer;
}

.customer-alert {
    margin-bottom: 15px;
    padding: 14px 16px;
    border-radius: 15px;
    font-size: 13px;
}

.customer-alert.success {
    color: #176a3f;
    background: #dcf6e8;
}

.customer-alert.error {
    color: #9d3030;
    background: #ffe3e3;
}

.cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 18px;
    align-items: start;
}

.cart-items {
    display: grid;
    gap: 12px;
}

.cart-item {
    display: grid;
    grid-template-columns: 125px 1fr auto;
    gap: 14px;
    padding: 14px;
    border-radius: 20px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.cart-item > img {
    width: 125px;
    height: 110px;
    border-radius: 15px;
    object-fit: cover;
    background: #edf2ed;
}

.cart-item-info small,
.cart-item-info p {
    color: var(--muted);
}

.cart-item-info h2 {
    margin: 6px 0;
    font-size: 17px;
}

.cart-item-info p {
    margin: 0 0 10px;
    font-size: 11px;
}

.cart-item-info strong {
    color: var(--primary);
}

.remove-cart-item {
    padding: 8px 10px;
    border: 0;
    border-radius: 11px;
    color: var(--danger);
    background: #ffe7e7;
    cursor: pointer;
}

.cart-summary {
    position: sticky;
    top: 90px;
    padding: 20px;
    border-radius: 22px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.cart-summary > div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
}

.cart-summary p {
    color: var(--muted);
    line-height: 1.8;
    font-size: 11px;
}

.checkout-button.disabled {
    opacity: 0.55;
    pointer-events: none;
}

.customer-bottom-nav {
    position: fixed;
    right: 50%;
    bottom: 11px;
    z-index: 120;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    width: min(540px, calc(100% - 22px));
    padding: 8px;
    border: 1px solid rgba(225, 233, 227, 0.9);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 16px 42px rgba(24, 58, 38, 0.2);
    transform: translateX(50%);
    backdrop-filter: blur(12px);
}

.customer-bottom-nav a {
    padding: 7px 3px;
    color: var(--muted);
    border-radius: 14px;
    text-align: center;
    font-size: 10px;
}

.customer-bottom-nav a span {
    display: block;
    margin-bottom: 4px;
    font-size: 20px;
}

.customer-bottom-nav a.active {
    color: var(--primary);
    background: var(--primary-soft);
    font-weight: bold;
}

@media (max-width: 1000px) {
    .product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .catalog-filter-form {
        grid-template-columns: repeat(3, 1fr);
    }

    .filter-wide {
        grid-column: span 2;
    }

    .filter-actions {
        align-self: end;
    }
}

@media (max-width: 760px) {
    .hero-banner,
    .details-layout,
    .cart-layout {
        grid-template-columns: 1fr;
    }

    .hero-banner {
        min-height: auto;
        padding: 28px 22px;
    }

    .hero-visual {
        display: none;
    }

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

    .benefits-row {
        grid-template-columns: 1fr;
    }

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

    .filter-wide {
        grid-column: span 2;
    }

    .cart-summary {
        position: static;
    }
}

@media (max-width: 520px) {
    .customer-main {
        width: calc(100% - 16px);
        margin-top: 10px;
    }

    .customer-header {
        min-height: 65px;
        padding: 9px 12px;
    }

    .customer-brand small {
        display: none;
    }

    .hero-content h1 {
        font-size: 29px;
    }

    .hero-content p {
        font-size: 13px;
    }

    .hero-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .product-grid {
        gap: 9px;
    }

    .product-body {
        padding: 11px;
    }

    .product-body h3 {
        font-size: 13px;
    }

    .product-specs {
        display: grid;
        gap: 4px;
        font-size: 9px;
    }

    .product-price-row {
        display: block;
    }

    .details-button {
        display: flex;
        margin-top: 10px;
        justify-content: center;
    }

    .catalog-filter-form {
        grid-template-columns: 1fr 1fr;
    }

    .filter-wide,
    .filter-actions {
        grid-column: span 2;
    }

    .filter-actions > * {
        flex: 1;
    }

    .details-gallery,
    .details-info {
        padding: 13px;
    }

    .service-options {
        grid-template-columns: 1fr;
    }

    .cart-item {
        grid-template-columns: 88px 1fr;
    }

    .cart-item > img {
        width: 88px;
        height: 88px;
    }

    .cart-item > form {
        grid-column: 1 / -1;
    }

    .remove-cart-item {
        width: 100%;
    }
}
