/* ========================================
   DIGICAMS SG - Main Stylesheet
   ======================================== */

/* Font Face */
@font-face {
    font-family: 'PixelFont';
    src: local('Courier New');
    font-weight: normal;
}

/* CSS Variables */
:root {
    --primary: #ff6b9d;
    --secondary: #c44dff;
    --accent: #00ffcc;
    --dark: #0a0a0f;
    --light: #f0e6d3;
    --grain-opacity: 0.05;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect x="11" y="0" width="2" height="24" fill="%23ff6b9d"/><rect x="0" y="11" width="24" height="2" fill="%23ff6b9d"/><rect x="10" y="10" width="4" height="4" fill="none" stroke="%23ff6b9d" stroke-width="1"/></svg>') 12 12, crosshair;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background: var(--dark);
    color: var(--light);
    overflow-x: hidden;
    line-height: 1.6;
    min-height: 100vh;
}

/* Noise Overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: var(--grain-opacity);
    background-image: url('data:image/svg+xml,<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"><filter id="noise"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="4" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23noise)"/></svg>');
}

/* Video Background */
.video-bg {
    position: fixed;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    z-index: -2;
    overflow: hidden;
}

.video-bg::after {
    content: '';
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.1) 0%, rgba(196, 77, 255, 0.1) 50%, rgba(0, 255, 204, 0.05) 100%);
    animation: colorShift 10s ease-in-out infinite;
}

@keyframes colorShift {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.6;
    }
}

.light-leak {
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background: radial-gradient(ellipse at 20% 30%, rgba(255, 107, 157, 0.4) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(196, 77, 255, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(0, 255, 204, 0.2) 0%, transparent 60%);
    animation: leakMove 15s ease-in-out infinite;
}

@keyframes leakMove {

    0%,
    100% {
        transform: scale(1) translate(0, 0);
        opacity: 0.6;
    }

    33% {
        transform: scale(1.15) translate(5%, -3%);
        opacity: 0.8;
    }

    66% {
        transform: scale(1.05) translate(-3%, 5%);
        opacity: 0.5;
    }
}

/* ========================================
   NAVIGATION
   ======================================== */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: linear-gradient(to bottom, rgba(10, 10, 15, 0.9) 0%, transparent 100%);
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.logo-img {
    height: 120px;
    width: auto;
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 0 transparent);
}

.logo:hover .logo-img {
    filter: drop-shadow(0 0 10px var(--primary));
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--light);
    text-decoration: none;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary), 2px 0 0 var(--accent), -2px 0 0 var(--secondary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary);
    transition: width 0.3s ease;
}

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

/* Mobile Menu */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
}

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

/* ========================================
   COMMON ELEMENTS
   ======================================== */
.page-container {
    padding-top: 80px;
    min-height: 100vh;
}

.section-title {
    font-family: 'Courier New', monospace;
    font-size: clamp(2rem, 5vw, 3.5rem);
    letter-spacing: 0.3em;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--primary);
}

.page-header {
    padding: 4rem 3rem 2rem;
    text-align: center;
}

.page-content {
    padding: 2rem 3rem 6rem;
}

/* Home Page Sections */
.home-section {
    padding: 6rem 3rem;
    text-align: center;
}

.home-about {
    max-width: 900px;
    margin: 0 auto;
}

.home-about .manifesto {
    margin-bottom: 2rem;
}

.home-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.home-gallery .gallery-item {
    aspect-ratio: 1;
    margin-bottom: 0;
}

.home-gallery .gallery-img {
    height: 100%;
    object-fit: cover;
}

@media (max-width: 900px) {
    .home-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .home-gallery {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .home-section {
        padding: 4rem 1.5rem;
    }
}



/* Buttons */
.btn-primary {
    padding: 1rem 3rem;
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    font-size: 1rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary:hover {
    background: var(--primary);
    color: var(--dark);
    box-shadow: 0 0 30px var(--primary), inset 0 0 20px rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.btn-secondary {
    padding: 0.6rem 1.5rem;
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-secondary:hover {
    background: var(--accent);
    color: var(--dark);
}

/* Handwritten Notes */
.handwritten {
    font-family: 'Brush Script MT', 'Segoe Script', cursive;
    color: var(--accent);
    font-size: 1.2rem;
    position: absolute;
    transform: rotate(-5deg);
    opacity: 0.8;
}

/* ========================================
   HERO SECTION (Home Page)
   ======================================== */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding: 2rem;
}

.hero-title {
    font-family: 'Courier New', monospace;
    font-size: clamp(3rem, 12vw, 10rem);
    letter-spacing: 0.5em;
    margin-left: 0.5em;
    color: var(--light);
    text-shadow: 3px 3px 0 var(--primary), -3px -3px 0 var(--accent);
    animation: glitchTitle 5s ease-in-out infinite;
    line-height: 1.1;
}

.hero-title-sg {
    display: block;
    font-size: 0.6em;
    letter-spacing: 0.8em;
    color: var(--primary);
    text-shadow: 2px 2px 0 var(--secondary), -2px -2px 0 var(--accent);
    margin-top: 0.2em;
}

@keyframes glitchTitle {

    0%,
    90%,
    100% {
        text-shadow: 3px 3px 0 var(--primary), -3px -3px 0 var(--accent);
    }

    92% {
        text-shadow: -3px 3px 0 var(--secondary), 3px -3px 0 var(--primary);
    }

    94% {
        text-shadow: 3px -3px 0 var(--accent), -3px 3px 0 var(--secondary);
    }
}

/* Hero Logo */
.hero-logo {
    max-width: 90vw;
    width: 1200px;
    height: auto;
    filter: drop-shadow(3px 3px 0 var(--primary)) drop-shadow(-3px -3px 0 var(--accent));
    animation: glitchLogo 5s ease-in-out infinite;
}

@keyframes glitchLogo {

    0%,
    90%,
    100% {
        filter: drop-shadow(3px 3px 0 var(--primary)) drop-shadow(-3px -3px 0 var(--accent));
    }

    92% {
        filter: drop-shadow(-3px 3px 0 var(--secondary)) drop-shadow(3px -3px 0 var(--primary));
    }

    94% {
        filter: drop-shadow(3px -3px 0 var(--accent)) drop-shadow(-3px 3px 0 var(--secondary));
    }
}

.hero-tagline {
    font-size: clamp(1rem, 3vw, 1.5rem);
    margin-top: 2rem;
    opacity: 0.8;
    letter-spacing: 3px;
    font-style: italic;
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-indicator svg {
    width: 30px;
    height: 30px;
    fill: var(--light);
    opacity: 0.5;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(10px);
    }
}

/* ========================================
   ABOUT PAGE
   ======================================== */
.about-container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

.manifesto {
    font-size: 1.3rem;
    line-height: 2;
    text-align: center;
    opacity: 0.9;
    margin-bottom: 3rem;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.about-card {
    background: rgba(20, 20, 30, 0.6);
    border: 1px solid rgba(255, 107, 157, 0.2);
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.about-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.about-card h3 {
    font-family: 'Courier New', monospace;
    color: var(--primary);
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.note-1 {
    top: -30px;
    right: -20px;
}

.note-2 {
    bottom: 20px;
    left: -40px;
    transform: rotate(8deg);
}

/* ========================================
   PRODUCTS PAGE
   ======================================== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.product-card {
    background: rgba(20, 20, 30, 0.8);
    border: 1px solid rgba(255, 107, 157, 0.3);
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.4s ease;
    position: relative;
}

.product-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(255, 107, 157, 0.2), 0 0 60px rgba(196, 77, 255, 0.1);
    border-color: var(--primary);
}

.viewfinder {
    position: relative;
    aspect-ratio: 4/3;
    background: #1a1a25;
    overflow: hidden;
}

.viewfinder-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 3px solid rgba(255, 255, 255, 0.1);
    pointer-events: none;
    z-index: 2;
}

.viewfinder-corner {
    position: absolute;
    width: 20px;
    height: 20px;
    border-color: var(--primary);
    border-style: solid;
}

.viewfinder-corner.tl {
    top: 10px;
    left: 10px;
    border-width: 2px 0 0 2px;
}

.viewfinder-corner.tr {
    top: 10px;
    right: 10px;
    border-width: 2px 2px 0 0;
}

.viewfinder-corner.bl {
    bottom: 10px;
    left: 10px;
    border-width: 0 0 2px 2px;
}

.viewfinder-corner.br {
    bottom: 10px;
    right: 10px;
    border-width: 0 2px 2px 0;
}

.rec-indicator {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: 'Courier New', monospace;
    font-size: 0.7rem;
    color: #ff3333;
    z-index: 3;
}

.rec-dot {
    width: 8px;
    height: 8px;
    background: #ff3333;
    border-radius: 50%;
    animation: recBlink 1s infinite;
}

@keyframes recBlink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

.battery {
    position: absolute;
    top: 15px;
    left: 15px;
    font-family: 'Courier New', monospace;
    font-size: 0.7rem;
    color: var(--accent);
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 4px;
}

.battery-icon {
    width: 18px;
    height: 10px;
    border: 1px solid var(--accent);
    border-radius: 2px;
    position: relative;
}

.battery-icon::before {
    content: '';
    position: absolute;
    right: -4px;
    top: 2px;
    width: 3px;
    height: 5px;
    background: var(--accent);
    border-radius: 0 2px 2px 0;
}

.battery-level {
    position: absolute;
    left: 1px;
    top: 1px;
    height: calc(100% - 2px);
    width: 70%;
    background: var(--accent);
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: contrast(0.9) saturate(0.85) sepia(0.1);
    transition: all 0.4s ease;
}

.product-card:hover .product-image {
    filter: contrast(1) saturate(1) sepia(0) blur(1px);
    animation: chromatic 0.3s ease;
}

@keyframes chromatic {
    0% {
        filter: contrast(1) saturate(1);
    }

    25% {
        filter: contrast(1.1) saturate(1.2) hue-rotate(5deg);
    }

    50% {
        filter: contrast(0.9) saturate(0.8) hue-rotate(-5deg);
    }

    75% {
        filter: contrast(1.05) saturate(1.1) hue-rotate(2deg);
    }

    100% {
        filter: contrast(1) saturate(1) blur(1px);
    }
}

.date-stamp {
    position: absolute;
    bottom: 15px;
    right: 15px;
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    color: #ff9933;
    z-index: 3;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
}

.product-info {
    padding: 1.5rem;
    text-align: center;
}

.product-name {
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.product-price {
    color: var(--primary);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

/* Filter Controls */
.filter-bar {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.filter-btn {
    padding: 0.5rem 1.5rem;
    background: transparent;
    border: 1px solid rgba(255, 107, 157, 0.3);
    color: var(--light);
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    border-color: var(--primary);
    color: var(--primary);
}

/* ========================================
   GALLERY PAGE
   ======================================== */
.gallery-grid {
    columns: 4;
    column-gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 1.5rem;
    position: relative;
    background: var(--light);
    padding: 15px;
    transform: rotate(var(--rotation, 0deg));
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.gallery-item:nth-child(odd) {
    --rotation: -2deg;
}

.gallery-item:nth-child(even) {
    --rotation: 2deg;
}

.gallery-item:nth-child(3n) {
    --rotation: -1deg;
}

.gallery-item:hover {
    transform: rotate(0deg) scale(1.12);
    padding: 20px;
    z-index: 10;
    box-shadow: 0 15px 40px rgba(255, 107, 157, 0.3);
}

.gallery-img {
    width: 100%;
    filter: contrast(0.95) saturate(0.9) brightness(1.05);
    display: block;
}

.gallery-caption {
    display: block;
    padding: 0.8rem 0.5rem 0.4rem;
    font-family: 'Courier New', monospace;
    color: #333;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    text-align: center;
    background: var(--light);
}

/* ========================================
   CONTACT PAGE
   ======================================== */
.contact-container {
    max-width: 800px;
    margin: 0 auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--primary);
}

.form-group input,
.form-group textarea {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 107, 157, 0.3);
    color: var(--light);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(255, 107, 157, 0.2);
}

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

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-item svg {
    width: 24px;
    height: 24px;
    fill: var(--primary);
}

.contact-item a {
    color: var(--light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--primary);
}

.social-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
}

.social-links a {
    width: 50px;
    height: 50px;
    border: 1px solid rgba(255, 107, 157, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-links a:hover {
    border-color: var(--primary);
    background: rgba(255, 107, 157, 0.1);
}

.social-links svg {
    width: 24px;
    height: 24px;
    fill: var(--light);
    transition: fill 0.3s ease;
}

.social-links a:hover svg {
    fill: var(--primary);
}

/* ========================================
   FOOTER
   ======================================== */
footer {
    background: rgba(5, 5, 10, 0.95);
    padding: 4rem 3rem 2rem;
    text-align: center;
    margin-top: auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--light);
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.footer-links svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.newsletter {
    max-width: 500px;
    margin: 0 auto 3rem;
}

.newsletter h3 {
    font-family: 'Brush Script MT', 'Segoe Script', cursive;
    font-size: 1.8rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.newsletter-form input {
    flex: 1;
    min-width: 200px;
    padding: 0.8rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 107, 157, 0.3);
    color: var(--light);
    font-size: 0.9rem;
}

.newsletter-form input::placeholder {
    color: rgba(240, 230, 211, 0.5);
}

.newsletter-form button {
    padding: 0.8rem 2rem;
    background: var(--primary);
    border: none;
    color: var(--dark);
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    background: var(--secondary);
    transform: scale(1.05);
}

.copyright {
    font-size: 0.8rem;
    opacity: 0.5;
    letter-spacing: 2px;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 768px) {
    nav {
        padding: 1rem 1.5rem;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        background: rgba(10, 10, 15, 0.98);
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        gap: 1.5rem;
        transform: translateY(-150%);
        transition: transform 0.3s ease;
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .page-header,
    .page-content {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .hero-title {
        letter-spacing: 0.2em;
        margin-left: 0.2em;
    }

    .gallery-grid {
        columns: 2;
        column-gap: 1rem;
    }

    .handwritten {
        display: none;
    }

    .footer-links {
        gap: 1.5rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        columns: 1;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   SCROLL ANIMATIONS (Improvement #7)
   ======================================== */
.scroll-animate {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-animate.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animation for grid items */
.products-grid .scroll-animate:nth-child(1) {
    transition-delay: 0.1s;
}

.products-grid .scroll-animate:nth-child(2) {
    transition-delay: 0.2s;
}

.products-grid .scroll-animate:nth-child(3) {
    transition-delay: 0.3s;
}

.products-grid .scroll-animate:nth-child(4) {
    transition-delay: 0.4s;
}

.products-grid .scroll-animate:nth-child(5) {
    transition-delay: 0.5s;
}

.products-grid .scroll-animate:nth-child(6) {
    transition-delay: 0.6s;
}

.home-gallery .scroll-animate:nth-child(1) {
    transition-delay: 0.1s;
}

.home-gallery .scroll-animate:nth-child(2) {
    transition-delay: 0.15s;
}

.home-gallery .scroll-animate:nth-child(3) {
    transition-delay: 0.2s;
}

.home-gallery .scroll-animate:nth-child(4) {
    transition-delay: 0.25s;
}

/* ========================================
   GLITCH EFFECT ON SCROLL (Improvement #8)
   ======================================== */
.glitch-active {
    animation: glitchScroll 0.2s ease !important;
}

@keyframes glitchScroll {
    0% {
        text-shadow: 3px 3px 0 var(--primary), -3px -3px 0 var(--accent);
        transform: translate(0);
    }

    20% {
        text-shadow: -5px 3px 0 var(--secondary), 5px -3px 0 var(--primary);
        transform: translate(-2px, 1px);
    }

    40% {
        text-shadow: 5px -3px 0 var(--accent), -5px 3px 0 var(--secondary);
        transform: translate(2px, -1px);
    }

    60% {
        text-shadow: -3px -3px 0 var(--primary), 3px 3px 0 var(--accent);
        transform: translate(-1px, 2px);
    }

    80% {
        text-shadow: 3px 3px 0 var(--secondary), -3px -3px 0 var(--primary);
        transform: translate(1px, -2px);
    }

    100% {
        text-shadow: 3px 3px 0 var(--primary), -3px -3px 0 var(--accent);
        transform: translate(0);
    }
}

/* ========================================
   IMAGE ZOOM / KEN BURNS EFFECT (Improvement #6)
   ======================================== */
.gallery-item {
    overflow: hidden;
}

.gallery-item .gallery-img {
    transition: transform 0.8s ease, filter 0.4s ease;
}

.gallery-item:hover .gallery-img {
    transform: scale(1.1);
    filter: contrast(1) saturate(1.1) brightness(1.1);
    animation: kenBurns 10s ease-in-out infinite alternate;
}

@keyframes kenBurns {
    0% {
        transform: scale(1.1) translate(0, 0);
    }

    100% {
        transform: scale(1.15) translate(-2%, -2%);
    }
}

/* Viewfinder image zoom */
.viewfinder {
    overflow: hidden;
}

.viewfinder .product-image {
    transition: transform 0.6s ease, filter 0.4s ease;
}

.product-card:hover .viewfinder .product-image {
    transform: scale(1.08);
}

/* ========================================
   PRODUCT MODAL (Improvement #5)
   ======================================== */
.product-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.product-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(10px);
}

.modal-content {
    position: relative;
    background: rgba(20, 20, 30, 0.98);
    border: 1px solid var(--primary);
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2rem;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.4s ease;
    box-shadow: 0 0 60px rgba(255, 107, 157, 0.3), 0 0 120px rgba(196, 77, 255, 0.1);
}

.product-modal.active .modal-content {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--light);
    font-size: 2rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s ease;
    z-index: 10;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    opacity: 1;
    color: var(--primary);
    transform: rotate(90deg);
}

.modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.modal-image .viewfinder {
    aspect-ratio: 4/3;
}

.modal-details {
    padding: 1rem 0;
}

.modal-details .product-name {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    letter-spacing: 3px;
}

.modal-details .product-price {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.modal-specs {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 107, 157, 0.1);
}

.spec-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
}

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

.spec-item span:first-child {
    color: var(--primary);
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
}

.modal-description {
    opacity: 0.8;
    line-height: 1.8;
    margin-bottom: 2rem;
    font-style: italic;
}

.modal-cta {
    width: 100%;
    padding: 1.2rem;
    font-size: 1rem;
}

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

    .modal-content {
        padding: 1.5rem;
        width: 95%;
    }

    .modal-details .product-name {
        font-size: 1.2rem;
    }

    .modal-details .product-price {
        font-size: 1.5rem;
    }
}

/* ========================================
   CURSOR TRAIL HIDE ON MOBILE
   ======================================== */
@media (max-width: 768px) {
    .cursor-trail {
        display: none !important;
    }
}

/* ========================================
   CANVAS BACKGROUND
   ======================================== */
#bg-canvas {
    opacity: 0.8;
}

/* ========================================
   STORIES PAGE (Improvement #15)
   ======================================== */
.featured-story {
    background: rgba(20, 20, 30, 0.6);
    border: 1px solid var(--primary);
    padding: 2rem;
    margin-bottom: 4rem;
    position: relative;
}

.story-badge {
    position: absolute;
    top: -12px;
    left: 2rem;
    background: var(--primary);
    color: var(--dark);
    padding: 0.3rem 1rem;
    font-size: 0.75rem;
    letter-spacing: 2px;
    font-family: 'Courier New', monospace;
}

.featured-story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.featured-story-image .story-img {
    width: 100%;
    filter: contrast(0.95) saturate(0.9);
    transition: filter 0.4s ease;
}

.featured-story:hover .story-img {
    filter: contrast(1) saturate(1.1);
}

.featured-story-content {
    padding: 1rem;
}

.featured-story-content h2 {
    font-family: 'Courier New', monospace;
    font-size: 1.5rem;
    letter-spacing: 2px;
    margin: 1rem 0;
    color: var(--light);
}

.featured-story-content p {
    opacity: 0.8;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.story-date {
    font-size: 0.8rem;
    color: var(--accent);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.story-card {
    background: rgba(20, 20, 30, 0.6);
    border: 1px solid rgba(255, 107, 157, 0.2);
    transition: all 0.4s ease;
    overflow: hidden;
}

.story-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 107, 157, 0.15);
}

.story-card-image {
    position: relative;
    overflow: hidden;
}

.story-card-image .story-img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    filter: contrast(0.9) saturate(0.85);
    transition: all 0.4s ease;
}

.story-card:hover .story-img {
    transform: scale(1.05);
    filter: contrast(1) saturate(1);
}

.story-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--secondary);
    color: var(--light);
    padding: 0.25rem 0.75rem;
    font-size: 0.7rem;
    letter-spacing: 1px;
    font-family: 'Courier New', monospace;
}

.story-card-content {
    padding: 1.5rem;
}

.story-card-content h3 {
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    letter-spacing: 1px;
    margin: 0.75rem 0;
    line-height: 1.4;
}

.story-card-content p {
    opacity: 0.7;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.story-link {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.story-link:hover {
    color: var(--accent);
    letter-spacing: 2px;
}

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

    .stories-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   FAQ PAGE (Improvement #16)
   ======================================== */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-category {
    margin-bottom: 3rem;
}

.faq-category-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    letter-spacing: 2px;
    color: var(--primary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 107, 157, 0.3);
}

.faq-category-title svg {
    opacity: 0.8;
}

.faq-item {
    margin-bottom: 0.5rem;
    border: 1px solid rgba(255, 107, 157, 0.15);
    background: rgba(20, 20, 30, 0.4);
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(255, 107, 157, 0.3);
}

.faq-item.active {
    border-color: var(--primary);
    background: rgba(255, 107, 157, 0.05);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    background: none;
    border: none;
    color: var(--light);
    font-size: 1rem;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-question:hover {
    color: var(--primary);
}

.faq-question span:first-child {
    flex: 1;
    padding-right: 1rem;
}

.faq-icon {
    font-size: 1.5rem;
    color: var(--primary);
    transition: transform 0.3s ease;
    font-weight: 300;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 1.5rem 1.5rem;
}

.faq-answer p {
    opacity: 0.8;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-answer ul {
    margin: 1rem 0 1rem 1.5rem;
    opacity: 0.8;
}

.faq-answer li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.faq-answer strong {
    color: var(--primary);
}

.faq-cta {
    text-align: center;
    padding: 3rem;
    background: rgba(20, 20, 30, 0.6);
    border: 1px solid rgba(255, 107, 157, 0.2);
    margin-top: 3rem;
}

.faq-cta h3 {
    font-family: 'Courier New', monospace;
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
}

.faq-cta p {
    opacity: 0.7;
    margin-bottom: 1.5rem;
}

/* ========================================
   STORY MODAL - FULL SCREEN BLOG STYLE
   ======================================== */
.story-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.story-modal.active {
    opacity: 1;
    visibility: visible;
}

.story-modal-wrapper {
    width: 100%;
    height: 100%;
    background: var(--dark);
    display: flex;
    flex-direction: column;
}

/* Fixed Header with Back Button */
.story-modal-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: linear-gradient(to bottom, rgba(10, 10, 15, 0.95) 0%, rgba(10, 10, 15, 0.8) 80%, transparent 100%);
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    backdrop-filter: blur(10px);
}

.story-back-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--light);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.story-back-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--dark);
}

.story-back-btn svg {
    transition: transform 0.3s ease;
}

.story-back-btn:hover svg {
    transform: translateX(-3px);
}

/* Reading Progress Bar */
.story-reading-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    background: var(--primary);
    width: 0%;
    transition: width 0.1s ease;
}

/* Scrollable Content Area */
.story-modal-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Hero Section */
.story-hero {
    position: relative;
    width: 100%;
    height: 60vh;
    min-height: 400px;
    overflow: hidden;
}

.story-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.8);
}

.story-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to bottom, transparent 0%, var(--dark) 100%);
}

/* Article Content */
.story-article {
    max-width: 720px;
    margin: -100px auto 0;
    padding: 0 2rem 4rem;
    position: relative;
    z-index: 10;
}

.story-article-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.story-article-header .story-category {
    position: static;
    background: var(--primary);
    color: var(--dark);
    font-weight: bold;
}

.story-meta-divider {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.8rem;
}

.story-article-header .story-date {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.story-article-title {
    font-family: 'Courier New', monospace;
    font-size: 2.5rem;
    letter-spacing: 3px;
    line-height: 1.3;
    color: var(--light);
    margin: 0 0 2rem;
    text-transform: uppercase;
}

/* Article Body - Blog Typography */
.story-article-body {
    font-size: 1.1rem;
    line-height: 2;
    color: rgba(255, 255, 255, 0.85);
}

.story-article-body p {
    margin-bottom: 1.5rem;
}

.story-article-body h2,
.story-article-body h3 {
    font-family: 'Courier New', monospace;
    color: var(--primary);
    margin: 2.5rem 0 1rem;
    letter-spacing: 1px;
}

.story-article-body h2 {
    font-size: 1.5rem;
}

.story-article-body h3 {
    font-size: 1.2rem;
}

.story-article-body ul,
.story-article-body ol {
    margin: 1.5rem 0 1.5rem 1.5rem;
}

.story-article-body li {
    margin-bottom: 0.75rem;
}

.story-article-body strong {
    color: var(--primary);
}

.story-article-body a {
    color: var(--accent);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.story-article-body a:hover {
    color: var(--primary);
}

.story-article-body blockquote {
    border-left: 3px solid var(--primary);
    margin: 2rem 0;
    padding: 1rem 0 1rem 1.5rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 107, 157, 0.05);
}

.story-article-body img {
    max-width: 100%;
    border-radius: 4px;
    margin: 2rem 0;
}

.story-article-body code {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.story-article-body pre {
    background: rgba(20, 20, 30, 0.8);
    border: 1px solid rgba(255, 107, 157, 0.2);
    padding: 1.5rem;
    border-radius: 4px;
    overflow-x: auto;
    margin: 2rem 0;
}

.story-article-body pre code {
    background: none;
    padding: 0;
}

/* Story Modal Responsive */
@media (max-width: 768px) {
    .story-modal-header {
        padding: 0.75rem 1rem;
    }

    .story-back-btn span {
        display: none;
    }

    .story-back-btn {
        padding: 0.6rem;
        border-radius: 50%;
    }

    .story-hero {
        height: 40vh;
        min-height: 250px;
    }

    .story-article {
        margin-top: -60px;
        padding: 0 1.25rem 3rem;
    }

    .story-article-title {
        font-size: 1.6rem;
        letter-spacing: 2px;
    }

    .story-article-body {
        font-size: 1rem;
        line-height: 1.8;
    }
}

/* ========================================
   SOLD BADGE & PRODUCT IMPROVEMENTS
   ======================================== */

/* Sold Badge */
.sold-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
    background: rgba(255, 50, 50, 0.9);
    color: white;
    padding: 0.5rem 2rem;
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 4px;
    z-index: 100;
    border: 3px solid white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    pointer-events: none;
}

/* Sold Card Styling */
.product-card.sold .viewfinder {
    filter: grayscale(70%) brightness(0.7);
}

.product-card.sold .product-price {
    text-decoration: line-through;
    opacity: 0.5;
}

.product-card.sold::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    pointer-events: none;
}

/* Product Buttons Container */
.product-buttons {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.product-buttons .btn-secondary {
    flex: 1;
}

/* Telegram Button */
.btn-telegram {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: #0088cc;
    color: white;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-telegram:hover {
    background: #006699;
    transform: scale(1.05);
}

.btn-telegram svg {
    fill: white;
}

/* ========================================
   IMAGE COUNT BADGE
   ======================================== */

.image-count-badge {
    position: absolute;
    bottom: 15px;
    left: 15px;
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-family: 'Courier New', monospace;
    z-index: 5;
    backdrop-filter: blur(4px);
}

.image-count-badge svg {
    opacity: 0.8;
}

/* ========================================
   PRODUCT LIGHTBOX GALLERY
   ======================================== */

.product-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.product-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
}

.lightbox-container {
    position: relative;
    width: 90%;
    max-width: 1200px;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    z-index: 1;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.7;
    z-index: 10;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover {
    opacity: 1;
    color: var(--primary);
    transform: rotate(90deg);
}

/* Main layout - image on left, details on right */
.lightbox-main {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2rem;
    height: 100%;
    min-height: 0;
}

.lightbox-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    min-height: 0;
    height: 100%;
}

.lightbox-nav {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.lightbox-nav:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: scale(1.1);
}

.lightbox-image-wrapper {
    flex: 1;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    max-height: 70vh;
}

.lightbox-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 4px;
    transition: opacity 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(255, 255, 255, 0.6);
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
}

/* Details Panel */
.lightbox-details {
    background: rgba(20, 20, 30, 0.95);
    border: 1px solid rgba(255, 107, 157, 0.3);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    border-radius: 4px;
    max-height: 70vh;
    overflow-y: auto;
}

.lightbox-product-name {
    font-family: 'Courier New', monospace;
    font-size: 1.3rem;
    letter-spacing: 2px;
    color: var(--light);
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
}

.lightbox-price {
    font-size: 1.8rem;
    color: var(--primary);
    font-weight: bold;
    margin: 0 0 1.5rem 0;
    letter-spacing: 1px;
}

.lightbox-specs {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.lightbox-spec {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    gap: 1rem;
}

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

.spec-label {
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    color: var(--primary);
    letter-spacing: 1px;
    text-transform: uppercase;
    flex-shrink: 0;
}

.spec-value {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    text-align: right;
    line-height: 1.4;
}

.lightbox-counter-wrapper {
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.lightbox-counter {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: var(--primary);
    letter-spacing: 2px;
}

/* Lightbox Responsive */
@media (max-width: 900px) {
    .lightbox-main {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr auto;
        gap: 1rem;
    }

    .lightbox-details {
        max-height: 40vh;
        padding: 1.5rem;
    }

    .lightbox-image-wrapper {
        max-height: 50vh;
    }
}

@media (max-width: 768px) {
    .lightbox-container {
        width: 100%;
        max-height: 100%;
        padding: 1rem;
    }

    .lightbox-close {
        top: 10px;
        right: 10px;
        font-size: 2rem;
    }

    .lightbox-nav {
        width: 40px;
        height: 40px;
    }

    .lightbox-nav svg {
        width: 24px;
        height: 24px;
    }

    .lightbox-main {
        grid-template-rows: auto 1fr;
    }

    .lightbox-details {
        padding: 1rem;
    }

    .lightbox-product-name {
        font-size: 1.1rem;
    }

    .lightbox-price {
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }
}