/* --- CSS Variables --- */
:root {
    --purple: #6c2d79;
    --purple-light: #8e3e9f;
    --purple-dark: #4b1f54;
    
    --magenta: #bc2a76;
    --magenta-light: #d64a93;
    
    --yellow: #f2e32a;
    --yellow-dark: #d4c514;
    
    --text-dark: #1a1a1a;
    --text-light: #555555;
    --bg-light: #fbfbfd;
    --white: #ffffff;
    
    --primary: #bc2a76;
    --secondary: #8e3e9f;
    
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
    
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    
    --shadow-sm: 0 4px 6px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 30px rgba(0,0,0,0.08);
    --shadow-lg: 0 20px 40px rgba(108, 45, 121, 0.15);
}

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

html {
    scroll-behavior: smooth;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* --- Typography --- */
h1, h2, h3, h4 {
    line-height: 1.2;
    font-weight: 700;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

p {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.highlight {
    background: linear-gradient(135deg, var(--purple), var(--magenta));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    padding-right: 0.2em; /* Fix cut-off italic letters */
}

/* --- Buttons --- */
.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--purple), var(--magenta));
    color: var(--white);
    box-shadow: 0 8px 20px rgba(188, 42, 118, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(188, 42, 118, 0.4);
}

.btn-secondary {
    background: var(--white);
    color: var(--purple);
    border: 1px solid rgba(108, 45, 121, 0.2);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    border-color: var(--purple);
    transform: translateY(-3px);
}

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.25rem 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: var(--shadow-sm);
    padding: 0.875rem 0;
}

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

/* Logo Styling inspired by image */
.logo {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    font-weight: 800;
    line-height: 1;
}

.logo span {
    display: inline-block;
}

.logo-letters {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.logo-o, .logo-s, .logo-e {
    font-size: 2.5rem;
    padding: 0 0.1rem;
    font-family: 'Playfair Display', serif;
}

.logo-o { color: var(--purple); }
.logo-s { color: var(--magenta); }
.logo-e { color: var(--yellow-dark); }

.logo-prod {
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    color: var(--purple);
    margin-top: 0.2rem;
    font-weight: 700;
}

.logo-plus {
    color: var(--yellow-dark);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links a:not(.btn-primary) {
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a:not(.btn-primary)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--magenta);
    transition: var(--transition);
}

.nav-links a:not(.btn-primary):hover::after,
.nav-links a.active:not(.btn-primary)::after {
    width: 100%;
}

.mobile-menu {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- Hero Section --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 2rem 4rem;
    overflow: hidden;
}

.hero-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 20s infinite alternate;
}

.shape-purple {
    top: -10%;
    right: -5%;
    width: 600px;
    height: 600px;
    background: var(--purple);
    animation-delay: 0s;
}

.shape-pink {
    bottom: 10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: var(--magenta);
    animation-delay: -5s;
}

.shape-yellow {
    top: 40%;
    right: 30%;
    width: 300px;
    height: 300px;
    background: var(--yellow);
    opacity: 0.3;
    animation-delay: -10s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, 50px) scale(1.1); }
    100% { transform: translate(-30px, 20px) scale(0.9); }
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(108, 45, 121, 0.1);
    color: var(--purple);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(108, 45, 121, 0.2);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.hero-image {
    position: relative;
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
}

.image-wrapper {
    position: relative;
    padding: 1.5rem;
    transform: rotate(2deg);
    transition: var(--transition);
}

.image-wrapper:hover {
    transform: rotate(0deg) translateY(-10px);
}

.image-wrapper img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    object-fit: cover;
    aspect-ratio: 4/5;
}

.floating-card {
    position: absolute;
    bottom: -2rem;
    left: -2rem;
    background: var(--white);
    padding: 1rem 1.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: float-small 6s infinite ease-in-out;
}

@keyframes float-small {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.floating-card i {
    font-size: 2rem;
    color: var(--yellow-dark);
}

.floating-card div {
    display: flex;
    flex-direction: column;
}

.floating-card strong {
    font-size: 1rem;
    color: var(--purple);
}

.floating-card span {
    font-size: 0.875rem;
    color: var(--text-light);
}

/* --- Features Section --- */
.features {
    padding: 8rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem;
}

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

.feature-card {
    padding: 3rem 2rem;
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    background: var(--white);
}

.feature-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
}

.feature-icon.purple {
    background: rgba(108, 45, 121, 0.1);
    color: var(--purple);
}

.feature-icon.pink {
    background: rgba(188, 42, 118, 0.1);
    color: var(--magenta);
}

.feature-icon.yellow {
    background: rgba(242, 227, 42, 0.2);
    color: var(--yellow-dark);
}

/* --- Catalog Section --- */
.catalog {
    padding: 8rem 2rem;
    background: var(--white);
}

.catalog-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    border: 1px solid #e0e0e0;
    background: transparent;
    color: var(--text-light);
    font-family: inherit;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

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


.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    max-width: 1200px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
}

.product-card {
    border-radius: 0;
    overflow: hidden;
    background: transparent;
    box-shadow: none;
    transition: none;
    border: none;
}

.product-card:hover {
    transform: none;
    box-shadow: none;
}

.product-image {
    position: relative;
    aspect-ratio: 3/4;
    height: auto;
    background: #f5f5f5;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #000; /* Black like Galeries Lafayette -50% */
    color: var(--white);
    padding: 0.2rem 0.5rem;
    border-radius: 0;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.product-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    bottom: auto;
    left: auto;
    background: transparent;
    display: block;
    opacity: 1;
    pointer-events: none;
}

.btn-icon {
    pointer-events: auto;
    background: transparent;
    color: #666;
    border: none;
    padding: 0;
    border-radius: 0;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transform: none;
    transition: color 0.3s ease;
}

.btn-icon:hover {
    color: var(--purple);
}

.product-info {
    padding: 10px 0;
    text-align: left;
}

.product-category {
    font-size: 0.8rem;
    color: #000;
    font-weight: 700;
    margin-bottom: 0.2rem;
    text-transform: uppercase;
    letter-spacing: 0;
}

.product-info h3 {
    font-size: 0.9rem;
    font-weight: 400;
    color: #666;
    margin-bottom: 0.5rem;
}

.product-price {
    font-weight: 700;
    color: #e50000; /* Red like in the screenshot */
    font-size: 1rem;
}

/* --- CTA Banner --- */
.cta-banner {
    background: linear-gradient(135deg, var(--purple-dark), var(--purple));
    padding: 6rem 2rem;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    color: var(--white);
}

.cta-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
}

.cta-shapes .shape-1, .cta-shapes .shape-2 {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    z-index: 1;
}

.cta-shapes .shape-1 {
    width: 400px;
    height: 400px;
    background: var(--magenta);
    top: -50%;
    left: -10%;
    opacity: 0.5;
}

.cta-shapes .shape-2 {
    width: 300px;
    height: 300px;
    background: var(--yellow);
    bottom: -50%;
    right: 10%;
    opacity: 0.4;
}

/* --- Footer --- */
footer {
    background: #111;
    color: var(--white);
    padding: 5rem 2rem 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-logo {
    filter: brightness(0) invert(1);
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

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

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

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--magenta);
    transform: translateY(-3px);
}

.footer-links h4, .footer-contact h4 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-links h4::after, .footer-contact h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--yellow);
}

.footer-links a, .footer-contact p {
    display: block;
    color: #999;
    margin-bottom: 0.75rem;
}

.footer-links a:hover {
    color: var(--yellow);
    padding-left: 5px;
}

.footer-contact i {
    color: var(--magenta);
    margin-right: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #777;
    font-size: 0.875rem;
}

/* --- Animations --- */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    transition-delay: var(--delay, 0s);
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

/* --- Responsive --- */
@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-image {
        margin-top: 0;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .features {
        padding: 2rem 1.5rem 4rem;
    }
    
    .catalog {
        padding: 4rem 1.5rem 2rem;
    }
    
    .floating-card {
        bottom: -1rem;
        left: 50%;
        transform: translateX(-50%);
        width: max-content;
        animation: float-small-center 6s infinite ease-in-out;
    }

    @keyframes float-small-center {
        0%, 100% { transform: translate(-50%, 0); }
        50% { transform: translate(-50%, -10px); }
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        box-shadow: 0 10px 20px rgba(0,0,0,0.05);
        padding: 20px;
        gap: 15px;
        align-items: center;
        transform: translateY(-10px);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.3s ease, opacity 0.3s ease;
        z-index: 999;
        border-top: 1px solid #f0f0f0;
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
    
    .mobile-menu {
        display: block;
        font-size: 28px;
        cursor: pointer;
        color: #333;
        transition: transform 0.3s ease;
    }
    
    .hero {
        padding-top: 5rem;
        padding-bottom: 2rem;
        min-height: auto;
    }
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    user-select: none;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: 300;
    cursor: pointer;
    z-index: 10000;
    transition: color 0.2s;
}

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

.lightbox-prev, .lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    z-index: 10000;
}

.lightbox-prev:hover, .lightbox-next:hover {
    background: var(--primary);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

.lightbox-counter {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-family: var(--font-primary);
    font-size: 1rem;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    padding: 6px 18px;
    border-radius: 20px;
    font-weight: 600;
}

@media (max-width: 768px) {
    .lightbox-prev, .lightbox-next {
        width: 42px;
        height: 42px;
        font-size: 20px;
        background: rgba(0, 0, 0, 0.4);
    }
    .lightbox-prev { left: 10px; }
    .lightbox-next { right: 10px; }
    .lightbox-close { top: 15px; right: 20px; font-size: 34px; }
    .lightbox-counter { bottom: 20px; font-size: 0.9rem; padding: 4px 14px; }
}

.product-image img { transition: opacity 0.3s ease; }

/* --- Manual Card Image Carousel Controls --- */
.gallery-image, .admin-card-img {
    position: relative;
    user-select: none;
}

.card-carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #1e293b;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.25s ease, background 0.2s, transform 0.2s, color 0.2s;
}

.gallery-item:hover .card-carousel-nav,
.admin-card:hover .card-carousel-nav {
    opacity: 1;
}

.card-carousel-prev {
    left: 10px;
}

.card-carousel-next {
    right: 10px;
}

.card-carousel-nav:hover {
    background: #ffffff;
    color: #9c4b8b;
    transform: translateY(-50%) scale(1.12);
}

.card-carousel-nav:active {
    transform: translateY(-50%) scale(0.92);
}

/* Interactive Carousel Dots */
.carousel-dots {
    position: absolute;
    bottom: 12px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    z-index: 8;
    pointer-events: auto;
}

.carousel-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.carousel-dot.active {
    background: #9c4b8b !important;
    transform: scale(1.35);
    border-color: #ffffff;
    box-shadow: 0 0 8px rgba(156, 75, 139, 0.7);
}

.carousel-dot:hover {
    background: #ffffff;
    transform: scale(1.2);
}

@media (max-width: 768px) {
    /* Always visible on touch mobile screens */
    .card-carousel-nav {
        opacity: 0.9;
        width: 34px;
        height: 34px;
        font-size: 1.05rem;
        background: rgba(255, 255, 255, 0.95);
    }
    .card-carousel-prev { left: 8px; }
    .card-carousel-next { right: 8px; }
    .carousel-dot {
        width: 8px;
        height: 8px;
    }
}


/* --- Ecommerce Modals --- */
.custom-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}

.custom-modal.active {
    display: flex;
}

.custom-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.custom-modal-content {
    position: relative;
    background: white;
    border-radius: 20px;
    z-index: 10001;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 30px;
    cursor: pointer;
    color: var(--text);
    z-index: 10;
    transition: color 0.3s;
}

.close-modal:hover {
    color: var(--primary);
}

/* Gallery Modal */
.gallery-content {
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    padding: 40px;
    overflow-y: auto;
}

.gallery-content h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2rem;
    color: var(--text);
}


.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 20px;
    }
}

.gallery-item {
    position: relative;
    border-radius: 0;
    overflow: hidden;
    cursor: pointer;
    box-shadow: none;
    transition: none;
    background: transparent;
}

.gallery-image {
    position: relative;
    aspect-ratio: 3/4;
    background: #f5f5f5;
    overflow: hidden;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.gallery-item:hover .gallery-image img {
    transform: scale(1.05);
}

.gallery-info {
    padding: 10px 0;
    text-align: left;
}

.gallery-info h3 {
    font-size: 0.9rem;
    font-weight: 400;
    color: #666;
    margin: 0;
}

/* Product Detail Modal */
.product-content {
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    overflow-y: auto;
}

.product-layout {
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .product-layout {
        flex-direction: row;
    }
}

.product-gallery {
    flex: 1;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.product-gallery img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.product-info-panel {
    flex: 1;
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#detail-title {
    font-size: 2.2rem;
    margin-bottom: 10px;
    color: var(--text);
}

.detail-price {
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 25px;
}

.detail-options {
    margin-top: 25px;
}

.detail-options label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text);
}

.detail-options select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

.detail-options select:focus {
    border-color: var(--primary);
}


/* Product Detail Arrows */
.detail-prev, .detail-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.3);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    transition: background 0.3s;
    z-index: 10;
}
.detail-prev:hover, .detail-next:hover {
    background: var(--primary);
}
.detail-prev { left: 10px; }
.detail-next { right: 10px; }

/* Toast */
.toast {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary);
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 500;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: bottom 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55), opacity 0.3s ease, visibility 0.3s ease;
}
.toast.show {
    bottom: 40px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}


/* Dynamic Form Styles */
.dynamic-measurements-container {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.quantity-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.quantity-wrapper label {
    font-weight: 600;
    color: var(--text);
}

.quantity-input {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    width: 100%;
    outline: none;
    transition: border-color 0.3s;
}

.quantity-input:focus {
    border-color: var(--primary);
}

.forms-wrapper {
    max-height: 40vh; /* Allow scrolling if many togas */
    overflow-y: auto;
    padding-right: 10px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Custom Scrollbar for forms */
.forms-wrapper::-webkit-scrollbar {
    width: 6px;
}
.forms-wrapper::-webkit-scrollbar-track {
    background: #f1f1f1; 
    border-radius: 4px;
}
.forms-wrapper::-webkit-scrollbar-thumb {
    background: #ccc; 
    border-radius: 4px;
}
.forms-wrapper::-webkit-scrollbar-thumb:hover {
    background: var(--primary); 
}

.toga-form-block {
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 15px;
}

.toga-form-header {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 12px;
    border-bottom: 2px solid #eee;
    padding-bottom: 5px;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.form-group {
    flex: 1 1 calc(50% - 10px);
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group label {
    font-size: 0.85rem;
    color: #555;
    font-weight: 500;
}

.form-group input, .form-group select {
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.9rem;
    outline: none;
}

.form-group input:focus, .form-group select:focus {
    border-color: var(--primary);
}


/* --- Cart Styles --- */
.floating-cart {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    cursor: pointer;
    z-index: 9999;
    transition: transform 0.3s, background 0.3s;
}

.floating-cart:hover {
    transform: scale(1.1);
    background: var(--secondary);
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: red;
    color: white;
    font-size: 14px;
    font-weight: bold;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid white;
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
    z-index: 10001;
    display: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.cart-overlay.active {
    display: block;
    opacity: 1;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 100%;
    max-width: 400px;
    height: 100%;
    background: white;
    box-shadow: -10px 0 30px rgba(0,0,0,0.2);
    z-index: 10002;
    transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    display: flex;
    flex-direction: column;
}

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

.cart-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h2 {
    font-size: 1.5rem;
    color: var(--text);
    margin: 0;
}

.close-cart {
    background: none;
    border: none;
    font-size: 30px;
    cursor: pointer;
    color: var(--text);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cart-item {
    background: #f9f9f9;
    border-radius: 12px;
    padding: 15px;
    position: relative;
    border: 1px solid #eee;
}

.cart-item h4 {
    margin: 0 0 10px 0;
    color: var(--primary);
    font-size: 1.1rem;
}

.cart-item p {
    margin: 5px 0;
    font-size: 0.9rem;
    color: #555;
}

.cart-item-toga {
    background: white;
    padding: 10px;
    border-radius: 8px;
    margin-top: 10px;
    border: 1px solid #eee;
    font-size: 0.85rem;
}

.remove-item {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: red;
    cursor: pointer;
    font-size: 1.2rem;
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    background: white;
}


/* --- Split Layout for Features Section --- */
.features.split-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: stretch;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.features-image-container {
    flex: 1;
    min-width: 300px;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.features-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    min-height: 400px;
}

.features-content {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.features-content .section-header {
    margin-bottom: 30px;
}

.features-grid.stacked {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.features-grid.stacked .feature-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    text-align: left;
    padding: 25px;
}

.features-grid.stacked .feature-icon {
    margin-bottom: 0;
    flex-shrink: 0;
}

.features-grid.stacked h3 {
    margin-top: 5px;
    margin-bottom: 8px;
}

@media (max-width: 768px) {
    .features.split-layout {
        flex-direction: column;
    }
    .features-img {
        min-height: 300px;
    }
    
    .filters {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .filters .filter-btn {
        width: 100%;
        padding: 10px 5px;
        font-size: 0.9rem;
    }
    .filters .filter-btn[data-filter="all"] {
        grid-column: 1 / -1;
    }

    .features-grid.stacked .feature-card {
        padding: 15px;
        gap: 15px;
    }
    .features-grid.stacked .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    .features-grid.stacked h3 {
        font-size: 1.1rem;
        margin-top: 0;
    }
    .features-grid.stacked p {
        font-size: 0.9rem;
    }
}


/* --- Quote Form Modal Styles --- */
.quote-modal-content {
    max-width: 700px;
    width: 90%;
    padding: 40px;
    max-height: 90vh;
    overflow-y: auto;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 5px;
    color: var(--text-dark);
}

.form-group input, 
.form-group select, 
.form-group textarea {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    background-color: #f9f9f9;
    transition: all 0.3s ease;
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(188, 42, 118, 0.1);
}

.form-options {
    text-align: left;
    background: #fbfbfd;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    border: 1px solid #eee;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 0.9rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

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

/* Feature Card Checkmark */
.feature-card {
    position: relative;
}
.feature-checkmark {
    position: absolute;
    bottom: -10px;
    right: -10px;
    font-size: 3rem;
    color: var(--purple);
    opacity: 0.9;
    transform: rotate(10deg);
    pointer-events: none;
    z-index: 10;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.15));
}

/* --- Favorites Styles --- */
.floating-favorites {
    position: fixed;
    bottom: 110px; /* Stacked directly above the WhatsApp service button */
    right: 30px;
    background: #fafafa;
    color: var(--magenta);
    border: 2px solid var(--magenta);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
    cursor: pointer;
    z-index: 9999;
    transition: transform 0.3s, background 0.3s, color 0.3s;
}

.floating-cart {
    display: none !important;
}

.floating-favorites:hover {
    transform: scale(1.1);
    background: var(--magenta);
    color: white;
}

.favorites-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--primary);
    color: white;
    font-size: 14px;
    font-weight: bold;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
}

.favorites-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: white;
    box-shadow: -10px 0 30px rgba(0,0,0,0.15);
    z-index: 10002; /* Raised above overlay (10001) to fix the blur issue */
    transition: right 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    display: flex;
    flex-direction: column;
}

.favorites-sidebar.active {
    right: 0;
}

/* --- Floating WhatsApp Customer Service --- */
.floating-whatsapp-service {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25D366;
    color: white !important;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    z-index: 9999;
    cursor: pointer;
    transition: transform 0.3s, background 0.3s;
}

.floating-whatsapp-service:hover {
    transform: scale(1.1);
    background: #128C7E;
}

@media (max-width: 480px) {
    .favorites-sidebar {
        width: 100%;
        right: -100%;
    }
}

/* --- Party Emoji Animation --- */
@keyframes shake-emoji {
    0%, 100% { transform: rotate(0deg) scale(1); }
    10%, 30%, 50%, 70%, 90% { transform: rotate(-10deg) scale(1.15); }
    20%, 40%, 60%, 80% { transform: rotate(10deg) scale(1.15); }
}

.party-emoji.shake {
    animation: shake-emoji 0.8s ease-in-out;
}

/* --- Admin Dashboard Styles --- */
.admin-body {
    background: #f8fafc;
    color: #1e293b;
    min-height: 100vh;
    font-family: 'Outfit', sans-serif;
}

.admin-header {
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #f1f5f9;
}

.admin-logo-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.admin-badge {
    background: #9c4b8b;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-main {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

.admin-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
}

.admin-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-tab {
    padding: 10px 18px;
    border-radius: 25px;
    background: white;
    border: 1px solid #e2e8f0;
    color: #4a5568;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.25s ease;
}

.admin-tab.active, .admin-tab:hover {
    background: #9c4b8b;
    color: white;
    border-color: #9c4b8b;
    box-shadow: 0 4px 12px rgba(156, 75, 139, 0.25);
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.admin-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f5f9;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.admin-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
}

.admin-card-img {
    position: relative;
    width: 100%;
    padding-bottom: 120%;
    background: #edf2f7;
    overflow: hidden;
}

.admin-card-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(15, 23, 42, 0.75);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.admin-card-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.admin-card-category {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 4px;
}

.admin-card-title {
    font-size: 0.95rem;
    font-weight: 400;
    color: #718096;
    margin-bottom: 10px;
}

.admin-card-price {
    font-size: 1.2rem;
    font-weight: 800;
    color: #d00000;
    margin-bottom: 15px;
}

.admin-card-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.btn-admin-edit {
    flex: 1;
    min-height: 42px;
    padding: 8px 12px;
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s;
}

.btn-admin-edit:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.btn-admin-delete {
    min-height: 42px;
    padding: 8px 14px;
    background: #fff5f5;
    color: #e53e3e;
    border: 1px solid #fed7d7;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s;
}

.btn-admin-delete:hover {
    background: #e53e3e;
    color: white;
}

/* ========================================================
   --- ADMIN MODAL COMPONENT (Mobile-Optimized Architecture) ---
   ======================================================== */

.admin-modal-card {
    position: relative;
    background: #ffffff;
    border-radius: 20px;
    z-index: 10001;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25), 0 0 1px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 540px;
    max-height: calc(100dvh - 32px);
    max-height: calc(100vh - 32px);
    display: flex;
    flex-direction: column;
    animation: adminModalSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes adminModalSlideUp {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.admin-modal-header {
    padding: 18px 22px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    flex-shrink: 0;
    gap: 12px;
    position: relative;
    z-index: 5;
}

.admin-modal-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.admin-modal-icon-badge {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #fff0f9;
    color: #9c4b8b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.admin-modal-title-wrap h2 {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-close-modal {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #64748b;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    padding: 0;
}

.btn-close-modal:hover {
    background: #fee2e2;
    color: #ef4444;
    transform: rotate(90deg);
}

.admin-modal-form-wrap {
    display: flex;
    flex-direction: column;
    min-height: 0;
    flex: 1 1 auto;
}

.admin-modal-body {
    padding: 20px 22px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    flex: 1 1 auto;
}

.admin-modal-body::-webkit-scrollbar {
    width: 6px;
}

.admin-modal-body::-webkit-scrollbar-track {
    background: transparent;
}

.admin-modal-body::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.admin-modal-body::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.admin-modal-body .form-group {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.admin-modal-body .form-group:last-child {
    margin-bottom: 0;
}

.admin-modal-body .form-group label {
    font-size: 0.88rem;
    font-weight: 600;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}

.admin-modal-body .form-group label i {
    color: #9c4b8b;
    font-size: 1rem;
}

.admin-form-input {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    font-family: inherit;
    font-size: 16px; /* 16px prevents iOS Safari auto-zoom on input focus */
    color: #0f172a;
    background: #f8fafc;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.admin-form-input:focus {
    outline: none;
    border-color: #9c4b8b;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(156, 75, 139, 0.15);
}

/* Upload Dropzone styling */
.upload-dropzone {
    border: 2px dashed #cbd5e1;
    border-radius: 14px;
    padding: 20px 16px;
    text-align: center;
    background: #f8fafc;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 4px;
}

.upload-dropzone:hover, .upload-dropzone:active {
    border-color: #9c4b8b;
    background: #fff5fb;
}

.upload-dropzone-icon {
    width: 44px;
    height: 44px;
    background: #fff0f9;
    color: #9c4b8b;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.upload-dropzone-text {
    font-weight: 600;
    font-size: 0.92rem;
    color: #1e293b;
    margin-bottom: 2px;
}

.upload-dropzone-sub {
    font-size: 0.78rem;
    color: #94a3b8;
    margin: 0;
}

/* URL Input Row */
.admin-url-row {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    align-items: stretch;
}

.admin-url-input {
    flex: 1;
    font-size: 0.9rem;
    padding: 10px 12px;
}

.admin-btn-add-url {
    padding: 0 16px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #cbd5e0;
    cursor: pointer;
    transition: all 0.2s;
}

.admin-btn-add-url:hover {
    background: #e2e8f0;
    color: #0f172a;
}

/* Previews Grid */
.preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(68px, 1fr));
    gap: 8px;
    margin-top: 12px;
}

.preview-thumb-item {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    border: 2px solid #e2e8f0;
    background: #f1f5f9;
}

.preview-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.preview-thumb-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(239, 68, 68, 0.95);
    color: white;
    border: none;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);
    transition: transform 0.15s ease;
}

.preview-thumb-remove:hover {
    transform: scale(1.15);
    background: #dc2626;
}

/* Modal Sticky Footer - Ensures Save button is ALWAYS reachable on all screens */
.admin-modal-footer {
    padding: 14px 22px;
    background: #ffffff;
    border-top: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.03);
    z-index: 10;
}

.btn-modal-cancel {
    padding: 0 18px;
    height: 48px;
    border-radius: 12px;
    background: #f1f5f9;
    color: #475569;
    font-weight: 600;
    font-size: 0.92rem;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.btn-modal-cancel:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.btn-modal-save {
    flex: 1;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #9c4b8b 0%, #7b336e 100%);
    color: white;
    font-weight: 700;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(156, 75, 139, 0.3);
    transition: all 0.2s ease;
}

.btn-modal-save:hover {
    background: linear-gradient(135deg, #a85497 0%, #88397a 100%);
    box-shadow: 0 6px 18px rgba(156, 75, 139, 0.4);
    transform: translateY(-1px);
}

.btn-modal-save:active {
    transform: translateY(1px) scale(0.99);
}

/* Auth modal specialized card */
.admin-modal-auth {
    max-width: 420px;
}

.admin-auth-icon {
    width: 60px;
    height: 60px;
    background: #fff0f9;
    color: #9c4b8b;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 15px;
}

/* --- Password Toggle Eye Icon Styles --- */
.pwd-input-wrapper {
    position: relative;
    width: 100%;
}

.pwd-input-wrapper input {
    padding-right: 45px !important;
}

.btn-toggle-pwd {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #718096;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s, transform 0.2s;
    z-index: 20;
    pointer-events: auto;
}

.btn-toggle-pwd * {
    pointer-events: none;
}

.btn-toggle-pwd:hover {
    color: #9c4b8b;
    transform: translateY(-50%) scale(1.1);
}

/* ========================================================
   --- ADMIN RESPONSIVE MEDIA QUERIES (Mobile & Tablet) ---
   ======================================================== */

@media (max-width: 768px) {
    .admin-header {
        padding: 0.85rem 1rem;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .admin-header > div:last-child {
        justify-content: space-between;
        width: 100%;
        gap: 6px !important;
    }

    .admin-header .btn-secondary {
        flex: 1;
        text-align: center;
        justify-content: center;
        padding: 8px 8px !important;
        font-size: 0.8rem !important;
    }

    .admin-main {
        margin: 15px auto;
        padding: 0 12px;
    }

    .admin-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        margin-bottom: 16px;
    }

    .admin-toolbar h1 {
        font-size: 1.45rem !important;
    }

    #btn-open-add-modal {
        width: 100%;
        justify-content: center;
        padding: 12px 18px !important;
    }

    .admin-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        margin-bottom: 10px;
    }

    .admin-tabs::-webkit-scrollbar {
        display: none;
    }

    .admin-tab {
        white-space: nowrap;
        flex-shrink: 0;
        padding: 8px 14px;
        font-size: 0.85rem;
    }

    .admin-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 16px;
        margin-top: 15px !important;
    }

    /* Modal Mobile optimization */
    .custom-modal {
        padding: 10px;
        align-items: flex-end; /* Bottom sheet on mobile */
    }

    .admin-modal-card {
        max-width: 100%;
        max-height: calc(100dvh - 20px);
        max-height: calc(100vh - 20px);
        border-radius: 20px 20px 14px 14px;
    }

    .admin-modal-header {
        padding: 14px 16px;
    }

    .admin-modal-title-wrap h2 {
        font-size: 1.15rem;
    }

    .admin-modal-body {
        padding: 16px;
    }

    .admin-modal-footer {
        padding: 12px 16px;
        background: #ffffff;
    }

    .btn-modal-cancel {
        padding: 0 14px;
        height: 46px;
        font-size: 0.85rem;
    }

    .btn-modal-save {
        height: 46px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .custom-modal {
        padding: 6px;
    }

    .admin-modal-card {
        border-radius: 18px;
        max-height: calc(100dvh - 12px);
        max-height: calc(100vh - 12px);
    }

    .admin-modal-header {
        padding: 12px 14px;
    }

    .admin-modal-body {
        padding: 14px;
    }

    .admin-modal-footer {
        padding: 10px 14px;
    }

    .admin-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .admin-card-actions {
        flex-direction: row;
        gap: 8px;
    }

    .btn-admin-edit {
        padding: 10px 8px;
        font-size: 0.85rem;
    }

    .btn-admin-delete {
        padding: 10px 12px;
        font-size: 0.85rem;
    }
}
