@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Playfair+Display:wght@600;700;800&display=swap');

:root {
--bg: #f4f2ec;
--white: #fffefa;
--black: #252820;
--muted: #85877d;
--brown: #9b7956;
--green: #596b53;
--border: #e5e0d5;
--red: #b75c4d;
}

* {
margin: 0;
padding: 0;
box-sizing: border-box;
}

html {
scroll-behavior: smooth;
}

body {
font-family: 'DM Sans', sans-serif;
background: var(--bg);
color: var(--black);
}

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

button {
cursor: pointer;
}

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

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

.welcome-page {
min-height: 100vh;
overflow: hidden;
}

.welcome-container {
min-height: 100vh;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
padding: 25px;
position: relative;
}

.welcome-card {
width: 100%;
max-width: 470px;
padding: 55px 35px;
text-align: center;
background: var(--white);
border: 1px solid var(--border);
box-shadow: 12px 12px 0 #d9d2c4;
position: relative;
z-index: 2;
animation: appear .7s ease;
}

.welcome-icon {
width: 65px;
height: 65px;
display: grid;
place-items: center;
margin: auto auto 25px;
background: var(--black);
color: white;
font-family: 'Playfair Display', serif;
font-size: 22px;
font-weight: bold;
}

.eyebrow,
.section-label {
color: var(--brown);
font-size: 10px;
font-weight: 800;
letter-spacing: 3px;
}

.welcome-card h1 {
margin: 20px 0;
font-family: 'Playfair Display', serif;
font-size: clamp(42px, 9vw, 65px);
letter-spacing: -3px;
}

.welcome-card h1 span {
color: var(--brown);
}

.welcome-description {
color: var(--muted);
line-height: 1.8;
font-size: 14px;
}

.welcome-button {
display: inline-flex;
align-items: center;
gap: 20px;
margin-top: 30px;
padding: 16px 25px;
background: var(--black);
color: white;
font-size: 11px;
font-weight: 800;
letter-spacing: 1px;
transition: .2s;
}

.welcome-button:hover {
background: var(--brown);
transform: translateY(-3px);
}

.welcome-footer {
margin-top: 35px;
color: #aaa99f;
font-size: 9px;
letter-spacing: 2px;
}

.welcome-bottom {
margin-top: 35px;
color: var(--muted);
font-size: 10px;
letter-spacing: 2px;
}

.welcome-decoration {
position: absolute;
border-radius: 50%;
opacity: .5;
}

.decoration-one {
width: 230px;
height: 230px;
background: #dfc7a9;
top: 8%;
left: -90px;
}

.decoration-two {
width: 280px;
height: 280px;
background: #cbd4c4;
bottom: 5%;
right: -120px;
}

@keyframes appear {
from {
opacity: 0;
transform: translateY(20px);
}
to {  
    opacity: 1;  
    transform: translateY(0);  
}
}

.navbar {
height: 75px;
padding: 0 7%;
display: flex;
align-items: center;
justify-content: space-between;
background: rgba(255,254,250,.95);
border-bottom: 1px solid var(--border);
position: sticky;
top: 0;
z-index: 100;
backdrop-filter: blur(12px);
}

.logo {
font-family: 'Playfair Display', serif;
font-size: 24px;
font-weight: 800;
letter-spacing: -1px;
}

.logo span {
color: var(--brown);
}

.navbar nav {
display: flex;
gap: 35px;
}

.navbar nav a {
color: var(--muted);
font-size: 12px;
font-weight: 700;
transition: .2s;
}

.navbar nav a:hover {
color: var(--brown);
}

.cart-btn {
border: none;
padding: 11px 17px;
border-radius: 30px;
background: var(--black);
color: white;
font-size: 12px;
font-weight: 700;
transition: .2s;
}

.cart-btn:hover {
background: var(--brown);
}

.hero {
min-height: 480px;
padding: 70px 9%;
display: grid;
grid-template-columns: 1.2fr .8fr;
align-items: center;
gap: 50px;
background: #e9e5db;
overflow: hidden;
}

.hero-label {
display: inline-block;
margin-bottom: 22px;
color: var(--brown);
font-size: 10px;
font-weight: 800;
letter-spacing: 3px;
}

.hero h1 {
font-family: 'Playfair Display', serif;
font-size: clamp(45px, 6vw, 75px);
line-height: 1.05;
letter-spacing: -3px;
}

.hero h1 span {
color: var(--brown);
}

.hero-content > p {
max-width: 460px;
margin: 22px 0;
color: #77786e;
font-size: 14px;
line-height: 1.9;
}

.hero-button {
display: inline-block;
margin-top: 8px;
padding: 15px 22px;
background: var(--black);
color: white;
font-size: 10px;
font-weight: 800;
letter-spacing: 1px;
transition: .2s;
}

.hero-button:hover {
background: var(--brown);
transform: translateY(-3px);
}

.hero-note {
margin-top: 35px;
color: var(--muted);
font-size: 9px;
letter-spacing: 3px;
}

.hero-art {
height: 300px;
position: relative;
display: grid;
place-items: center;
}

.art-circle {
width: 260px;
height: 260px;
border-radius: 50%;
background: var(--green);
position: absolute;
}

.art-text {
position: relative;
z-index: 2;
color: white;
font-family: 'Playfair Display', serif;
font-size: 110px;
font-weight: 800;
transform: rotate(-10deg);
}

.art-caption {
position: absolute;
bottom: 5px;
right: 0;
padding: 12px 18px;
background: var(--white);
color: var(--brown);
font-size: 9px;
font-weight: 800;
letter-spacing: 2px;
line-height: 1.6;
transform: rotate(4deg);
}

.ticker {
padding: 14px 0;
overflow: hidden;
background: var(--green);
color: white;
white-space: nowrap;
}

.ticker-content {
display: inline-block;
min-width: 200%;
font-size: 11px;
font-weight: 800;
letter-spacing: 3px;
animation: tickerMove 25s linear infinite;
}

@keyframes tickerMove {
from {
transform: translateX(0);
}
to {  
    transform: translateX(-50%);  
}
}

.products-section {
max-width: 1350px;
margin: auto;
padding: 90px 7%;
}

.section-heading {
display: flex;
justify-content: space-between;
align-items: end;
gap: 20px;
}

.section-heading h2 {
margin: 12px 0;
font-family: 'Playfair Display', serif;
font-size: clamp(30px, 4vw, 45px);
}

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

.section-description {
color: var(--muted);
font-size: 13px;
}

.item-counter {
padding: 10px 15px;
border: 1px solid var(--border);
background: var(--white);
color: var(--muted);
font-size: 10px;
font-weight: 800;
letter-spacing: 1px;
white-space: nowrap;
}

.catalog-tools {
margin-top: 35px;
}

#searchInput {
width: 100%;
max-width: 420px;
padding: 14px 17px;
border: 1px solid var(--border);
background: var(--white);
color: var(--black);
outline: none;
font-size: 12px;
transition: .2s;
}

#searchInput:focus {
border-color: var(--brown);
}

.category {
display: flex;
gap: 9px;
flex-wrap: wrap;
margin: 25px 0 35px;
}

.category button {
padding: 10px 18px;
border: 1px solid var(--border);
border-radius: 30px;
background: var(--white);
color: var(--muted);
font-size: 11px;
font-weight: 700;
transition: .2s;
}

.category button:hover,
.category button.active {
background: var(--black);
color: white;
border-color: var(--black);
}

.product-grid {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 25px 18px;
}

.product-card {
min-width: 0;
overflow: hidden;
background: var(--white);
border: 1px solid var(--border);
transition: .25s;
}

.product-card:hover {
transform: translateY(-5px);
box-shadow: 0 12px 30px rgba(40,35,25,.09);
}

.product-image-wrap {
width: 100%;
aspect-ratio: 4 / 5;
position: relative;
overflow: hidden;
background: #e9e5db;
}

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

.product-card:hover .product-image {
transform: scale(1.04);
}

.product-badge {
position: absolute;
top: 12px;
left: 12px;
padding: 6px 10px;
color: white;
font-size: 9px;
font-weight: 800;
letter-spacing: 1px;
}

.product-badge.new {
background: var(--green);
}

.product-badge.sale {
background: var(--red);
}

.product-badge.rare {
background: var(--brown);
}

.product-info {
padding: 15px;
}

.category-name {
color: var(--brown);
font-size: 9px;
font-weight: 800;
letter-spacing: 2px;
}

.product-info h3 {
min-height: 40px;
margin: 8px 0 15px;
font-size: 13px;
font-weight: 700;
line-height: 1.5;
}

.product-bottom {
display: flex;
justify-content: space-between;
align-items: center;
gap: 8px;
}

.price {
font-size: 12px;
font-weight: 800;
}

.product-bottom button {
padding: 9px 11px;
border: none;
background: var(--black);
color: white;
font-size: 9px;
font-weight: 700;
white-space: nowrap;
transition: .2s;
}

.product-bottom button:hover {
background: var(--brown);
}

#noProducts {
display: none;
padding: 40px 10px;
text-align: center;
color: var(--muted);
font-size: 13px;
}

.about {
max-width: 1350px;
margin: 20px auto 90px;
padding: 0 7%;
}

.about-content {
min-height: 330px;
padding: 55px;
background: var(--green);
color: white;
position: relative;
z-index: 1;
overflow: hidden;
}

.about-content h2 {
margin: 20px 0;
font-family: 'Playfair Display', serif;
font-size: clamp(35px, 5vw, 55px);
line-height: 1.2;
}

.about-content h2 span {
color: #d8c2a5;
}

.about-content > p:not(.section-label) {
max-width: 500px;
color: rgba(255,255,255,.75);
font-size: 13px;
line-height: 1.9;
}

.about-content .section-label {
color: #d8c2a5;
}

.about-button {
display: inline-block;
margin-top: 25px;
padding: 13px 18px;
background: white;
color: var(--black);
font-size: 10px;
font-weight: 800;
}

.about-decoration {
position: absolute;
right: 10%;
top: 50%;
transform: translateY(-50%) rotate(-12deg);
color: rgba(255,255,255,.08);
font-family: 'Playfair Display', serif;
font-size: 150px;
font-weight: 800;
pointer-events: none;
}

.overlay {
position: fixed;
inset: 0;
z-index: 200;
background: rgba(0,0,0,.45);
opacity: 0;
visibility: hidden;
transition: .3s;
}

.overlay.show {
opacity: 1;
visibility: visible;
}

.cart {
position: fixed;
top: 0;
right: -450px;
z-index: 201;
width: min(420px, 90%);
height: 100dvh;
padding: 25px;
display: flex;
flex-direction: column;
background: var(--white);
transition: .35s ease;
}

.cart.show {
right: 0;
}

.cart-header {
display: flex;
justify-content: space-between;
align-items: center;
padding-bottom: 20px;
border-bottom: 1px solid var(--border);
}

.cart-header h2 {
margin-top: 5px;
font-family: 'Playfair Display', serif;
}

.cart-close {
width: 35px;
height: 35px;
border: 1px solid var(--border);
background: transparent;
font-size: 22px;
}

.cart-items {
flex: 1;
overflow-y: auto;
padding: 15px 0;
}

.empty-cart {
margin-top: 50px;
color: var(--muted);
text-align: center;
font-size: 13px;
}

.cart-item {
display: flex;
justify-content: space-between;
align-items: center;
gap: 10px;
padding: 15px 0;
border-bottom: 1px solid var(--border);
}

.cart-item h4 {
font-size: 12px;
}

.cart-item p {
margin-top: 5px;
color: var(--muted);
font-size: 11px;
}

.cart-item button {
border: none;
background: transparent;
color: var(--red);
font-size: 11px;
font-weight: 700;
}

.cart-bottom {
padding-top: 20px;
border-top: 1px solid var(--border);
}

.total {
display: flex;
justify-content: space-between;
margin-bottom: 18px;
font-size: 14px;
font-weight: 700;
}

.total strong {
font-size: 16px;
}

.checkout {
width: 100%;
padding: 15px;
border: none;
background: var(--green);
color: white;
font-size: 10px;
font-weight: 800;
letter-spacing: 1px;
transition: .2s;
}

.checkout:hover {
background: var(--black);
}

footer {
min-height: 100px;
padding: 25px 7%;
display: flex;
justify-content: space-between;
align-items: center;
gap: 20px;
background: var(--white);
border-top: 1px solid var(--border);
}

footer p,
.back-top {
color: var(--muted);
font-size: 10px;
}

.back-top {
font-weight: 800;
letter-spacing: 1px;
}

@media (max-width: 1000px) {
.product-grid {  
    grid-template-columns: repeat(3, minmax(0, 1fr));  
}  
.hero {  
    padding-left: 6%;  
    padding-right: 6%;  
}
}

@media (max-width: 700px) {
.navbar {  
    height: 68px;  
    padding: 0 5%;  
}  
.logo {  
    font-size: 20px;  
}  
.navbar nav {  
    display: none;  
}  
.hero {  
    min-height: auto;  
    padding: 55px 7%;  
    grid-template-columns: 1fr;  
    gap: 20px;  
}  
.hero h1 {  
    font-size: 50px;  
}  
.hero-art {  
    height: 230px;  
}  
.art-circle {  
    width: 190px;  
    height: 190px;  
}  
.art-text {  
    font-size: 85px;  
}  
.products-section {  
    padding: 65px 5%;  
}  
.product-grid {  
    grid-template-columns: repeat(2, minmax(0, 1fr));  
    gap: 18px 12px;  
}  
.product-info {  
    padding: 12px;  
}  
.product-info h3 {  
    font-size: 12px;  
}  
.product-bottom {  
    align-items: flex-start;  
    flex-direction: column;  
}  
.product-bottom button {  
    width: 100%;  
    padding: 10px 5px;  
}  
.about {  
    padding: 0 5%;  
}  
.about-content {  
    padding: 35px 25px;  
}  
.about-decoration {  
    font-size: 100px;  
    right: 0;  
}  
footer {  
    padding: 25px 5%;  
    flex-direction: column;  
    text-align: center;  
}
}

@media (max-width: 360px) {
.product-grid {  
    gap: 10px;  
}  
.product-info {  
    padding: 9px;  
}  
.price {  
    font-size: 11px;  
}  
.product-info h3 {  
    font-size: 11px;  
}
}

/* === TAMBAHAN WAJIB SUPAYA FOTO BISA DIGESER (SWIPE) === */
.product-image-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    height: 100%;
    scrollbar-width: none; /* Firefox */
}

.product-image-slider::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Edge */
}

.product-image-slider img {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    scroll-snap-align: start;
}

/* === TAMBAHAN TOMBOL PANAH SLIDER (E-COMMERCE STYLE) === */
.product-image-wrap {
    position: relative;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 11px;
    display: grid;
    place-items: center;
    cursor: pointer;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.2s ease, background 0.2s ease;
}

.product-image-wrap:hover .slider-btn {
    opacity: 1; /* Tombol muncul saat kursor diarahkan ke foto produk */
}

.slider-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.prev-btn {
    left: 8px;
}

.next-btn {
    right: 8px;
}

/* === STYLE TOMBOL HABIS / SOLD OUT === */
.product-bottom button:disabled {
    background: #d5d1c8 !important;
    color: #85877d !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
}

.product-bottom button:disabled:hover {
    background: #d5d1c8 !important;
    transform: none !important;
}
