:root {
    /* Colors from Artisanal Radiance DESIGN.md */
    --primary: #a13161;
    --on-primary: #ffffff;
    --primary-container: #c14a7a;
    --surface: #fff8f8;
    --on-surface: #22191b;
    --surface-variant: #efdfe1;
    --on-surface-variant: #554147;
    --secondary: #6b5a60;
    --on-secondary: #ffffff;
    --secondary-container: #f4dce4;
    --outline: #887177;
    --outline-variant: #dbc0c6;
    --error: #ba1a1a;
    --background: #fff8f8;
    
    /* Spacing */
    --gutter: 24px;
    --container-max: 1280px;
    --margin-mobile: 20px;
    --margin-desktop: 64px;
    --section-gap: 80px;
}

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

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--background);
    color: var(--on-surface);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, .serif {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
    transition: all 0.3s ease;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--margin-mobile);
}

@media (min-width: 768px) {
    .container {
        padding: 0 var(--margin-desktop);
    }
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: #df9dc1;
    z-index: 1000;
    display: flex;
    align-items: center;
    border-bottom: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

header .material-symbols-outlined, 
header .nav-links a {
    color: white !important;
}

header .nav-links a:hover {
    opacity: 0.8;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.logo img {
    height: 160px !important;
    width: auto !important;
    max-width: none !important;
}

.nav-links {
    display: none;
    gap: 32px;
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }
}

.nav-links a:hover {
    color: var(--primary);
}

.header-actions {
    display: flex;
    gap: 20px;
    align-items: center;
}

/* Hero Section */
.hero {
    height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    inset: 0;
    display: flex;
    width: 700%; /* 7 slides for smooth loop */
    height: 100%;
    animation: slide-loop 24s cubic-bezier(0.85, 0, 0.15, 1) infinite;
    z-index: -1;
}

.slide {
    width: 14.2857%; /* 100 / 7 */
    height: 100%;
}

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

@keyframes slide-loop {
    0%, 12% { transform: translateX(0); }
    14.28%, 26.28% { transform: translateX(-14.2857%); }
    28.57%, 40.57% { transform: translateX(-28.5714%); }
    42.85%, 54.85% { transform: translateX(-42.8571%); }
    57.14%, 69.14% { transform: translateX(-57.1428%); }
    71.42%, 83.42% { transform: translateX(-71.4285%); }
    85.71%, 97.71% { transform: translateX(-85.7142%); }
    100% { transform: translateX(0); }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(255, 248, 248, 0.4), transparent);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 450px;
    margin-left: 0;
    text-align: left;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 24px;
    line-height: 1.1;
    color: var(--on-surface);
}

.hero p {
    font-size: 1.125rem;
    margin-bottom: 40px;
    color: var(--on-surface-variant);
}

/* Buttons */
.btn-primary {
    background: var(--primary);
    color: white;
    padding: 16px 32px;
    border-radius: 8px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(161, 49, 97, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(161, 49, 97, 0.3);
}

/* Product Cards */
.product-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--gutter);
    margin-top: 40px;
}

@media (min-width: 480px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.product-card {
    position: relative;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--outline-variant);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(161, 49, 97, 0.1);
}

.product-img {
    aspect-ratio: 1/1;
    width: 100%;
    object-fit: cover;
}

.product-info {
    padding: 12px 16px 16px;
    text-align: center;
}

.product-info p:not(.product-price) {
    display: none !important;
}

.product-info h3 {
    font-size: 1.1rem;
    margin-bottom: 4px;
    line-height: 1.2;
}

.product-price {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.2rem;
    margin-top: 4px;
}

.product-info .btn-primary {
    padding: 6px 12px !important;
    font-size: 11.5px;
    margin-top: 10px !important;
    border-radius: 6px;
}

/* Mobile Bottom Nav */
.mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: #df9dc1;
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: none;
    z-index: 1000;
}

@media (min-width: 768px) {
    .mobile-nav {
        display: none;
    }
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.7);
}

.mobile-nav-item.active {
    color: white;
}

.mobile-nav-item i {
    font-size: 24px;
    margin-bottom: 2px;
}

/* FAQ & Contact Section */
.faq-section {
    padding: var(--section-gap) 0;
    background-color: var(--surface);
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    margin-top: 40px;
}

@media (min-width: 992px) {
    .faq-grid {
        grid-template-columns: 2fr 1fr;
    }
}

.faq-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.faq-item {
    background: white;
    padding: 32px;
    border-radius: 16px;
    border: 1px solid var(--outline-variant);
    transition: transform 0.3s ease;
}

.faq-item:hover {
    transform: translateX(10px);
}

.faq-item h3 {
    color: var(--primary);
    margin-bottom: 12px;
    font-size: 1.5rem;
}

.faq-item p {
    color: var(--secondary);
    font-size: 1rem;
}

.faq-sidebar {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.offer-card {
    background: linear-gradient(135deg, var(--primary), var(--primary-container));
    color: white;
    padding: 32px;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
}

.offer-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 16px;
}

.offer-card h3 {
    font-size: 2rem;
    margin-bottom: 8px;
}

.suggestion-box {
    background: var(--surface-variant);
    padding: 32px;
    border-radius: 16px;
}

.suggestion-box h3 {
    margin-bottom: 12px;
}

.suggestion-box p {
    font-size: 14px;
    color: var(--on-surface-variant);
    margin-bottom: 20px;
}

.suggestion-box textarea {
    width: 100%;
    height: 120px;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid var(--outline);
    background: white;
    margin-bottom: 16px;
    font-family: inherit;
    resize: none;
}

.suggestion-box textarea:focus {
    outline: 2px solid var(--primary);
    border-color: transparent;
}

/* Social Links in Footer */
.social-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--outline-variant);
    background: rgba(255, 255, 255, 0.05);
    color: var(--outline-variant);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-icon-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 4px 12px rgba(161, 49, 97, 0.3);
}

/* Favorite Button */

.fav-btn {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--outline);
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 11;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.fav-btn .material-symbols-outlined {
    font-size: 18px;
    transition: all 0.2s ease;
}

.product-card:hover .fav-btn {
    opacity: 1;
    transform: scale(1);
}

.fav-btn:hover {
    background: white;
    transform: scale(1.15) !important;
}

.fav-btn.active {
    color: #e53935;
    opacity: 1;
    transform: scale(1);
}

.fav-btn.active .material-symbols-outlined {
    font-variation-settings: 'FILL' 1;
}

/* Toast Notification */
.toast-msg {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--on-surface);
    color: white;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    white-space: nowrap;
}

.toast-msg.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Quick View */
.product-card a {
    position: relative;
    display: block;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
}

.product-card a::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0);
    transition: background 0.3s ease;
    pointer-events: none;
}

.product-card a:hover::after {
    background: rgba(0,0,0,0.1);
}

.quick-view-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    z-index: 10;
    /* iOS Safari fix: prevent stuck highlight and improve touch responsiveness */
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    -webkit-user-select: none;
    user-select: none;
}

.quick-view-btn .material-symbols-outlined {
    font-size: 20px;
    pointer-events: none;
}

.product-card a:hover .quick-view-btn {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.quick-view-btn:hover {
    background: var(--primary);
    color: white;
    transform: translate(-50%, -50%) scale(1.1);
}

.quick-view-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 24px;
    will-change: opacity, visibility;
    -webkit-tap-highlight-color: transparent;
}

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

.quick-view-modal {
    background: white;
    width: 100%;
    max-width: 860px;
    max-height: 520px;
    border-radius: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
    position: relative;
    transform: translateY(30px) scale(0.95);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 25px 80px rgba(0,0,0,0.25);
}

.quick-view-overlay.active .quick-view-modal {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.qv-image {
    background: #fce4f0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

.qv-content {
    padding: 36px 32px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.qv-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(245,245,245,0.9);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--secondary);
    transition: all 0.2s ease;
    z-index: 10;
}

.qv-close:hover {
    background: #e0e0e0;
    color: var(--on-surface);
    transform: rotate(90deg);
}

#qvDetailsLink:hover {
    background: var(--primary);
    color: white;
}

@media (max-width: 767px) {
    .quick-view-modal {
        display: flex;
        flex-direction: column;
        max-height: 90vh;
    }
    .qv-image {
        flex: 0 0 250px;
        height: 250px;
    }
    .qv-content {
        flex: 1;
        padding: 24px;
        overflow-y: auto;
    }

    /* Always show buttons on mobile (no hover) */
    .fav-btn {
        opacity: 1;
        transform: scale(1);
    }

    .quick-view-btn {
        opacity: 1;
        visibility: visible;
        transform: translate(-50%, -50%) scale(1);
    }

    .product-card a::after {
        display: none;
    }
}

/* Premium Contact Section (Store Info + Contact Form) */
.contact-new-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    margin-top: 24px;
}

@media (min-width: 992px) {
    .contact-new-grid {
        grid-template-columns: 350px 1fr;
        gap: 64px;
    }
}

.contact-info-col {
    display: flex;
    flex-direction: column;
}

.contact-title {
    font-size: 1.8rem;
    color: var(--on-surface);
    margin-bottom: 24px;
    font-weight: 700;
}

.info-items-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.info-item-row {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--outline-variant);
}

.info-item-row:last-child {
    border-bottom: none;
}

.info-item-row .icon {
    font-size: 24px;
    color: var(--primary);
    background: var(--secondary-container);
    padding: 10px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.info-text {
    font-size: 14px;
    color: var(--secondary);
    line-height: 1.6;
}

.info-text .label {
    font-weight: 700;
    color: var(--on-surface);
    margin-bottom: 4px;
}

.info-text .val {
    color: var(--secondary);
}

.contact-form-col {
    background: white;
    border: 1px solid var(--outline-variant);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.01);
}

.contact-new-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.form-new-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-new-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--secondary);
}

.form-new-group label .optional {
    font-size: 11px;
    color: var(--outline);
    font-weight: normal;
}

.form-new-input,
.form-new-select,
.form-new-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--outline-variant);
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    color: var(--on-surface);
    outline: none;
    background: white;
    transition: all 0.3s ease;
}

.form-new-input:focus,
.form-new-select:focus,
.form-new-textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(161, 49, 97, 0.08);
}

.form-new-textarea {
    height: 120px;
    resize: vertical;
}

.file-upload-new-container {
    display: flex;
    align-items: center;
    border: 1px solid var(--outline-variant);
    border-radius: 8px;
    background: #faf4f5;
    overflow: hidden;
    justify-content: space-between;
}

.file-name-new-label {
    padding: 12px 16px;
    font-size: 13px;
    color: var(--secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.btn-file-select {
    background: #333;
    color: white;
    border: none;
    padding: 14px 20px;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: background 0.3s ease;
    white-space: nowrap;
}

.btn-file-select:hover {
    background: var(--primary);
}

@media (max-width: 576px) {
    .file-upload-new-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .file-name-new-label {
        text-align: center;
        border-bottom: 1px solid var(--outline-variant);
        flex: none;
        white-space: normal;
    }
    
    .btn-file-select {
        width: 100%;
        text-align: center;
        padding: 12px;
    }
}

.form-new-checkbox-row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 13px;
    color: var(--secondary);
    line-height: 1.4;
}

.form-new-checkbox-row input[type="checkbox"] {
    margin-top: 2px;
    cursor: pointer;
}

.btn-submit-new {
    width: 100%;
    padding: 14px;
    font-size: 15px;
    border-radius: 8px;
    font-weight: 600;
}

@media (max-width: 768px) {
    .contact-form-col {
        padding: 24px 16px;
    }
}

/* Messages Status Badges styling */
.status-unread {
    background: #fff0f3;
    color: var(--primary);
    border: 1px solid rgba(161, 49, 97, 0.2);
}

.status-read {
    background: #eafaf1;
    color: #2b7a4b;
    border: 1px solid rgba(43, 122, 75, 0.2);
}

/* Premium Sale Styles */
.product-card.on-sale {
    border-color: #ffb700;
    box-shadow: 0 10px 30px rgba(255, 183, 0, 0.08);
}

.product-card.on-sale:hover {
    box-shadow: 0 15px 35px rgba(255, 183, 0, 0.15);
}

.sale-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #e53935;
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    z-index: 12;
}

.original-price {
    text-decoration: line-through;
    color: var(--secondary);
    font-size: 0.95rem;
    font-weight: normal;
    margin-right: 8px;
}

.discounted-price {
    color: #e53935 !important;
    font-weight: 800;
}

/* Modales generales de la tienda */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.modal-overlay.active {
    display: flex;
    opacity: 1;
}
.modal-content {
    background: white;
    padding: 32px;
    border-radius: 16px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    position: relative;
    box-sizing: border-box;
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.modal-overlay.active .modal-content {
    transform: translateY(0);
}
.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    border: none;
    background: transparent;
    cursor: pointer;
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    transition: background 0.2s ease;
}
.modal-close:hover {
    background: var(--outline-variant);
}

/* Premium modal inputs */
.modal-form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--outline-variant);
    border-radius: 10px;
    font-size: 14px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--on-surface);
    background-color: white;
    transition: all 0.2s ease-in-out;
    outline: none;
    box-sizing: border-box;
}
.modal-form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(161, 49, 97, 0.12);
}
.modal-form-control[readonly] {
    background-color: #f5f5f5;
    color: var(--secondary);
    cursor: not-allowed;
    border-color: var(--outline-variant);
}

/* Collections horizontal carousel and card styling */
#collections-grid {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 24px;
    padding: 12px 4px 24px 4px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) transparent;
}

#collections-grid::-webkit-scrollbar {
    height: 6px;
}

#collections-grid::-webkit-scrollbar-track {
    background: rgba(161, 49, 97, 0.05);
    border-radius: 10px;
}

#collections-grid::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

#collections-grid::-webkit-scrollbar-thumb:hover {
    background: var(--primary-container);
}

.category-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 300px;
    cursor: pointer;
    flex: 0 0 280px;
    scroll-snap-align: start;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(161, 49, 97, 0.15);
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease, opacity 0.5s ease;
}

.category-card:hover img {
    transform: scale(1.06);
}

