/* style.css */
:root {
    --bg-color: #FAF8F5; /* Beige claro premium */
    --bg-white: #FFFDF9; /* Blanco crema */
    --text-main: #121212; /* Negro fuerte para e-commerce */
    --text-muted: #555555;
    --accent-mora: #4A154B; 
    --border-color: #E5E5E5;
    --font-heading: 'Cormorant Garamond', serif;
    --font-text: 'Inter', sans-serif;
}

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

body {
    font-family: var(--font-text);
    color: var(--text-main);
    background-color: var(--bg-white);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

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

.container {
    width: 92%;
    max-width: 1480px;
    margin: 0 auto;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
}

h1 { font-size: 4.5rem; margin-bottom: 1.5rem; }
h2 { font-size: 3.2rem; margin-bottom: 1rem; }
h3 { font-size: 1.3rem; margin-bottom: 0.5rem; font-family: var(--font-text); font-weight: 500; }

/* Buttons */
.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 0.8rem 1.8rem;
    font-family: var(--font-text);
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
    border: 1px solid var(--text-main);
    border-radius: 2px;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: var(--text-main);
    color: var(--bg-white);
}

.btn-primary:hover {
    background-color: #333;
    border-color: #333;
}

.btn-outline {
    background-color: transparent;
    color: var(--text-main);
}

.btn-outline:hover {
    background-color: var(--text-main);
    color: var(--bg-white);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.12rem;
}

/* Announcement Bar */
.announcement-bar {
    background-color: var(--text-main);
    color: var(--bg-white);
    text-align: center;
    padding: 10px 0;
    font-size: 0.88rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Sticky wrapper: topbar + header juntos */
.site-header-wrap {
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Header */
.header {
    padding: 1.2rem 0;
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
}

.header-content {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

.nav-left {
    display: flex;
    gap: 1.8rem;
}

.nav-left a {
    font-size: 1rem;
}

.nav-left a:hover {
    text-decoration: underline;
    text-underline-offset: 6px;
}

.logo {
    text-align: center;
}

.logo a {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
}

.logo-sub {
    font-family: var(--font-text);
    font-size: 0.6rem;
    letter-spacing: 4px;
    margin-top: 5px;
}

.header-icons {
    display: flex;
    justify-content: flex-end;
    gap: 1.5rem;
}

.icon-btn {
    position: relative;
    color: var(--text-main);
}

.cart-icon {
    display: flex;
    align-items: center;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -8px;
    background-color: var(--text-main);
    color: var(--bg-white);
    font-size: 0.65rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 600;
}

/* Hero Shopify Style */
.hero-shopify {
    background-color: var(--bg-color);
}

.hero-split {
    display: flex;
    min-height: 80vh;
}

.hero-image-wrap {
    flex: 1.2;
    position: relative;
}

.hero-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.hero-content-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 5rem;
}

.hero-content p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

/* Marquee */
.marquee {
    background-color: var(--text-main);
    color: var(--bg-white);
    padding: 12px 0;
    overflow: hidden;
    white-space: nowrap;
    font-size: 0.85rem;
    letter-spacing: 2px;
}

/* Featured Collection */
.featured-collection {
    padding: 5rem 0;
}

.collection-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3rem;
}

.link-view-all {
    text-decoration: underline;
    text-underline-offset: 4px;
    font-size: 0.95rem;
    font-weight: 500;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
}

.product-item {
    display: flex;
    flex-direction: column;
}

.product-image {
    position: relative;
    background-color: #F7F7F7;
    margin-bottom: 1.5rem;
    overflow: hidden;
    aspect-ratio: 4/5;
}

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

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

.badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--bg-white);
    color: var(--text-main);
    font-size: 0.75rem;
    padding: 4px 8px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    z-index: 2;
}

.btn-quick-add {
    position: absolute;
    bottom: -50px;
    left: 10px;
    right: 10px;
    width: calc(100% - 20px);
    background-color: rgba(255,255,255,0.95);
    color: var(--text-main);
    border: 1px solid var(--text-main);
    opacity: 0;
    transition: bottom 0.3s ease, opacity 0.3s ease;
    z-index: 2;
}

.btn-quick-add:hover {
    background-color: var(--text-main);
    color: var(--bg-white);
}

.product-item:hover .btn-quick-add {
    bottom: 10px;
    opacity: 1;
}

.product-meta {
    text-align: left;
}

.product-title a {
    font-size: 1rem;
}

.product-title a:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.product-price {
    margin-top: 0.5rem;
    font-weight: 600;
    font-size: 1.05rem;
}

/* Image with text */
.image-with-text {
    background-color: var(--bg-color);
    padding: 0;
    margin: 4rem 0;
}

.iwt-wrapper {
    display: flex;
    align-items: stretch;
}

.iwt-image, .iwt-text {
    flex: 1;
}

.iwt-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.iwt-text {
    padding: 6rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.iwt-text p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.iwt-text .btn {
    align-self: flex-start;
    margin-top: 1rem;
}

/* Footer Shopify */
.footer-shopify {
    border-top: 1px solid var(--border-color);
    padding: 5rem 0 2rem;
    background-color: var(--bg-white);
}

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

.footer-widget h4 {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: var(--font-text);
}

.footer-widget p {
    font-size: 1rem;
    color: var(--text-muted);
}

.footer-widget ul {
    list-style: none;
}

.footer-widget ul li {
    margin-bottom: 0.8rem;
}

.footer-widget ul li a {
    font-size: 1rem;
    color: var(--text-muted);
}

.footer-widget ul li a:hover {
    color: var(--text-main);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.footer-form {
    display: flex;
    margin-top: 1.5rem;
}

.footer-form input {
    flex: 1;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-right: none;
    font-family: var(--font-text);
    outline: none;
}

.footer-form input:focus {
    border-color: var(--text-main);
}

.footer-form button {
    border-radius: 0;
    padding: 0.8rem 1.2rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.payment-icons span {
    margin-left: 0.8rem;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .header-content {
        grid-template-columns: 1fr auto auto;
    }
    .desktop-only { display: none; }
    .mobile-only  { display: flex !important; }

    .iwt-wrapper {
        flex-direction: column;
    }

    .iwt-text {
        padding: 3rem 1.5rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn-quick-add {
        position: static;
        opacity: 1;
        margin-top: 10px;
        width: 100%;
    }
}
