/* style.css - Luxury Beauty Shared Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #D4A5A5;    /* Soft rose */
    --secondary: #F8EDEB;  /* Cream */
    --accent: #9D8189;     /* Muted mauve */
    --dark: #4A4A4A;       /* Charcoal */
    --light: #FFF9F6;      /* Ivory */
    --gold: #D4AF37;       /* Gold accent */
}

body {
    font-family: 'Cormorant Garamond', serif;
    background: linear-gradient(135deg, var(--light) 0%, var(--secondary) 100%);
    color: var(--dark);
    min-height: 100vh;
}

/* Navigation */
.luxury-nav {
    background: rgba(255, 249, 246, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(212, 165, 165, 0.3);
    padding: 1.5rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    text-decoration: none;
    letter-spacing: 2px;
}

.logo span {
    color: var(--gold);
}

.nav-links {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-icons {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.icon-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--accent);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.icon-btn:hover {
    transform: scale(1.1);
    color: var(--gold);
}

.cart-count {
    background: var(--gold);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    position: absolute;
    top: -5px;
    right: -5px;
}

/* Footer */
.luxury-footer {
    background: var(--dark);
    color: var(--light);
    padding: 4rem 2rem;
    margin-top: auto;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
}

.footer-section h3 {
    color: var(--gold);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section ul li a {
    color: var(--light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--gold);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    color: var(--light);
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--gold);
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-family: 'Cormorant Garamond', serif;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(157, 129, 137, 0.2);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

/* Form Elements */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--dark);
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid rgba(212, 165, 165, 0.3);
    background: rgba(255, 255, 255, 0.9);
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links {
        gap: 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    /* Legal Pages Specific Styles */

.legal-container {
    max-width: 1000px;
    margin: 120px auto 4rem;
    padding: 0 2rem;
    min-height: 70vh;
}

.legal-header {
    text-align: center;
    margin-bottom: 4rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(212, 165, 165, 0.3);
}

.legal-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.legal-header .last-updated {
    color: #666;
    font-style: italic;
}

.legal-content {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(212, 165, 165, 0.1);
}

.legal-section {
    margin-bottom: 3rem;
}

.legal-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(212, 165, 165, 0.2);
}

.legal-section h3 {
    color: var(--dark);
    margin: 1.5rem 0 1rem;
    font-size: 1.3rem;
}

.legal-section p {
    line-height: 1.8;
    color: #555;
    margin-bottom: 1rem;
}

.legal-section ul, .legal-section ol {
    margin: 1rem 0 1rem 2rem;
    color: #555;
    line-height: 1.8;
}

.legal-section li {
    margin-bottom: 0.8rem;
}

/* Back to home link */
.back-to-home {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.back-to-home:hover {
    color: var(--accent);
}

}
/* Add these styles to your existing style.css */

/* Image Styles */
.product-image {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--secondary), var(--light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.image-placeholder i {
    font-size: 2rem;
    opacity: 0.5;
}

/* Hero Image Styles */
.hero-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
}

.hero-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(212, 165, 165, 0.1), rgba(157, 129, 137, 0.1));
}

/* Category Image Styles */
.category-image {
    width: 100%;
    height: 200px;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    position: relative;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-card:hover .category-image img {
    transform: scale(1.1);
}

/* Product Gallery Styles */
.product-gallery-main {
    width: 100%;
    height: 500px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.product-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-thumbnails {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.thumbnail-image {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.thumbnail-image.active {
    border-color: var(--primary);
}

.thumbnail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Cart Item Images */
.cart-item-image {
    width: 120px;
    height: 120px;
    border-radius: 10px;
    overflow: hidden;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Loading Animation for Images */
.image-loading {
    position: relative;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Responsive Image Styles */
@media (max-width: 768px) {
    .product-gallery-main {
        height: 400px;
    }
    
    .category-image {
        height: 150px;
    }
    
    .cart-item-image {
        width: 80px;
        height: 80px;
    }
}

/* Image Overlay Effects */
.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,0.3));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .image-overlay {
    opacity: 1;
}

/* Badge Positioning on Images */
.image-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2;
}
/* ============================================
   IMAGE MANAGEMENT SYSTEM
   ============================================ */

/* Image Container Base Styles */
.image-container {
    position: relative;
    overflow: hidden;
    background: var(--light);
}

/* Aspect Ratio Classes */
.aspect-ratio-1-1 {
    aspect-ratio: 1 / 1;
}

.aspect-ratio-4-3 {
    aspect-ratio: 4 / 3;
}

.aspect-ratio-3-4 {
    aspect-ratio: 3 / 4;
}

.aspect-ratio-16-9 {
    aspect-ratio: 16 / 9;
}

.aspect-ratio-21-9 {
    aspect-ratio: 21 / 9;
}

/* Product Image Sizes */
.product-image-small {
    width: 120px;
    height: 120px;
}

.product-image-medium {
    width: 250px;
    height: 250px;
}

.product-image-large {
    width: 400px;
    height: 400px;
}

.product-image-xlarge {
    width: 600px;
    height: 600px;
}

/* Fixed Height Containers */
.image-height-xs { height: 100px; }
.image-height-sm { height: 200px; }
.image-height-md { height: 300px; }
.image-height-lg { height: 400px; }
.image-height-xl { height: 500px; }
.image-height-xxl { height: 600px; }

/* Image Object Fit */
.img-cover {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.img-contain {
    object-fit: contain;
    width: 100%;
    height: 100%;
}

.img-fill {
    object-fit: fill;
    width: 100%;
    height: 100%;
}

/* Responsive Image Classes */
.img-responsive {
    max-width: 100%;
    height: auto;
}

.img-fluid {
    width: 100%;
    height: auto;
}

/* Image Loading States */
.img-loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Image Hover Effects */
.img-hover-zoom {
    transition: transform 0.5s ease;
}

.img-hover-zoom:hover {
    transform: scale(1.05);
}

.img-hover-zoom-slow {
    transition: transform 0.8s ease;
}

.img-hover-zoom-slow:hover {
    transform: scale(1.08);
}

.img-hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.img-hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(212, 165, 165, 0.3);
}

/* Image Overlay Effects */
.img-overlay {
    position: relative;
}

.img-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.1) 50%, rgba(0,0,0,0.3) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.img-overlay:hover::after {
    opacity: 1;
}

/* Image Borders & Radius */
.img-rounded-sm { border-radius: 8px; }
.img-rounded-md { border-radius: 15px; }
.img-rounded-lg { border-radius: 25px; }
.img-rounded-full { border-radius: 50%; }

.img-border-thin {
    border: 1px solid rgba(212, 165, 165, 0.2);
}

.img-border-thick {
    border: 3px solid rgba(212, 165, 165, 0.3);
}

.img-border-gold {
    border: 2px solid var(--gold);
}

/* Image Shadow Effects */
.img-shadow-sm {
    box-shadow: 0 2px 10px rgba(212, 165, 165, 0.1);
}

.img-shadow-md {
    box-shadow: 0 5px 20px rgba(212, 165, 165, 0.15);
}

.img-shadow-lg {
    box-shadow: 0 10px 30px rgba(212, 165, 165, 0.2);
}

/* ============================================
   SPECIFIC PAGE IMAGE STYLES
   ============================================ */

/* Homepage Image Styles */
.hero-main-image {
    width: 100%;
    height: 500px;
    max-height: 70vh;
}

@media (max-width: 768px) {
    .hero-main-image {
        height: 300px;
    }
}

.category-card-image {
    width: 100%;
    height: 200px;
}

.featured-product-image {
    width: 100%;
    height: 250px;
}

/* Shop Page Image Styles */
.product-grid-image {
    width: 100%;
    height: 300px;
}

.product-list-image {
    width: 150px;
    height: 150px;
}

/* Product Detail Page */
.product-gallery-main-image {
    width: 100%;
    height: 500px;
    max-height: 70vh;
}

.product-thumbnail-image {
    width: 80px;
    height: 80px;
}

.related-product-image {
    width: 100%;
    height: 200px;
}

/* Cart Page */
.cart-item-image {
    width: 120px;
    height: 120px;
}

/* Checkout Page */
.checkout-item-image {
    width: 60px;
    height: 60px;
}

/* Legal Pages */
.legal-icon-image {
    width: 80px;
    height: 80px;
}

/* ============================================
   IMAGE GRID LAYOUTS
   ============================================ */

.image-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.image-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.image-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.image-grid-auto {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

/* Masonry Grid */
.masonry-grid {
    column-count: 3;
    column-gap: 1rem;
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .masonry-grid {
        column-count: 2;
    }
}

@media (max-width: 480px) {
    .masonry-grid {
        column-count: 1;
    }
}

/* ============================================
   IMAGE GALLERY STYLES
   ============================================ */

.gallery-container {
    position: relative;
}

.gallery-main {
    margin-bottom: 1rem;
}

.gallery-thumbs {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.gallery-thumb {
    flex: 0 0 auto;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-thumb.active {
    border-color: var(--primary);
}

/* ============================================
   IMAGE ZOOM FUNCTIONALITY
   ============================================ */

.img-zoom-container {
    position: relative;
    overflow: hidden;
    cursor: zoom-in;
}

.img-zoom-lens {
    position: absolute;
    border: 1px solid var(--primary);
    width: 100px;
    height: 100px;
    opacity: 0.3;
    pointer-events: none;
    display: none;
}

.img-zoom-result {
    position: absolute;
    border: 1px solid rgba(212, 165, 165, 0.3);
    border-radius: 10px;
    background-repeat: no-repeat;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 1000;
    display: none;
}

/* ============================================
   RESPONSIVE IMAGE BREAKPOINTS
   ============================================ */

/* Small devices (phones, 600px and down) */
@media (max-width: 600px) {
    .product-grid-image {
        height: 200px;
    }
    
    .featured-product-image {
        height: 180px;
    }
    
    .category-card-image {
        height: 150px;
    }
    
    .product-gallery-main-image {
        height: 300px;
    }
    
    .cart-item-image {
        width: 80px;
        height: 80px;
    }
    
    .image-grid-4,
    .image-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Medium devices (tablets, 768px and down) */
@media (max-width: 768px) {
    .product-grid-image {
        height: 250px;
    }
    
    .image-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-main-image {
        height: 350px;
    }
}

/* Large devices (laptops/desktops, 992px and down) */
@media (max-width: 992px) {
    .product-gallery-main-image {
        height: 400px;
    }
    
    .image-grid-4 {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Extra large devices (large laptops and desktops, 1200px and up) */
@media (min-width: 1200px) {
    .product-gallery-main-image {
        height: 600px;
    }
}

/* ============================================
   IMAGE BACKGROUND STYLES
   ============================================ */

.bg-image-cover {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.bg-image-contain {
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.bg-image-parallax {
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}

.bg-image-gradient {
    background: linear-gradient(135deg, rgba(212, 165, 165, 0.1), rgba(248, 237, 235, 0.2));
}

/* ============================================
   IMAGE CAPTION & OVERLAY TEXT
   ============================================ */

.image-with-caption {
    position: relative;
}

.image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.image-with-caption:hover .image-caption {
    transform: translateY(0);
}

/* ============================================
   LAZY LOADING STYLES
   ============================================ */

.lazy-image {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lazy-image.loaded {
    opacity: 1;
}

/* ============================================
   IMAGE FILTERS
   ============================================ */

.img-filter-grayscale {
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.img-filter-grayscale:hover {
    filter: grayscale(0%);
}

.img-filter-brightness {
    filter: brightness(1.1);
}

.img-filter-contrast {
    filter: contrast(1.2);
}

.img-filter-sepia {
    filter: sepia(0.3);
}

/* ============================================
   PRODUCT BADGE POSITIONING
   ============================================ */

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.product-badge.badge-new {
    background: var(--primary);
    color: white;
}

.product-badge.badge-sale {
    background: var(--gold);
    color: white;
}

.product-badge.badge-popular {
    background: var(--accent);
    color: white;
}

.product-badge.badge-limited {
    background: #9D8189;
    color: white;
}

/* ============================================
   IMAGE FALLBACK STYLES
   ============================================ */

.image-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--secondary), var(--light));
    color: var(--primary);
}

.image-fallback i {
    font-size: 2rem;
    opacity: 0.5;
}

/* ============================================
   CUSTOM IMAGE UTILITY CLASSES
   ============================================ */

/* Center images */
.img-center {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Float images */
.img-float-left {
    float: left;
    margin-right: 1rem;
    margin-bottom: 1rem;
}

.img-float-right {
    float: right;
    margin-left: 1rem;
    margin-bottom: 1rem;
}

/* Clear floats */
.clearfix::after {
    content: "";
    clear: both;
    display: table;
}

/* Image max-width constraints */
.img-max-width-100 { max-width: 100px; }
.img-max-width-200 { max-width: 200px; }
.img-max-width-300 { max-width: 300px; }
.img-max-width-400 { max-width: 400px; }
.img-max-width-500 { max-width: 500px; }
.img-max-width-600 { max-width: 600px; }

/* Image min-width constraints */
.img-min-width-100 { min-width: 100px; }
.img-min-width-200 { min-width: 200px; }
.img-min-width-300 { min-width: 300px; }

/* Image alignment in flex containers */
.img-flex-center {
    align-self: center;
}

.img-flex-start {
    align-self: flex-start;
}

.img-flex-end {
    align-self: flex-end;
}

/* ============================================
   PRINT STYLES FOR IMAGES
   ============================================ */

@media print {
    .no-print {
        display: none !important;
    }
    
    .print-img-bw {
        filter: grayscale(100%);
    }
    
    .print-img-avoid-break {
        page-break-inside: avoid;
    }
}