/*
 * Drape Stories by Jonia — storefront brand layer.
 *
 * Loaded after Bagisto's default shop bundle (see packages/DrapeStories/Storefront
 * partials/head.blade.php). It re-skins the default theme with the brand palette and
 * typography, and styles the home page sections created by `drapestories:setup`.
 *
 * Palette (from the brand board)
 *   olive  #4C4924   deep brand green, primary actions and text accents
 *   sage   #8E8960   secondary, muted accents
 *   gold   #C18A39   highlights, script lines, badges
 *   sand   #E6C9AA   borders, soft fills
 *   cream  #F9F1E6   page surfaces
 */

:root {
    --ds-olive: #4C4924;
    --ds-olive-deep: #3B3919;
    --ds-sage: #8E8960;
    --ds-gold: #C18A39;
    --ds-gold-soft: #D9B26F;
    --ds-sand: #E6C9AA;
    --ds-cream: #F9F1E6;
    --ds-ivory: #FFFCF7;
    --ds-ink: #2F2D1D;
    --ds-muted: #6F6A55;
    --ds-serif: "Playfair Display", Georgia, "Times New Roman", serif;
    --ds-sans: "Jost", "Segoe UI", system-ui, sans-serif;
    --ds-script: "Allura", "Brush Script MT", cursive;
    --ds-radius: 14px;
}

/* ---------- Base ---------- */

html,
body {
    font-family: var(--ds-sans);
    color: var(--ds-ink);
    background: var(--ds-ivory);
    -webkit-font-smoothing: antialiased;
}

body,
button,
input,
select,
textarea,
.font-poppins {
    font-family: var(--ds-sans);
}

.font-dmserif,
h1,
h2 {
    font-family: var(--ds-serif);
    letter-spacing: 0.01em;
}

#main.bg-white,
main.bg-white {
    background: var(--ds-ivory);
}

::selection {
    background: var(--ds-sand);
    color: var(--ds-olive-deep);
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--ds-gold);
    outline-offset: 2px;
}

/* Default palette swaps (Tailwind utilities compiled into the default bundle) */
.bg-navyBlue { background-color: var(--ds-olive) !important; }
.text-navyBlue { color: var(--ds-olive) !important; }
.border-navyBlue { border-color: var(--ds-olive) !important; }
.bg-lightOrange { background-color: var(--ds-cream) !important; }
.text-darkGreen { color: #5E7A3A !important; }
.bg-red-600.rounded-\[44px\],
.bg-red-500.rounded-\[44px\] { background-color: var(--ds-gold) !important; }

/* ---------- Buttons ---------- */

.primary-button {
    background: var(--ds-olive) !important;
    border-color: var(--ds-olive) !important;
    color: var(--ds-cream) !important;
    border-radius: 999px !important;
    letter-spacing: 0.06em;
    font-weight: 500;
    transition: background 0.25s ease, transform 0.25s ease;
}

.primary-button:hover {
    background: var(--ds-olive-deep) !important;
    opacity: 1 !important;
}

.secondary-button {
    background: transparent !important;
    color: var(--ds-olive) !important;
    border: 1px solid var(--ds-olive) !important;
    border-radius: 999px !important;
    letter-spacing: 0.04em;
    font-weight: 500;
}

.secondary-button:hover {
    background: var(--ds-olive) !important;
    color: var(--ds-cream) !important;
}

/* ---------- Announcement bar ---------- */

.ds-announcement {
    background: var(--ds-olive);
    color: var(--ds-cream);
    font-size: 12.5px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    overflow: hidden;
}

.ds-announcement__track {
    display: flex;
    gap: 22px;
    align-items: center;
    justify-content: center;
    padding: 9px 16px;
    white-space: nowrap;
}

.ds-announcement__dot {
    color: var(--ds-gold-soft);
    font-size: 11px;
}

/* Small screens: only the first (shipping) message, sized to fit one line */
@media (max-width: 767px) {
    .ds-announcement {
        font-size: 10.5px;
        letter-spacing: 0.08em;
    }

    .ds-announcement__track > :not(:first-child) {
        display: none;
    }
}

/* ---------- Header ---------- */

header.sticky {
    background: var(--ds-cream) !important;
    box-shadow: 0 1px 0 rgba(193, 138, 57, 0.25) !important;
}

header.sticky > * ,
header .border-b {
    border-color: rgba(193, 138, 57, 0.22) !important;
}

header .min-h-\[78px\] {
    min-height: 92px;
}

/* Logo: channel logo is the brand lockup, let it breathe */
header a[aria-label] > img[alt="Drape Stories by Jonia"],
header img[alt="Drape Stories by Jonia"] {
    width: auto !important;
    height: 70px !important;
    max-width: none;
    mix-blend-mode: multiply;
}

@media (max-width: 1023px) {
    header a[aria-label] > img[alt="Drape Stories by Jonia"],
    header img[alt="Drape Stories by Jonia"] {
        height: 56px !important;
    }

    /* The mobile header caps the logo link at 30px; let the lockup show in full */
    header a.max-h-\[30px\] {
        max-height: none !important;
    }
}

/* Category navigation */
header nav a,
header .flex.items-center.gap-5 a,
header .group > span > a {
    font-family: var(--ds-sans);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ds-olive);
}

header .group:hover > span > a,
header nav a:hover {
    color: var(--ds-gold);
}

/* Search box */
header input[type="text"],
header input[type="search"],
header input[name="query"] {
    background: var(--ds-ivory) !important;
    border: 1px solid rgba(193, 138, 57, 0.35) !important;
    border-radius: 999px !important;
}

header input[name="query"]:focus {
    border-color: var(--ds-olive) !important;
}

header [class*="icon-"] {
    color: var(--ds-olive);
}

/* Top currency/locale bar if it ever shows */
.border-b.px-16 {
    background: var(--ds-cream);
}

/* ---------- Section headings everywhere ---------- */

.container h2.font-dmserif {
    font-family: var(--ds-serif);
    font-weight: 500;
    color: var(--ds-olive);
    font-size: clamp(26px, 3vw, 36px);
}

/* ---------- Product cards ---------- */

/* Portrait (3:4) imagery suits sarees better than square tiles */
.group .max-h-\[300px\] {
    max-height: none !important;
    border-radius: var(--ds-radius);
}

.group .after\:pb-\[calc\(100\%\+9px\)\]::after {
    padding-bottom: 133% !important;
}

.group .bg-zinc-100 {
    background-color: var(--ds-cream) !important;
}

.group img {
    object-fit: cover;
}

.group .max-w-\[291px\].bg-white,
.group .-mt-9.bg-white {
    background: var(--ds-ivory) !important;
}

.group p.text-base.font-medium {
    font-family: var(--ds-serif);
    font-size: 17px;
    font-weight: 500;
    color: var(--ds-ink);
    line-height: 1.35;
}

.group .text-lg.font-semibold {
    color: var(--ds-olive);
    font-weight: 600;
}

.group .line-through,
.text-zinc-500.line-through {
    color: var(--ds-sage) !important;
}

/* Hover lift */
@media (min-width: 1180px) {
    .\31 180\:hover\:shadow-\[0_5px_10px_rgba\(0\2c 0\2c 0\2c 0\.1\)\]:hover {
        box-shadow: 0 18px 40px -22px rgba(76, 73, 36, 0.45) !important;
    }
}

/* ---------- Category & search pages ---------- */

.container [class*="text-2xl"].font-medium,
.container h1 {
    font-family: var(--ds-serif);
    color: var(--ds-olive);
}

/* Filter accordions */
.journal-scroll input[type="checkbox"]:checked + label,
.peer:checked + .icon-uncheck,
.icon-check-box {
    color: var(--ds-olive) !important;
}

/* ---------- Product page ---------- */

.font-dmserif.text-3xl,
h1.text-3xl {
    font-family: var(--ds-serif) !important;
    font-weight: 500;
    color: var(--ds-ink);
}

/* PDP: "Add To Cart" is the main action, make it solid */
.max-w-\[470px\] > button[type="submit"].secondary-button {
    background: var(--ds-olive) !important;
    color: var(--ds-cream) !important;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 14px;
}

.max-w-\[470px\] > button[type="submit"].secondary-button:hover {
    background: var(--ds-olive-deep) !important;
}

/* Price on PDP */
.text-3xl.font-medium,
.text-2xl.font-medium {
    color: var(--ds-olive);
}

.prose h3,
[class*="description"] h3 {
    font-family: var(--ds-serif);
    color: var(--ds-olive);
    margin-top: 1.25em;
}

/* ---------- Shared building blocks for CMS sections ---------- */

.ds-script {
    font-family: var(--ds-script);
    color: var(--ds-gold);
    font-size: 34px;
    line-height: 1;
    margin: 0 0 6px;
}

.ds-script--light {
    color: var(--ds-gold-soft);
}

.ds-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 30px;
    border-radius: 999px;
    font-family: var(--ds-sans);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    transition: all 0.25s ease;
    border: 1px solid transparent;
}

.ds-btn--solid {
    background: var(--ds-olive);
    color: var(--ds-cream);
}

.ds-btn--solid:hover {
    background: var(--ds-olive-deep);
    transform: translateY(-1px);
}

.ds-btn--ghost {
    border-color: var(--ds-olive);
    color: var(--ds-olive);
}

.ds-btn--ghost:hover {
    background: var(--ds-olive);
    color: var(--ds-cream);
}

.ds-btn--gold {
    background: var(--ds-gold);
    color: #fff;
}

.ds-btn--gold:hover {
    background: #a9762c;
}

.ds-section {
    max-width: 1440px;
    margin: 88px auto 0;
    padding: 0 60px;
}

.ds-section__head {
    text-align: center;
    margin-bottom: 40px;
}

.ds-section__title {
    font-family: var(--ds-serif);
    font-weight: 500;
    font-size: clamp(28px, 3.2vw, 42px);
    color: var(--ds-olive);
    margin: 0;
}

.ds-section__title::after {
    content: "";
    display: block;
    width: 64px;
    height: 1px;
    margin: 18px auto 0;
    background: linear-gradient(90deg, transparent, var(--ds-gold), transparent);
}

.ds-section__sub {
    margin-top: 14px;
    color: var(--ds-muted);
}

/* ---------- Hero ---------- */

.ds-hero {
    position: relative;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    align-items: center;
    gap: 48px;
    max-width: 1440px;
    margin: 0 auto;
    padding: 64px 60px 72px;
    overflow: hidden;
}

.ds-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(60% 80% at 85% 40%, rgba(230, 201, 170, 0.55), transparent 70%),
        radial-gradient(40% 60% at 10% 90%, rgba(142, 137, 96, 0.16), transparent 70%),
        var(--ds-cream);
    z-index: -1;
}

.ds-hero__title {
    font-family: var(--ds-serif);
    font-weight: 500;
    font-size: clamp(40px, 5.4vw, 76px);
    line-height: 1.04;
    color: var(--ds-olive);
    margin: 4px 0 22px;
}

.ds-hero__title em {
    font-family: var(--ds-script);
    font-style: normal;
    font-weight: 400;
    color: var(--ds-gold);
    font-size: 1.15em;
    padding-right: 6px;
}

.ds-hero__lead {
    font-size: 18px;
    line-height: 1.7;
    color: var(--ds-muted);
    max-width: 520px;
}

.ds-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.ds-hero__trust {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 28px;
    margin-top: 38px;
    padding-top: 22px;
    border-top: 1px solid rgba(193, 138, 57, 0.3);
    font-size: 14px;
    color: var(--ds-muted);
    list-style: none;
}

.ds-hero__trust strong {
    color: var(--ds-olive);
    font-weight: 600;
}

.ds-hero__art {
    position: relative;
    height: 620px;
}

.ds-arch {
    position: absolute;
    overflow: hidden;
    border-radius: 999px 999px 18px 18px;
    background: var(--ds-sand);
    box-shadow: 0 30px 60px -30px rgba(76, 73, 36, 0.55);
}

.ds-arch img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ds-arch--main {
    right: 8%;
    top: 0;
    width: 62%;
    height: 100%;
    border: 6px solid var(--ds-ivory);
    outline: 1px solid var(--ds-gold);
    outline-offset: 8px;
}

.ds-arch--small {
    left: 2%;
    bottom: 6%;
    width: 36%;
    height: 52%;
    border: 6px solid var(--ds-ivory);
}

.ds-hero__badge {
    position: absolute;
    left: 14%;
    top: 10%;
    width: 112px;
    height: 112px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    text-align: center;
    background: var(--ds-olive);
    color: var(--ds-cream);
    font-family: var(--ds-serif);
    font-style: italic;
    font-size: 17px;
    line-height: 1.15;
    border: 1px solid var(--ds-gold);
    outline: 1px solid var(--ds-gold);
    outline-offset: 4px;
    animation: ds-float 6s ease-in-out infinite;
}

.ds-hero__sprig {
    position: absolute;
    right: 0;
    bottom: 4%;
    width: 46px;
    color: var(--ds-gold);
    opacity: 0.85;
}

@keyframes ds-float {
    50% { transform: translateY(-8px); }
}

@media (prefers-reduced-motion: reduce) {
    .ds-hero__badge { animation: none; }
}

/* ---------- Promises ---------- */

.ds-promises {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 60px;
}

.ds-promises > div {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 26px 20px;
    border-bottom: 1px solid rgba(193, 138, 57, 0.25);
}

.ds-promises > div + div {
    border-left: 1px solid rgba(193, 138, 57, 0.25);
}

.ds-promises svg {
    flex: none;
    width: 34px;
    height: 34px;
    color: var(--ds-gold);
}

.ds-promises p {
    display: grid;
    gap: 2px;
    margin: 0;
}

.ds-promises strong {
    font-family: var(--ds-serif);
    font-weight: 500;
    font-size: 16px;
    color: var(--ds-olive);
}

.ds-promises span {
    font-size: 13px;
    color: var(--ds-muted);
}

/* ---------- Category tiles ---------- */

.ds-tiles {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.ds-tile {
    display: grid;
    gap: 6px;
    text-align: center;
    color: var(--ds-ink);
}

.ds-tile__img {
    display: block;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    border-radius: 999px 999px 16px 16px;
    background: var(--ds-cream);
    border: 1px solid rgba(193, 138, 57, 0.35);
    padding: 8px;
}

.ds-tile__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 999px 999px 10px 10px;
    transition: transform 0.6s ease;
}

.ds-tile:hover .ds-tile__img img {
    transform: scale(1.05);
}

.ds-tile__name {
    margin-top: 14px;
    font-family: var(--ds-serif);
    font-size: 22px;
    color: var(--ds-olive);
}

.ds-tile__cta {
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ds-gold);
}

/* ---------- Story band ---------- */

.ds-story {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 64px;
    align-items: center;
    max-width: 1320px;
    margin: 96px auto 0;
    padding: 64px 72px;
    border-radius: 28px;
    color: var(--ds-cream);
    background:
        radial-gradient(70% 120% at 100% 0%, rgba(193, 138, 57, 0.28), transparent 60%),
        var(--ds-olive);
    position: relative;
    overflow: hidden;
}

.ds-story::after {
    content: "";
    position: absolute;
    inset: 14px;
    border: 1px solid rgba(217, 178, 111, 0.45);
    border-radius: 20px;
    pointer-events: none;
}

.ds-story__logo img {
    width: 100%;
    height: auto;
    border-radius: 50%;
    box-shadow: 0 0 0 8px rgba(249, 241, 230, 0.08);
}

.ds-story h2 {
    font-family: var(--ds-serif);
    font-weight: 500;
    font-size: clamp(28px, 3.2vw, 44px);
    line-height: 1.2;
    margin: 0 0 18px;
    color: var(--ds-cream);
}

.ds-story p:not(.ds-script) {
    font-size: 17px;
    line-height: 1.75;
    color: rgba(249, 241, 230, 0.85);
    max-width: 640px;
    margin-bottom: 30px;
}

/* ---------- Craft notes ---------- */

.ds-craft {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.ds-craft article {
    background: #fff;
    border-radius: var(--ds-radius);
    overflow: hidden;
    border: 1px solid rgba(193, 138, 57, 0.2);
}

.ds-craft img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.ds-craft h3 {
    font-family: var(--ds-serif);
    font-size: 22px;
    font-weight: 500;
    color: var(--ds-olive);
    margin: 22px 24px 8px;
}

.ds-craft p {
    margin: 0 24px 26px;
    color: var(--ds-muted);
    line-height: 1.7;
}

/* ---------- Instagram strip ---------- */

.ds-gram__grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
}

.ds-gram__grid span {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 10px;
}

.ds-gram__grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, filter 0.5s ease;
    filter: saturate(0.92);
}

.ds-gram__grid span:hover img {
    transform: scale(1.06);
    filter: saturate(1.05);
}

/* ---------- Footer ---------- */

.ds-footer {
    margin-top: 96px;
    background: var(--ds-olive);
    color: rgba(249, 241, 230, 0.86);
}

.ds-footer a {
    color: inherit;
    transition: color 0.2s ease;
}

.ds-footer a:hover {
    color: var(--ds-gold-soft);
}

.ds-footer__promises {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: var(--ds-olive-deep);
    border-bottom: 1px solid rgba(217, 178, 111, 0.25);
}

.ds-footer__promises > div {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 12px;
    font-size: 13px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.ds-footer__promises > div + div {
    border-left: 1px solid rgba(217, 178, 111, 0.25);
}

.ds-footer__promise-icon {
    color: var(--ds-gold-soft);
    font-size: 18px;
}

.ds-footer__main {
    display: grid;
    grid-template-columns: 1.1fr 2fr 1.3fr;
    gap: 56px;
    max-width: 1440px;
    margin: 0 auto;
    padding: 64px 60px 48px;
}

.ds-footer__brand img {
    width: 132px;
    height: 132px;
    border-radius: 50%;
}

.ds-footer__tagline {
    margin-top: 18px;
    font-family: var(--ds-serif);
    font-style: italic;
    font-size: 17px;
    line-height: 1.5;
    color: var(--ds-cream);
}

.ds-footer__contact {
    margin-top: 14px;
    display: grid;
    gap: 6px;
    font-size: 14px;
}

.ds-footer__social {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

.ds-footer__social a {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(217, 178, 111, 0.5);
}

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

.ds-footer__links ul {
    display: grid;
    gap: 12px;
    font-size: 14.5px;
}

.ds-footer__heading {
    font-family: var(--ds-serif);
    font-size: 19px;
    color: var(--ds-cream);
    margin-bottom: 18px;
}

.ds-footer__note {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 18px;
}

.ds-footer__input {
    width: 100%;
    padding: 15px 130px 15px 20px !important;
    border-radius: 999px !important;
    border: 1px solid rgba(217, 178, 111, 0.55) !important;
    background: rgba(249, 241, 230, 0.07) !important;
    color: var(--ds-cream) !important;
    font-size: 14px;
}

.ds-footer__input::placeholder {
    color: rgba(249, 241, 230, 0.55);
}

.ds-footer__submit {
    position: absolute;
    top: 5px;
    right: 5px;
    padding: 10px 22px;
    border-radius: 999px;
    background: var(--ds-gold);
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.ds-footer__submit:hover {
    background: #a9762c;
}

.ds-footer__bottom {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    max-width: 1440px;
    margin: 0 auto;
    padding: 20px 60px 26px;
    border-top: 1px solid rgba(217, 178, 111, 0.2);
    font-size: 13px;
    color: rgba(249, 241, 230, 0.65);
}

.ds-footer__payments {
    letter-spacing: 0.08em;
}

/* ---------- CMS pages ---------- */

.ds-page {
    max-width: 820px;
    margin: 0 auto;
    padding: 24px 0 40px;
    font-size: 17px;
    line-height: 1.8;
    color: var(--ds-ink);
}

.ds-page h1 {
    font-family: var(--ds-serif);
    font-size: clamp(30px, 4vw, 46px);
    font-weight: 500;
    color: var(--ds-olive);
    line-height: 1.2;
    margin-bottom: 24px;
}

.ds-page h2 {
    font-family: var(--ds-serif);
    font-size: 24px;
    color: var(--ds-olive);
    margin: 34px 0 10px;
}

.ds-page p {
    margin-bottom: 14px;
}

.ds-page ul {
    list-style: none;
    padding: 0;
    display: grid;
    gap: 10px;
}

.ds-page li {
    position: relative;
    padding-left: 26px;
}

.ds-page li::before {
    content: "\273F";
    position: absolute;
    left: 0;
    color: var(--ds-gold);
}

.ds-page a {
    color: var(--ds-olive);
    text-decoration: underline;
    text-decoration-color: var(--ds-gold);
    text-underline-offset: 3px;
}

.ds-page__logo {
    float: right;
    margin: 0 0 20px 30px;
    border-radius: 50%;
}

/* ---------- WhatsApp ---------- */

.ds-whatsapp {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 30;
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.35);
    transition: transform 0.2s ease;
}

.ds-whatsapp:hover {
    transform: scale(1.06);
}

/* ---------- Responsive ---------- */

@media (max-width: 1180px) {
    .ds-hero,
    .ds-section,
    .ds-promises,
    .ds-footer__main,
    .ds-footer__bottom {
        padding-left: 32px;
        padding-right: 32px;
    }

    .ds-footer__main {
        grid-template-columns: 1fr 1fr;
    }

    .ds-footer__links {
        grid-column: 1 / -1;
        order: 3;
    }

    .ds-story {
        margin-left: 32px;
        margin-right: 32px;
    }
}

@media (max-width: 1023px) {
    .ds-hero {
        grid-template-columns: 1fr;
        padding-top: 40px;
        text-align: center;
    }

    .ds-hero__lead {
        margin: 0 auto;
    }

    .ds-hero__actions,
    .ds-hero__trust {
        justify-content: center;
    }

    .ds-hero__art {
        height: 520px;
        max-width: 560px;
        width: 100%;
        margin: 0 auto;
    }

    .ds-promises {
        grid-template-columns: repeat(2, 1fr);
    }

    .ds-promises > div:nth-child(3) {
        border-left: 0;
    }

    .ds-tiles {
        grid-template-columns: repeat(2, 1fr);
    }

    .ds-story {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 52px 36px;
        gap: 28px;
    }

    .ds-story__logo img {
        width: 180px;
        margin: 0 auto;
    }

    .ds-story p {
        margin-left: auto;
        margin-right: auto;
    }

    .ds-craft {
        grid-template-columns: 1fr;
        max-width: 560px;
        margin: 0 auto;
    }

    .ds-gram__grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .ds-footer__promises {
        grid-template-columns: repeat(2, 1fr);
    }

    .ds-footer__promises > div:nth-child(3) {
        border-left: 0;
    }
}

@media (max-width: 640px) {
    .ds-hero,
    .ds-section,
    .ds-promises,
    .ds-footer__main,
    .ds-footer__bottom {
        padding-left: 16px;
        padding-right: 16px;
    }

    .ds-section {
        margin-top: 60px;
    }

    .ds-hero__art {
        height: 420px;
    }

    .ds-hero__badge {
        width: 84px;
        height: 84px;
        font-size: 14px;
        left: 4%;
    }

    .ds-promises {
        grid-template-columns: 1fr;
    }

    .ds-promises > div + div {
        border-left: 0;
    }

    .ds-tiles {
        gap: 16px;
    }

    .ds-tile__name {
        font-size: 18px;
    }

    .ds-story {
        margin: 64px 16px 0;
        padding: 44px 22px;
    }

    .ds-footer__main {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .ds-footer__links {
        grid-template-columns: 1fr 1fr;
    }

    .ds-footer__promises {
        grid-template-columns: 1fr 1fr;
        font-size: 11px;
    }

    .ds-footer__bottom {
        justify-content: center;
        text-align: center;
    }

    .ds-page__logo {
        float: none;
        display: block;
        margin: 0 auto 20px;
    }
}

/* ---------- Category intro (from the category description) ---------- */

.ds-cat {
    text-align: center;
    max-width: 760px;
    margin: 8px auto 12px;
}

.ds-cat h1 {
    font-family: var(--ds-serif);
    font-weight: 500;
    font-size: clamp(32px, 4vw, 52px);
    color: var(--ds-olive);
    margin: 0 0 14px;
}

.ds-cat h1::after {
    content: "";
    display: block;
    width: 64px;
    height: 1px;
    margin: 16px auto 0;
    background: linear-gradient(90deg, transparent, var(--ds-gold), transparent);
}

.ds-cat p:not(.ds-script) {
    color: var(--ds-muted);
    font-size: 16px;
    line-height: 1.7;
}

/* ---------- Craft images: keep faces/pallus in frame ---------- */

.ds-craft img {
    object-position: center 30%;
}
