/* ===========================
   Reset & Base Styles
   =========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #7d3c3c;
    --secondary-color: #c49a6c;
    --accent-color: #e8d5c4;
    --text-dark: #333333;
    --text-light: #666666;
    --text-white: #ffffff;
    --bg-light: #f8f8f8;
    --border-color: #eeeeee;
    --success-color: #4caf50;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--text-white);
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===========================
   Header & Navigation
   =========================== */
.header-top {
    background-color: var(--primary-color);
    color: var(--text-white);
    text-align: center;
    padding: 10px 24px;
    font-size: 13px;
    font-weight: 400;
}

.navbar {
    background-color: var(--text-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 70px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}

.logo-img:hover {
    opacity: 0.8;
}

.logo-text {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 2px;
}

.logo-subtitle {
    font-size: 11px;
    font-weight: 400;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-menu a {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-dark);
    position: relative;
    padding: 8px 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
}

.nav-icons {
    display: flex;
    gap: 16px;
    align-items: center;
}

.icon-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--text-dark);
    position: relative;
}

.icon-btn:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
}

.cart-count {
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--primary-color);
    color: var(--text-white);
    font-size: 11px;
    font-weight: 600;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 30px;
}

.menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: var(--text-dark);
    border-radius: 3px;
    transition: var(--transition);
}

/* ===========================
   Hero Section
   =========================== */
.hero {
    padding: 60px 24px;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(125, 60, 60, 0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(196, 154, 108, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-image {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-carousel {
    position: relative;
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1 / 1;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(125, 60, 60, 0.15), 0 8px 24px rgba(0, 0, 0, 0.08);
}

.hero-carousel .hero-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    transition: opacity 0.8s ease;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

.hero-carousel .hero-logo:first-child {
    position: relative;
}

.hero-carousel .hero-logo.active {
    opacity: 1;
    z-index: 1;
}

.hero-carousel:hover {
    transform: scale(1.02) rotate(-1deg);
    box-shadow: 0 25px 70px rgba(125, 60, 60, 0.2), 0 12px 32px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.hero-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(125, 60, 60, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot:hover {
    background: rgba(125, 60, 60, 0.5);
}

.carousel-dot.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), #9a4f4f);
    color: white;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 24px;
    box-shadow: 0 4px 15px rgba(125, 60, 60, 0.3);
}

.hero-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 56px;
    font-weight: 500;
    font-style: normal;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--text-dark);
    letter-spacing: -0.5px;
}

.hero-highlight {
    font-style: normal;
    font-weight: 600;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    font-size: 46px;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 32px;
    color: var(--text-light);
    line-height: 1.7;
    max-width: 450px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    gap: 40px;
    padding-top: 32px;
    border-top: 1px solid rgba(125, 60, 60, 0.1);
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 13px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===========================
   Buttons
   =========================== */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
}

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

.btn-primary:hover {
    background-color: #6a3333;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--text-white);
    transform: translateY(-1px);
}

.btn-add-cart {
    width: 100%;
    background-color: var(--primary-color);
    color: var(--text-white);
    padding: 12px;
    font-size: 14px;
}

.btn-add-cart:hover {
    background-color: #6a3333;
}

/* ===========================
   Features Section
   =========================== */
.features {
    padding: 60px 24px;
    background-color: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
}

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

.feature-card {
    text-align: center;
    padding: 28px 20px;
    background-color: var(--text-white);
    border-radius: 0;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.feature-card:hover {
    box-shadow: var(--shadow-md);
}

.feature-card h3 {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.5;
}

/* ===========================
   Products Section
   =========================== */
.products-section {
    padding: 60px 24px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 48px;
}

.section-header h2 {
    font-size: 32px;
    font-weight: 400;
    color: var(--text-dark);
}

.market-text {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 500;
    font-style: normal;
}

.view-all {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 16px;
}

.view-all:hover {
    text-decoration: underline;
}

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

.product-card {
    background-color: var(--text-white);
    border-radius: 0;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    box-shadow: var(--shadow-md);
}

.product-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
    background-color: var(--bg-light);
    flex-shrink: 0;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.quick-view {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--text-white);
    color: var(--text-dark);
    padding: 12px 28px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    opacity: 0;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    white-space: nowrap;
    pointer-events: none;
}

.product-card:hover .quick-view {
    opacity: 1;
    pointer-events: auto;
}

.product-info {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-category {
    font-size: 12px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.product-title {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-dark);
    line-height: 1.4;
    flex: 1;
}

.product-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.product-info .btn-add-cart {
    margin-top: auto;
}

/* ===========================
   About Preview Section
   =========================== */
.about-preview {
    padding: 60px 24px;
    background-color: var(--text-white);
    border-bottom: 1px solid var(--border-color);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.about-text h2 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-dark);
}

.about-text p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 16px;
}

.about-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    position: relative;
}

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

/* About Image Carousel */
.about-carousel {
    position: relative;
    width: 100%;
    min-height: 400px;
}

.about-carousel .about-carousel-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
    transition: opacity 0.8s ease;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

.about-carousel .about-carousel-img:first-child {
    position: relative;
}

.about-carousel .about-carousel-img.active {
    opacity: 1;
    z-index: 1;
}

.about-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
    position: absolute;
    bottom: 15px;
    left: 0;
    right: 0;
    z-index: 2;
}

.about-carousel-dots .carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.about-carousel-dots .carousel-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

.about-carousel-dots .carousel-dot.active {
    background: var(--text-white);
    transform: scale(1.2);
}

/* ===========================
   Footer
   =========================== */
.footer {
    background-color: #2c2c2c;
    color: var(--text-white);
    padding: 64px 24px 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 48px;
    margin-bottom: 48px;
}

.footer-col h3,
.footer-col h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-col p {
    font-size: 14px;
    line-height: 1.8;
    opacity: 0.8;
    margin-bottom: 20px;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    font-size: 14px;
    opacity: 0.8;
}

.footer-col ul li a:hover {
    opacity: 1;
    color: var(--secondary-color);
}

.social-links {
    display: flex;
    gap: 16px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-4px);
}

.footer-bottom {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    font-size: 14px;
    opacity: 0.7;
}

/* ===========================
   Modal (Shopping Cart)
   =========================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: var(--text-white);
    border-radius: 16px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.modal-header h2 {
    font-size: 24px;
    font-weight: 700;
}

.close-modal {
    font-size: 32px;
    color: var(--text-light);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-modal:hover {
    background-color: var(--bg-light);
    color: var(--text-dark);
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.cart-empty {
    text-align: center;
    padding: 40px 24px;
    color: var(--text-light);
}

.loading {
    text-align: center;
    padding: 60px 24px;
    color: var(--text-light);
    font-size: 16px;
    grid-column: 1 / -1;
}

.loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-left: 10px;
    border: 2px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.no-products,
.error {
    text-align: center;
    padding: 60px 24px;
    color: var(--text-light);
    font-size: 16px;
    grid-column: 1 / -1;
}

.error {
    color: #c00;
}

.cart-item {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.cart-item-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--bg-light);
}

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

.cart-item-info {
    flex: 1;
}

.cart-item-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.cart-item-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: var(--bg-light);
    border-radius: 8px;
    padding: 4px;
}

.quantity-btn {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-weight: 700;
    color: var(--text-dark);
}

.quantity-btn:hover {
    background-color: var(--border-color);
}

.quantity-display {
    min-width: 32px;
    text-align: center;
    font-weight: 600;
}

.remove-btn {
    color: var(--text-light);
    font-size: 14px;
    padding: 6px 12px;
    border-radius: 6px;
}

.remove-btn:hover {
    background-color: #fee;
    color: #c00;
}

.modal-footer {
    padding: 24px;
    border-top: 1px solid var(--border-color);
}

.cart-total {
    font-size: 24px;
    margin-bottom: 16px;
    text-align: right;
}

.btn-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: #25D366;
    width: 100%;
}

.btn-whatsapp:hover {
    background-color: #20BA5A;
}

.btn-whatsapp svg {
    flex-shrink: 0;
}

.cart-disclaimer {
    font-size: 12px;
    color: #888;
    text-align: center;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed var(--border-color);
    line-height: 1.5;
}

.btn-whatsapp-question {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-whatsapp-question svg {
    flex-shrink: 0;
}

.modal-footer .btn-primary {
    width: 100%;
    background-color: var(--primary-color);
}

.modal-footer .btn-primary:hover {
    background-color: #6a3333;
}

/* ===========================
   Quick View Modal
   =========================== */
.quick-view-modal .modal-content {
    max-width: 900px;
}

.quick-view-content {
    padding: 0;
}

.quick-view-close {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
}

.quick-view-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.quick-view-image-container {
    position: relative;
    background-color: var(--bg-light);
    overflow: hidden;
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 500px;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.carousel-slide.active {
    opacity: 1;
}

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

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    font-size: 24px;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    transition: var(--transition);
    opacity: 0;
}

.quick-view-image-container:hover .carousel-btn {
    opacity: 1;
}

.carousel-btn:hover {
    background-color: var(--primary-color);
    color: var(--text-white);
    border-color: var(--primary-color);
}

.carousel-prev {
    left: 15px;
}

.carousel-next {
    right: 15px;
}

.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: var(--transition);
}

.carousel-dot:hover,
.carousel-dot.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: scale(1.2);
}

.quick-view-image {
    background-color: var(--bg-light);
}

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

.quick-view-info {
    padding: 48px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.quick-view-info h2 {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-dark);
}

.quick-view-price {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
}

.quick-view-description {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-light);
}

.quick-view-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: auto;
}

.quick-view-actions .btn {
    width: 100%;
}

.quick-view-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background-color: var(--text-white);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    font-size: 32px;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.quick-view-nav:hover {
    background-color: var(--primary-color);
    color: var(--text-white);
    border-color: var(--primary-color);
}

.quick-view-prev {
    left: 20px;
}

.quick-view-next {
    right: 20px;
}

@media (max-width: 768px) {
    .quick-view-modal {
        align-items: center;
        padding: 20px 16px;
    }
    
    .quick-view-modal .modal-content {
        max-height: 90vh;
        max-height: 90dvh;
        height: auto;
        border-radius: 16px;
        margin: 0;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }
    
    .quick-view-content {
        height: 100%;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }
    
    .quick-view-grid {
        grid-template-columns: 1fr;
        flex: 1;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }
    
    .quick-view-image-container {
        flex-shrink: 0;
    }
    
    .carousel-wrapper {
        min-height: 250px;
        height: 40vh;
        max-height: 300px;
    }
    
    .carousel-btn {
        width: 36px;
        height: 36px;
        font-size: 20px;
        opacity: 1;
    }
    
    .carousel-prev {
        left: 10px;
    }
    
    .carousel-next {
        right: 10px;
    }
    
    .carousel-dots {
        bottom: 15px;
    }
    
    .quick-view-nav {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
    
    .quick-view-prev {
        left: 10px;
    }
    
    .quick-view-next {
        right: 10px;
    }
    
    .quick-view-info {
        padding: 20px 16px;
        padding-bottom: 24px;
        gap: 12px;
    }
    
    .quick-view-info h2 {
        font-size: 20px;
    }
    
    .quick-view-price {
        font-size: 24px;
    }
    
    .quick-view-description {
        font-size: 14px;
        max-height: 80px;
        overflow-y: auto;
    }
    
    .quick-view-actions {
        margin-top: 12px;
        gap: 10px;
    }
    
    .quick-view-actions .btn {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .quick-view-description {
        font-size: 14px;
    }
    
    .quick-view-actions {
        margin-top: 16px;
    }
    
    .quick-view-image {
        max-height: 300px;
    }
    
    .quick-view-close {
        top: 12px;
        right: 12px;
        width: 36px;
        height: 36px;
        font-size: 24px;
        background: rgba(255,255,255,0.9);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* ===========================
   Responsive Design
   =========================== */
@media (max-width: 768px) {
    .nav-container {
        justify-content: space-between;
    }
    
    .logo {
        flex: 0 0 auto;
    }
    
    .nav-icons {
        order: 2;
        margin-left: auto; /* Empuja todo hacia la derecha */
        gap: 16px; /* Separación uniforme */
    }
    
    .menu-toggle {
        display: flex;
        order: 3;
        margin-left: 16px; /* Misma separación que entre íconos */
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--text-white);
        flex-direction: column;
        gap: 0;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        box-shadow: var(--shadow-md);
        transition: max-height 0.3s ease;
        order: 4;
    }

    .nav-menu.active {
        max-height: 400px;
        padding: 16px 0;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu a {
        display: block;
        padding: 12px 24px;
    }

    .hero {
        padding: 30px 20px 40px;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .hero-image {
        order: -1;
    }

    .hero-carousel {
        max-width: 320px;
        margin: 0 auto;
    }

    .hero-carousel-dots {
        gap: 8px;
        margin-top: 16px;
    }

    .carousel-dot {
        width: 10px;
        height: 10px;
    }

    .hero-logo {
        max-width: 280px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-highlight {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 15px;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-stats {
        justify-content: center;
        gap: 24px;
        flex-wrap: wrap;
    }

    .stat-number {
        font-size: 22px;
    }

    .stat-label {
        font-size: 11px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 24px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .about-text h2 {
        font-size: 32px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 20px 16px 30px;
    }

    .hero-carousel {
        max-width: 280px;
    }

    .hero-title {
        font-size: 26px;
    }

    .hero-highlight {
        font-size: 22px;
    }

    .hero-badge {
        font-size: 10px;
        padding: 6px 14px;
    }

    .hero-stats {
        gap: 16px;
    }

    .stat-number {
        font-size: 20px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .logo-img {
        height: 50px;
    }

    .logo-text {
        font-size: 24px;
    }
}

/* ===========================
   Utility Classes
   =========================== */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }

.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

.hidden {
    display: none;
}

/* ===========================
   Page Header (Subpages)
   =========================== */
.page-header {
    background-color: var(--bg-light);
    color: var(--text-dark);
    padding: 60px 24px 50px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.page-header h1 {
    font-size: 38px;
    font-weight: 600;
    margin-bottom: 12px;
}

.page-header p {
    font-size: 16px;
    color: var(--text-light);
}

/* ===========================
   Products Page Filters
   =========================== */
.products-filters {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.filter-btn {
    padding: 10px 24px;
    border-radius: 4px;
    background-color: var(--text-white);
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--primary-color);
    color: var(--text-white);
    border-color: var(--primary-color);
}

/* ===========================
   About Page
   =========================== */
.about-section {
    padding: 80px 24px;
}

.values-section {
    padding: 80px 24px;
    background-color: var(--bg-light);
}

.values-section h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 48px;
}

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

.value-card {
    text-align: center;
    padding: 32px;
    background-color: var(--text-white);
    border-radius: 12px;
    transition: var(--transition);
}

.value-card:hover {
    box-shadow: var(--shadow-md);
}

.value-card h3 {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 12px;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.value-card p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.6;
}

.process-section {
    padding: 80px 24px;
}

.process-section h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 48px;
}

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

.process-step {
    text-align: center;
    padding: 32px;
}

.step-number {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #5a2a2a 100%);
    color: var(--text-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    margin: 0 auto 20px;
}

.process-step h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.process-step p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.6;
}

.cta-section {
    padding: 80px 24px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #5a2a2a 100%);
    color: var(--text-white);
    text-align: center;
}

.cta-section h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
}

.cta-section p {
    font-size: 18px;
    margin-bottom: 32px;
    opacity: 0.9;
}

/* ===========================
   Contact Page
   =========================== */
.contact-section {
    padding: 80px 24px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
}

.contact-info h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
}

.contact-info > p {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 32px;
    line-height: 1.8;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-method {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
}

.contact-method:last-child {
    border-bottom: none;
}

.method-content h3 {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-dark);
}

.method-content a {
    color: var(--primary-color);
    font-weight: 500;
}

.method-content a:hover {
    text-decoration: underline;
}

.contact-form-container h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 24px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(125, 60, 60, 0.1);
}

.form-group textarea {
    resize: vertical;
}

.faq-section {
    padding: 80px 24px;
    background-color: var(--bg-light);
}

.faq-section h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 48px;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.faq-item {
    padding: 24px;
    background-color: var(--text-white);
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
}

.faq-item h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.faq-item p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.6;
}

/* ===========================
   Responsive for New Pages
   =========================== */
@media (max-width: 768px) {
    .page-header {
        padding: 40px 16px 30px;
    }

    .page-header h1 {
        font-size: 28px;
    }

    .page-header p {
        font-size: 14px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-info h2 {
        font-size: 28px;
    }

    .contact-methods {
        gap: 16px;
    }

    .contact-method {
        padding: 16px;
    }

    .contact-form-container h2 {
        font-size: 24px;
    }

    .values-section,
    .process-section,
    .about-section {
        padding: 50px 16px;
    }

    .values-section h2,
    .process-section h2 {
        font-size: 28px;
        margin-bottom: 32px;
    }

    .values-grid,
    .process-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .value-card,
    .process-step {
        padding: 24px 20px;
    }

    .step-number {
        width: 50px;
        height: 50px;
        font-size: 22px;
    }

    .cta-section {
        padding: 50px 20px;
    }

    .cta-section h2 {
        font-size: 26px;
    }

    .cta-section p {
        font-size: 15px;
    }
}

/* ===========================
   Mobile-First Optimizations (90% mobile users)
   =========================== */
@media (max-width: 768px) {
    /* Container */
    .container {
        padding: 0 16px;
    }

    /* Header */
    .header-top {
        padding: 8px 16px;
        font-size: 11px;
    }

    .nav-container {
        padding: 12px 16px;
    }

    .logo-img {
        height: 55px;
    }

    /* Features */
    .features {
        padding: 40px 16px;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .feature-card {
        padding: 16px 12px;
    }

    .feature-card h3 {
        font-size: 12px;
        margin-bottom: 4px;
    }

    .feature-card p {
        font-size: 11px;
        line-height: 1.4;
    }

    /* Products Section */
    .products-section {
        padding: 40px 16px;
    }

    .section-header {
        margin-bottom: 24px;
    }

    .section-header h2 {
        font-size: 24px;
    }

    .view-all {
        font-size: 14px;
    }

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

    .product-info {
        padding: 12px;
    }

    .product-title {
        font-size: 13px;
        margin-bottom: 4px;
    }

    .product-price {
        font-size: 16px;
        margin-bottom: 8px;
    }

    .btn-add-cart {
        padding: 10px 16px;
        font-size: 12px;
    }

    /* Quick view hidden on mobile - tap to go to product */
    .quick-view {
        display: none;
    }

    /* About Preview */
    .about-preview {
        padding: 40px 16px;
    }

    .about-content {
        gap: 24px;
    }

    .about-text h2 {
        font-size: 26px;
        margin-bottom: 16px;
    }

    .about-text p {
        font-size: 14px;
        margin-bottom: 12px;
    }

    .about-carousel {
        min-height: 280px;
    }

    .about-carousel .about-carousel-img {
        height: 280px;
    }

    /* Footer */
    .footer {
        padding: 40px 16px 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    .footer-col h3,
    .footer-col h4 {
        font-size: 14px;
        margin-bottom: 12px;
    }

    .footer-col p {
        font-size: 12px;
    }

    .footer-col ul li {
        margin-bottom: 8px;
    }

    .footer-col ul li,
    .footer-col ul li a {
        font-size: 12px;
    }

    .social-links {
        gap: 12px;
        margin-top: 12px;
    }

    .social-links a {
        width: 36px;
        height: 36px;
    }

    .social-links a svg {
        width: 18px;
        height: 18px;
    }

    .footer-bottom {
        padding-top: 20px;
    }

    .footer-bottom p {
        font-size: 11px;
    }

    /* Modal / Cart */
    .modal {
        padding: 0;
        align-items: flex-end;
    }

    .modal-content {
        border-radius: 20px 20px 0 0;
        max-height: 85vh;
    }

    .modal-header {
        padding: 16px 20px;
    }

    .modal-header h2 {
        font-size: 18px;
    }

    .modal-body {
        padding: 16px 20px;
    }

    .cart-item {
        gap: 12px;
        padding: 12px 0;
    }

    .cart-item-image {
        width: 70px;
        height: 70px;
    }

    .cart-item-title {
        font-size: 14px;
    }

    .cart-item-price {
        font-size: 16px;
    }

    .modal-footer {
        padding: 16px 20px 24px;
    }

    .cart-total {
        font-size: 20px;
    }

    .btn-whatsapp {
        padding: 14px 24px;
        font-size: 14px;
    }

    /* Products page filters */
    .products-filters {
        gap: 8px;
        margin-bottom: 24px;
    }

    .filter-btn {
        padding: 8px 14px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    /* Extra small devices */
    .features-grid {
        grid-template-columns: 1fr 1fr;
    }

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

    .product-info {
        padding: 10px;
    }

    .product-title {
        font-size: 12px;
    }

    .product-price {
        font-size: 15px;
    }

    .btn-add-cart {
        padding: 8px 12px;
        font-size: 11px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .about-carousel {
        min-height: 240px;
    }

    .about-carousel .about-carousel-img {
        height: 240px;
    }

    .section-header h2 {
        font-size: 22px;
    }
}
