/* Tablet Styles */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .product-title-container {
        max-width: 100%;
    }
    
    .product-title {
        font-size: 3.5rem;
    }
    
    .product-description {
        max-width: 100%;
        margin: 0 auto;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .essence-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .purchase-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .purchase-details {
        max-width: 100%;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    .luxury-toolbar {
        padding: 1rem;
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    section {
        padding: 4rem 1rem;
    }
    
    .hero-section {
        padding: 5rem 1rem 2rem;
    }
    
    .product-title {
        font-size: 2.8rem;
    }
    
    .product-tagline {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .experience-section, .gifting-section {
        padding: 5rem 1rem;
    }
    
    .poetry-line {
        font-size: 1.8rem;
    }
    
    .highlight-line {
        font-size: 2rem;
    }
    
    .gifting-line h2 {
        font-size: 2.5rem;
    }
    
    .essence-title {
        font-size: 2rem;
    }
    
    .essence-visual {
        height: 400px;
    }
    
    .card-item {
        width: 220px;
        height: 300px;
        padding: 1.5rem;
    }
    
    .valentine-title {
        font-size: 2rem;
    }
    
    .media-grid {
        display: none;
    }
    
    .media-carousel {
        display: block;
    }
    
    .media-title {
        font-size: 2.2rem;
    }
    
    .cart-panel {
        width: 100%;
        right: -100%;
    }
    
    .floating-menu {
        width: 100%;
        right: -100%;
    }
    
    .sticky-mobile-cta {
        display: block;
    }
    
    .purchase-title {
        font-size: 2.2rem;
    }
    
    .purchase-price {
        font-size: 1.8rem;
    }
    
    .hero-cta {
        position: relative;
        bottom: 0;
        left: 0;
        transform: none;
        margin-top: 2rem;
        width: 100%;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-links {
        align-items: center;
    }
}

/* Small Mobile Styles */
@media (max-width: 480px) {
    .product-title {
        font-size: 2.2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .feature-card {
        padding: 2rem 1rem;
    }
    
    .poetry-line {
        font-size: 1.5rem;
    }
    
    .highlight-line {
        font-size: 1.7rem;
    }
    
    .gifting-line h2 {
        font-size: 2rem;
    }
    
    .essence-visual {
        height: 350px;
    }
    
    .card-item {
        width: 180px;
        height: 250px;
        padding: 1.2rem;
    }
    
    .card-content h4 {
        font-size: 1.2rem;
    }
    
    .card-content p {
        font-size: 0.9rem;
    }
    
    .valentine-title {
        font-size: 1.8rem;
    }
    
    .media-title {
        font-size: 1.8rem;
    }
    
    .purchase-title {
        font-size: 1.8rem;
    }
}


/* =================================================
   GLOBAL RESPONSIVE NORMALIZATION
================================================= */

img, video {
    max-width: 100%;
    height: auto;
}

section {
    overflow-x: hidden;
}

/* Prevent 3D transforms breaking small screens */
@media (max-width: 1024px) {
    .product-3d-wrapper,
    .xo-frame,
    .product-image-container {
        transform: none !important;
    }
}

/* =================================================
   HERO SECTION
================================================= */

@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .product-visual {
        margin-top: 3rem;
    }
}

@media (max-width: 768px) {
    .product-title {
        font-size: 2.4rem;
    }

    .product-tagline {
        font-size: 1.1rem;
    }

    .product-description {
        font-size: 1rem;
    }

    .hero-cta {
        width: 100%;
        max-width: 280px;
    }
}

/* =================================================
   ESSENCE IMAGE STACK
================================================= */

@media (max-width: 1024px) {
    .essence-content {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .essence-image-stack {
        height: 420px;
    }
}

@media (max-width: 768px) {
    .essence-image-stack {
        height: auto;
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }

    .essence-image {
        position: relative;
        width: 100%;
        height: 360px;
        transform: none !important;
    }
}

/* =================================================
   LUXURY IMAGE LIGHTBOX
================================================= */

@media (max-width: 768px) {
    .xo-lightbox-frame {
        width: 90vw;
        max-width: 360px;
    }

    .xo-prev {
        left: -40px;
    }

    .xo-next {
        right: -40px;
    }
}

/* =================================================
   MEDIA GRID / VIDEO REELS
================================================= */

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

@media (max-width: 768px) {
    .media-grid {
        display: none;
    }

    .media-carousel {
        display: block;
        height: 320px;
    }
}

/* =================================================
   VALENTINE SECTION
================================================= */

@media (max-width: 768px) {
    .valentine-title {
        font-size: 2.2rem;
    }

    .valentine-title span {
        font-size: 1.8rem;
    }

    .valentine-description {
        font-size: 1.05rem;
    }

    .valentine-border {
        inset: 12px;
    }
}

/* =================================================
   PURCHASE SECTION (CRITICAL)
================================================= */

@media (max-width: 1024px) {
    .purchase-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .purchase-image {
        max-width: 420px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .purchase-title {
        font-size: 2.1rem;
    }

    .purchase-price {
        font-size: 1.8rem;
    }

    .purchase-description {
        font-size: 1rem;
    }

    .purchase-cta {
        width: 100%;
    }
}

/* =================================================
   CART PANEL (MOBILE)
================================================= */

@media (max-width: 768px) {
    .cart-panel {
        width: 100%;
        right: -100%;
    }

    .cart-panel.active {
        right: 0;
    }
}

/* =================================================
   FLOATING MENUS
================================================= */

@media (max-width: 768px) {
    .floating-menu {
        width: 100%;
    }
}

/* =================================================
   FOOTER
================================================= */

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .footer-social {
        justify-content: center;
    }
}

/* =================================================
   PERFORMANCE SAFETY (MOBILE)
================================================= */

@media (max-width: 768px) {
    .floating-elements,
    .morphing-shapes {
        opacity: 0.015;
    }

    .pulse,
    .bounce,
    .rotate {
        animation-duration: 4s;
    }
}
