/* Grasloom Main Styles */
body {
    font-family: 'Lato', sans-serif;
    background-color: #FDFDFD;
    color: #333;
}

h1, h2, h3, h4, h5, h6, .font-serif {
    font-family: 'Cormorant Garamond', serif;
}

/* Page Sections */
.page-section {
    display: none;
}

.page-section.active {
    display: block;
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Header Styles */
#main-header {
    transition: all 0.4s ease-in-out;
    background: transparent;
}

#main-header.header-scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Product Styles */
.product-image {
    height: 500px;
    width: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* Animation Styles */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: opacity, transform;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Loading Styles */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #333;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* CTA Button */
.cta-button {
    display: inline-block;
    background-color: #1f2937;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.cta-button:hover {
    background-color: #374151;
    transform: scale(1.05);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Link Underline */
.link-underline {
    position: relative;
    display: inline-block;
}

.link-underline::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    transition: all 0.3s;
}

.link-underline:hover::after {
    width: 100%;
}

/* Dior Collection Effects */
.dior-collection {
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.dior-collection:hover {
    transform: scale(1.02);
}

.collection-bg {
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.collection-bg:hover {
    filter: brightness(1.3) contrast(1.2);
}

.collection-overlay {
    transition: all 0.5s ease-in-out;
}

.dior-collection:not(:hover) {
    filter: brightness(0.7) contrast(0.8);
}

/* Carousel Styles */
.carousel-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

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

.collection-carousel {
    transition: opacity 0.7s ease-in-out;
    opacity: 0;
}

.dior-collection:hover .collection-carousel {
    opacity: 1 !important;
}

/* Product Options */
.option-btn {
    border: 1px solid #d1d5db;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    transition: all 0.2s;
    cursor: pointer;
}

.option-btn.selected {
    background-color: #B9975B;
    color: white;
    border-color: #B9975B;
}

.color-swatch {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    border: 2px solid #d1d5db;
    transition: all 0.2s;
}

.color-option {
    transition: all 0.2s ease-in-out;
}

.color-option.selected {
    border-color: #B9975B;
    background-color: rgba(185, 151, 91, 0.05);
}

.color-option:hover {
    border-color: #9ca3af;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.size-option {
    transition: all 0.2s ease-in-out;
}

.size-option:hover {
    border-color: #9ca3af;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.size-option.selected {
    border-color: #B9975B;
    background-color: #B9975B;
    color: white;
}

/* Category Filter Styles */
.category-filter-btn {
    color: #78716c;
}

.category-filter-btn.active {
    color: #1c1917;
    border-bottom-color: #1c1917 !important;
    font-weight: 600;
}

.sub-category-btn.active {
    background-color: #1c1917;
    color: white;
    border-color: #1c1917;
}

/* Shopping Bag Sidebar Animation */
#shopping-bag-sidebar {
    transform: translateX(100%);
}

#shopping-bag-sidebar.open {
    transform: translateX(0);
}

/* Bag Item Styles */
.bag-item {
    transition: all 0.3s ease;
}

.bag-item:hover {
    background-color: #fafaf9;
}

/* Badge Animation */
#bag-count {
    animation: bounceIn 0.3s ease;
}

@keyframes bounceIn {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}
