/*
================================================================================
  YALLA SOUQ — Reference Design System (Launch)
================================================================================
*/

:root {
    --ys-ink: #1c1917;
    --ys-amber: #d97706;
    --ys-gold: #fbbf24;
    --ys-paper: #fffbf5;
    --ys-line: #e7dfd2;
    --ys-muted: #6b6259;
    --ys-dark: #0c0a09;
    --ys-font-serif: 'Fraunces', Georgia, serif;
    --ys-font-sans: 'Inter', 'Public Sans', Arial, sans-serif;
}

/* Hide legacy chrome when reference shell is active */
html.ys-reference-shell .top-navbar,
html.ys-reference-shell header.middle-background-color-visibility,
html.ys-reference-shell footer.ys-main-footer {
    display: none !important;
}

html.ys-reference-shell,
html.ys-reference-shell body {
    max-width: 100%;
    overflow-x: hidden;
    background: var(--ys-paper);
}

html.ys-reference-shell body {
    font-family: var(--ys-font-sans);
    color: var(--ys-ink);
}

.ys-reference-home,
.ys-ref-page-wrap {
    --ink: var(--ys-ink);
    --amber: var(--ys-amber);
    --gold: var(--ys-gold);
    --paper: var(--ys-paper);
    --line: var(--ys-line);
    --muted: var(--ys-muted);
    color: var(--ink);
    background: var(--paper);
    font-family: var(--ys-font-sans);
}

.ys-ref-container {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
}

.ys-ref-serif {
    font-family: var(--ys-font-serif);
    letter-spacing: 0;
}

/* ——— Header ——— */
.ys-ref-top {
    background: var(--ys-ink);
    color: #e7e5e4;
    font-size: 11px;
}

.ys-ref-top .ys-ref-container {
    min-height: 34px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 22px;
    flex-wrap: wrap;
}

.ys-ref-top a {
    color: #e7e5e4;
}

.ys-ref-top a[href*="admin"] {
    color: #fbbf24;
    font-weight: 600;
}

.ys-ref-main {
    background: #fff;
    border-bottom: 1px solid var(--line);
}

.ys-ref-main-row {
    min-height: 82px;
    display: grid;
    grid-template-columns: 240px minmax(280px, 1fr) auto;
    align-items: center;
    gap: 28px;
}

.ys-ref-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--ink) !important;
    text-decoration: none !important;
}

.ys-ref-brand img {
    width: 54px;
    height: 54px;
    object-fit: contain;
    background: #111;
    border: 1px solid #d4a337;
    border-radius: 50%;
}

.ys-ref-search {
    position: relative;
}

.ys-ref-search input {
    width: 100%;
    height: 48px;
    padding: 0 54px 0 18px;
    border: 1px solid #d6d3d1;
    border-radius: 999px;
    background: #fafaf9;
    font-size: 14px;
}

.ys-ref-search button {
    position: absolute;
    right: 8px;
    top: 7px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: var(--ink);
    color: #fff;
    cursor: pointer;
}

.ys-ref-actions {
    display: flex;
    align-items: center;
    gap: 22px;
}

.ys-ref-actions a {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none !important;
}

.ys-ref-actions i {
    font-size: 22px;
}

.ys-ref-actions .ys-ref-cart-link {
    gap: 7px;
    padding: 9px 13px;
    border-radius: 999px;
    background: var(--ink);
    color: #fff !important;
}

.ys-ref-actions .ys-ref-cart-link b {
    display: grid;
    width: 19px;
    height: 19px;
    place-items: center;
    border-radius: 50%;
    background: var(--gold);
    color: var(--ink);
    font-size: 10px;
}

.ys-ref-nav {
    border-top: 1px solid #f0ebe4;
    background: #fff;
}

.ys-ref-nav .ys-ref-container {
    min-height: 46px;
    display: flex;
    align-items: center;
    gap: 36px;
    flex-wrap: wrap;
}

.ys-ref-nav a {
    color: #44403c;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none !important;
}

.ys-ref-nav .ys-ref-all {
    color: #292524;
}

.ys-ref-nav .ys-ref-digital-link {
    margin-left: auto;
    padding: 7px 12px;
    border-radius: 999px;
    background: #fff3d6;
    color: #b65f00;
}

/* ——— Homepage sections ——— */
.ys-ref-hero {
    position: relative;
    overflow: hidden;
    padding: 62px 0 48px;
    background: linear-gradient(180deg, #fffbf5 0%, #fbf3e4 52%, #fffbf5 100%);
    text-align: center;
}

.ys-ref-kicker {
    display: inline-flex;
    padding: 7px 13px;
    border-radius: 999px;
    background: var(--ink);
    color: var(--gold);
    font-size: 11px;
    font-weight: 800;
}

.ys-ref-hero h1 {
    margin: 26px auto 0;
    font-size: clamp(54px, 7vw, 88px);
    font-weight: 800;
    line-height: 0.96;
}

.ys-ref-hero h1 span {
    position: relative;
    display: inline-block;
    color: var(--amber);
}

.ys-ref-hero h1 span::after {
    position: absolute;
    right: 1%;
    bottom: -10px;
    left: 1%;
    height: 12px;
    border-top: 4px solid var(--amber);
    border-radius: 50%;
    content: "";
    transform: rotate(-1deg);
}

.ys-ref-hero-copy {
    max-width: 700px;
    margin: 34px auto 0;
    color: #57534e;
    font-size: 17px;
    line-height: 1.65;
}

.ys-ref-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 28px;
    flex-wrap: wrap;
}

.ys-ref-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border: 1px solid var(--ink);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none !important;
}

.ys-ref-button-dark {
    background: var(--ink);
    color: var(--gold) !important;
}

.ys-ref-button-light {
    background: #fff;
    color: var(--ink) !important;
}

.ys-ref-trust {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
    color: var(--muted);
    font-size: 12px;
    flex-wrap: wrap;
}

.ys-ref-trust i {
    margin-right: 5px;
    color: var(--amber);
}

.ys-ref-marquees {
    margin-top: 44px;
}

.ys-ref-marquee {
    overflow: hidden;
    padding: 6px 0;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
}

.ys-ref-marquee-track {
    display: flex;
    width: max-content;
    animation: ys-ref-slide 55s linear infinite;
}

.ys-ref-marquee:nth-child(2) .ys-ref-marquee-track {
    animation-direction: reverse;
    animation-duration: 66s;
}

.ys-ref-marquee:nth-child(3) .ys-ref-marquee-track {
    animation-duration: 45s;
}

@keyframes ys-ref-slide {
    to { transform: translateX(-50%); }
}

.ys-ref-mini {
    width: 220px;
    margin: 0 7px;
    overflow: hidden;
    flex: 0 0 auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--ink) !important;
    box-shadow: 0 4px 14px rgba(28, 25, 23, 0.06);
    text-decoration: none !important;
}

.ys-ref-mini-media {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: #f5f5f4;
}

.ys-ref-mini-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ys-ref-mini-label {
    position: absolute;
    top: 9px;
    left: 9px;
    padding: 4px 8px;
    border-radius: 999px;
    background: var(--gold);
    color: var(--ink);
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
}

.ys-ref-mini-body {
    padding: 11px 12px;
    text-align: left;
}

.ys-ref-mini-name {
    height: 34px;
    overflow: hidden;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.45;
}

.ys-ref-mini-price {
    margin-top: 6px;
    font-size: 14px;
    font-weight: 800;
}

.ys-ref-section {
    padding: 54px 0;
}

.ys-ref-section-tight {
    padding: 28px 0;
}

.ys-ref-heading-row {
    display: flex;
    align-items: end;
    justify-content: space-between;
    margin-bottom: 26px;
    gap: 16px;
}

.ys-ref-eyebrow {
    color: #a65f00;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.ys-ref-heading-row h2 {
    margin: 4px 0 0;
    font-size: 38px;
    font-weight: 700;
}

.ys-ref-view-all {
    color: #57534e !important;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none !important;
    white-space: nowrap;
}

.ys-ref-category-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
}

.ys-ref-category-tile {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--ink) !important;
    transition: 0.25s;
    text-decoration: none !important;
}

.ys-ref-category-tile:hover {
    transform: translateY(-3px);
    border-color: #d99a27;
    box-shadow: 0 14px 30px rgba(28, 25, 23, 0.1);
}

.ys-ref-category-tile img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.ys-ref-category-tile strong {
    display: block;
    min-height: 48px;
    padding: 12px 8px;
    text-align: center;
    font-size: 12px;
}

/* ——— Product cards ——— */
.ys-ref-product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.ys-listing-ref-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.ys-ref-product-card {
    display: flex;
    overflow: hidden;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    transition: 0.25s;
}

.ys-ref-product-card:hover {
    transform: translateY(-3px);
    border-color: #d99a27;
    box-shadow: 0 14px 32px rgba(28, 25, 23, 0.1);
}

.ys-ref-product-media {
    position: relative;
    display: block;
    aspect-ratio: 1;
    overflow: hidden;
    background: #fafaf9;
}

.ys-ref-product-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.6s;
}

.ys-ref-product-card:hover .ys-ref-product-media img {
    transform: scale(1.05);
}

.ys-ref-product-label {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #57534e;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
}

.ys-ref-product-tools {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ys-ref-product-tools span {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 50%;
    background: #fff;
    color: #57534e;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.ys-ref-product-tools i {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 50%;
    background: #fff;
    color: #57534e;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.ys-ref-product-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 14px;
}

.ys-ref-stars {
    color: #f59e0b;
    font-size: 11px;
}

.ys-ref-stars small {
    color: #a8a29e;
}

.ys-ref-product-name {
    min-height: 42px;
    margin-top: 7px;
    color: var(--ink) !important;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-decoration: none !important;
}

.ys-ref-product-meta {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 8px;
    margin-top: 10px;
}

.ys-ref-product-meta strong {
    font-size: 17px;
}

.ys-ref-product-meta span {
    color: #047857;
    font-size: 9px;
    font-weight: 700;
    text-align: right;
}

.ys-ref-add {
    height: 40px;
    margin-top: 12px;
    border: 0;
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    width: 100%;
}

.ys-ref-add:hover {
    background: #b96c08;
}

.ys-digital-glass-card {
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 184, 0, 0.3) !important;
    position: relative;
    overflow: hidden;
}

.ys-digital-glass-card::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 184, 0, 0.1), transparent);
    transform: rotate(45deg);
    animation: ys-ref-shine 4s infinite;
}

@keyframes ys-ref-shine {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

.badge-digital {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

/* ——— Deals, categories, testimonials ——— */
.ys-ref-deal {
    overflow: hidden;
    padding: 34px;
    border: 1px solid #292524;
    border-radius: 8px;
    background: linear-gradient(120deg, var(--ys-dark), #292524);
    color: #fff;
}

.ys-ref-deal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.ys-ref-deal h3 {
    margin: 6px 0 0;
    color: #fff;
    font-size: 38px;
}

.ys-ref-deal p {
    margin: 7px 0 0;
    color: #d6d3d1;
}

.ys-ref-deal-side {
    text-align: right;
}

.ys-ref-countdown {
    display: inline-block;
    padding: 7px 11px;
    border-radius: 999px;
    background: #000;
    color: var(--gold);
    font-size: 11px;
}

.ys-ref-deal-products {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    margin-top: 24px;
}

.ys-ref-deal-products .ys-ref-product-card {
    color: var(--ink);
}

.ys-ref-live-label {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ys-ref-live-label span {
    padding: 7px 12px;
    border-radius: 999px;
    background: var(--gold);
    color: var(--ink);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.ys-ref-live-label::after {
    height: 1px;
    content: "";
    flex: 1;
    background: var(--line);
}

.ys-ref-category-row {
    display: grid;
    grid-template-columns: 1fr 4fr;
    gap: 18px;
    padding: 28px 0;
}

.ys-ref-category-intro {
    position: relative;
    display: flex;
    min-height: 100%;
    padding: 24px;
    overflow: hidden;
    flex-direction: column;
    border: 1px solid #292524;
    border-radius: 8px;
    background: linear-gradient(145deg, var(--ys-dark), #292524);
    color: #fff !important;
    text-decoration: none !important;
}

.ys-ref-category-intro small {
    color: var(--gold);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.ys-ref-category-intro h3 {
    margin: 10px 0 0;
    color: #fff;
    font-size: 24px;
}

.ys-ref-category-intro p {
    margin: 12px 0 0;
    color: #d6d3d1;
    font-size: 12px;
    line-height: 1.6;
}

.ys-ref-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 15px;
}

.ys-ref-tags span {
    padding: 4px 7px;
    border: 1px solid rgba(251, 191, 36, 0.25);
    border-radius: 999px;
    background: rgba(251, 191, 36, 0.08);
    color: #fde68a;
    font-size: 9px;
}

.ys-ref-explore {
    margin-top: auto;
    padding-top: 24px;
    color: var(--gold);
    font-size: 12px;
    font-weight: 800;
}

.ys-ref-testimonials {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.ys-ref-quote {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.ys-ref-quote > i {
    color: var(--gold);
    font-size: 30px;
}

.ys-ref-quote p {
    color: #57534e;
    font-size: 13px;
    line-height: 1.7;
}

.ys-ref-person {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
}

.ys-ref-person b {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 50%;
    background: var(--ink);
    color: var(--gold);
}

.ys-ref-person strong,
.ys-ref-person small {
    display: block;
}

.ys-ref-person small {
    color: #78716c;
    font-size: 10px;
}

.ys-ref-newsletter {
    padding: 44px;
    border: 1px solid #292524;
    border-radius: 8px;
    background: linear-gradient(120deg, var(--ys-dark), #292524);
    color: #fff;
}

.ys-ref-newsletter h3 {
    max-width: 720px;
    margin: 8px 0 0;
    color: #fff;
    font-size: 46px;
}

.ys-ref-newsletter p {
    color: #d6d3d1;
}

.ys-ref-news-form {
    display: flex;
    max-width: 480px;
    gap: 10px;
    margin-top: 22px;
}

.ys-ref-news-form input {
    height: 46px;
    padding: 0 16px;
    flex: 1;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.ys-ref-news-form button {
    padding: 0 22px;
    border: 0;
    border-radius: 999px;
    background: var(--gold);
    color: var(--ink);
    font-weight: 800;
    cursor: pointer;
}

.ys-ref-benefits {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: #fff;
}

.ys-ref-benefit-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.ys-ref-benefit {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 24px;
    border-right: 1px solid var(--line);
}

.ys-ref-benefit:last-child {
    border-right: 0;
}

.ys-ref-benefit i {
    font-size: 28px;
    color: #b96c08;
}

.ys-ref-benefit strong,
.ys-ref-benefit small {
    display: block;
}

.ys-ref-benefit small {
    margin-top: 3px;
    color: #78716c;
    font-size: 10px;
}

/* ——— Footer ——— */
.ys-ref-footer {
    padding: 46px 0 18px;
    background: var(--ys-ink);
    color: #d6d3d1;
}

.ys-ref-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}

.ys-ref-footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ys-ref-footer-brand img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    border-radius: 50%;
}

.ys-ref-footer-brand strong {
    display: block;
    color: #fff;
    font-size: 18px;
}

.ys-ref-footer-brand small {
    color: var(--gold);
    font-size: 9px;
    text-transform: uppercase;
}

.ys-ref-footer p {
    max-width: 440px;
    color: #a8a29e;
    font-size: 12px;
    line-height: 1.7;
}

.ys-ref-footer h4 {
    color: #fff;
    font-size: 13px;
}

.ys-ref-footer ul {
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
}

.ys-ref-footer li {
    margin: 9px 0;
}

.ys-ref-footer a {
    color: #a8a29e;
    font-size: 12px;
    text-decoration: none !important;
}

.ys-ref-footer a:hover {
    color: var(--gold);
}

.ys-ref-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 34px;
    padding-top: 18px;
    border-top: 1px solid #3f3a36;
    font-size: 11px;
}

.ys-ref-payments {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
}

.ys-ref-payments span {
    padding: 6px 9px;
    border: 1px solid #57534e;
    border-radius: 6px;
    background: #fff;
    color: var(--ink);
    font-weight: 800;
    font-size: 10px;
}

.ys-listing-preorder-wrap {
    grid-column: 1 / -1;
}

html.ys-reference-shell .ys-products-grid.ys-listing-ref-grid,
html.ys-reference-shell #products-row.ys-listing-ref-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

html.ys-reference-shell #products-row .col,
html.ys-reference-shell #products-row .ys-listing-col {
    width: 100%;
    max-width: 100%;
    padding: 0;
    flex: none;
}

/* ——— Inner pages ——— */
.ys-ref-page-wrap {
    padding: 28px 0 54px;
    min-height: 50vh;
}

html.ys-reference-shell .ys-page-category {
    background: var(--ys-paper) !important;
}

html.ys-reference-shell .gry-bg {
    background: var(--ys-paper) !important;
}

html.ys-reference-shell .btn-primary,
html.ys-reference-shell .ys-product-cta {
    background: var(--ys-ink) !important;
    border: none !important;
    border-radius: 999px !important;
    color: var(--ys-gold) !important;
    font-weight: 800 !important;
}

html.ys-reference-shell .btn-primary:hover,
html.ys-reference-shell .ys-product-cta:hover {
    background: #b96c08 !important;
    color: #fff !important;
}

html.ys-reference-shell .card.rounded-0.border {
    border: 1px solid var(--ys-line) !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 14px rgba(28, 25, 23, 0.04);
}

html.ys-reference-shell .aiz-main-wrapper {
    background: var(--ys-paper) !important;
}

/* WhatsApp float */
.ys-whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: rgba(37, 211, 102, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff !important;
    padding: 12px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1000;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    text-decoration: none !important;
}

.ys-whatsapp-float i {
    font-size: 24px;
}

.ys-whatsapp-float span {
    font-weight: 700;
    font-size: 14px;
    white-space: nowrap;
}

.ys-whatsapp-float:hover {
    transform: translateY(-5px);
    background: rgba(37, 211, 102, 0.95);
    color: #fff !important;
}

/* ——— Responsive ——— */
@media (max-width: 991px) {
    .ys-ref-main-row {
        grid-template-columns: 180px 1fr;
    }

    .ys-ref-actions {
        display: none;
    }

    .ys-ref-nav {
        display: none;
    }

    .ys-ref-category-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .ys-ref-product-grid,
    .ys-listing-ref-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ys-ref-deal-products {
        grid-template-columns: repeat(3, 1fr);
    }

    .ys-ref-category-row {
        grid-template-columns: 1fr;
    }

    .ys-ref-category-intro {
        min-height: 250px;
    }

    .ys-ref-benefit-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ys-ref-footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

@media (max-width: 767px) {
    .ys-whatsapp-float {
        bottom: 85px;
        right: 20px;
        padding: 10px;
    }

    .ys-whatsapp-float span {
        display: none;
    }
}

@media (max-width: 575px) {
    .ys-ref-top {
        display: none;
    }

    .ys-ref-main-row {
        min-height: 116px;
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 10px 0;
    }

    .ys-ref-brand {
        justify-content: center;
    }

    .ys-ref-brand img {
        width: 56px;
        height: 56px;
    }

    .ys-ref-hero {
        padding-top: 46px;
    }

    .ys-ref-hero h1 {
        font-size: 44px;
    }

    .ys-ref-hero-copy {
        padding: 0 16px;
        font-size: 14px;
    }

    .ys-ref-buttons {
        align-items: center;
        flex-direction: column;
    }

    .ys-ref-button {
        width: 270px;
    }

    .ys-ref-trust {
        flex-wrap: wrap;
        gap: 12px 18px;
    }

    .ys-ref-mini {
        width: 164px;
    }

    .ys-ref-category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ys-ref-heading-row h2 {
        font-size: 30px;
    }

    .ys-ref-view-all {
        display: none;
    }

    .ys-ref-product-grid,
    .ys-ref-deal-products,
    .ys-listing-ref-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ys-ref-deal {
        padding: 24px 16px;
    }

    .ys-ref-deal-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .ys-ref-deal-side {
        text-align: left;
    }

    .ys-ref-deal h3 {
        font-size: 30px;
    }

    .ys-ref-category-row .ys-ref-product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ys-ref-testimonials {
        grid-template-columns: 1fr;
    }

    .ys-ref-newsletter {
        padding: 28px 20px;
    }

    .ys-ref-newsletter h3 {
        font-size: 34px;
    }

    .ys-ref-news-form {
        flex-direction: column;
    }

    .ys-ref-news-form button {
        height: 44px;
    }

    .ys-ref-benefit-grid {
        grid-template-columns: 1fr;
    }

    .ys-ref-benefit {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .ys-ref-footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .ys-ref-footer-grid > div:first-child {
        grid-column: 1 / -1;
    }

    .ys-ref-footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }
}
