:root {
    --primary: #99582a;
    --secondary: #432818;
    --bg-light: #fdfaf7;
    --text-main: #2d1b0e;
}

@layer base {
    body {
        @apply bg-[#fdfaf7] text-[#2d1b0e] font-sans;
    }
}

@layer components {
    .btn-primary {
        @apply bg-[#99582a] text-white px-6 py-3 rounded-lg font-semibold hover:bg-[#804a23] transition-colors duration-300;
    }

    .section-title {
        @apply text-4xl font-bold text-[#432818] mb-8 text-center;
    }

    .card {
        @apply bg-white rounded-2xl shadow-lg border border-[#f0e6dc] overflow-hidden hover:shadow-xl transition-shadow duration-300;
    }

    .hero-slide.opacity-100 .slide-title {
        @apply animate-[fade-up_0.8s_ease-out_forwards];
    }

    .hero-slide.opacity-100 .slide-desc {
        @apply animate-[fade-up_1s_ease-out_forwards];
    }
}

/* Flutter-style Bottom Nav */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: white;
    box-shadow: 0 -15px 40px rgba(0, 0, 0, 0.15);
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    z-index: 9999;
    padding: 0 24px;
    border-top-left-radius: 32px;
    border-top-right-radius: 32px;
    border-top: 1px solid rgba(153, 88, 42, 0.05);
}

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

.fab-cart {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: -32px;
    width: 64px;
    height: 64px;
    background-color: #99582a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(153, 88, 42, 0.4);
    border: 4px solid white;
    color: white;
    transition: all 0.3s ease;
}

.fab-cart:hover {
    transform: translateX(-50%) scale(1.05);
}

.fab-cart:active {
    transform: translateX(-50%) scale(0.9);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: rgba(67, 40, 24, 0.4);
    transition: all 0.3s ease;
    width: 60px;
    text-decoration: none;
}

.nav-item.active {
    color: #99582a;
    transform: scale(1.1);
}

.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
    height: 64px;
    z-index: 100;
}

/* App-style category circles */
.category-pill {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.category-icon-bg {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background-color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(153, 88, 42, 0.05);
    transition: all 0.3s ease;
}

.app-card {
    background-color: white;
    border-radius: 24px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(153, 88, 42, 0.05);
    overflow: hidden;
    transition: transform 0.2s ease;
}

.app-card:active {
    transform: scale(0.95);
}

.product-card-compact {
    background-color: white;
    border-radius: 8px;
    padding: 2px;
    border: 1px solid rgba(153, 88, 42, 0.05);
    display: flex;
    flex-direction: column;
    gap: 1px;
    transition: all 0.2s ease;
    position: relative;
}

.product-card-compact:active {
    transform: scale(0.96);
    background-color: #fdfaf7;
}

.product-img-compact {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 6px;
    object-fit: cover;
    background-color: #f8f9fa;
}

.product-title-compact {
    font-size: 10px;
    font-weight: 600;
    color: #432818;
    line-height: 1;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    /* Only 1 line for title */
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 12px;
    padding: 0 2px;
    margin-top: 4px;
}

.price-container {
    display: flex;
    flex-direction: column;
    padding: 0 2px 2px 2px;
}

.price-actual {
    font-size: 11px;
    font-weight: 700;
    color: #99582a;
}

.price-mrp {
    font-size: 8px;
    color: rgba(67, 40, 24, 0.3);
    text-decoration: line-through;
}

.add-btn-compact {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 22px;
    height: 22px;
    background-color: #99582a;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(153, 88, 42, 0.3);
    z-index: 10;
}

.room-card {
    background: white;
    border-radius: 20px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid rgba(153, 88, 42, 0.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    animation: fade-in-up 0.6s ease-out forwards;
}

.room-card:active {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(153, 88, 42, 0.1);
    border-color: rgba(153, 88, 42, 0.2);
}

.room-icon-wrapper {
    width: 60px;
    height: 60px;
    background: #fdfaf7;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #99582a;
    transition: all 0.3s ease;
}

.room-card:active .room-icon-wrapper {
    background: #99582a;
    color: white;
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.magic-border-container {
    padding: 1px;
    background: linear-gradient(45deg, #4b2e1e, #926c44, #c19a6b, #5d3a1a, #4b2e1e);
    background-size: 400% 400%;
    animation: wood-gradient 8s ease infinite;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(67, 40, 24, 0.15);
}

.magic-border-content {
    background: white;
    padding: 24px 12px;
    border-radius: 23px;
    width: 100%;
    height: 100%;
}

@media (min-width: 768px) {
    .magic-border-content {
        padding: 40px 32px;
    }
}

@keyframes wood-gradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Hide scrollbar for Chrome, Safari and Opera */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.no-scrollbar {
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

.new-launch-card {
    flex-shrink: 0;
    width: 200px;
    /* Reduced from 240px */
    background: white;
    border-radius: 24px;
    padding: 12px;
    border: 1px solid rgba(153, 88, 42, 0.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

.new-launch-card:active {
    transform: scale(0.97);
}

.badge-new {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #432818;
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #99582a;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #432818;
}

/* Filter Chips Styles */
.filter-chip {
    flex-shrink: 0;
    padding: 8px 18px;
    border-radius: 20px;
    background: white;
    border: 1px solid rgba(153, 88, 42, 0.1);
    color: #432818;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.filter-chip.active {
    background: #432818;
    color: white;
    border-color: #432818;
    box-shadow: 0 4px 10px rgba(67, 40, 24, 0.2);
}

.filter-chip svg {
    width: 16px;
    height: 16px;
}

.chair-collection-box {
    background: #fdfaf7;
    border: 1px solid rgba(153, 88, 42, 0.1);
    border-radius: 32px;
    padding: 24px 16px;
    margin: 20px 0;
    box-shadow: inset 0 2px 10px rgba(153, 88, 42, 0.02);
}

.chair-box-header {
    border-bottom: 1px dashed rgba(153, 88, 42, 0.1);
    margin-bottom: 20px;
    padding-bottom: 15px;
}

/* Bottom Sheet / Product Detail Dialog */
#product-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

#product-modal-backdrop.active {
    opacity: 1;
    visibility: visible;
}

#product-bottom-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    z-index: 10001;
    border-top-left-radius: 32px;
    border-top-right-radius: 32px;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 85vh;
    overflow-y: auto;
    padding-bottom: constant(safe-area-inset-bottom);
    padding-bottom: env(safe-area-inset-bottom);
}

#product-bottom-sheet.active {
    transform: translateY(0);
}

.sheet-handle {
    width: 40px;
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    margin: 12px auto;
}

.modal-img-container {
    width: 100%;
    aspect-ratio: 1.2/1;
    overflow: hidden;
    background: #f8f9fa;
}

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

.modal-content-padding {
    padding: 24px;
}

.modal-price-tag {
    background: rgba(153, 88, 42, 0.1);
    color: #99582a;
    padding: 4px 12px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 18px;
}

.modal-add-btn {
    width: 100%;
    background: #99582a;
    color: white;
    padding: 16px;
    border-radius: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
    transition: all 0.2s ease;
    box-shadow: 0 10px 20px rgba(153, 88, 42, 0.2);
}

.modal-add-btn:active {
    transform: scale(0.98);
    background: #804a23;
}