/*
Theme Name:         Joyas Shop Child
Theme URI:          https://example.com/joyas-shop-child
Description:        Child theme for the Joyas Shop WordPress theme.
Author:             Your Name
Author URI:         https://example.com
Template:           joyas-shop
Version:            1.0.0
Text Domain:        joyas-shop-child
*/

/* ==========================================================================
   Custom Styles Go Below This Line
   ========================================================================== */
/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: #333;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

/* 1. Announcement Bar */
.announcement-bar {
    background-color: #000;
    /* Darker tone for luxury */
    color: #fff;
    text-align: center;
    padding: 10px 0;
    font-size: 12px;
    letter-spacing: 2px;
    font-weight: 500;
}

/* 2. Main Header */
.main-header {
    background: #fff;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

/* Logo Styling */
.logo a {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 3px;
    color: #1a1a1a;
}

/* Navigation Links */
.nav-menu ul {
    display: flex;
    gap: 25px;
}

.nav-menu ul li a {
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    color: #555;
}

.nav-menu ul li a:hover,
.nav-menu ul li a.active {
    color: #000;
    border-bottom: 2px solid #000;
    padding-bottom: 5px;
}

/* Icons */
.header-icons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.icon,
.cart-icon {
    font-size: 18px;
    cursor: pointer;
    position: relative;
}

.header-icons small {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #000;
    color: #fff;
    font-size: 10px;
    padding: 2px 5px;
    border-radius: 50%;
}

.mobile-toggle {
    display: none;
    /* Hidden on desktop */
    font-size: 24px;
}

/* Responsive (Mobile) */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        /* We will create a mobile drawer later */
    }

    .mobile-toggle {
        display: block;
    }
}





/* 3. Hero Section Styling */
.hero {
    position: relative;
    background-color: #fdfdfd;
    overflow: hidden;
}

/* The Shine Sweep Effect */

.shimmer-layer {
    position: absolute;
    top: 0;
    left: -75%;
    width: 200%;
    height: 100%;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.05) 40%, rgba(255, 255, 255, 0.25) 50%, rgba(255, 255, 255, 0.05) 60%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-20deg);
    animation: soft-glow 3s linear infinite;
    pointer-events: none;
    z-index: 2;
}

@keyframes soft-glow {
    0% {
        transform: translateX(-75%) skewX(-20deg);
    }

    100% {
        transform: translateX(100%) skewX(-20deg);
    }
}

.hero-container {
    z-index: 2;
    position: relative;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    height: 80vh;
}

.hero-text {
    flex: 1;
}

.sub-title {
    font-size: 13px;
    letter-spacing: 4px;
    color: #888;
    margin-bottom: 15px;
    font-weight: 600;
}

.hero-text h1 {
    font-family: 'Playfair Display', serif;
    font-size: 52px;
    line-height: 1.2;
    color: #1a1a1a;
    margin-bottom: 20px;
}

.hero-text h1 span {
    color: #D4AF37;
    /* Gold color */
    font-style: italic;
}

.hero-text p {
    font-size: 16px;
    color: #666;
    max-width: 500px;
    margin-bottom: 30px;
}

/* Buttons */
.hero-btns {
    display: flex;
    gap: 15px;
}

.btn {
    padding: 15px 35px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 0;
    /* Square edges look more premium */
}

.btn-primary {
    background: #000;
    color: #fff;
}

.btn-primary:hover {
    background: #333;
}

.btn-secondary {
    border: 1px solid #000;
    color: #000;
}

.btn-secondary:hover {
    background: #f0f0f0;
}

.hero-image {
    flex: 1;
}

.hero-image img {
    width: 100%;
    height: auto;
    box-shadow: 20px 20px 0px #f4f4f4;
}

/* 4. Marquee Animation */
.marquee-section {
    background: #000;
    color: #fff;
    padding: 12px 0;
    overflow: hidden;
    white-space: nowrap;
}

.marquee-content {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    animation: marquee-scroll 25s linear infinite;
}

@keyframes marquee-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* Entrance Animations */
.animate-up {
    animation: fadeInUp 1s ease forwards;
}

.animate-fade {
    animation: fadeIn 1.5s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
        padding-top: 20px;
    }

    .hero-text h1 {
        font-size: 36px;
    }

    .hero-btns {
        justify-content: center;
    }
}



/* Product Grid */
/* 5. Product Grid Styles */
.product-section {
    padding: 80px 20px;
    background: #fff;
}

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

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.section-header p {
    color: #777;
    font-size: 14px;
}

/* Category Filters */
.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 50px;
}

.filter-tabs span {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    color: #999;
    text-transform: uppercase;
    transition: 0.3s;
}

.filter-tabs span.active,
.filter-tabs span:hover {
    color: #000;
    border-bottom: 1px solid #000;
}

/* The Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* 4 columns on desktop */
    gap: 30px;
}

.product-item {
    cursor: pointer;
}

.product-image {
    position: relative;
    overflow: hidden;
    background: #f9f9f9;
    aspect-ratio: 1/1;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.product-item:hover .product-image img {
    transform: scale(1.1);
}

/* Quick Add Button on Hover */
.quick-add {
    position: absolute;
    bottom: -50px;
    /* Hidden by default */
    left: 0;
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 1px;
    transition: 0.4s ease;
}

.product-item:hover .quick-add {
    bottom: 0;
}

/* Badge (New/Sale) */
.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #000;
    color: #fff;
    padding: 5px 12px;
    font-size: 10px;
    text-transform: uppercase;
}

/* Info Section */
.product-info {
    padding: 15px 0;
    text-align: center;
}

.product-info h3 {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 5px;
}

.product-price {
    font-weight: 600;
    color: #1a1a1a;
}

.view-all {
    text-align: center;
    margin-top: 50px;
}

/* Responsive Grid */
@media (max-width: 992px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2 columns on tablets/mobile */
    }
}



/* 6. Brand Story Styles */
.brand-story {
    padding: 100px 20px;
    background-color: #fafafa;
}

.flex-row {
    display: flex;
    align-items: center;
    gap: 60px;
}

.story-image {
    flex: 1;
}

.story-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
}

.story-text {
    flex: 1;
}

.story-text h2 {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    margin-bottom: 20px;
    line-height: 1.3;
}

.story-text p {
    margin-bottom: 20px;
    color: #555;
    font-size: 16px;
}

/* 7. Trust Bar Styles */
.trust-bar {
    padding: 60px 20px;
    background: #fff;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
}

.feature-item .f-icon {
    font-size: 30px;
    display: block;
    margin-bottom: 15px;
}

.feature-item h3 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.feature-item p {
    font-size: 12px;
    color: #888;
}

/* Responsive Story & Trust */
@media (max-width: 768px) {
    .flex-row {
        flex-direction: column;
        gap: 40px;
    }

    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}


/* 8. Instagram Section */
.instagram-section {
    padding: 80px 0;
    background: #fff;
}

.insta-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-top: 30px;
}

.insta-item {
    aspect-ratio: 1/1;
    overflow: hidden;
}

.insta-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s ease;
}

.insta-item:hover img {
    filter: brightness(0.7);
    transform: scale(1.05);
}

/* 9. Footer Styles */
.main-footer {
    background: #111;
    color: #fff;
    padding: 80px 20px 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col h3 {
    font-size: 14px;
    letter-spacing: 2px;
    margin-bottom: 25px;
    color: #D4AF37;
    /* Gold accent */
}

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

.footer-col ul li a {
    font-size: 13px;
    color: #bbb;
}

.footer-col ul li a:hover {
    color: #fff;
    padding-left: 5px;
}

.brand-col p {
    font-size: 14px;
    color: #bbb;
    margin: 20px 0;
    line-height: 1.8;
}

/* Newsletter Form */
.newsletter-form {
    display: flex;
    margin-top: 20px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px;
    border: none;
    background: #222;
    color: #fff;
    font-size: 13px;
}

.newsletter-form button {
    background: #D4AF37;
    color: #000;
    border: none;
    padding: 0 20px;
    font-weight: 700;
    cursor: pointer;
    font-size: 12px;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #222;
    padding-top: 30px;
    font-size: 11px;
    color: #666;
    letter-spacing: 1px;
}

/* Responsive Footer */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .insta-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
 

/* ==========================================
   Desktop Single Image Layout (Default)
   ========================================== */
.desktop-only-hero {
    display: block; /* Visible by default on laptops/desktops */
    width: 100%;
    height: auto;   /* Lets the banner maintain its proper proportions */
    background-color: #000;
}

.desktop-only-hero .hero-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Hide the slider machinery entirely on desktop layouts */
.mobile-only-slider {
    display: none !important; 
}


/* ==========================================
   Existing Slider Styles (Kept intact)
   ========================================== */
.hero-slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: #000;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 75%; 
    display: grid;
    grid-template-areas: "slide";
}

.hero-slide {
    grid-area: slide;
    width: 100%;
    height: 70vh; 
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.hero-slide picture,
.hero-image {
    width: 100%;
    height: 100%; 
    display: block;
    object-fit: cover; 
    object-position: center; 
}

/* Controls & UI Elements */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(4px);
    border: none;
    color: #fff;
    font-size: 1.5rem;
    padding: 12px 18px;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s ease;
    border-radius: 4px;
}
.slider-btn:hover { background: rgba(255, 255, 255, 0.5); }
.prev-btn { left: 20px; }
.next-btn { right: 20px; }

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}
.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}
.dot.active {
    background: #fff;
    transform: scale(1.2);
}


/* ==========================================
   Mobile-Responsive Breakpoint Viewport (Under 768px)
   ========================================== */
@media (max-width: 767px) {
    /* Hide the static desktop hero block on mobile devices */
    .desktop-only-hero {
        display: none !important;
    }

    /* Activate and reveal your mobile multi-slide carousel layout */
    .mobile-only-slider {
        display: block !important;
    }

    /* Force mobile aspect containment container rules */
    .hero-slider-container {
        height: 60vh; 
        min-height: 450px;
        max-height: 600px;
    }
}