:root {
    --ink: #161311;
    --ivory: #f4efe8;
    --paper: #fbf8f4;
    --line: rgba(22, 19, 17, 0.14);
    --muted: #6f655c;
    --gold: #b08968;
    --wine: #6d3040;
    --shadow: 0 24px 60px rgba(22, 19, 17, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    font-family: "Jost", sans-serif;
    font-weight: 400;
    background:
        radial-gradient(900px 420px at 50% -8%, rgba(176, 137, 104, 0.22), transparent 55%),
        linear-gradient(180deg, #f7f2eb 0%, var(--ivory) 40%, #efe7dc 100%);
    color: var(--ink);
}

nav {
    position: sticky;
    top: 0;
    z-index: 10;
    width: 100%;
    padding: 18px 7%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(18, 16, 15, 0.94);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(176, 137, 104, 0.45);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand img {
    width: 46px;
    height: 30px;
    object-fit: contain;
    display: block;
}

.logo {
    font-family: "Cormorant Garamond", serif;
    font-size: 40px;
    font-weight: 600;
    font-style: italic;
    color: var(--paper);
    line-height: 1;
    letter-spacing: 0.01em;
    text-transform: none;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 28px;
}

nav ul a,
.nav-button {
    text-decoration: none;
    color: var(--paper);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

nav ul a:hover {
    color: var(--gold);
}

.nav-button {
    border: 1px solid var(--paper);
    background: transparent;
    color: var(--paper) !important;
    padding: 12px 18px;
    border-radius: 0;
    letter-spacing: 0.18em;
    font-family: "Jost", sans-serif;
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease;
}

.nav-button:hover {
    background: var(--paper);
    color: var(--ink) !important;
    opacity: 1;
}

.account-button {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--paper);
    background: transparent;
    color: var(--paper);
    padding: 0;
    overflow: hidden;
    cursor: pointer;
    font-family: "Jost", sans-serif;
    letter-spacing: 0;
    text-transform: none;
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 4px;
}

.lang-switch button {
    border: 0;
    background: transparent;
    color: var(--paper);
    font-family: "Noto Sans Arabic", "Jost", sans-serif;
    font-size: 14px;
    line-height: 1;
    padding: 8px 6px;
    cursor: pointer;
    opacity: 0.62;
}

.lang-switch button[aria-pressed="true"] {
    opacity: 1;
    color: var(--gold);
}

.account-button img,
.account-button span {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
}

.account-button img {
    object-fit: cover;
    display: block;
}

.account-panel {
    position: fixed;
    top: 84px;
    right: 28px;
    width: min(320px, calc(100vw - 32px));
    background: var(--paper);
    color: var(--ink);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 22px 22px 18px;
    z-index: 30;
    text-align: center;
}

.account-panel.store-account {
    width: min(420px, calc(100vw - 32px));
    max-height: calc(100vh - 110px);
    overflow: auto;
}

#account-page.account-layout {
    width: min(760px, calc(100% - 40px));
    margin: 28px auto 80px;
}

#account-page.store-layout {
    width: min(1180px, calc(100% - 48px));
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.8fr);
    gap: 28px;
    align-items: start;
}

#account-page .account-panel,
#account-page .account-panel.account-page,
#account-page .account-panel.store-account {
    position: static;
    top: auto;
    right: auto;
    width: 100%;
    max-width: none;
    max-height: none;
    margin: 0;
    overflow: visible;
    background: transparent;
    border: none;
    box-shadow: none;
    text-align: left;
}

#account-page.store-layout .account-panel {
    position: sticky;
    top: 92px;
    max-height: calc(100vh - 110px);
    overflow: auto;
}

.account-catalog h2 {
    font-family: "Cormorant Garamond", serif;
    font-weight: 500;
    font-size: clamp(40px, 5vw, 64px);
    margin-bottom: 8px;
}

.account-catalog > p {
    color: var(--muted);
    margin-bottom: 18px;
}

#account-product-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 16px;
}

.google-signin {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin-top: 0;
    padding: 12px 16px;
    border: 1px solid #747775;
    border-radius: 4px;
    background: #fff;
    color: #1f1f1f;
    font-family: "Jost", sans-serif;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    cursor: pointer;
}

.google-mark {
    width: 18px;
    height: 18px;
    flex: none;
}

.order-alert {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
    padding: 14px 6%;
    background: var(--ink);
    color: var(--paper);
}

.order-alert p {
    margin: 0;
}

.order-alert a,
.order-alert button,
#allow-order-alerts {
    border: 1px solid currentColor;
    background: transparent;
    color: inherit;
    padding: 8px 12px;
    font-family: "Jost", sans-serif;
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
}

.order-card.new-order {
    background: rgba(176, 137, 104, 0.16);
    padding-left: 12px;
    padding-right: 12px;
}

.account-page h2 {
    font-family: "Cormorant Garamond", serif;
    font-weight: 500;
    font-size: 32px;
    margin: 28px 0 10px;
}

.account-page .account-photo-wrap,
.account-page #account-email,
.account-page #account-store-kicker {
    text-align: center;
}

.account-page .account-photo-wrap {
    margin-left: auto;
    margin-right: auto;
}

.account-panel input[type="checkbox"],
.payment-choice input {
    width: auto;
    margin: 0;
    padding: 0;
}

.check-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 12px 0;
}

.field-hint,
.payment-note {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 12px;
}

.account-panel h3 {
    font-family: "Cormorant Garamond", serif;
    font-weight: 500;
    font-size: 32px;
    margin: 18px 0 8px;
}

.account-panel #account-store-kicker {
    letter-spacing: 0.22em;
    text-transform: uppercase;
    font-size: 11px;
    color: var(--wine);
    margin: 0 0 8px;
}

.filter-choices {
    text-align: left;
    margin: 8px 0 14px;
}

.filter-section {
    margin: 16px 0 8px;
}

.filter-section h3,
.filter-group-label {
    font-family: "Jost", sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold);
}

.filter-section h3 {
    margin-bottom: 8px;
}

.filter-bar-label {
    margin: 0;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
}

.tag-link {
    display: inline-block;
    margin-inline-end: 12px;
    color: var(--wine);
    text-decoration: none;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.piece-tags {
    color: var(--wine);
    font-size: 13px;
}

.page-jump {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 22px;
}

.page-jump a {
    color: var(--ink);
    text-decoration: none;
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--gold);
}

.tag-lang-input {
    width: 140px !important;
    margin: 0 8px 0 0 !important;
    padding: 6px 8px !important;
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
}

.filter-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 16px;
}

#category-list select {
    width: auto;
    margin: 0 10px;
    padding: 6px 8px;
}

.filter-choices label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 6px 0;
    font-size: 14px;
}

.account-panel .filter-choices input,
.auth-box .filter-choices input {
    width: auto;
    margin: 0;
    padding: 0;
}

.account-photo-wrap {
    width: 140px;
    margin: 0 auto 8px;
}

.account-photo-wrap img,
.account-photo-wrap span {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    margin: 0 auto 12px;
}

.account-photo-wrap img {
    object-fit: cover;
    display: block;
}

.account-photo-wrap span {
    display: grid;
    place-items: center;
    background: var(--ivory);
    color: var(--ink);
    font-family: "Cormorant Garamond", serif;
    font-size: 48px;
}

.account-panel #account-email {
    color: var(--muted);
    font-size: 13px;
    margin: 8px 0 12px;
}

.account-panel input {
    width: 100%;
    margin-bottom: 8px;
    padding: 12px 2px;
    border: none;
    border-bottom: 1px solid #d8cec2;
    background: transparent;
    font-family: "Jost", sans-serif;
    font-size: 15px;
    color: var(--ink);
}

.account-panel button {
    width: 100%;
    margin-top: 12px;
    padding: 12px;
    border: none;
    background: var(--ink);
    color: var(--paper);
    font-family: "Jost", sans-serif;
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    cursor: pointer;
}

.account-panel #logout-button {
    margin-top: 0;
}

.account-panel #account-form-message {
    min-height: 1.2em;
    margin-top: 10px;
    color: var(--wine);
    font-size: 14px;
}

.hero {
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(280px, 0.85fr) minmax(340px, 1.15fr);
    align-items: start;
    text-align: left;
    gap: 36px;
    padding: 28px 5% 24px;
}

.hero-content {
    max-width: none;
    padding-top: 72px;
}

.hero-content::before {
    content: "The collection";
    display: block;
    margin-bottom: 22px;
    font-size: 12px;
    letter-spacing: 0.42em;
    text-transform: uppercase;
    color: var(--wine);
}

.hero h1 {
    font-family: "Cormorant Garamond", serif;
    font-weight: 500;
    font-size: clamp(48px, 5vw, 78px);
    line-height: 0.9;
    letter-spacing: -0.03em;
    margin-bottom: 22px;
}

.hero h1 span {
    font-style: italic;
    color: var(--wine);
}

.hero p {
    max-width: 460px;
    margin: 0 0 36px;
    font-size: 17px;
    font-weight: 300;
    line-height: 1.8;
    color: var(--muted);
}

.hero-button {
    display: inline-block;
    background: var(--ink);
    color: var(--paper);
    text-decoration: none;
    padding: 16px 34px;
    border-radius: 0;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    transition: background 0.25s ease, transform 0.25s ease;
}

.hero-button:hover {
    background: var(--wine);
    transform: translateY(-2px);
}

.home-shop {
    width: 100%;
    margin: -18px 0 0;
    padding: 0;
}

.home-shop h2 {
    font-family: "Cormorant Garamond", serif;
    font-weight: 500;
    font-size: clamp(36px, 4vw, 52px);
    text-align: right;
    margin-bottom: 12px;
}

.home-shop .filter-bar {
    align-items: flex-end;
}

.home-shop .filter-group {
    justify-content: flex-end;
}

.home-shop .discover-search {
    margin-left: auto;
}

.home-shop .discover-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
    width: 100%;
    overflow: visible;
    padding: 8px 0 16px;
}

.home-shop .product-card {
    width: auto;
    max-width: none;
    min-width: 0;
    margin: 0;
    flex-direction: column;
    position: relative;
    padding-bottom: 16px;
    overflow: hidden;
    grid-column: span 2;
}

.home-shop .product-card:nth-child(5n + 1) {
    grid-column: span 4;
}

.home-shop .product-card > a {
    display: block;
    min-height: 0;
    padding-bottom: 0;
}

.home-shop .product-card img {
    width: 100%;
    height: 220px;
    min-height: 0;
    margin: 0;
    object-fit: cover;
    grid-column: auto;
    grid-row: auto;
}

.home-shop .product-card h2,
.home-shop .product-card p {
    grid-column: auto;
    min-width: 0;
}

.home-shop .product-card h2 {
    margin-top: 12px;
    font-size: 26px;
}

.home-shop .product-card:nth-child(5n + 1) > a {
    display: grid;
    grid-template-columns: minmax(140px, 46%) minmax(0, 1fr);
    min-height: 240px;
    padding-bottom: 52px;
}

.home-shop .product-card:nth-child(5n + 1) img {
    width: 100%;
    height: 100%;
    min-height: 240px;
    grid-column: 1;
    grid-row: 1 / span 4;
}

.home-shop .product-card:nth-child(5n + 1) h2,
.home-shop .product-card:nth-child(5n + 1) p {
    grid-column: 2;
}

.home-shop .product-card .cart-button {
    position: static;
    margin: 10px 16px 0;
}

.home-shop .product-card:nth-child(5n + 1) .cart-button {
    position: absolute;
    left: 48%;
    bottom: 16px;
    margin: 0;
}

.features {
    padding: 30px 8% 100px;
}

.features h2 {
    font-family: "Cormorant Garamond", serif;
    font-weight: 500;
    font-size: clamp(42px, 6vw, 68px);
    text-align: center;
    margin-bottom: 54px;
}

.features h2::after {
    content: "";
    display: block;
    width: 72px;
    height: 1px;
    margin: 18px auto 0;
    background: var(--gold);
}

.feature-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.feature {
    background: transparent;
    padding: 28px 8px 8px;
    border: none;
    border-top: 1px solid var(--ink);
    border-radius: 0;
}

.feature h3 {
    margin-bottom: 14px;
    font-family: "Cormorant Garamond", serif;
    font-size: 32px;
    font-weight: 500;
}

.feature p {
    color: var(--muted);
    line-height: 1.7;
    font-weight: 300;
}

main {
    min-height: 70vh;
}

.auth-section,
main {
    padding: 64px 20px 80px;
}

.auth-section {
    display: flex;
    justify-content: center;
    align-items: center;
}

body > main {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 28px;
}

body > main:has(.hero) {
    padding-top: 8px;
}

.hero,
.features,
.filter-bar,
.discover-grid,
main > h1 {
    width: 100%;
}

.auth-box {
    width: 100%;
    max-width: 440px;
    margin-inline: auto;
    background: rgba(251, 248, 244, 0.9);
    padding: 46px 36px 40px;
    border-radius: 0;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    text-align: center;
}

.auth-box h2,
.auth-box h3,
main h1 {
    font-family: "Cormorant Garamond", serif;
    font-weight: 500;
    font-size: 46px;
    margin-bottom: 18px;
    letter-spacing: -0.02em;
}

.auth-box h3 {
    font-size: 32px;
    margin-top: 0;
}

.admin-block {
    margin-top: 8px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.admin-block > p {
    color: var(--muted);
    margin-bottom: 22px;
    font-weight: 300;
    letter-spacing: 0.04em;
}

.auth-box .row-button {
    width: auto;
    padding: 8px 14px;
    margin-top: 0;
    margin-left: 12px;
}

main h1 {
    text-align: center;
    font-size: clamp(52px, 7vw, 78px);
    margin-bottom: 8px;
}

.auth-box > p,
#store-category {
    color: var(--muted);
    margin-bottom: 22px;
    font-weight: 300;
    letter-spacing: 0.04em;
}

.auth-box input[type="checkbox"] {
    width: auto;
    margin: 0;
    padding: 0;
}

.check-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 18px 0 8px;
    font-size: 14px;
    letter-spacing: 0.04em;
}

.discover-search {
    width: min(440px, 100%);
    display: block;
    margin: 0 auto 8px;
    padding: 14px 2px;
    border: none;
    border-bottom: 1px solid #d8cec2;
    background: transparent;
    font-family: "Jost", sans-serif;
    font-size: 15px;
    color: var(--ink);
    text-align: center;
}

.product-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.product-actions > p,
.product-actions .option-group,
.product-actions .choice-note {
    flex: 1 0 100%;
}

.choice-note:empty {
    display: none;
}

.option-label {
    margin: 0 0 8px;
    color: var(--muted);
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.option-choices {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.product-actions .option-chip {
    width: auto;
    margin: 0;
    padding: 8px 14px;
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--line);
    letter-spacing: 0;
    text-transform: none;
    font-size: 14px;
}

.product-actions .option-chip.active,
.product-actions .option-chip:hover {
    background: var(--ink);
    color: var(--paper);
}

.choice-note {
    min-height: 0;
    margin: 0;
    color: var(--wine);
}

.product-actions a,
.product-actions button,
.cart-page button,
.order-card button,
.order-card .order-actions a,
.product-card .cart-button {
    display: inline-block;
    padding: 12px 16px;
    background: var(--ink);
    color: var(--paper);
    text-decoration: none;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-size: 11px;
    font-family: "Jost", sans-serif;
    border: none;
    cursor: pointer;
}

.product-actions a:hover,
.product-actions button:hover,
.cart-page button:hover,
.order-card button:hover,
.order-card .order-actions a:hover,
.product-card .cart-button:hover {
    background: var(--wine);
}

.product-actions a.whatsapp-button {
    background: #1f7a4d;
}

.product-actions a.whatsapp-button:hover {
    background: #16633e;
}

.auth-box input,
.auth-box select,
select {
    width: 100%;
    padding: 14px 2px;
    margin-bottom: 8px;
    border: none;
    border-bottom: 1px solid #d8cec2;
    border-radius: 0;
    background: transparent;
    font-family: "Jost", sans-serif;
    font-size: 15px;
    color: var(--ink);
}

.auth-box input:focus,
.auth-box select:focus,
select:focus {
    outline: none;
    border-bottom-color: var(--ink);
}

.auth-box button,
.hero-button {
    font-family: "Jost", sans-serif;
}

.auth-box button {
    width: 100%;
    padding: 15px;
    margin-top: 12px;
    border: none;
    border-radius: 0;
    background: var(--ink);
    color: var(--paper);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.25s ease;
}

.auth-box button:hover {
    background: var(--wine);
    opacity: 1;
}

.auth-box .auth-link {
    width: auto;
    margin-top: 8px;
    padding: 0;
    background: transparent;
    color: var(--muted);
    letter-spacing: 0.04em;
    text-transform: none;
    font-size: 14px;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.auth-box .auth-link:hover {
    background: transparent;
    color: var(--ink);
}

.auth-or {
    margin: 16px 0 0;
    color: var(--muted);
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.auth-box .google-signin {
    background: #fff;
    color: #1f1f1f;
    border: 1px solid #747775;
    border-radius: 4px;
    letter-spacing: 0;
    text-transform: none;
    font-size: 15px;
}

.auth-box .google-signin:hover {
    background: #f8f9fa;
    color: #1f1f1f;
}

.auth-box .google-signin:disabled {
    opacity: 0.7;
    cursor: wait;
}

.facebook-signin,
.auth-box .facebook-signin {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin-top: 10px;
    padding: 12px 16px;
    border: none;
    border-radius: 4px;
    background: #1877F2;
    color: #fff;
    font-family: "Jost", sans-serif;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    cursor: pointer;
}

.facebook-mark {
    width: 18px;
    height: 18px;
    flex: none;
}

.auth-box .facebook-signin:hover {
    background: #166fe5;
    color: #fff;
}

.auth-box .facebook-signin:disabled {
    opacity: 0.7;
    cursor: wait;
}

#auth-message,
#product-message,
#admin-message,
.account-note {
    margin-top: 16px;
    font-size: 14px;
    color: var(--wine);
    text-align: center;
}

.account-note {
    margin-inline: auto;
}

.account-note:empty {
    display: none;
}

.file-label {
    display: block;
    margin: 16px 0 8px;
    text-align: left;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
}

#product-image {
    font-size: 13px;
    padding-top: 8px;
}

#category-list,
#business-list,
#unfinished-list,
#public-product-list,
#allowed-business-list,
#sales-list,
#product-list {
    text-align: left;
    margin-top: 18px;
}

#category-list p,
#business-list p,
#unfinished-list p,
#public-product-list p,
#allowed-business-list p,
#sales-list p {
    color: var(--muted);
    margin-bottom: 12px;
    line-height: 1.5;
}

#category-list button,
#business-list button,
#public-product-list button {
    width: auto;
    display: inline-block;
    margin: 0 0 0 8px;
    padding: 8px 12px;
    vertical-align: middle;
}

.sales-total {
    font-family: "Jost", sans-serif;
    font-size: 18px;
    letter-spacing: 0.06em;
    margin-bottom: 6px;
}

#product-list > div {
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

#product-list h3,
.product-card h2 {
    font-family: "Cormorant Garamond", serif;
    font-weight: 500;
    font-size: 28px;
    margin-bottom: 6px;
}

#product-list p,
.product-card p {
    color: var(--muted);
    margin-bottom: 6px;
    font-weight: 300;
}

#product-list img,
.product-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 0;
    margin-bottom: 14px;
    display: block;
}

.filter-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin: 10px 0 36px;
}

.filter-bar button {
    border: none;
    border-bottom: 1px solid transparent;
    background: transparent;
    color: var(--muted);
    border-radius: 0;
    padding: 8px 2px;
    font-family: "Jost", sans-serif;
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    cursor: pointer;
}

.filter-bar button.active,
.filter-bar button:hover {
    color: var(--ink);
    border-bottom-color: var(--ink);
}

.discover-grid {
    width: min(1100px, 100%);
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 28px;
}

.product-card {
    background: var(--paper);
    border: none;
    border-radius: 0;
    padding: 0 0 20px;
    box-shadow: var(--shadow);
    overflow: hidden;
    color: inherit;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product-card > a {
    color: inherit;
    text-decoration: none;
    display: block;
}

.product-card .cart-button {
    margin: 10px 16px 0;
    align-self: flex-start;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 70px rgba(22, 19, 17, 0.12);
}

.product-card h2,
.product-card p {
    padding: 0 16px;
}

.store-name {
    color: var(--ink) !important;
    font-size: 11px;
    font-weight: 500 !important;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

[hidden] {
    display: none !important;
}

footer {
    text-align: center;
    padding: 36px 20px 42px;
    color: var(--muted);
    border-top: 1px solid var(--line);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-size: 11px;
}

.back-link {
    align-self: flex-start;
    color: var(--ink);
    text-decoration: none;
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.product-page {
    width: min(1040px, 100%);
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 48px;
    align-items: center;
}

.product-page img {
    width: 100%;
    height: min(72vh, 760px);
    object-fit: cover;
    display: block;
}

.product-kicker {
    color: var(--wine);
    letter-spacing: 0.24em;
    text-transform: uppercase;
    font-size: 12px;
    margin-bottom: 12px;
}

.product-copy h1 {
    text-align: left;
    margin-bottom: 12px;
}

.price-large {
    font-family: "Cormorant Garamond", serif;
    font-size: 42px;
    color: var(--ink);
    margin: 18px 0 8px;
}

.product-description {
    max-width: 420px;
    margin-top: 18px;
    line-height: 1.8;
}

@media (max-width: 800px) {
    nav {
        flex-wrap: wrap;
        gap: 16px;
        padding: 16px 20px;
    }

    nav ul {
        order: 3;
        width: 100%;
        justify-content: space-between;
        gap: 10px;
    }

    .feature-container {
        grid-template-columns: 1fr;
    }

    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 24px 20px 10px;
    }

    .hero-content {
        padding-top: 12px;
    }

    .hero p {
        margin-left: auto;
        margin-right: auto;
    }

    .home-shop {
        margin-top: 8px;
    }

    .home-shop h2,
    .home-shop .filter-bar {
        text-align: center;
        justify-content: center;
    }

    .home-shop .discover-grid {
        grid-template-columns: 1fr;
    }

    .home-shop .product-card,
    .home-shop .product-card:nth-child(5n + 1) {
        grid-column: auto;
    }

    .home-shop .product-card:nth-child(5n + 1) > a {
        display: block;
        min-height: 0;
        padding-bottom: 0;
    }

    .home-shop .product-card:nth-child(5n + 1) img {
        height: 220px;
        min-height: 0;
        grid-column: auto;
        grid-row: auto;
    }

    .home-shop .product-card:nth-child(5n + 1) .cart-button {
        position: static;
        left: auto;
        margin: 10px 16px 0;
    }

    #account-page.store-layout {
        grid-template-columns: 1fr;
    }

    #account-page.store-layout .account-panel {
        position: static;
        max-height: none;
    }

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

    .auth-box {
        padding: 36px 22px;
    }

    .product-page {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .product-page img {
        height: 420px;
    }
}

.cart-page {
    width: min(760px, 100%);
    margin: 0 auto;
    padding: 48px 8% 100px;
}

.cart-page h2 {
    font-family: "Cormorant Garamond", serif;
    font-weight: 500;
    font-size: 32px;
    margin: 48px 0 12px;
}

.cart-item,
.order-card {
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
}

.cart-item h3,
.order-card h3,
.order-card h4 {
    font-family: "Cormorant Garamond", serif;
    font-weight: 500;
    font-size: 28px;
    margin-bottom: 6px;
}

.cart-item p,
.order-card p,
#cart-total,
#cart-message,
#delivery-hint {
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 8px;
}

.order-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 8px 0 12px;
}

.cart-controls {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

#cart-total {
    margin-top: 18px;
    color: var(--ink);
}

#checkout-button {
    margin-top: 8px;
}

#account-product-list article {
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
}

#account-product-list img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    margin-bottom: 12px;
}

#account-product-list h3 {
    font-family: "Cormorant Garamond", serif;
    font-weight: 500;
    font-size: 28px;
}

#account-product-list p {
    color: var(--muted);
    margin-top: 4px;
}

#account-product-list .row-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

#account-product-list .row-actions button {
    width: auto;
    margin: 0;
    padding: 10px 14px;
    background: var(--ink);
    color: var(--paper);
    font-family: "Jost", sans-serif;
    font-size: 11px;
    letter-spacing: 0.12em;
}

.payment-choice {
    border: 1px solid var(--line);
    margin: 18px 0 8px;
    padding: 8px 16px 14px;
}

.payment-choice legend {
    padding: 0 8px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-size: 11px;
}

.payment-choice label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.text-link {
    color: var(--ink);
    font-size: 13px;
    letter-spacing: 0.08em;
}

[dir="rtl"] body,
[dir="rtl"] button,
[dir="rtl"] input,
[dir="rtl"] select,
[dir="rtl"] textarea {
    font-family: "Noto Sans Arabic", "Jost", sans-serif;
}

[dir="rtl"] h1,
[dir="rtl"] h2,
[dir="rtl"] h3,
[dir="rtl"] .feature h3,
[dir="rtl"] .features h2 {
    font-family: "Noto Naskh Arabic", "Cormorant Garamond", serif;
    letter-spacing: 0;
}

[dir="rtl"] nav ul a,
[dir="rtl"] .nav-button,
[dir="rtl"] .page-jump a,
[dir="rtl"] .option-label,
[dir="rtl"] .product-actions .option-chip,
[dir="rtl"] .filter-bar-label,
[dir="rtl"] .payment-choice legend,
[dir="rtl"] .order-card button,
[dir="rtl"] .order-card .order-actions a,
[dir="rtl"] .auth-box button,
[dir="rtl"] .auth-box .auth-link,
[dir="rtl"] .google-signin,
[dir="rtl"] .facebook-signin,
[dir="rtl"] .auth-or,
[dir="rtl"] #account-product-list .row-actions button {
    letter-spacing: 0;
    text-transform: none;
    font-size: 15px;
}

[dir="rtl"] .hero-content,
[dir="rtl"] .home-shop,
[dir="rtl"] .product-copy,
[dir="rtl"] .cart-page,
[dir="rtl"] .account-layout,
[dir="rtl"] .auth-box {
    text-align: right;
}

[dir="rtl"] .home-shop .product-card:nth-child(5n + 1) .cart-button {
    left: auto;
    right: 48%;
}

@media (max-width: 800px) {
    [dir="rtl"] .hero,
    [dir="rtl"] .hero-content,
    [dir="rtl"] .home-shop {
        text-align: center;
    }
}
