:root {
    color-scheme: dark;
    --black: #0c0b0a;
    --card: #211d1a;
    --mocha: #855640;
    --latte: #e7c6a1;
    --text: #d4c5b9;
    --muted: #baaa9e;
    --green: #b4d4a7;
    --border: rgba(231, 198, 161, 0.22);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    margin: 0;
    background: var(--black);
    color: white;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
}

img {
    max-width: 100%;
}

a {
    color: var(--latte);
}

button,
input,
textarea {
    font: inherit;
}

button,
.main-btn {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 46px;
    padding: 12px 22px;
    border: 1px solid transparent;
    border-radius: 24px;
    background: var(--mocha);
    color: white;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s;
}

button:hover,
.main-btn:hover {
    background: #9b674e;
}

button:disabled {
    cursor: default;
    opacity: 0.55;
}

:focus-visible {
    outline: 3px solid var(--latte);
    outline-offset: 4px;
}

[hidden] {
    display: none !important;
}

h1,
h2,
h3,
p {
    overflow-wrap: anywhere;
}

/* Navigation */

nav {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 12px max(20px, calc((100vw - 1160px) / 2));
    background: rgba(12, 11, 10, 0.97);
    border-bottom: 1px solid var(--border);
}

.logo {
    font-size: 19px;
    font-weight: 900;
    letter-spacing: 3px;
    text-decoration: none;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-links a {
    display: flex;
    min-height: 44px;
    align-items: center;
    color: white;
    text-decoration: none;
    font-size: 14px;
}

.nav-links .cart-nav {
    gap: 8px;
    padding: 0 12px;
    background: var(--mocha);
    border-radius: 24px;
}

#cart-count {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--latte);
    color: var(--black);
    font-weight: 700;
}

/* Hero */

.hero {
    padding: 76px 20px 60px;
    text-align: center;
    background: radial-gradient(
        ellipse at top,
        #36251f,
        var(--black) 75%
    );
}

.hero-content {
    max-width: 850px;
    margin: auto;
}

.small-title {
    color: var(--latte);
    font-size: 11px;
    letter-spacing: 2px;
    font-weight: 700;
}

.hero h1 {
    font-size: clamp(36px, 7vw, 78px);
    line-height: 1.05;
    letter-spacing: -2px;
    margin: 22px 0;
}

.hero h1 span {
    display: block;
    color: var(--latte);
    margin-top: 8px;
}

.hero-text {
    max-width: 650px;
    margin: 0 auto 28px;
    color: var(--text);
    font-size: 17px;
    line-height: 1.7;
}

.hero-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    margin-top: 38px;
}

.hero-info div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hero-info strong {
    color: var(--latte);
}

.hero-info span {
    color: var(--text);
    font-size: 12px;
}

.hero-info i {
    width: 1px;
    height: 35px;
    background: var(--border);
}

/* Offer */

.offer-bar {
    overflow: hidden;
    background: var(--latte);
    color: var(--black);
    padding: 11px 16px;
}

.offer-moving {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 28px;
    font-size: 11px;
    font-weight: 700;
}

/* Sections */

.section,
.themes-section,
.options-section,
.cart-section,
.how-section,
.about-section,
.contact-section {
    padding: 64px max(20px, calc((100vw - 1100px) / 2));
}

.section,
.options-section,
.how-section {
    background: #151210;
}

.section-heading {
    max-width: 720px;
    margin: 0 auto 30px;
    text-align: center;
}

.section-heading h2 {
    color: var(--latte);
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.2;
    margin: 10px 0 14px;
}

.section-heading > p:not(.small-title) {
    color: var(--text);
    margin-bottom: 0;
}

/* Products */

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.product-card {
    position: relative;
    min-width: 0;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--card);
    overflow: hidden;
    text-align: center;
    padding-bottom: 22px;
}

.product-image {
    background: #eee5db;
}

.product-image img {
    width: 100%;
    height: 210px;
    display: block;
    object-fit: contain;
}

.launch-badge,
.popular-badge {
    position: absolute;
    top: 10px;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 9px;
    font-weight: 800;
}

.launch-badge {
    left: 10px;
    background: var(--latte);
    color: var(--black);
}

.popular-badge {
    right: 10px;
    background: #583821;
    color: white;
}

.product-name {
    color: var(--latte);
    font-weight: 700;
    font-size: 17px;
    padding: 0 14px;
    margin: 18px 0 8px;
}

.arabic-name {
    display: block;
    margin-top: 4px;
    font-weight: 400;
    font-size: 17px;
    letter-spacing: 0;
}

.product-card h3 {
    margin: 8px 0;
    font-size: 20px;
}

.product-card > p:not(.product-name) {
    padding: 0 18px;
    color: var(--text);
    font-size: 14px;
}

.price,
.custom-price {
    color: var(--latte);
    font-weight: 700;
    font-size: 25px;
    margin: 16px 0;
}

.custom-price {
    font-size: 19px;
}

.product-card.selected,
.theme-card.selected {
    border-color: var(--latte);
    box-shadow: 0 0 0 2px var(--latte);
}

/* Themes and designs */

.themes-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.theme-card {
    display: flex;
    flex-direction: column;
    gap: 7px;
    align-items: flex-start;
    text-align: left;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    background: var(--card);
}

.theme-icon {
    color: var(--latte);
    font-size: 26px;
}

.theme-title {
    font-size: 17px;
    margin: 0;
    font-weight: 700;
}

.theme-description {
    color: var(--text);
    font-size: 13px;
    font-weight: 400;
    margin: 0;
}

.arrow {
    color: var(--latte);
    margin-top: auto;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.option-card {
    min-height: 62px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--latte);
    padding: 14px;
    font-size: 15px;
}

.option-card.custom-option {
    border-style: dashed;
}

.custom-message {
    margin-top: 26px;
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: 16px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 20px;
}

.big-heart {
    font-size: 42px;
    color: var(--latte);
}

.custom-message h3 {
    margin: 5px 0;
}

.custom-message p {
    color: var(--text);
    margin: 8px 0;
}

/* Cart */

.cart-items,
.checkout-box,
.total-box,
.benefits {
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
}

.cart-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--card);
    margin-bottom: 12px;
}

.cart-item h3 {
    color: var(--latte);
    margin: 0 0 6px;
}

.cart-item p {
    color: var(--text);
    margin: 0;
    font-size: 14px;
}

.cart-price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.cart-price strong {
    color: var(--latte);
    font-size: 20px;
}

.remove-btn,
.clear-btn {
    background: transparent;
    color: var(--latte);
    border-color: var(--border);
}

.remove-btn {
    padding: 8px 14px;
}

.empty-cart {
    text-align: center;
    padding: 28px 15px;
    border: 1px dashed var(--border);
    border-radius: 16px;
}

.empty-cart span {
    color: var(--latte);
    font-size: 36px;
}

.empty-cart h3 {
    font-size: 18px;
}

.empty-cart p {
    color: var(--text);
}

/* Checkout */

.checkout-box,
.total-box {
    padding: 28px;
    margin-top: 24px;
    margin-bottom: 24px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--card);
}

.box-title {
    margin-bottom: 20px;
}

.box-title h3 {
    color: var(--latte);
    font-size: 24px;
    margin: 6px 0;
    line-height: 1.25;
}

.box-title p {
    color: var(--text);
    margin: 8px 0;
}

/* Photos */

.upload-box {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    min-height: 140px;
    border: 2px dashed var(--border);
    border-radius: 14px;
    background: #151210;
    cursor: pointer;
    padding: 16px;
    text-align: center;
}

.upload-box:focus-within {
    outline: 3px solid var(--latte);
    outline-offset: 4px;
}

.upload-box input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.upload-icon {
    color: var(--latte);
    font-size: 30px;
}

.upload-box strong {
    color: var(--latte);
}

.upload-box small,
.upload-box span:not(.upload-icon) {
    color: var(--text);
    font-size: 13px;
}

.photo-preview {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin-top: 18px;
}

.preview-image {
    position: relative;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.preview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.remove-photo {
    position: absolute;
    top: 0;
    right: 0;
    min-height: 44px;
    width: 44px;
    padding: 0;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 0 0 0 12px;
    font-size: 24px;
}

.photo-count,
.photo-help {
    color: var(--text);
    font-size: 14px;
    line-height: 1.6;
}

.photo-count {
    text-align: center;
}

.share-photos-btn {
    width: 100%;
}

/* Forms */

.instructions {
    margin-top: 24px;
}

.instructions label,
.form-grid label {
    display: block;
    color: var(--latte);
    font-weight: 700;
    font-size: 14px;
}

.instructions label span {
    color: var(--text);
    font-weight: 400;
    margin-left: 6px;
}

input,
textarea {
    color: white;
    background: #100e0d;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 13px;
    width: 100%;
    font-size: 16px;
}

input {
    min-height: 48px;
}

input::placeholder,
textarea::placeholder {
    color: #b9aaa0;
    opacity: 1;
}

textarea {
    min-height: 120px;
    margin-top: 8px;
    resize: vertical;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.form-grid input {
    margin-top: 7px;
}

[aria-invalid="true"] {
    border-color: #ef9b91;
}

/* Payment */

.payment-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.payment-card {
    background: #171310;
    border-color: var(--border);
    border-radius: 14px;
    flex-direction: column;
    gap: 4px;
    padding: 18px 10px;
}

.payment-card.active {
    background: var(--latte);
    color: var(--black);
    border-color: var(--latte);
}

.payment-icon {
    font-size: 23px;
}

.payment-card small {
    font-weight: 400;
}

.payment-result {
    color: var(--text);
    font-size: 14px;
}

/* Benefits and totals */

.benefits {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 28px;
    margin-bottom: 28px;
}

.benefits > div {
    padding: 18px;
    text-align: center;
    border: 1px solid var(--border);
    border-radius: 14px;
}

.benefits span {
    color: var(--latte);
    font-size: 24px;
}

.benefits h3 {
    font-size: 16px;
}

.benefits p {
    color: var(--text);
    font-size: 13px;
}

.total-box > div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.total-box strong {
    color: var(--latte);
}

.total-box .free {
    color: var(--green);
}

.total-box .grand-total {
    border-bottom: 0;
    font-size: 22px;
}

.checkout-btn {
    width: 100%;
    margin-top: 16px;
    min-height: 52px;
}

.clear-btn {
    display: flex;
    margin: 12px auto 0;
}

/* WhatsApp follow-up */

.order-next {
    padding: 28px;
    max-width: 850px;
    margin: 24px auto 40px;
    background: var(--card);
    border: 1px solid var(--latte);
    border-radius: 18px;
}

.order-next h2 {
    color: var(--latte);
}

.order-next p,
.order-next li {
    color: var(--text);
}

.order-next li {
    margin-bottom: 12px;
}

.order-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* How it works */

.steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.step {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px;
}

.step span {
    color: var(--latte);
    font-size: 12px;
    font-weight: 700;
}

.step h3 {
    margin: 8px 0;
}

.step p {
    color: var(--text);
    font-size: 14px;
}

/* About and contact */

.about-content {
    max-width: 750px;
    margin: auto;
    text-align: center;
}

.about-content h2 {
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.2;
    color: var(--latte);
}

.about-content h2 span {
    display: block;
}

.about-content > p {
    color: var(--text);
    line-height: 1.8;
}

.contact-section {
    background: #151210;
}

.contact-card {
    max-width: 650px;
    margin: auto;
    text-align: center;
    padding: 32px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
}

.contact-heart,
.footer-heart {
    color: var(--latte);
    font-size: 38px;
}

.contact-card h3 {
    color: var(--latte);
    font-size: 24px;
}

.contact-card > p {
    color: var(--text);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 24px;
    color: var(--text);
}

.contact-details a {
    overflow-wrap: anywhere;
}

/* Footer */

footer {
    padding: 48px 20px 32px;
    text-align: center;
}

footer h2 {
    color: var(--latte);
    letter-spacing: 3px;
}

footer p {
    color: var(--text);
}

.footer-features,
.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 20px;
    margin: 24px 0;
}

.footer-features {
    color: var(--latte);
    font-size: 11px;
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}

.email-link {
    overflow-wrap: anywhere;
}

.copyright {
    font-size: 12px;
}

/* Status messages */

.toast {
    position: fixed;
    z-index: 200;
    left: 50%;
    bottom: max(20px, env(safe-area-inset-bottom));
    transform: translateX(-50%);
    width: max-content;
    max-width: calc(100vw - 24px);
    padding: 12px 18px;
    border-radius: 14px;
    background: var(--latte);
    color: var(--black);
    font-weight: 700;
    font-size: 14px;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}

.toast.show {
    opacity: 1;
}

/* Tablets */

@media (max-width: 900px) {
    nav {
        padding: 10px 20px;
    }

    .nav-links {
        gap: 14px;
    }

    .themes-grid,
    .steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .products-grid {
        gap: 12px;
    }

    .product-image img {
        height: 170px;
    }

    .product-card > button {
        margin: 0 10px;
        padding: 10px 14px;
    }

    .custom-message {
        grid-template-columns: auto 1fr;
    }

    .custom-message button {
        grid-column: 1 / -1;
    }
}

/* Phones */

@media (max-width: 600px) {
    html {
        scroll-padding-top: 114px;
    }

    nav {
        flex-direction: column;
        gap: 3px;
        padding: 8px 12px;
    }

    .logo {
        font-size: 17px;
    }

    .nav-links {
        justify-content: space-between;
        width: 100%;
        gap: 4px;
    }

    .nav-links a {
        font-size: 12px;
        padding: 0 5px;
    }

    .nav-links .cart-nav {
        padding: 0 8px;
    }

    .hero {
        padding: 40px 16px 34px;
    }

    .hero h1 {
        font-size: clamp(34px, 10vw, 48px);
        letter-spacing: -1px;
    }

    .hero-text {
        font-size: 15px;
        line-height: 1.6;
    }

    .hero .main-btn {
        width: 100%;
        max-width: 350px;
    }

    .hero-info {
        gap: 10px;
        margin-top: 26px;
    }

    .hero-info div {
        flex: 1;
    }

    .hero-info strong {
        font-size: 15px;
    }

    .hero-info span {
        font-size: 11px;
    }

    .small-title {
        letter-spacing: 1.5px;
        font-size: 10px;
    }

    .offer-moving {
        gap: 6px 14px;
        font-size: 10px;
    }

    .section,
    .themes-section,
    .options-section,
    .cart-section,
    .how-section,
    .about-section,
    .contact-section {
        padding: 36px 14px;
    }

    .section-heading {
        margin-bottom: 22px;
    }

    .section-heading h2 {
        font-size: 28px;
    }

    .section-heading > p {
        font-size: 14px;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .product-card {
        padding: 16px 14px 14px;
        text-align: left;
        display: grid;
        grid-template-columns: 100px minmax(0, 1fr);
        column-gap: 14px;
        align-items: center;
    }

    .product-image {
        grid-column: 1;
        grid-row: 2 / 6;
        border-radius: 10px;
        overflow: hidden;
    }

    .product-image img {
        height: 120px;
    }

    .product-name {
        grid-column: 2;
        grid-row: 2;
        padding: 0;
        margin: 6px 0;
        font-size: 15px;
        line-height: 1.3;
    }

    .arabic-name {
        font-size: 16px;
    }

    .product-card h3 {
        grid-column: 2;
        grid-row: 3;
        font-size: 16px;
        margin: 4px 0;
    }

    .product-card > p:not(.product-name) {
        grid-column: 2;
        grid-row: 4;
        padding: 0;
        font-size: 12px;
        margin: 4px 0;
        line-height: 1.5;
    }

    .price,
    .custom-price {
        grid-column: 2;
        grid-row: 5;
        font-size: 20px;
        margin: 5px 0;
    }

    .custom-price {
        font-size: 16px;
    }

    .product-card > button {
        grid-column: 1 / -1;
        grid-row: 6;
        width: 100%;
        margin: 12px 0 0;
    }

    .launch-badge {
        position: static;
        grid-column: 1 / -1;
        grid-row: 1;
        justify-self: start;
        margin-bottom: 10px;
        font-size: 9px;
    }

    .popular-badge {
        right: 12px;
        top: 16px;
        font-size: 9px;
    }

    .themes-grid {
        gap: 10px;
    }

    .theme-card {
        padding: 14px;
        gap: 5px;
    }

    .theme-icon {
        font-size: 22px;
    }

    .theme-title {
        font-size: 15px;
    }

    .theme-description {
        font-size: 12px;
    }

    .theme-card .arrow {
        display: none;
    }

    .options-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
    }

    .option-card {
        min-height: 58px;
        padding: 10px;
        font-size: 14px;
    }

    .custom-message {
        grid-template-columns: 1fr;
        padding: 16px;
        gap: 12px;
    }

    .custom-message .big-heart {
        display: none;
    }

    .custom-message h3 {
        font-size: 18px;
    }

    .custom-message p {
        font-size: 14px;
    }

    .checkout-box,
    .total-box {
        padding: 18px 14px;
        margin: 18px auto;
        border-radius: 14px;
    }

    .box-title h3 {
        font-size: 21px;
    }

    .box-title p {
        font-size: 14px;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .photo-preview {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .cart-item {
        grid-template-columns: minmax(0, 1fr);
        padding: 16px;
        gap: 12px;
    }

    .cart-price {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .benefits {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .benefits > div {
        padding: 12px;
        display: grid;
        grid-template-columns: 32px 1fr;
        column-gap: 10px;
        text-align: left;
        align-items: center;
    }

    .benefits span {
        grid-row: 1 / 3;
    }

    .benefits h3,
    .benefits p {
        margin: 3px 0;
    }

    .order-next {
        margin: 16px 14px 28px;
        padding: 18px;
    }

    .order-next h2 {
        font-size: 23px;
    }

    .order-next ol {
        padding-left: 20px;
    }

    .order-actions {
        flex-direction: column;
    }

    .steps {
        gap: 10px;
    }

    .step {
        padding: 14px;
    }

    .step h3 {
        font-size: 17px;
    }

    .step p {
        font-size: 13px;
    }

    .about-content h2 {
        font-size: 30px;
    }

    .about-content > p {
        font-size: 15px;
    }

    .contact-card {
        padding: 22px 16px;
    }

    .contact-card h3 {
        font-size: 22px;
    }

    .contact-card p {
        font-size: 14px;
    }

    footer {
        padding: 34px 16px;
    }
}

/* Reduced motion */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition: none !important;
        animation: none !important;
    }
}