@font-face {
    font-family: "Rosebay";
    src: url("../css/fonts/RosebaySlab-Regular.otf") format("opentype");
    font-display: swap;
}

@font-face {
    font-family: "Adamina";
    src: url("../css/fonts/Adamina-Regular.ttf") format("truetype");
    font-display: swap;
}

:root {
    --black: #070707;
    --ink: #151515;
    --charcoal: #262422;
    --white: #fffdfa;
    --ivory: #f7f1e7;
    --cream: #eee4d5;
    --gold: #c7a461;
    --gold-bright: #e7c97c;
    --silver: #c8c8c5;
    --blush: #c69c93;
    --line: rgba(21, 21, 21, 0.14);
    --shadow: 0 18px 54px rgba(0, 0, 0, 0.12);
    --serif: "Adamina", Georgia, serif;
    --display: "Rosebay", Georgia, serif;
    --body: "Adamina", Georgia, serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at 20% 10%, rgba(199, 164, 97, 0.18), transparent 28rem),
        linear-gradient(120deg, rgba(255, 253, 250, 0.92), rgba(238, 228, 213, 0.9)),
        var(--ivory);
    color: var(--ink);
    font-family: var(--body);
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

.site-header {
    position: fixed;
    z-index: 50;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 1rem clamp(1rem, 4vw, 3rem);
    background: rgba(7, 7, 7, 0.78);
    color: var(--white);
    border-bottom: 1px solid rgba(231, 201, 124, 0.24);
    backdrop-filter: blur(18px);
}

.brand-mark,
.desktop-nav,
.hero-actions,
.cart-header,
.cart-total,
.site-footer {
    display: flex;
    align-items: center;
}

.brand-mark {
    gap: 0.75rem;
    font-family: var(--serif);
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    letter-spacing: 0;
    white-space: nowrap;
}

.brand-mark img {
    width: 3.2rem;
    height: 2.2rem;
    object-fit: contain;
    filter: drop-shadow(0 6px 16px rgba(231, 201, 124, 0.22));
}

.desktop-nav {
    gap: clamp(0.7rem, 2vw, 1.7rem);
    font-size: 0.9rem;
    color: rgba(255, 253, 250, 0.82);
}

.desktop-nav a,
.mobile-nav a {
    transition: color 180ms ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
    color: var(--gold-bright);
}

.header-action,
.primary-link,
.secondary-link,
.category-card button,
.custom-form button,
.newsletter-form button,
.checkout-button {
    border: 1px solid rgba(199, 164, 97, 0.5);
    cursor: pointer;
    transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.header-action {
    padding: 0.7rem 1.05rem;
    background: linear-gradient(135deg, var(--gold), var(--gold-bright));
    color: var(--black);
    font-size: 0.85rem;
}

.menu-toggle {
    display: none;
    width: 2.7rem;
    height: 2.7rem;
    place-items: center;
    gap: 0.3rem;
    background: transparent;
    border: 1px solid rgba(255, 253, 250, 0.28);
}

.menu-toggle span {
    width: 1.1rem;
    height: 1px;
    background: var(--white);
}

.mobile-nav {
    position: fixed;
    z-index: 45;
    top: 4.7rem;
    left: 1rem;
    right: 1rem;
    display: grid;
    gap: 0.2rem;
    padding: 1rem;
    background: rgba(7, 7, 7, 0.94);
    color: var(--white);
    border: 1px solid rgba(231, 201, 124, 0.22);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-0.5rem);
    transition: opacity 180ms ease, transform 180ms ease;
}

.mobile-nav a {
    padding: 0.8rem;
}

.mobile-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.hero {
    position: relative;
    min-height: clamp(24rem, 46svh, 34rem);
    display: flex;
    align-items: end;
    padding: 7rem clamp(1.2rem, 6vw, 6rem) clamp(2.5rem, 6vw, 4.25rem);
    overflow: hidden;
    color: var(--white);
    background: var(--black);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 84% 36%, rgba(231, 201, 124, 0.18), transparent 22rem),
        linear-gradient(90deg, rgba(7, 7, 7, 0.96), rgba(7, 7, 7, 0.86) 52%, rgba(7, 7, 7, 0.46)),
        url("../img/elegant-welcome.jpg") center right 8vw / clamp(20rem, 40vw, 34rem) no-repeat,
        linear-gradient(135deg, #0a0908, #27231d);
    transform: scale(1.04);
    animation: heroDrift 16s ease-in-out infinite alternate;
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 5rem;
    background: linear-gradient(transparent, var(--ivory));
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 54rem;
}

.hero .reveal {
    opacity: 1;
    transform: none;
}

.kicker {
    margin: 0 0 1rem;
    color: var(--gold-bright);
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    font-family: var(--serif);
    font-weight: 400;
    letter-spacing: 0;
}

h1 {
    max-width: 15ch;
    margin-bottom: 1.1rem;
    font-size: clamp(2.25rem, 4.8vw, 4.2rem);
    line-height: 1.08;
}

h2 {
    margin-bottom: 1rem;
    font-size: clamp(1.65rem, 3.2vw, 2.8rem);
    line-height: 1.14;
}

h3 {
    font-size: clamp(1.25rem, 1.7vw, 1.75rem);
    line-height: 1.18;
}

.hero-copy {
    max-width: 45rem;
    color: rgba(255, 253, 250, 0.82);
    font-size: clamp(1rem, 1.4vw, 1.18rem);
    line-height: 1.7;
}

.hero-actions {
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 2rem;
}

.primary-link,
.secondary-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    padding: 0.85rem 1.2rem;
}

.primary-link {
    background: linear-gradient(135deg, var(--gold), var(--gold-bright));
    color: var(--black);
}

.secondary-link {
    color: var(--white);
    background: rgba(255, 253, 250, 0.08);
}

.header-action:hover,
.primary-link:hover,
.secondary-link:hover,
.category-card button:hover,
.custom-form button:hover,
.newsletter-form button:hover,
.checkout-button:hover {
    transform: translateY(-2px);
}

section:not(.hero) {
    padding: clamp(3.5rem, 7vw, 6.5rem) clamp(1.2rem, 6vw, 6rem);
}

.section-heading {
    max-width: 62rem;
    margin-bottom: clamp(1.6rem, 4vw, 3rem);
}

.section-heading h2 {
    color: var(--black);
}

.section-copy {
    max-width: 54rem;
    color: var(--charcoal);
    line-height: 1.75;
}

.carousel-section {
    padding-top: clamp(2.5rem, 5vw, 4.5rem) !important;
    background: var(--ivory);
}

.carousel-shell {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(199, 164, 97, 0.4);
    background: var(--white);
    box-shadow: var(--shadow);
}

.carousel-track {
    position: relative;
    aspect-ratio: 3 / 1;
    min-height: 0;
}

.carousel-slide {
    position: absolute;
    inset: 0;
    margin: 0;
    display: grid;
    place-items: center;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 700ms ease, transform 900ms ease;
}

.carousel-slide.is-active {
    opacity: 1;
    transform: scale(1);
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.carousel-button {
    position: absolute;
    z-index: 4;
    top: 50%;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    border: 1px solid rgba(255, 253, 250, 0.38);
    background: rgba(7, 7, 7, 0.48);
    transform: translateY(-50%);
}

.carousel-button::before {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
    width: 0.7rem;
    height: 0.7rem;
    border-top: 2px solid var(--white);
    border-left: 2px solid var(--white);
}

.carousel-button.prev {
    left: 1rem;
}

.carousel-button.prev::before {
    transform: rotate(-45deg);
}

.carousel-button.next {
    right: 1rem;
}

.carousel-button.next::before {
    transform: rotate(135deg);
}

.carousel-dots {
    position: absolute;
    z-index: 5;
    left: 50%;
    bottom: 1.1rem;
    display: flex;
    gap: 0.45rem;
    transform: translateX(-50%);
}

.carousel-dots button {
    width: 0.55rem;
    height: 0.55rem;
    padding: 0;
    border: 1px solid rgba(255, 253, 250, 0.72);
    border-radius: 50%;
    background: transparent;
}

.carousel-dots button.is-active {
    background: var(--gold-bright);
    border-color: var(--gold-bright);
}

.shop-section,
.gallery-section,
.checkout-section {
    background:
        linear-gradient(rgba(255, 253, 250, 0.84), rgba(255, 253, 250, 0.84)),
        repeating-linear-gradient(45deg, rgba(199, 164, 97, 0.12) 0 1px, transparent 1px 18px);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
}

.category-card {
    min-height: 19rem;
    padding: clamp(1.2rem, 2.5vw, 2rem);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: rgba(255, 253, 250, 0.62);
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    transition: background 180ms ease, transform 180ms ease;
}

.category-card:hover {
    background: var(--white);
    transform: translateY(-0.35rem);
}

.category-card p {
    color: var(--gold);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.74rem;
}

.category-card h3 {
    min-height: 5.4rem;
}

.category-card span {
    margin-bottom: 1rem;
    color: var(--charcoal);
}

.category-card button,
.custom-form button,
.newsletter-form button,
.checkout-button {
    width: max-content;
    padding: 0.75rem 1rem;
    background: var(--black);
    color: var(--white);
}

.custom-section,
.about-section,
.contact-section {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(20rem, 0.75fr);
    gap: clamp(2rem, 7vw, 7rem);
    align-items: start;
    background: var(--black);
    color: var(--white);
}

.custom-copy p,
.about-copy p,
.contact-copy p,
.checkout-copy p {
    max-width: 42rem;
    color: rgba(255, 253, 250, 0.76);
    line-height: 1.8;
}

.custom-form,
.newsletter-form,
.cart-panel {
    display: grid;
    gap: 1rem;
    padding: clamp(1rem, 3vw, 2rem);
    background: rgba(255, 253, 250, 0.06);
    border: 1px solid rgba(231, 201, 124, 0.24);
}

label {
    display: grid;
    gap: 0.45rem;
    color: rgba(255, 253, 250, 0.72);
    font-size: 0.85rem;
}

input,
select,
textarea {
    width: 100%;
    min-height: 2.9rem;
    padding: 0.8rem 0.9rem;
    color: var(--white);
    background: rgba(255, 253, 250, 0.08);
    border: 1px solid rgba(255, 253, 250, 0.16);
    outline: none;
}

textarea {
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--gold-bright);
}

.form-status {
    min-height: 1.5rem;
    margin: 0;
    color: var(--gold-bright);
    font-size: 0.85rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.gallery-grid img {
    width: 100%;
    height: auto;
    aspect-ratio: 6000 / 1119;
    object-fit: contain;
    object-position: center;
    background: var(--white);
    border: 1px solid rgba(199, 164, 97, 0.35);
    filter: saturate(0.9) contrast(1.02);
    transition: transform 260ms ease, filter 260ms ease;
}

.gallery-grid img:hover {
    transform: scale(1.015);
    filter: saturate(1.05) contrast(1.05);
}

.about-section {
    background:
        linear-gradient(115deg, rgba(7, 7, 7, 0.98), rgba(38, 36, 34, 0.94)),
        var(--black);
}

.about-image {
    display: grid;
    place-items: center;
    min-height: 24rem;
    border: 1px solid rgba(231, 201, 124, 0.24);
    background: radial-gradient(circle, rgba(231, 201, 124, 0.18), rgba(255, 253, 250, 0.04));
}

.about-image img {
    width: min(70%, 22rem);
}

blockquote {
    margin: 2rem 0 0;
    padding-left: 1.5rem;
    color: var(--white);
    border-left: 2px solid var(--gold);
    line-height: 1.8;
}

cite {
    display: block;
    margin-top: 0.8rem;
    color: var(--silver);
    font-style: normal;
}

.checkout-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(20rem, 28rem);
    gap: clamp(2rem, 7vw, 7rem);
}

.checkout-copy p {
    color: var(--charcoal);
}

.cart-panel {
    color: var(--ink);
    background: var(--white);
    border-color: rgba(21, 21, 21, 0.14);
    box-shadow: var(--shadow);
}

.cart-header,
.cart-total,
.site-footer {
    justify-content: space-between;
}

.cart-header h3 {
    margin: 0;
}

.cart-count {
    color: var(--gold);
}

.cart-items {
    display: grid;
    gap: 0.75rem;
    min-height: 7rem;
    padding: 1rem 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.cart-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.empty-cart {
    color: rgba(21, 21, 21, 0.55);
}

.contact-section {
    grid-template-columns: minmax(0, 1fr) minmax(20rem, 27rem);
}

.contact-section a {
    color: var(--gold-bright);
    text-decoration: underline;
    text-underline-offset: 0.25em;
}

.site-footer {
    gap: 1rem;
    padding: 1.4rem clamp(1.2rem, 6vw, 6rem);
    color: rgba(255, 253, 250, 0.7);
    background: var(--black);
    border-top: 1px solid rgba(231, 201, 124, 0.24);
    font-size: 0.85rem;
}

.reveal {
    opacity: 1;
    transform: none;
    transition: none;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes heroDrift {
    from {
        transform: scale(1.04) translateX(0);
    }

    to {
        transform: scale(1.08) translateX(-1.2rem);
    }
}

@media (max-width: 980px) {
    .desktop-nav,
    .header-action {
        display: none;
    }

    .menu-toggle {
        display: grid;
    }

    .custom-section,
    .about-section,
    .checkout-section,
    .contact-section {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-top: 7rem;
    }

    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .site-header {
        padding: 0.85rem 1rem;
    }

    .brand-mark span {
        max-width: 10rem;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .hero {
        min-height: auto;
        padding: 5.5rem 1.2rem 1.5rem;
    }

    .hero-bg {
        background:
            linear-gradient(180deg, rgba(7, 7, 7, 0.92), rgba(7, 7, 7, 0.74)),
            url("../img/elegant-welcome.jpg") center top / cover no-repeat;
    }

    h1 {
        font-size: clamp(2rem, 9vw, 2.75rem);
    }

    h2 {
        font-size: clamp(1.55rem, 8vw, 2.35rem);
    }

    .hero-actions,
    .primary-link,
    .secondary-link {
        width: 100%;
    }

    .hero-copy {
        font-size: 0.95rem;
        line-height: 1.55;
    }

    .carousel-section {
        padding-top: 2rem !important;
    }

    .carousel-track {
        aspect-ratio: 3 / 1;
    }

    .carousel-button {
        width: 2.5rem;
        height: 2.5rem;
    }

    .category-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .category-card {
        min-height: 18rem;
    }

    .category-card h3 {
        min-height: auto;
    }

    .site-footer {
        display: grid;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
