/* =========================================
   Aura Crafts | Handmade Gift Brand
   Style Sheet
   ========================================= */

/* --- CSS Variables --- */
:root {
    --primary-color: #FAF7F2;      /* Warm beige background */
    --secondary-color: #8A9A8B;    /* Muted sage green */
    --accent-color: #D8A48F;       /* Soft blush / terracotta */
    --text-dark: #2C3E35;          /* Deep forest/charcoal */
    --text-muted: #647568;         /* Lighter text */
    --bg-light: #F2EFE8;           /* Slightly darker beige section bg */
    --white: #FFFFFF;
    --transition-speed: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    --shadow-soft: 0 10px 30px rgba(44, 62, 53, 0.08);
    --shadow-hover: 0 15px 40px rgba(44, 62, 53, 0.15);
}

/* --- Base & Resets --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--primary-color);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
    object-fit: cover;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-padding {
    padding: 100px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 3rem;
    color: var(--text-dark);
    letter-spacing: -0.5px;
}

.w-full {
    width: 100%;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 14px 32px;
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.2;
    border-radius: 50px;
    cursor: pointer;
    transition: transform var(--transition-speed), background var(--transition-speed), box-shadow var(--transition-speed);
    text-align: center;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--text-dark);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #1A251F;
    box-shadow: 0 8px 20px rgba(44, 62, 53, 0.4);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-dark);
    border: 1px solid var(--text-dark);
}

.btn-outline:hover {
    background-color: var(--text-dark);
    color: var(--white);
}

.btn-zoom:hover {
    transform: translateY(-3px) scale(1.02);
}

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: background var(--transition-speed), backdrop-filter var(--transition-speed), padding var(--transition-speed), box-shadow var(--transition-speed);
}

.navbar.scrolled {
    background: rgba(250, 247, 242, 0.85); /* Glassmorphism */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 15px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--secondary-color);
    font-weight: 400;
}

.nav-links a {
    margin-left: 30px;
    font-weight: 500;
    font-size: 1.05rem;
    position: relative;
    padding-bottom: 5px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--secondary-color);
    transition: width var(--transition-speed);
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--text-dark);
    margin: 5px 0;
    transition: 0.3s;
}

/* --- Modern Hero Section --- */
.hero-modern {
    position: relative;
    min-height: 100vh;
    padding: 140px 0 80px;
    display: flex;
    align-items: center;
    background-color: var(--primary-color);
    overflow: hidden;
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    opacity: 0.4;
}

.shape-1 {
    width: 600px;
    height: 600px;
    background: var(--accent-color);
    top: -100px;
    left: -200px;
}

.shape-2 {
    width: 500px;
    height: 500px;
    background: var(--secondary-color);
    bottom: -150px;
    right: -100px;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-text-content {
    max-width: 600px;
}

.hero-badge {
    display: inline-block;
    padding: 8px 18px;
    background: rgba(138, 154, 139, 0.15);
    color: var(--text-dark);
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 25px;
    backdrop-filter: blur(10px);
}

.hero-title {
    font-size: 4.5rem;
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -2px;
    color: var(--text-dark);
    margin-bottom: 25px;
}

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 40px;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    gap: 20px;
}

.hero-image-content {
    position: relative;
    width: 100%;
    height: 600px;
}

.hero-img-box {
    position: absolute;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-hover);
}

.img-main {
    width: 85%;
    height: 90%;
    top: 0;
    right: 0;
    z-index: 1;
}

.img-main img {
    height: 100%;
}

.img-sub {
    width: 45%;
    height: 45%;
    bottom: 0;
    left: 0;
    z-index: 2;
    border: 8px solid var(--primary-color);
}

.hero-floating-card {
    position: absolute;
    bottom: 50px;
    right: -20px;
    background: rgba(255, 255, 255, 0.9);
    padding: 20px 25px;
    border-radius: var(--border-radius-md);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    z-index: 3;
    backdrop-filter: blur(12px);
    max-width: 250px;
}

.hero-floating-card .stars {
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.hero-floating-card p {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-dark);
    line-height: 1.5;
    font-style: italic;
}

/* --- Product Categories --- */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 30px;
}

.category-card {
    position: relative;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    aspect-ratio: 4/5;
    box-shadow: var(--shadow-soft);
}

.category-img {
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 20px 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
    color: var(--white);
    display: flex;
    align-items: flex-end;
}

.category-overlay h3 {
    font-size: 1.5rem;
    font-weight: 500;
    transform: translateY(10px);
    transition: transform var(--transition-speed);
}

.category-card:hover .category-img {
    transform: scale(1.08); /* Smooth zoom */
}

.category-card:hover .category-overlay h3 {
    transform: translateY(0);
}

/* --- Featured Products --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 40px;
}

.product-card {
    background: var(--white);
    border-radius: var(--border-radius-md);
    padding: 20px;
    box-shadow: var(--shadow-soft);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.product-img-wrapper {
    position: relative;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    aspect-ratio: 1/1;
    margin-bottom: 20px;
}

.product-img-wrapper img {
    width: 100%;
    height: 100%;
    transition: transform var(--transition-speed);
}

.product-card:hover .product-img-wrapper img {
    transform: scale(1.05); /* Image zooms subtly inside card */
}

.product-info h4 {
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 8px;
}

.product-info .price {
    font-size: 1.1rem;
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 20px;
}

/* --- Reviews --- */
.review-grid { /* Re-using grid for reviews */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.review-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-soft);
    text-align: center;
}

.stars {
    color: var(--accent-color);
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.review-text {
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.customer-name {
    font-weight: 600;
    font-size: 1rem;
}

/* --- Gallery & Lightbox --- */
.gallery-masonry {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-auto-rows: 250px;
    gap: 20px;
    grid-auto-flow: dense;
}

.gallery-item {
    width: 100%;
    height: 100%;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: opacity var(--transition-speed), filter var(--transition-speed);
}

.gallery-item:hover {
    filter: brightness(85%); /* Subtle hover feedback */
}

/* Make some items span 2 columns/rows if enough space */
@media (min-width: 768px) {
    .gallery-item:nth-child(1) { grid-row: span 2; grid-column: span 2; }
    .gallery-item:nth-child(4) { grid-column: span 2; }
}

/* Lightbox Base */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity var(--transition-speed);
}

.lightbox.active {
    display: block;
    opacity: 1;
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
    border-radius: var(--border-radius-sm);
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
    animation: zoom 0.3s ease;
}

@keyframes zoom {
    from {transform:scale(0.9)} 
    to {transform:scale(1)}
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.lightbox-close:hover {
    color: var(--accent-color);
}

/* --- About Us --- */
.about-container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.about-image {
    flex: 1;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-hover);
}

/* --- Contact Section --- */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    background: var(--white);
    padding: 60px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-soft);
}

.contact-info h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.contact-info p {
    color: var(--text-muted);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.contact-details li {
    margin-bottom: 15px;
    font-size: 1.05rem;
}

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

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid #e0dfdc;
    border-radius: var(--border-radius-sm);
    background-color: var(--primary-color);
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    transition: border var(--transition-speed), box-shadow var(--transition-speed);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(138, 154, 139, 0.2);
}

/* --- Footer --- */
.footer {
    background-color: var(--text-dark);
    color: var(--white);
    padding: 80px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand h3 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.footer-brand p {
    color: #a8b8ae;
    max-width: 300px;
}

.footer-links h4,
.footer-social h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #a8b8ae;
    transition: color calc(var(--transition-speed) / 2);
}

.footer-links a:hover {
    color: var(--primary-color);
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.05);
    color: var(--white);
    transition: background var(--transition-speed), transform var(--transition-speed);
}

.social-icons a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    color: #a8b8ae;
    font-size: 0.9rem;
}

/* --- Page Header for Categories --- */
.page-header {
    padding: 180px 0 100px;
    background: linear-gradient(135deg, #FAF7F2, #F2EFE8);
    color: var(--text-dark);
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.page-header::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--accent-color) 0%, transparent 70%);
    opacity: 0.15;
    border-radius: 50%;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: -30%;
    right: 5%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--secondary-color) 0%, transparent 70%);
    opacity: 0.15;
    border-radius: 50%;
}

.page-header .section-title {
    color: var(--text-dark);
    font-size: 4rem;
    margin-bottom: 15px;
    letter-spacing: -1.5px;
    position: relative;
    z-index: 2;
}

.page-header p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    font-weight: 300;
}

/* --- Product Detail Page --- */
.product-detail-section {
    padding-top: 150px;
}
.product-detail-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    margin-top: 40px;
}

.product-detail-img {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.product-detail-img img {
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 4/5;
}

.product-detail-info h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 10px;
}

.product-detail-price {
    font-size: 1.8rem;
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 25px;
}

.product-detail-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.product-detail-actions {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.qty-input {
    width: 80px;
    padding: 10px;
    border: 1px solid #e0dfdc;
    border-radius: var(--border-radius-sm);
    text-align: center;
    font-size: 1.1rem;
}

.product-features {
    padding-top: 30px;
    border-top: 1px solid #e0dfdc;
}

.product-features li {
    margin-bottom: 10px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
}

.product-features li::before {
    content: "✓";
    color: var(--secondary-color);
    margin-right: 10px;
    font-weight: bold;
}

@media (max-width: 900px) {
    .product-detail-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* --- CSS On-Load Animations --- */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUpAnim 0.8s ease-out forwards;
}

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

/* --- Floating WhatsApp Button --- */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 65px;
    height: 65px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.whatsapp-float:hover {
    transform: scale(1.08) translateY(-5px);
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.4);
}

.whatsapp-float svg {
    width: 38px;
    height: 38px;
    fill: currentColor;
}

/* --- Reveal Animations (Handled by JS) --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

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

/* --- Overlay Component for Mobile Menu --- */
.menu-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s;
}
.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* --- Responsive Media Queries --- */
@media (max-width: 991px) {
    .section-padding { padding: 80px 0; }
    .hero-title { font-size: 3.5rem; }
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 40px;
    }
    .hero-text-content {
        margin: 0 auto;
    }
    .hero-actions {
        justify-content: center;
    }
    .hero-image-content {
        height: 500px;
        max-width: 600px;
        margin: 40px auto 0;
    }
    .hero-floating-card {
        right: 20px;
    }
    .about-container { flex-direction: column; text-align: center; }
    .contact-wrapper { grid-template-columns: 1fr; padding: 40px 30px; }
}

@media (max-width: 768px) {
    .section-padding { padding: 60px 0; }
    .product-detail-section { padding-top: 110px; }
    .page-header { padding: 100px 0 40px; }
    .page-header .section-title { font-size: 2.2rem; }
    .page-header p { font-size: 1rem; padding: 0 15px; }
    
    .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        height: 100vh;
        width: 70%;
        background-color: var(--primary-color);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: right var(--transition-speed) ease-in-out;
        box-shadow: -5px 0 20px rgba(0,0,0,0.1);
        z-index: 1000;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links a {
        margin: 15px 0;
        font-size: 1.3rem;
    }
    
    .mobile-menu-toggle {
        display: block;
        z-index: 1001;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .hero-modern { padding-top: 120px; }
    .hero-title { font-size: 2.8rem; letter-spacing: -1px; }
    .hero-subtitle { font-size: 1.1rem; }
    .hero-image-content { height: 400px; }
    .img-sub { width: 55%; height: 50%; border-width: 5px; }
    .hero-shape { filter: blur(50px); }
    .hero-floating-card { bottom: 20px; right: 10px; max-width: 200px; padding: 15px; }
    
    .product-detail-info h1 { font-size: 2.2rem; }
    .product-detail-img img { max-height: 50vh; object-fit: contain; background: #fff; }
    .product-detail-info { text-align: center; }
    .product-features li { justify-content: center; }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-brand p {
        margin: 0 auto;
    }
    
    .social-icons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 15px !important;
    }
    .hero-actions .btn {
        width: 100%;
        margin-bottom: 0;
    }
    .product-detail-actions {
        flex-direction: column;
    }
    .qty-input {
        width: 100%;
    }
}
