@font-face {
    font-family: Store Cairo;
    src: url('../fonts/Cairo-Regular.ttf') format('truetype');
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: Store Cairo;
    src: url('../fonts/Cairo-Bold.ttf') format('truetype');
    font-weight: 700;
    font-display: swap;
}
.commerce {
    --commerce-ink: #142438;
    --commerce-muted: #526471;
    --commerce-brand: #0d605b;
    --commerce-dark: #084743;
    --commerce-line: #dbe6e2;
    --commerce-soft: #eff6f3;
    margin: 0;
    background: #fff;
    color: var(--commerce-ink);
    font: 400 15px/1.75 'Store Cairo', Tahoma, sans-serif;
}
.commerce *, .commerce *::before, .commerce *::after { box-sizing: border-box; }
.commerce :focus-visible { outline: 3px solid #a24f17; outline-offset: 3px; }
.commerce [hidden] { display: none !important; }
.commerce a { color: inherit; text-decoration: none; }
.commerce a:hover { text-decoration: underline; text-underline-offset: .24em; }
.commerce button, .commerce input, .commerce select { font: inherit; }
.commerce h1, .commerce h2, .commerce h3 { margin: 0; line-height: 1.38; }
.commerce p { margin: 0; }
.commerce img { display: block; max-width: 100%; }
.commerce-wrap { width: min(1280px, calc(100% - 3rem)); margin-inline: auto; }
.commerce-visually-hidden, .commerce-skip:not(:focus) {
    position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%);
}
.commerce-skip:focus { position: absolute; z-index: 5; padding: .5rem 1rem; background: white; color: var(--commerce-dark); }
.commerce-top { padding-block: 5px; background: #123f42; color: white; font-size: .8rem; }
.commerce-top .commerce-wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .2rem .75rem; }
.commerce-header { border-bottom: 1px solid var(--commerce-line); }
.commerce-header-grid { display: grid; grid-template-columns: auto minmax(12rem, 33rem) auto; gap: 2rem; align-items: center; justify-content: space-between; min-height: 80px; }
.commerce-brand { display: flex; gap: .55rem; align-items: center; white-space: nowrap; }
.commerce-brand strong, .commerce-brand small { display: block; }
.commerce-brand strong { font-size: 1.3rem; line-height: 1.4; }
.commerce-brand small { color: var(--commerce-muted); font-size: .76rem; }
.commerce-brand img { object-fit: contain; }
.commerce-search { display: flex; border: 1px solid var(--commerce-line); border-radius: 10px; background: #f3f7f6; }
.commerce-search input { min-width: 0; width: 100%; min-height: 45px; padding: 0 .8rem; background: transparent; border: 0; border-radius: 10px; color: var(--commerce-ink); }
.commerce-search button, .commerce-footer button { border: 0; background: transparent; cursor: pointer; color: inherit; padding: .45rem .75rem; font-weight: 700; }
.commerce-search button { color: var(--commerce-brand); }
.commerce-tools { display: flex; align-items: center; gap: .75rem; font-weight: 700; white-space: nowrap; }
.commerce-tools a { display: flex; min-height: 44px; align-items: center; }
.commerce-basket { padding-inline: .7rem; border-radius: 10px; background: var(--commerce-soft); }
.commerce-categories { border-top: 1px solid #edf3f1; }
.commerce-categories .commerce-wrap { display: flex; align-items: center; gap: 1.25rem; overflow-x: auto; scrollbar-width: thin; }
.commerce-categories a { display: flex; align-items: center; min-height: 44px; white-space: nowrap; }
.commerce-categories a:first-child { color: var(--commerce-brand); font-weight: 700; }
.commerce-message { padding: .75rem 1rem; background: #eaf6f1; border-inline-start: 4px solid var(--commerce-brand); margin-block-start: 1rem !important; }
.commerce-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(.8rem, 2.8vw, 2.2rem); align-items: center; margin-block: .2rem 1rem; padding: clamp(.85rem, 2.1vw, 1.65rem); border: 1px solid #d6e8df; border-radius: 14px; background: #eaf3ee; }
.commerce-hero-empty { grid-template-columns: 1fr; }
.commerce-hero h1, .commerce-detail h1 { font-size: clamp(1.45rem, 3vw, 2.35rem); line-height: 1.35; font-weight: 800; }
.commerce-hero-copy h1, .commerce-hero-copy p, .commerce-campaigns :is(h2, p), .commerce-card-content p {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere;
}
.commerce-hero-copy p { margin-block: .5rem .85rem; max-width: 53ch; color: var(--commerce-muted); font-size: .96rem; }
.commerce-hero-copy h1 + .commerce-actions { margin-top: .7rem; }
.commerce-pill, .commerce-tags span { display: inline-flex; align-items: center; border-radius: 7px; background: #e6f2ec; padding: .15rem .55rem; color: var(--commerce-dark); font-size: .78rem; font-weight: 700; }
.commerce-hero .commerce-pill { background: #fff; margin-bottom: .5rem; }
.commerce-hero-media { height: clamp(165px, 19vw, 205px); display: grid; place-items: center; border-radius: 9px; background: #dcebe3; overflow: hidden; }
.commerce-hero-media > img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.commerce-hero-art { display: grid; place-items: center; align-content: center; gap: .25rem; text-align: center; padding: .5rem; }
.commerce-hero-art i { color: var(--commerce-brand); font-size: 2rem; }
.commerce-hero-art strong { font-size: clamp(1rem, 2vw, 1.4rem); }
.commerce-hero-art small { color: var(--commerce-muted); }
.commerce-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; }
.commerce-button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; padding: .45rem .95rem; border: 1px solid var(--commerce-brand); border-radius: 9px; background: var(--commerce-brand); color: white !important; cursor: pointer; font-weight: 700; text-align: center; }
.commerce-button:hover { background: var(--commerce-dark); }
.commerce-secondary { background: white; border-color: #b9ceca; color: var(--commerce-dark) !important; }
.commerce-secondary:hover { background: #f2f8f6; }
.commerce-link { color: var(--commerce-brand) !important; font-weight: 700; }
.commerce-campaigns, .commerce-products { display: grid; gap: 1rem; }
.commerce-campaigns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.commerce-campaigns article { display: grid; grid-template-columns: minmax(70px, 32%) minmax(0, 1fr); align-items: center; gap: .8rem; padding: .75rem; border: 1px solid var(--commerce-line); border-radius: 12px; background: white; }
.commerce-campaigns article:nth-child(even) { background: #edf5ef; }
.commerce-campaigns h2 { font-size: 1.05rem; }
.commerce-campaigns p { margin-block: .25rem .4rem; color: var(--commerce-muted); font-size: .9rem; }
.commerce-campaigns img, .commerce-campaign-icon { display: grid; place-items: center; width: 100%; aspect-ratio: 4 / 3; object-fit: contain; border-radius: 7px; background: #e3efe8; color: var(--commerce-brand); font-size: 1.65rem; }
.commerce-quick-categories { display: grid; grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); gap: .6rem; margin-block: 1rem; }
.commerce-quick-categories a { display: flex; gap: .45rem; justify-content: space-between; align-items: center; min-height: 44px; padding: .45rem .65rem; border: 1px solid var(--commerce-line); border-radius: 9px; background: white; color: var(--commerce-dark); font-weight: 700; }
.commerce-quick-categories a:hover { background: var(--commerce-soft); }
.commerce-quick-categories a span { flex: 1; }
.commerce-section { margin-block: 1.45rem; scroll-margin-block: 1rem; }
.commerce-section-heading { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: baseline; gap: .45rem .8rem; margin-bottom: .75rem; }
.commerce-section-heading h1, .commerce-section-heading h2 { font-size: clamp(1.35rem, 2.7vw, 2.1rem); }
.commerce-group .commerce-section-heading h2 { font-size: 1.35rem; }
.commerce-group .commerce-section-heading > span, .commerce-query { color: var(--commerce-muted); }
.commerce-group { margin-block: 1.15rem 1.55rem; scroll-margin-block: 1rem; }
.commerce-filters { display: flex; gap: .55rem 1rem; flex-wrap: wrap; align-items: end; padding: .65rem .85rem; background: #f4f8f6; border: 1px solid var(--commerce-line); border-radius: 12px; }
.commerce-filters label { display: flex; align-items: center; font-weight: 700; gap: .45rem; }
.commerce-filters select { min-height: 44px; padding: 0 .55rem; border: 1px solid #bacac7; border-radius: 8px; background: #fff; color: var(--commerce-ink); font-weight: 400; }
.commerce-filters .commerce-checkbox { display: flex; gap: .4rem; align-items: center; min-height: 44px; }
.commerce-checkbox input, .commerce-plan-option input { accent-color: var(--commerce-brand); }
.commerce-query, .commerce-empty { margin-top: .8rem !important; }
.commerce-empty { padding: 1.5rem; border: 1px dashed #bacac7; border-radius: 12px; }
.commerce-products { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.commerce-card { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--commerce-line); border-radius: 14px; overflow: hidden; background: #fff; }
.commerce-card:hover { border-color: #9bc2b6; }
.commerce-card-image { display: grid; place-items: center; aspect-ratio: 16/9; background: #eaf3f0; }
.commerce-card-image img { width: 100%; height: 100%; max-height: 210px; object-fit: contain; }
.commerce-media-fallback { padding: .4rem .75rem; border: 1px solid #c1d9d1; border-radius: 7px; color: #375c53; background: #f0f8f4; font-weight: 700; }
.commerce-card-content { display: flex; flex: 1; flex-direction: column; padding: .85rem; gap: .5rem; }
.commerce-tags { display: flex; flex-wrap: wrap; gap: .3rem; }
.commerce-card h3 { overflow-wrap: anywhere; font-size: 1.15rem; }
.commerce-card p, .commerce-card-bottom small, .commerce-rating span { color: var(--commerce-muted); }
.commerce-card-bottom { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: .35rem .6rem; padding-top: .65rem; margin-top: auto; border-top: 1px solid var(--commerce-line); }
.commerce-rating { color: #824800; font-weight: 700; }
.commerce-footer { padding-block: 1.65rem; background: #f2f7f5; border-top: 1px solid var(--commerce-line); }
.commerce-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 1rem; }
.commerce-footer nav { display: grid; align-content: start; gap: .25rem; }
.commerce-footer nav form button { padding: 0; }
.commerce-footer p { color: var(--commerce-muted); }
.commerce-payment-marks { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem; margin-top: .6rem; }
.commerce-payment-marks img { width: auto; height: 20px; object-fit: contain; }
.commerce-detail { margin-block: 1.1rem 1.6rem; }
.commerce-detail > a { display: inline-block; margin-bottom: .65rem; }
.commerce-detail-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: start; gap: 1.4rem; }
.commerce-detail-media { display: grid; place-items: center; aspect-ratio: 16/10; overflow: hidden; border: 1px solid var(--commerce-line); border-radius: 16px; background: #eaf3ef; }
.commerce-detail-media > img, .commerce-detail-media video { width: 100%; height: 100%; object-fit: contain; }
.commerce-detail-info { display: grid; gap: .65rem; }
.commerce-plan-choice { display: grid; gap: .45rem; padding: 0; border: 0; margin: .4rem 0 0; }
.commerce-plan-choice legend { font-weight: 700; margin-bottom: .25rem; }
.commerce-plan-option { display: grid; grid-template-columns: auto 1fr auto; gap: .45rem; align-items: center; padding: .55rem .7rem; border: 1px solid var(--commerce-line); border-radius: 9px; cursor: pointer; }
.commerce-plan-option:has(input:checked) { background: var(--commerce-soft); border-color: var(--commerce-brand); }
.commerce-plan-option small { display: block; color: var(--commerce-muted); }
.commerce-plan-action { display: grid; gap: .5rem; padding: .7rem 0; }
.commerce-plan-action form, .commerce-plan-action .market-btn { margin: 0; }
.commerce .market-btn.primary, .commerce .market-btn.success { background: var(--commerce-brand); color: white; }
.commerce-detail-secondary { margin-bottom: 2rem; }
@media (max-width: 970px) {
    .commerce-products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .commerce-header-grid { gap: .9rem; }
}
@media (max-width: 700px) {
    .commerce-wrap { width: calc(100% - 1.5rem); }
    .commerce-header-grid { grid-template-columns: 1fr auto; gap: .55rem; padding-block: .45rem .7rem; }
    .commerce-search { grid-column: 1 / -1; grid-row: 2; }
    .commerce-detail-grid { grid-template-columns: 1fr; }
    .commerce-hero:not(.commerce-hero-empty) { grid-template-columns: minmax(0, 1fr) clamp(84px, 24vw, 128px); gap: .55rem .75rem; }
    .commerce-hero:not(.commerce-hero-empty) .commerce-hero-copy { display: contents; }
    .commerce-hero:not(.commerce-hero-empty) h1 { grid-area: 1 / 1; font-size: 1.28rem; }
    .commerce-hero:not(.commerce-hero-empty) p { grid-area: 2 / 1; margin: 0; font-size: .84rem; }
    .commerce-hero .commerce-actions { grid-area: 3 / 1 / auto / -1; margin: .2rem 0 0; }
    .commerce-hero-media { grid-area: 1 / 2 / span 2; height: 100%; min-height: 90px; }
    .commerce-hero-art i { font-size: 1.35rem; }
    .commerce-hero-art strong { font-size: .75rem; overflow-wrap: anywhere; }
    .commerce-hero-art small { display: none; }
    .commerce-quick-categories { display: flex; overflow-x: auto; padding: .125rem .125rem .3rem; scrollbar-width: thin; }
    .commerce-quick-categories a { flex: 0 0 auto; }
    .commerce-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .commerce-filters label { display: grid; min-width: 0; gap: .2rem; }
    .commerce-filters select { min-width: 0; width: 100%; }
    .commerce-products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .commerce-footer-grid { grid-template-columns: 1fr 1fr; }
    .commerce-footer-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 415px) {
    .commerce-products, .commerce-campaigns { grid-template-columns: 1fr; }
    .commerce-card-image { aspect-ratio: 16/7; }
    .commerce-brand strong { font-size: 1.1rem; }
}
