
/* ========================================
   ADEZENT — MAIN THEME
======================================== */

:root {
    --cream: #faf6ee;
    --ivory: #fffdf8;
    --gold: #c9a96e;
    --gold2: #a8864a;
    --ink: #111;
    --mut: #6b6558;
    --line: #e8dfcc;
}


/* ========================================
   GLOBAL STYLES
======================================== */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--cream);
    color: var(--ink);
    font: 16px/1.6 system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

h1,
h2,
h3,
.logo {
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 500;
    line-height: 1.2;
}

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

a {
    color: inherit;
}

.wrap {
    max-width: 1050px;
    margin: auto;
    padding: 0 18px;
}


/* ========================================
   SECTIONS & HEADINGS
======================================== */

section {
    padding: 54px 0;
}

section h2 {
    font-size: 1.9rem;
    text-align: center;
    margin: 0 0 8px;
}

.sub {
    text-align: center;
    color: var(--mut);
    margin: 0 0 28px;
}


/* ========================================
   BUTTONS
======================================== */

.btn {
    display: inline-block;
    min-height: 46px;
    padding: 12px 22px;
    border: 1px solid var(--ink);
    background: var(--ink);
    color: var(--cream);
    border-radius: 3px;
    font: 600 .85rem system-ui;
    letter-spacing: .08em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: transform .2s, background .2s;
}

.btn:hover {
    transform: translateY(-2px);
    background: var(--gold2);
    border-color: var(--gold2);
}

.btn.alt {
    background: transparent;
    color: var(--ink);
}

.btn.alt:hover {
    color: #fff;
}

.btn.gold {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--ink);
}

.btn[disabled] {
    opacity: .4;
    pointer-events: none;
}


/* ========================================
   HEADER & NAVIGATION
======================================== */

header.top {
    position: sticky;
    top: 0;
    background: rgba(250, 246, 238, .95);
    border-bottom: 1px solid var(--line);
    z-index: 20;
}

header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.logo {
    font-size: 1.4rem;
    letter-spacing: .25em;
    text-decoration: none;
}

nav a {
    margin-left: 16px;
    font-size: .85rem;
    text-decoration: none;
    color: var(--mut);
}

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

.bagbtn {
    background: none;
    border: 1px solid var(--ink);
    padding: 8px 14px;
    min-height: 42px;
    cursor: pointer;
    margin-left: 16px;
    font-weight: 600;
}


/* ========================================
   HERO SECTION
======================================== */

.hero {
    text-align: center;
    padding: 80px 0 60px;
    background: linear-gradient(var(--ivory), var(--cream));
}

.hero small {
    letter-spacing: .3em;
    color: var(--gold2);
}

.hero h1 {
    font-size: clamp(2rem, 6vw, 3.4rem);
    margin: 14px 0;
}

.hero p {
    max-width: 560px;
    margin: 0 auto 24px;
    color: var(--mut);
}

.hero .btn {
    margin: 6px;
}


/* ========================================
   PRODUCT GRID & CARDS
======================================== */

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.card {
    background: var(--ivory);
    border: 1px solid var(--line);
    transition: transform .25s, box-shadow .25s;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .07);
}

.ph {
    aspect-ratio: 1;
    background: #f0e8d6;
    display: grid;
    place-items: center;
    overflow: hidden;
    cursor: pointer;
}

.ph img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s;
}

.card:hover .ph img {
    transform: scale(1.04);
}

.ph span {
    font-family: Georgia, serif;
    font-size: 2.4rem;
    color: var(--gold);
}

.cb {
    padding: 16px;
}

.cb h3 {
    margin: 0 0 4px;
}

.tag {
    font-size: .8rem;
    color: var(--gold2);
}

.badge {
    display: inline-block;
    font-size: .72rem;
    padding: 2px 8px;
    border: 1px solid var(--gold);
    margin-left: 6px;
}

.cb p {
    color: var(--mut);
    font-size: .92rem;
    margin: 8px 0;
}

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

.pr {
    font-weight: 700;
    margin: 6px 0;
}


/* ========================================
   MODALS & SHOPPING BAG
======================================== */

.modal,
.drawer {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .5);
    z-index: 50;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 14px;
}

.modal.on,
.drawer.on {
    display: flex;
}

.box {
    background: var(--ivory);
    max-width: 720px;
    width: 100%;
    max-height: 92vh;
    overflow: auto;
    padding: 22px;
    position: relative;
    display: grid;
    gap: 18px;
    grid-template-columns: 1fr 1fr;
}

.x {
    position: absolute;
    right: 8px;
    top: 6px;
    background: none;
    border: 0;
    font-size: 1.8rem;
    cursor: pointer;
    width: 44px;
    height: 44px;
}

.sizes {
    display: flex;
    gap: 8px;
    margin: 10px 0;
}

.sizes button {
    min-height: 44px;
    padding: 8px 16px;
    border: 1px solid var(--ink);
    background: none;
    cursor: pointer;
    font-weight: 600;
}

.sizes button.on {
    background: var(--ink);
    color: var(--cream);
}

.sizes button:disabled {
    opacity: .35;
    text-decoration: line-through;
}

.drawer {
    justify-content: flex-end;
    align-items: stretch;
    padding: 0;
}

.drawer .box {
    display: block;
    max-width: 400px;
    height: 100%;
    max-height: none;
}

.item {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    border-bottom: 1px solid var(--line);
    padding: 10px 0;
}

.qty button {
    width: 34px;
    height: 34px;
    border: 1px solid var(--ink);
    background: none;
    cursor: pointer;
}


/* ========================================
   GENERAL CONTENT
======================================== */

.note {
    font-size: .82rem;
    color: var(--mut);
}

.band {
    background: var(--ivory);
    border-block: 1px solid var(--line);
}

.why {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    text-align: center;
}

.why div {
    padding: 10px;
}

.why b {
    display: block;
    font-size: 1.6rem;
    color: var(--gold2);
}


/* ========================================
   COMING SOON / VOTING
======================================== */

.opts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin: 16px 0;
}

.opts button {
    min-height: 46px;
    padding: 10px 20px;
    border: 1px solid var(--ink);
    background: none;
    cursor: pointer;
    border-radius: 30px;
    font-size: .95rem;
}

.opts button.on,
.opts button:hover {
    background: var(--ink);
    color: var(--cream);
}


/* ========================================
   HORIZONTAL PHOTO GALLERY
======================================== */

#gallery {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    gap: 16px;
    width: 100%;
    padding: 10px 2px 18px;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

#gallery .gallery-track {
    display: flex;
    flex-wrap: nowrap;
    gap: 16px;
    width: max-content;
}

#gallery img {
    flex: 0 0 240px;
    width: 240px;
    height: 280px;
    object-fit: cover;
    border-radius: 12px;
    scroll-snap-align: start;
    cursor: pointer;
    user-select: none;
}


/* ========================================
   GALLERY LIGHTBOX
======================================== */

.lb {
    background: rgba(0, 0, 0, .92);
    display: none;
    position: fixed;
    inset: 0;
    z-index: 60;
    align-items: center;
    justify-content: center;
}

.lb.on {
    display: flex;
}

.lb img {
    max-height: 80vh;
    max-width: 90vw;
}

.lb button {
    position: absolute;
    background: none;
    border: 0;
    color: #fff;
    font-size: 2.4rem;
    cursor: pointer;
    width: 56px;
    height: 56px;
}


/* ========================================
   FAQ & REVIEWS
======================================== */

details {
    border-bottom: 1px solid var(--line);
    padding: 14px 0;
}

summary {
    cursor: pointer;
    font-weight: 600;
    min-height: 28px;
}

details p {
    color: var(--mut);
    margin: 8px 0 0;
}

.rev {
    border: 1px solid var(--line);
    padding: 16px;
    background: var(--ivory);
}


/* ========================================
   FOOTER
======================================== */

footer {
    background: var(--ink);
    color: var(--cream);
    text-align: center;
    padding: 40px 18px;
}

footer a {
    color: var(--gold);
}


/* ========================================
   SCROLL ANIMATIONS
======================================== */

.fade {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .6s, transform .6s;
}

.fade.in {
    opacity: 1;
    transform: none;
}


/* ========================================
   RESPONSIVE DESIGN
======================================== */

@media (max-width: 700px) {
    nav .l {
        display: none;
    }
}

@media (max-width: 640px) {
    .box {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    #gallery img {
        flex-basis: 75vw;
        width: 75vw;
        height: 240px;
    }
}


/* ========================================
   ACCESSIBILITY
======================================== */

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        animation: none !important;
        scroll-behavior: auto !important;
    }

    .fade {
        opacity: 1;
        transform: none;
    }
}


/* Customer review section */
#reviews {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    gap: 16px;
    padding: 12px 2px 20px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

#reviews .rev {
    flex: 0 0 280px;
    min-width: 0;
    padding: 20px;
    background: var(--ivory);
    border: 1px solid var(--line);
    border-radius: 10px;
    scroll-snap-align: start;
    text-align: left;
}

#reviews .rev img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 7px;
}

.review-rating {
    display: flex;
    gap: 8px;
    margin: 8px 0 16px;
}

.review-rating button {
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid var(--gold);
    background: transparent;
    color: #b8b0a0;
    font-size: 25px;
    cursor: pointer;
}

.review-rating button.active {
    color: var(--gold2);
    background: #f7efdf;
}

#reviewPhotoPreview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 12px 0;
}

#reviewPhotoPreview img {
    width: 85px;
    height: 85px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--line);
}

#reviewSubmit:disabled {
    opacity: .6;
    cursor: not-allowed;
}

@media(max-width:600px) {
    #reviews .rev {
        flex-basis: 82vw;
    }
}
.rev-stars {
    color: var(--gold2);
    font-size: 20px;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.rev-photos {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0;
}

#reviews .rev .rev-photos img {
    width: 75px;
    height: 75px;
    object-fit: cover;
    border-radius: 6px;
}


/* ========================================
   ADEZENT — LIGHT / DARK MODE
======================================== */

/* Theme colours */
:root {
    color-scheme: light;

    --cream: #faf6ee;
    --ivory: #fffdf8;
    --gold: #c9a96e;
    --gold2: #a8864a;
    --ink: #111;
    --mut: #6b6558;
    --line: #e8dfcc;

    --header-bg: rgba(250, 246, 238, .96);
    --input-bg: #fffdf8;
    --soft-bg: #f0e8d6;
    --footer-bg: #111;
    --footer-text: #faf6ee;
}

/* Dark theme */
html[data-theme="dark"] {
    color-scheme: dark;

    --cream: #171613;
    --ivory: #23211d;
    --gold: #d6b779;
    --gold2: #c5a365;
    --ink: #f4eee2;
    --mut: #b9b0a1;
    --line: #403a30;

    --header-bg: rgba(23, 22, 19, .97);
    --input-bg: #29261f;
    --soft-bg: #302b22;
    --footer-bg: #0d0c0a;
    --footer-text: #f4eee2;
}

/* Smooth theme transition */
body,
header.top,
.card,
.panel,
.rev,
.box,
.band,
input,
textarea,
select,
button {
    transition:
        background-color .25s ease,
        color .25s ease,
        border-color .25s ease;
}

/* Main backgrounds */
body {
    background: var(--cream);
    color: var(--ink);
}

header.top {
    background: var(--header-bg);
}

.band {
    background: var(--ivory);
    border-color: var(--line);
}

.hero {
    background: linear-gradient(var(--ivory), var(--cream));
}

.card,
.rev,
.panel,
.modal .box,
.drawer .box {
    background: var(--ivory);
    color: var(--ink);
    border-color: var(--line);
}

/* Text and links */
nav a {
    color: var(--mut);
}

.sub,
.note,
.hero p,
.cb p,
details p {
    color: var(--mut);
}

/* Buttons */
.btn.alt {
    color: var(--ink);
    border-color: var(--line);
}

.bagbtn {
    color: var(--ink);
    border-color: var(--ink);
}

.sizes button,
.qty button,
.opts button {
    color: var(--ink);
    border-color: var(--line);
}

.sizes button.on,
.opts button.on,
.opts button:hover {
    background: var(--ink);
    color: var(--cream);
}

/* Form fields */
input,
textarea,
select {
    background: var(--input-bg);
    color: var(--ink);
    border: 1px solid var(--line);
}

input::placeholder,
textarea::placeholder {
    color: var(--mut);
    opacity: .8;
}

input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

/* Product image placeholders */
.ph {
    background: var(--soft-bg);
}

/* Footer */
footer {
    background: var(--footer-bg);
    color: var(--footer-text);
}

/* Rating buttons */
.review-rating button {
    color: var(--mut);
}

.review-rating button.active {
    color: var(--gold);
    background: var(--soft-bg);
}

/* Theme toggle button */
.theme-toggle {
    width: 42px;
    height: 42px;
    min-width: 42px;
    padding: 0;
    margin-left: 10px;
    border: 1px solid var(--gold);
    border-radius: 50%;
    background: transparent;
    color: var(--gold2);
    font-size: 19px;
    cursor: pointer;
    display: inline-grid;
    place-items: center;
    vertical-align: middle;
}

.theme-toggle:hover {
    background: var(--soft-bg);
    transform: rotate(12deg);
}

.theme-toggle:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}

/* Mobile header */
@media (max-width: 700px) {
    .theme-toggle {
        margin-left: 6px;
    }

    .bagbtn {
        margin-left: 6px;
        padding: 8px 10px;
    }
}


/* ========================================
   ADEZENT — CUSTOMER REVIEW FORM POLISH
======================================== */

/* Review text box */
#reviewForm textarea#reviewText {
    display: block;
    width: 100%;
    min-height: 130px;
    padding: 15px 17px;
    margin-top: 9px;
    border: 1px solid var(--gold);
    border-radius: 12px;
    background: var(--input-bg);
    color: var(--ink);
    font-family: inherit;
    font-size: 14px;
    line-height: 1.7;
    resize: vertical;
    box-sizing: border-box;
}

#reviewForm textarea#reviewText::placeholder {
    color: var(--mut);
    opacity: .75;
}

#reviewForm textarea#reviewText:focus {
    outline: none;
    border-color: var(--gold2);
    box-shadow: 0 0 0 3px rgba(201, 169, 110, .15);
}

/* Photo upload field */
#reviewForm input#reviewPhotos {
    display: block;
    width: 100%;
    margin-top: 9px;
    padding: 12px;
    border: 1px dashed var(--gold);
    border-radius: 12px;
    background: var(--input-bg);
    color: var(--mut);
    font-family: inherit;
    font-size: 13px;
    box-sizing: border-box;
}

/* Custom Choose File button */
#reviewForm input#reviewPhotos::file-selector-button {
    margin-right: 14px;
    padding: 10px 17px;
    border: 1px solid var(--gold);
    border-radius: 8px;
    background: var(--soft-bg);
    color: var(--ink);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}

#reviewForm input#reviewPhotos::file-selector-button:hover {
    background: var(--gold);
    color: #111;
}

/* WebKit browser support */
#reviewForm input#reviewPhotos::-webkit-file-upload-button {
    margin-right: 14px;
    padding: 10px 17px;
    border: 1px solid var(--gold);
    border-radius: 8px;
    background: var(--soft-bg);
    color: var(--ink);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}


/* Customer review name field */
#reviewForm input#reviewName {
    display: block;
    width: 100%;
    padding: 14px 17px;
    margin-top: 9px;
    border: 1px solid var(--gold);
    border-radius: 12px;
    background: var(--input-bg);
    color: var(--ink);
    font-family: inherit;
    font-size: 14px;
    box-sizing: border-box;
}

#reviewForm input#reviewName::placeholder {
    color: var(--mut);
    opacity: .75;
}

#reviewForm input#reviewName:focus {
    outline: none;
    border-color: var(--gold2);
    box-shadow: 0 0 0 3px rgba(201, 169, 110, .15);
}


/* Footer copyright */
.copyright {
    margin-top: 22px;
    padding-top: 15px;
    border-top: 1px solid rgba(201, 169, 110, .3);
    font-size: 12px;
    letter-spacing: .5px;
    opacity: .8;
    text-align: center;
}


/* ========================================
   ADEZENT — FLOATING WHATSAPP BUTTON
======================================== */

.floating-wa {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 9999;

    display: flex;
    align-items: center;
    gap: 9px;

    padding: 13px 19px;
    border-radius: 50px;

    background: #25D366;
    color: #fff;
    text-decoration: none;

    font-size: 14px;
    font-weight: 600;

    box-shadow: 0 5px 20px rgba(0, 0, 0, .2);

    transition: transform .2s ease, box-shadow .2s ease;
}

.floating-wa span:first-child {
    font-size: 21px;
}

.floating-wa:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
}

@media (max-width: 600px) {
    .floating-wa {
        right: 14px;
        bottom: 14px;
        padding: 12px 16px;
        font-size: 13px;
    }
}


/* ========================================
   ADEZENT — FLOATING SOCIAL BUTTONS
======================================== */


/* Instagram and Facebook icon-only buttons */

.floating-socials {
    position: fixed;
    left: 22px;
    bottom: 22px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.floating-social {
    width: 48px;
    height: 48px;
    min-width: 48px;
    padding: 0;
    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #fff;
    text-decoration: none;
    font-size: 25px;

    box-shadow: 0 5px 18px rgba(0, 0, 0, .2);
    transition: transform .2s ease, box-shadow .2s ease;
}

.floating-social span:not(:first-child) {
    display: none;
}

.floating-social:hover {
    transform: translateY(-4px);
}

.floating-social.instagram {
    background: linear-gradient(
        45deg, #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5
    );
}

.floating-social.facebook {
    background: #1877F2;
}

@media (max-width: 600px) {
    .floating-socials {
        left: 12px;
        bottom: 14px;
    }
}


/* Proper SVG social media icons */
.floating-social {
    width: 48px;
    height: 48px;
    min-width: 48px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.floating-social svg {
    width: 25px;
    height: 25px;
    display: block;
}

.floating-social.instagram {
    color: #fff;
}

.floating-social.facebook {
    color: #fff;
}


/* WhatsApp SVG logo */
.floating-wa svg {
    width: 23px;
    height: 23px;
    flex-shrink: 0;
    display: block;
}
