/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    scroll-behavior: smooth;
    background-color: var(--beige-100);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
}

/* Typography */
.gradient-text {
    background: linear-gradient(90deg, var(--blue-600) 0%, var(--blue-800) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Animations */
.animate-fade-in {
    animation: fadeIn 1s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-bounce {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* Interactive Elements */
.hover-scale {
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.03);
}

.btn-primary {
    background: linear-gradient(90deg, var(--blue-600) 0%, var(--blue-800) 100%);
}

.btn-primary:hover {
    background: linear-gradient(90deg, var(--blue-700) 0%, var(--blue-800) 100%);
}

.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.testimonial-card {
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-8px);
}

.nav-link {
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--blue-600);
}

.filter-btn {
    transition: all 0.3s ease;
}

.filter-btn:hover {
    transform: translateY(-2px);
}

/* Custom Cursor Styles */
.cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: rgba(15, 43, 84, 0.3);
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
    mix-blend-mode: difference;
    transition: transform 0.1s ease, width 0.3s ease, height 0.3s ease;
}

.cursor-dot {
    position: fixed;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--blue-600);
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
    transition: transform 0.1s ease;
}

.cursor-hover {
    width: 40px !important;
    height: 40px !important;
}

.cursor-link:hover {
    cursor: none !important;
}

/* Success Message */
.success-message {
    position: fixed;
    top: 20px;
    left: 20px;
    background: var(--blue-600);
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    z-index: 10001;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.5s ease;
    max-width: calc(100% - 100px);
}

.success-message.show {
    opacity: 1;
    transform: translateY(0);
}

/* WhatsApp Button */
.whatsapp-btn {
    background-color: #25D366;
    color: white;
    transition: all 0.3s ease;
}

.whatsapp-btn:hover {
    background-color: #128C7E;
    transform: translateY(-2px);
}

/* Variant Selectors */
.variant-group {
    margin-bottom: 15px;
}

.variant-label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: var(--blue-600);
}

.variant-select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--beige-300);
    border-radius: 6px;
    background-color: var(--beige-100);
    font-size: 16px;
    transition: all 0.2s;
}

.variant-select:focus {
    outline: none;
    border-color: var(--blue-600);
    box-shadow: 0 0 0 3px rgba(15, 43, 84, 0.1);
}

/* Color Swatches */
.color-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.color-swatch {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid var(--beige-300);
    cursor: pointer;
    transition: all 0.2s;
}

.color-swatch:hover {
    transform: scale(1.1);
    border-color: var(--blue-600);
}

.color-swatch.selected {
    border-color: var(--blue-600);
    box-shadow: 0 0 0 2px white, 0 0 0 4px var(--blue-600);
}

/* Size Guide */
.size-guide {
    font-size: 14px;
    color: var(--beige-300);
    margin-top: 5px;
    font-style: italic;
}

/* Product Badges */
.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--blue-600);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

/* Image Carousel */
.carousel-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.carousel-images {
    display: flex;
    transition: transform 0.5s ease;
     width: 100%;
}

.carousel-image {
    object-position: top; /* This ensures the top part is visible */
    min-width: 100%;
    object-fit: cover;
}

.carousel-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
}

.carousel-btn {
    background-color: rgba(15, 43, 84, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.carousel-btn:hover {
    background-color: rgba(15, 43, 84, 0.8);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    margin-top: 15px;
    gap: 8px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--beige-300);
    cursor: pointer;
    transition: all 0.3s;
}

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

/* Product Page */
.product-page {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--beige-100);
    z-index: 1000;
    overflow-y: auto;
    padding: 20px;
}

.product-page-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.close-product {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: rgba(15, 43, 84, 0.5);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10002;
    transition: background-color 0.3s;
}

.close-product:hover {
    background-color: rgba(15, 43, 84, 0.8);
}

/* Product Info Layout */
.product-info-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

@media (max-width: 768px) {
    .product-info-layout {
        grid-template-columns: 1fr;
    }
    
    .carousel-container {
        max-width: 100%;
    }
}

/* Product Specifications */
.specifications {
    background-color: var(--beige-200);
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--beige-300);
}

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

.spec-label {
    font-weight: 500;
    color: var(--blue-600);
}

.spec-value {
    color: var(--blue-600);
}

/* Price Display */
.price-display {
    font-size: 2rem;
    font-weight: 700;
    color: var(--blue-600);
    margin: 15px 0;
}

.price-range {
    color: var(--beige-300);
    font-size: 1.1rem;
}

/* WhatsApp Form */
.whatsapp-form {
    background-color: var(--beige-200);
    padding: 30px;
    border-radius: 10px;
    margin-top: 30px;
}

.whatsapp-form h3 {
    margin-bottom: 20px;
    color: var(--blue-600);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--blue-600);
}

.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--beige-300);
    border-radius: 6px;
    background-color: var(--beige-100);
    font-size: 16px;
}

.form-group textarea {
    height: 100px;
    resize: vertical;
}

/* Product Gallery Thumbnails */
.product-thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: thin;
}

.thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.thumbnail:hover, .thumbnail.active {
    border-color: var(--blue-600);
    transform: scale(1.05);
}

/* Custom Scrollbar */
.product-thumbnails::-webkit-scrollbar {
    height: 6px;
}

.product-thumbnails::-webkit-scrollbar-track {
    background: var(--beige-100);
    border-radius: 3px;
}

.product-thumbnails::-webkit-scrollbar-thumb {
    background: var(--beige-300);
    border-radius: 3px;
}

.product-thumbnails::-webkit-scrollbar-thumb:hover {
    background: var(--beige-200);
}

/* Image Gallery */
.gallery-container {
    position: relative;
    width: 100%;
    height: 100%;
}

#gallery-container {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease;
}

.gallery-image {
    min-width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}


/* Product Image 4:3 Aspect Ratio with Top Alignment */
.product-image-container {
    position: relative;
    width: 100%;
    padding-top: 125%; /* 4:3 aspect ratio (3/4 = 0.75) */
    overflow: hidden;
}

.product-image {
    position: absolute;
    top: 0px;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top; /* This ensures the top part is visible */
    transition: transform 0.5s ease;
}

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