/* ===== RESET & BASE ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --gold: #FFB800;
    --gold-light: #FFD666;
    --gold-dark: #B38200;
    --dark: #141414;
    --dark-soft: #262626;
    --bg: #FFFFFF;
    --bg-card: #FFFFFF;
    --text: #141414;
    --text-muted: #666666;
    --border: #E8E4DC;
    --danger: #DC2626;
    --success: #16A34A;
    --radius: 0.75rem;
    --shadow: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-gold: 0 4px 20px -4px rgba(255,184,0,0.3);
}

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Montserrat:wght@300;400;500;600;700&display=swap');

html { scroll-behavior: smooth; }

body {
    font-family: 'Montserrat', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ===== HEADER ===== */
.top-bar {
    background: var(--gold);
    color: var(--dark);
    text-align: center;
    padding: 0.4rem;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--dark);
    border-bottom: 1px solid rgba(255,184,0,0.15);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4.5rem;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    flex: 1;
}

.logo a.logo-link {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.logo-img {
    height: 3.2rem;
    width: auto;
    max-width: 4.5rem;
    object-fit: contain;
    flex-shrink: 0;
}

.logo-text {
    text-align: center;
}

.logo h1, .logo-text h1 {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo p, .logo-text p {
    font-size: 0.6rem;
    color: rgba(255,184,0,0.5);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-top: -0.15rem;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-actions button,
.header-actions a {
    color: var(--gold);
    transition: color 0.2s;
}

.header-actions button:hover,
.header-actions a:hover {
    color: var(--gold-light);
}

.search-desktop {
    flex: 1;
    max-width: 24rem;
    margin: 0 2rem;
    position: relative;
    display: none;
}

.search-desktop input {
    width: 100%;
    background: var(--dark-soft);
    border: 1px solid rgba(255,184,0,0.15);
    border-radius: var(--radius);
    padding: 0.5rem 2.5rem 0.5rem 1rem;
    font-size: 0.85rem;
    color: var(--gold-light);
    font-family: 'Montserrat', sans-serif;
    outline: none;
    transition: border-color 0.2s;
}

.search-desktop input::placeholder { color: rgba(255,184,0,0.25); }
.search-desktop input:focus { border-color: rgba(255,184,0,0.4); }

.search-desktop .search-icon {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255,184,0,0.35);
    pointer-events: none;
}

.search-mobile {
    display: none;
    padding: 0 1rem 0.75rem;
    background: var(--dark);
}

.search-mobile.active { display: block; }

.search-mobile input {
    width: 100%;
    background: var(--dark-soft);
    border: 1px solid rgba(255,184,0,0.15);
    border-radius: var(--radius);
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    color: var(--gold-light);
    font-family: 'Montserrat', sans-serif;
    outline: none;
}

.search-mobile input::placeholder { color: rgba(255,184,0,0.25); }

.cart-btn {
    position: relative;
}

.cart-badge {
    position: absolute;
    top: -0.5rem;
    right: -0.5rem;
    background: var(--gold);
    color: var(--dark);
    font-size: 0.65rem;
    font-weight: 700;
    width: 1.2rem;
    height: 1.2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-btn { display: block; color: var(--gold); }

/* ===== HERO BANNER ===== */
.hero {
    position: relative;
    height: 55vh;
    min-height: 320px;
    max-height: 500px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0.3));
}

.hero-content {
    position: relative;
    z-index: 1;
    color: white;
    padding: 2rem;
}

.hero-content .subtitle {
    font-size: 0.8rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.hero-content h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-content h2 em {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-style: italic;
}

.btn-hero {
    display: inline-block;
    padding: 0.85rem 2.5rem;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--dark);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: var(--radius);
    transition: box-shadow 0.3s, transform 0.2s;
}

.btn-hero:hover {
    box-shadow: var(--shadow-gold);
    transform: translateY(-1px);
}

/* ===== CATEGORY NAV ===== */
.category-nav {
    position: sticky;
    top: 4.5rem;
    z-index: 90;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 0;
}

.category-nav .container {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 0.15rem;
}

.category-nav .container::-webkit-scrollbar { display: none; }

.cat-btn {
    flex-shrink: 0;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border);
    border-radius: 2rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: all 0.2s;
    white-space: nowrap;
    background: white;
}

.cat-btn:hover {
    border-color: var(--gold);
    color: var(--gold-dark);
}

.cat-btn.active {
    background: var(--dark);
    color: var(--gold);
    border-color: var(--dark);
}

/* ===== PRODUCTS GRID ===== */
.products-section {
    padding: 2rem 0 3rem;
    flex: 1;
}

.products-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.products-header h2 { font-size: 1.35rem; }

.products-header span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

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

.empty-state {
    text-align: center;
    padding: 5rem 1rem;
    color: var(--text-muted);
}

.empty-state p:first-child { font-size: 1.1rem; margin-bottom: 0.25rem; }
.empty-state p:last-child { font-size: 0.85rem; }

/* ===== PRODUCT CARD ===== */
.product-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color 0.3s, box-shadow 0.3s;
    animation: fadeIn 0.4s ease both;
}

.product-card:hover {
    border-color: rgba(255,184,0,0.3);
    box-shadow: var(--shadow-gold);
}

.product-card .img-wrap {
    padding: 0.6rem 0.6rem 0;
}

.product-card .img-container {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
    border-radius: 0.5rem;
    background: #f5f5f5;
}

.product-card .img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.product-card:hover .img-container img {
    transform: scale(1.05);
}

.product-card .img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.35), transparent);
    opacity: 0;
    transition: opacity 0.3s;
    border-radius: 0.5rem;
    pointer-events: none;
}

.product-card:hover .img-overlay { opacity: 1; }

.product-card .featured-tag {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    background: linear-gradient(135deg, #FFB800, #FFD666);
    color: #1a1a1a;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.25rem 0.6rem;
    border-radius: 0.25rem;
    z-index: 2;
    pointer-events: none;
}

/* ===== IMAGE CAROUSEL ===== */
.img-carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

.img-carousel .carousel-track {
    display: flex;
    width: 100%;
    height: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.img-carousel .carousel-track::-webkit-scrollbar { display: none; }

.img-carousel .carousel-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    scroll-snap-align: start;
}

.img-carousel .carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.img-carousel .carousel-prev,
.img-carousel .carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background: rgba(255,255,255,0.85);
    color: #333;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    z-index: 3;
    opacity: 0;
    transition: opacity 0.2s;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.img-carousel .carousel-prev { left: 0.35rem; }
.img-carousel .carousel-next { right: 0.35rem; }

.img-container:hover .carousel-prev,
.img-container:hover .carousel-next,
.product-image-main:hover .carousel-prev,
.product-image-main:hover .carousel-next { opacity: 1; }

.img-carousel .carousel-dots {
    position: absolute;
    bottom: 0.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.3rem;
    z-index: 3;
}

.img-carousel .carousel-dot {
    width: 0.4rem;
    height: 0.4rem;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.img-carousel .carousel-dot.active {
    background: white;
    transform: scale(1.3);
}

/* Detail page carousel */
.product-image-main .img-carousel .carousel-prev,
.product-image-main .img-carousel .carousel-next {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1rem;
}

.product-image-main .img-carousel .carousel-dot {
    width: 0.5rem;
    height: 0.5rem;
}

.product-card .info {
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-card .info h3 {
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.25rem;
}

.product-card .info h3 a {
    transition: color 0.2s;
}

.product-card .info h3 a:hover {
    color: var(--gold-dark);
}

.product-card .desc {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card .price {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--gold-dark);
}

.product-card .card-bottom { margin-top: auto; }

.product-card .sizes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.5rem;
}

.size-btn {
    font-size: 0.7rem;
    padding: 0.3rem 0.6rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    color: var(--text-muted);
    font-weight: 500;
    transition: all 0.2s;
}

.size-btn:hover {
    border-color: rgba(255,184,0,0.4);
    color: var(--text);
}

.size-btn.active {
    background: var(--gold);
    color: var(--dark);
    border-color: var(--gold);
}

.add-btn {
    width: 100%;
    margin-top: 0.5rem;
    padding: 0.6rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    transition: all 0.2s;
}

.add-btn.disabled {
    background: #f0f0f0;
    color: #aaa;
    cursor: not-allowed;
}

.add-btn.ready {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--dark);
}

.add-btn.ready:hover { box-shadow: var(--shadow-gold); }

.add-btn.added {
    background: var(--success);
    color: white;
}

/* ===== CART DRAWER ===== */
.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.cart-overlay.active { opacity: 1; visibility: visible; }

.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: 100%;
    max-width: 26rem;
    background: white;
    z-index: 201;
    box-shadow: -4px 0 30px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    border-radius: 1rem 0 0 1rem;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.cart-drawer.active { transform: translateX(0); }

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

.cart-drawer-header h2 {
    font-size: 1.1rem;
    font-weight: 700;
}

.cart-drawer-header button {
    color: var(--text-muted);
    transition: color 0.2s;
}

.cart-drawer-header button:hover { color: var(--text); }

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-muted);
    text-align: center;
}

.cart-empty svg { opacity: 0.25; margin-bottom: 1rem; }
.cart-empty p:first-of-type { font-size: 0.9rem; }
.cart-empty p:last-of-type { font-size: 0.75rem; margin-top: 0.25rem; }

.cart-item {
    display: flex;
    gap: 0.75rem;
    background: #f9f8f6;
    border-radius: var(--radius);
    padding: 0.75rem;
    margin-bottom: 0.75rem;
}

.cart-item img {
    width: 4rem;
    height: 5rem;
    object-fit: cover;
    border-radius: 0.5rem;
}

.cart-item-info { flex: 1; min-width: 0; }

.cart-item-info h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-info .size-label {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.cart-item-info .item-price {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--gold-dark);
    margin-top: 0.15rem;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.35rem;
}

.qty-btn {
    width: 1.6rem;
    height: 1.6rem;
    border: 1px solid var(--border);
    border-radius: 0.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.75rem;
    transition: border-color 0.2s, color 0.2s;
}

.qty-btn:hover { border-color: var(--gold); color: var(--text); }

.cart-item-controls .qty {
    font-size: 0.85rem;
    font-weight: 600;
    width: 1.5rem;
    text-align: center;
}

.remove-btn {
    margin-left: auto;
    color: var(--danger);
    opacity: 0.7;
    transition: opacity 0.2s;
}

.remove-btn:hover { opacity: 1; }

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

.cart-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.cart-total span:first-child {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.cart-total span:last-child {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gold-dark);
}

.btn-whatsapp {
    width: 100%;
    padding: 0.85rem;
    background: var(--success);
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: background 0.2s;
}

.btn-whatsapp:hover { background: #15803d; }

.btn-clear-cart {
    width: 100%;
    padding: 0.5rem;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    transition: color 0.2s;
}

.btn-clear-cart:hover { color: var(--danger); }

/* ===== FOOTER ===== */
.footer {
    background: linear-gradient(180deg, var(--dark), #1a1a1a);
    color: rgba(255,255,255,0.7);
    padding: 3rem 0 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer h3 {
    color: var(--gold);
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.footer p, .footer a {
    font-size: 0.8rem;
    line-height: 1.8;
}

.footer a { transition: color 0.2s; }
.footer a:hover { color: var(--gold); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.7rem;
    color: rgba(255,255,255,0.3);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== RESPONSIVE ===== */
@media (min-width: 768px) {
    .header-inner { height: 5rem; }
    .search-desktop { display: block; }
    .menu-btn { display: none; }
    .search-toggle-mobile { display: none; }
    .logo-img { height: 3.8rem; max-width: 5rem; }
    .products-grid { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
    .product-card .info { padding: 1rem; }
    .product-card .info h3 { font-size: 0.95rem; }
    .product-card .price { font-size: 1.25rem; }
    .footer-grid { grid-template-columns: repeat(3, 1fr); }
    .hero { min-height: 400px; }
    .category-nav { top: 5rem; }
}

@media (min-width: 1024px) {
    .products-grid { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
    .product-card .img-wrap { padding: 0.6rem 0.6rem 0; }
}

/* ===== SVG ICONS ===== */
.icon {
    display: inline-block;
    width: 1.25em;
    height: 1.25em;
    vertical-align: middle;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.icon-sm { width: 1em; height: 1em; }
.icon-lg { width: 1.5em; height: 1.5em; }
