:root {
    --primary-color: #42A49C;
    /* 40% */
    --secondary-color: #F95883;
    /* 60% */
    --text-color: #333;
    --bg-color: #f9f9f9;
    --card-bg: #fff;
    --font-main: 'Pacifico', cursive;
    --font-secondary: 'Dancing Script', cursive;
    --font-body: 'Quicksand', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background-color: #fff;
    padding: 2rem 0;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
    border-top: 5px solid var(--primary-color);
    position: relative;
    /* For z-index context */
}

/* Main Nav */
.main-nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    font-size: 1.1rem;
    transition: color 0.3s;
    position: relative;
    font-family: var(--font-body);
}

.main-nav a:hover {
    color: var(--secondary-color);
}

.main-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--secondary-color);
    transition: width 0.3s;
}

.main-nav a:hover::after {
    width: 100%;
}

header h1 {
    font-family: var(--font-main);
    color: var(--primary-color);
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

header .highlight {
    font-family: var(--font-secondary);
    color: var(--secondary-color);
    font-weight: 700;
}

header p {
    font-size: 1.1rem;
}

/* Filters */
.filters-container {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

#search-input {
    width: 100%;
    max-width: 500px;
    padding: 12px 20px;
    border: 2px solid #ddd;
    border-radius: 30px;
    font-size: 1rem;
    font-family: var(--font-body);
    transition: all 0.3s ease;
    outline: none;
}

#search-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(66, 164, 156, 0.2);
}

.category-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.filter-btn {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 8px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 600;
    transition: all 0.3s;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--primary-color);
    color: white;
}

/* Catalog */
.category-section {
    margin-bottom: 3rem;
}

.category-title {
    font-family: var(--font-main);
    color: var(--secondary-color);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
}

.products-grid {
    display: flex;
    overflow-x: auto;
    gap: 1.5rem;
    padding-bottom: 2rem;
    /* Space for scrollbar/shadow */
    scroll-snap-type: x mandatory;
    /* Hide scrollbar for cleaner look in some browsers but allow scrolling */
    -webkit-overflow-scrolling: touch;
}

/* Custom Scrollbar for better UX */
.products-grid::-webkit-scrollbar {
    height: 8px;
}

.products-grid::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.products-grid::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.products-grid::-webkit-scrollbar-thumb:hover {
    background: #2d7a73;
}

/* Product Card */
.product-card {
    position: relative;
    /* Required for discount badge positioning */
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eee;

    /* Fixed width for horizontal scroll */
    min-width: 280px;
    width: 280px;
    scroll-snap-align: start;
    flex-shrink: 0;
    /* Prevent shrinking */
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.card-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background-color: #f0f0f0;
    position: relative;
    /* Needed for absolute positioning of dots */
}

/* Slider Controls */
.slider-dots {
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 6px;
    z-index: 5;
    padding: 0 10px;
    pointer-events: none;
    /* Allow clicks to pass through container */
}

.slider-dot {
    width: 8px;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    pointer-events: auto;
    /* Re-enable clicks for dots */
}

.slider-dot.active {
    background-color: var(--primary-color);
    transform: scale(1.2);
    width: 10px;
    height: 10px;
}

/* Slider Arrows */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.3);
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 6;
    transition: all 0.2s;
    opacity: 0;
    /* Hidden by default, shown on hover */
}

.product-card:hover .slider-arrow {
    opacity: 1;
}

.slider-arrow:hover {
    background: rgba(0, 0, 0, 0.6);
    transform: translateY(-50%) scale(1.1);
}

.slider-arrow.prev {
    left: 10px;
}

.slider-arrow.next {
    right: 10px;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    /* Keep zoom effect */
}

.product-card:hover .card-image img {
    transform: scale(1.05);
}

.card-content {
    padding: 1.5rem;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-content h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.card-content p {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 1rem;
}

.price-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 10px 0;
}

.old-price {
    text-decoration: line-through;
    color: #aaa;
    font-size: 0.9rem;
}

.current-price {
    color: #42A49C;
    font-weight: bold;
    font-size: 1.2rem;
}

.discount-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: #ff4757;
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: bold;
    box-shadow: 0 3px 10px rgba(255, 71, 87, 0.3);
    z-index: 10;
    /* Rotation removed as requested */
}

.category-tag {
    display: inline-block;
    background-color: rgba(66, 164, 156, 0.1);
    color: var(--primary-color);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    align-self: center;
}

.card-actions {
    margin-top: auto;
}

/* New Pretty Buttons */
.add-to-cart-btn {
    background: linear-gradient(45deg, var(--secondary-color), #ff8ba7);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 1rem;
    cursor: pointer;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(249, 88, 131, 0.4);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    width: 100%;
}

.add-to-cart-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(249, 88, 131, 0.6);
}

.add-to-cart-btn:active {
    transform: scale(0.95);
}

.add-to-cart-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
    color: #666667;
}

/* Floating Cart Button */
.cart-floating-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, var(--primary-color), #2d7a73);
    color: white;
    border: none;
    border-radius: 50%;
    width: 65px;
    height: 65px;
    /* font-size: 1.8rem; Removed for SVG */
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(66, 164, 156, 0.4);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    animation: float 3s ease-in-out infinite;
}

.cart-floating-btn svg {
    width: 32px;
    height: 32px;
    stroke: white;
    fill: none;
}

.cart-floating-btn:hover {
    transform: scale(1.1) rotate(5deg);
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

#cart-count {
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--secondary-color);
    color: white;
    font-size: 0.8rem;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border: 2px solid white;
}

/* Modal Styling */
.modal {
    display: none;
    position: fixed;
    z-index: 200;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 2.5rem;
    border: none;
    width: 90%;
    max-width: 600px;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
    max-height: 85vh;
    overflow-y: auto;
    animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-modal {
    color: #999;
    float: right;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.close-modal:hover {
    color: var(--secondary-color);
}

.modal h2 {
    color: var(--primary-color);
    font-family: var(--font-main);
    margin-bottom: 2rem;
    text-align: center;
    font-size: 2.5rem;
    border-bottom: 2px dashed #eee;
    padding-bottom: 1rem;
}

/* Cart Items */
.cart-items {
    /* max-height removed as requested */
    margin-bottom: 2rem;
    padding-right: 10px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    margin-bottom: 1rem;
    background-color: #fcfcfc;
    border-radius: 12px;
    border: 1px solid #eee;
    transition: transform 0.2s;
}

.cart-item:hover {
    transform: scale(1.01);
    border-color: var(--primary-color);
}

.cart-item-info h4 {
    font-size: 1.1rem;
    color: #444;
    margin-bottom: 5px;
}

.cart-item-price {
    color: var(--secondary-color);
    font-weight: bold;
    font-size: 0.95rem;
}

.remove-item-btn {
    color: #ff0000;
    /* Pure red */
    background: transparent;
    border: none;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    border-radius: 50%;
}

.remove-item-btn:hover {
    background-color: rgba(255, 0, 0, 0.1);
    transform: scale(1.1);
}

.remove-item-btn svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

/* Checkout Form */
.checkout-form {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px dashed #eee;
}

.checkout-form h3 {
    margin-bottom: 1.5rem;
    color: var(--text-color);
    font-size: 1.4rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #666667;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px;
    border: 2px solid #eee;
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

.checkout-btn {
    width: 100%;
    background: linear-gradient(45deg, #25D366, #128C7E);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 1rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
}

/* Responsive */
@media (max-width: 768px) {
    header h1 {
        font-size: 2.2rem;
    }

    .category-title {
        font-size: 1.8rem;
    }

    .modal-content {
        padding: 1.5rem;
        margin: 10% auto;
        width: 95%;
    }
}

/* Sections Global */
.section-container {
    margin: 4rem 0;
    padding-top: 2rem;
    border-top: 1px dashed #eee;
}

.section-title {
    font-family: var(--font-main);
    color: var(--secondary-color);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    text-align: center;
    color: #666667;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* Inspirations */
.inspirations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.inspiration-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.inspiration-card:hover {
    transform: translateY(-5px);
}

.inspiration-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    aspect-ratio: 16/9;
}

.inspiration-info {
    padding: 1.5rem;
    text-align: center;
}

.inspiration-info h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Location */
.location-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.system-info {
    text-align: center;
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 1rem;
}

.system-info .steps-intro {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.system-info ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin: 0;
}

.system-info ul li {
    background: var(--primary-color);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(66, 164, 156, 0.3);
}

.locations-carousel-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.locations-carousel {
    position: relative;
    width: 100%;
    min-height: 400px;
    margin-bottom: 6rem;
}

.carousel-arrow {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    background: rgba(66, 164, 156, 0.9);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(66, 164, 156, 0.3);
    z-index: 10;
}

.carousel-arrow:hover {
    background: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(66, 164, 156, 0.4);
}

.carousel-arrow.prev {
    left: -25px;
}

.carousel-arrow.next {
    right: -25px;
}

.location-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    display: flex;
    flex-direction: row;
    gap: 2rem;
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.location-card.active {
    opacity: 1;
    visibility: visible;
}

.location-text {
    flex: 1;
    min-width: 300px;
}

.map-container {
    flex: 1;
    min-width: 300px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.location-text h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.map-link-btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s;
    margin-top: 1rem;
    align-self: flex-start;
}

.map-link-btn:hover {
    background-color: #2d7a73;
}

.map-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.location-dots {
    display: none;
}

@media (max-width: 768px) {
    .system-info ul {
        flex-direction: column;
        gap: 1rem;
    }
    
    .carousel-arrow {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .carousel-arrow.prev {
        left: -20px;
    }
    
    .carousel-arrow.next {
        right: -20px;
    }
    
    .locations-carousel {
        min-height: 670px;
        margin-bottom: 10rem;
    }
    
    .location-card {
        flex-direction: column;
        gap: 1.5rem;
    }
}

/* Whatsapp Support Button */
.whatsapp-support-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background-color: rgba(37, 211, 102, 0.85);
    /* Transparent background */
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    backdrop-filter: blur(4px);
    /* Nice glass effect */
}

.whatsapp-support-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
    background-color: rgba(37, 211, 102, 1);
    /* Solid on hover */
}

.whatsapp-support-btn svg {
    width: 20px;
    height: 20px;
}