* {
    font-family: "Reddit Sans", sans-serif;
}

/* Size Selector Styling */
.size-option {
    border: 2px solid #D1D5DB;
    background: white;
    border-radius: 12px;
    padding: 12px 24px;
    transition: all 0.2s ease;
    cursor: pointer;
    font-weight: 500;
}

.size-option:hover:not(.size-disabled):not(.size-selected) {
    background-color: #F9FAFB;
    border-color: #9CA3AF;
}

.size-selected {
    border-color: #FDD701;
    background-color: #FFFBE6;
    color: #374151;
}

.size-disabled {
    opacity: 0.3;
    cursor: not-allowed;
    color: #9CA3AF;
}

/* Wishlist Button Styling */
.wishlist-btn {
    position: relative;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 10;
}

.wishlist-btn:hover {
    background-color: rgba(239, 68, 68, 0.1);
}

.wishlist-btn.wishlist-active {
    color: #ef4444;
}

.wishlist-btn.wishlist-active:hover {
    background-color: rgba(239, 68, 68, 0.2);
}

/* FAQ Section Styling */
.faq-toggle {
    border: none;
    background: transparent;
    cursor: pointer;
    width: 100%;
    text-align: left;
    padding: 24px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background-color 0.2s ease;
}

.faq-toggle:hover {
    background-color: #F9FAFB;
}

.faq-icon {
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.faq-content {
    background: white;
    padding: 0 32px 24px;
}

.faq-content p {
    color: #6B7280;
    line-height: 1.6;
    margin: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .faq-toggle {
        padding: 20px 24px;
    }

    .faq-content {
        padding: 0 24px 20px;
    }
}

/* CTA Button Styling */
.bg-yellow-custom {
    background-color: #FFCC00;
}

.bg-yellow-custom:hover {
    background-color: #e6b800;
}

.quantity-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    border: none;
    background: transparent;
    cursor: pointer;
}

.quantity-btn:hover {
    background-color: #184195;
    color: white;
}

.quantity-display {
    padding: 4px 12px;
    color: #184195;
    font-weight: 500;
    min-width: 2rem;
    text-align: center;
    border: none;
    background: transparent;
    outline: none;
    user-select: none;
}

/* Product Detail Page */
.product-detail {
    background: #FFFFFF;
}

html {
    scroll-behavior: smooth;
}

/* CTA Section Styles */
.cta-section {
    background: #184195;
}

.cta-card {
    background: #FFFFFF;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* CTA Grid Responsive Behavior */
.cta-grid {
    display: grid;
    gap: 2rem;
}

/* Desktop: 3-column grid */
@media (min-width: 1024px) {
    .cta-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Tablet: 2-column grid */
@media (min-width: 768px) and (max-width: 1023px) {
    .cta-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 900px;
        margin: 0 auto;
    }

    /* Make cards slightly more compact on tablet */
    .cta-card {
        padding: 1.5rem 1rem;
    }

    .cta-card h3 {
        font-size: 1.25rem;
    }
}

/* Mobile: Single column */
@media (max-width: 767px) {
    .cta-section {
        padding: 3rem 0;
    }

    .cta-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .cta-card {
        padding: 1.5rem 1rem;
        margin-bottom: 0;
    }

    .cta-card h3 {
        font-size: 1.125rem;
    }

    .cta-card p {
        font-size: 14px;
    }
}

/* CTA Buttons */
.cta-card button {
    background: #FDD701;
    border: none;
    color: #1F2937;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    font-size: 0.875rem;
}

/* CTA Card Description Text */
.cta-card p {
    font-size: 14px;
    line-height: 1.5;
}

/* Section Header Responsive Typography */
@media (max-width: 767px) {
    .cta-section h2 {
        font-size: 1.75rem !important;
        line-height: 1.2;
    }
    .cta-section .mb-12 {
        margin-bottom: 2rem;
    }
}

/* Related Products Section */
.related-products {
    background: #FFFFFF;
}

/* Hide scrollbar but keep functionality */
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

/* Product Cards */
.product-card {
    background: rgba(220, 229, 249, 0.4);
    border-radius: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    flex-shrink: 0;
    cursor: pointer;
    position: relative;
}

.product-card img {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

/* Product Navigation Arrows */
.related-products button:first-child {
    background: #FDD701;
    color: #1F2937;
    transition: background-color 0.2s ease;
    border: 2px solid #FDD701;
}

.related-products button:first-child:disabled {
    background: #FFFFFF;
    color: #FDD701;
    border: 2px solid #FDD701;
    cursor: not-allowed;
}

.related-products button:last-child {
    background: #FDD701;
    color: #1F2937;
    border: 2px solid #FDD701;
}

.related-products button:last-child:disabled {
    background: #FFFFFF;
    color: #FDD701;
    border: 2px solid #FDD701;
    cursor: not-allowed;
}

/* Responsive Navigation */
@media (max-width: 767px) {
    .related-products .flex.items-center.space-x-2 {
        display: none;
    }

    .related-products {
        padding: 3rem 0;
    }
}

/* Products Carousel Responsive Layout */
.products-carousel {
    display: flex;
    gap: .5rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    border-radius: 12px;
}

@media (min-width: 1024px) {
    .products-carousel {
        margin: 0 auto;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .products-carousel {
        margin: 0 auto;
    }
}

@media (max-width: 767px) {
    .products-carousel {
        gap: .5rem;
        padding: 0;
    }
}

/* Product Tags */
.product-card span.tag {
    font-size: 0.75rem;
    font-weight: 600;
}

/* Discount tags (pink/red background) */
.product-card span[class*="bg-pink"] {
    background: #FFCDCC !important;
    color: #000000;
}

/* Blue tags ("Nuevo" badges) */
.product-card span[class*="bg-blue-900"] {
    background: #184195 !important;
}

/* Product Color Swatches */
.product-card div[class*="w-6 h-6"] {
    width: 24px;
    border-radius: 50%;
    border: 2px solid transparent;
    transition: border-color 0.2s ease;
}

.product-card div[class*="w-6 h-6"]:hover {
    border-color: #3B82F6;
}

/* Product Titles */
.product-card h3 {
    font-size: 0.875rem;
    font-weight: 700;
    color: #1F2937;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-clamp: 2;
}

/* Product Prices */
.product-card .line-through {
    font-size: 0.875rem;
}

/* Product Detail Page Styles */
.product-detail {
    background: #FFFFFF;
}

/* Breadcrumbs */
.product-detail nav a {
    transition: color 0.2s ease;
}

/* Main Image Container */
.product-detail .h-96 {
    background: #F8F9FA;
}

/* Thumbnail Gallery */
.product-detail .grid.grid-cols-3 div {
    background: rgba(220, 229, 249, 0.2);
    border-radius: 12px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.product-detail .grid.grid-cols-3 div:hover {
    background: rgba(220, 229, 249, 0.3);
    transform: translateY(-1px);
}

.product-detail .grid.grid-cols-3 div.active {
    border: 1px solid #184195;
    background: rgba(220, 229, 249, 0.3);
}

.product-detail .grid.grid-cols-3 img {
    transition: transform 0.2s ease;
    border-radius: 8px;
}

/* Product Details */
.product-detail h1 {
    color: #1F2937;
    font-weight: 700;
    line-height: 1.2;
}

.product-detail .text-3xl {
    color: #1F2937;
    font-weight: 700;
}

.product-detail .line-through {
    color: #9CA3AF;
    font-weight: 400;
}

/* Color Swatches */
.product-detail .w-8.h-8 {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.product-detail .w-8.h-8:hover {
    transform: scale(1.1);
}

.product-detail .w-8.h-8.border-3 {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.5);
}

/* Size Buttons */
.product-detail button[class*="px-4 py-2"] {
    transition: all 0.2s ease;
    font-weight: 500;
}

.product-detail button[class*="px-4 py-2"]:hover {
    background: #FEF3C7;
    border-color: #F59E0B;
}

/* Delivery Info */
.product-detail .border-gray-200 {
    background: #F9FAFB;
}

.product-detail .text-blue-600 {
    color: #2563EB;
    transition: color 0.2s ease;
}

.product-detail .text-blue-600:hover {
    color: #1D4ED8;
}

/* Quantity Selector */
.product-detail .border-gray-300 {
    background: #FFFFFF;
}

.product-detail button[class*="px-3 py-2"] {
    transition: all 0.2s ease;
    font-weight: 600;
}

.product-detail button[class*="px-3 py-2"]:hover {
    background: #F3F4F6;
    color: #1F2937;
}

/* CTA Button */
.product-detail .bg-yellow-400 {
    background: #FCD34D;
    color: #1F2937;
    font-weight: 700;
    transition: all 0.2s ease;
}

.product-detail .bg-yellow-400:hover {
    background: #F59E0B;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

/* Hide scrollbar on mobile */
.flex.overflow-x-auto::-webkit-scrollbar {
    display: none;
}
.flex.overflow-x-auto {
    -ms-overflow-style: none;
    scrollbar-width: none;
}


@media (max-width: 767px) {

    .category-card {
        flex: 0 0 auto;
        width: 280px;
        margin-right: 16px;
    }
    .category-card:last-child {
        margin-right: 0;
    }

    /* Mobile CTA Bar - Fixed at bottom */
    .product-detail .space-y-4:last-child {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: #FFFFFF;
        padding: 1rem;
        box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
        z-index: 50;
        border-top: 1px solid #E5E7EB;
    }

    /* Add bottom padding to main content to account for fixed CTA */
    .product-detail .grid {
        padding-bottom: 1rem;
    }

    /* Hide size selector on mobile as per spec */
    .product-detail .mb-6:nth-child(6) {
        display: none;
    }

    /* Adjust delivery info layout for mobile */
    .product-detail .flex.items-center.justify-between {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .product-detail .flex.items-center.justify-between > div:last-child {
        align-self: stretch;
        display: flex;
        justify-content: flex-end;
    }

    /* Make heart icon smaller on mobile */
    .product-detail .w-6.h-6 {
        width: 1.25rem;
        height: 1.25rem;
    }

    /* Adjust thumbnail sizes for mobile */
    .product-detail .w-16.h-16 {
        width: 3.5rem;
        height: 3.5rem;
    }

    /* Stack elements vertically on mobile */
    .product-detail .flex.items-center.space-x-4 {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .product-detail .flex.items-center.space-x-4 > span:first-child {
        align-self: flex-start;
    }
}

@media (min-width: 768px) {
    /* Two-column layout for desktop - 50/50 split */
    .product-detail .grid-cols-1.lg\\:grid-cols-2 {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    /* Heart icon positioning */
    .product-detail .flex.justify-end {
        position: absolute;
        top: 0;
        right: 0;
    }

    /* Enhanced hover effects for desktop */
    .product-detail .w-8.h-8:not(.border-3):hover {
        box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3);
    }
}

/* ==============================================
   MOBILE NAVIGATION DRAWER STYLES
   ============================================== */

.mobile-menu-level {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease-in-out;
    background: white;
}

.mobile-menu-level.hidden {
    transform: translateX(100%);
}

/* Active menu level (visible) */
.mobile-menu-level:not(.hidden) {
    transform: translateX(0);
}

/* Mobile Navigation Drawer */
#mobile-menu-overlay {
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

/* Menu Items */
.mobile-submenu-toggle,
.mobile-back-btn {
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.5;
}

.mobile-submenu-toggle:hover,
.mobile-back-btn:hover {
    background-color: #f9fafb;
}

/* Menu Level Transitions */
#mobile-menu-content {
    position: relative;
    height: calc(100vh - 140px); /* Account for header and bottom bar */
    overflow: hidden;
}

/* Animation for menu transitions */
.mobile-menu-level.entering {
    animation: slideInFromRight 0.3s ease-in-out;
}

.mobile-menu-level.exiting {
    animation: slideOutToLeft 0.3s ease-in-out;
}

@keyframes slideInFromRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes slideOutToLeft {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-100%);
    }
}

/* Bottom Utility Bar */
#mobile-menu-drawer .fixed.bottom-0 {
    background: #0D47A1;
    z-index: 10;
}

/* Package icon in bottom bar */
#mobile-menu-drawer .fixed.bottom-0 svg path {
    fill: white;
}

/* Custom Radio Button Styling */
.custom-radio {
    position: relative;
    display: flex;
    align-items: center;
}

.custom-radio input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.radio-label {
    width: 20px;
    height: 20px;
    border: 2px solid #D1D5DB;
    border-radius: 50%;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
}

.radio-label::after {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #184195;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.2s ease;
}

.custom-radio input[type="radio"]:checked + .radio-label {
    border-color: #184195;
    background: #F8F9FF;
}

.custom-radio input[type="radio"]:checked + .radio-label::after {
    transform: translate(-50%, -50%) scale(1);
}

.custom-radio input[type="radio"]:focus + .radio-label {
    box-shadow: 0 0 0 3px rgba(24, 65, 149, 0.2);
}
