/* CORE Intimate Storefront Design System */

:root {
    --bg-dark: #08070c;
    --bg-card: rgba(18, 15, 26, 0.65);
    --bg-card-hover: rgba(28, 24, 40, 0.85);
    --text-primary: #f3f3f6;
    --text-secondary: #a09cb0;
    --accent: #ff2a7f; /* Sensual magenta */
    --accent-glow: rgba(255, 42, 127, 0.3);
    --gold: #d4a373; /* Luxury gold */
    --gold-glow: rgba(212, 163, 115, 0.2);
    --border: rgba(255, 255, 255, 0.07);
    --border-hover: rgba(255, 42, 127, 0.4);
    --whatsapp-green: #25d366;
    --whatsapp-hover: #20ba5a;
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow-x: hidden;
    min-height: 100vh;
    letter-spacing: -0.01em;
}

/* Age Verification Gate */
.age-gate-overlay, .access-denied-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(5, 4, 8, 0.96);
    backdrop-filter: blur(20px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.age-gate-card, .access-denied-card {
    background: rgba(20, 17, 30, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 40px;
    width: 90%;
    max-width: 480px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 
                0 0 30px rgba(255, 42, 127, 0.1);
    backdrop-filter: blur(10px);
    transform: scale(1);
    transition: transform 0.4s ease;
}

.brand-logo-container {
    margin-bottom: 24px;
}

.brand-logo-glow {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    color: #fff;
    text-shadow: 0 0 15px rgba(255, 42, 127, 0.6), 0 0 30px rgba(255, 42, 127, 0.3);
}

.age-gate-content h2, .access-denied-card h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #fff;
}

.age-gate-content p, .access-denied-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.age-gate-buttons {
    display: flex;
    gap: 16px;
}

.btn-primary {
    flex: 1;
    font-family: var(--font-heading);
    background: linear-gradient(135deg, var(--accent), #ff5d9e);
    color: #fff;
    border: none;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 42, 127, 0.5);
}

.btn-secondary {
    flex: 1;
    font-family: var(--font-heading);
    background: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Access Denied */
.access-denied-overlay {
    z-index: 10001;
}
.access-denied-card h2 {
    color: var(--accent);
}

/* Hidden/Blur Utility Classes */
.hidden {
    display: none !important;
}

.blurred {
    filter: blur(15px);
    pointer-events: none;
    user-select: none;
}

.fade-out {
    opacity: 0;
    visibility: hidden;
}

/* Main Site Wrapper */
#main-content {
    transition: filter 0.6s ease;
}

/* Header */
.main-header {
    position: sticky;
    top: 0;
    background: rgba(8, 7, 12, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    z-index: 100;
}

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

.brand-logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: #fff;
    cursor: pointer;
}

.brand-logo span {
    color: var(--accent);
}

/* Search Bar */
.search-wrapper {
    width: 320px;
    max-width: 100%;
}

.search-bar {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 2px 16px;
    transition: var(--transition);
}

.search-bar:focus-within {
    background: rgba(255, 255, 255, 0.07);
    border-color: var(--border-hover);
    box-shadow: 0 0 15px rgba(255, 42, 127, 0.15);
}

.search-icon {
    width: 18px;
    height: 18px;
    color: var(--text-secondary);
    margin-right: 10px;
}

.search-bar input {
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 0.9rem;
    padding: 10px 0;
    width: 100%;
}

.search-bar input::placeholder {
    color: var(--text-secondary);
}

.clear-search {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
}

.clear-search:hover {
    color: #fff;
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 80px 24px 60px 24px;
    text-align: center;
    overflow: hidden;
}

.hero-bg-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 42, 127, 0.15) 0%, rgba(212, 163, 115, 0.05) 50%, rgba(0,0,0,0) 100%);
    z-index: 0;
    filter: blur(40px);
    pointer-events: none;
}

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

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #fff 40%, rgba(255,255,255,0.7));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    color: var(--text-secondary);
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    line-height: 1.6;
    font-weight: 300;
}

/* Catalog Container */
.catalog-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px 80px 24px;
}

/* Controls / Dropdowns */
.catalog-controls {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 24px;
    flex-wrap: wrap;
    gap: 20px;
}

.controls-left {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

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

.dropdown-wrapper label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    font-weight: 600;
}

.dropdown-wrapper select {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 12px 20px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    border-radius: 12px;
    outline: none;
    cursor: pointer;
    transition: var(--transition);
    min-width: 220px;
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23a09cb0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
    padding-right: 40px;
}

.dropdown-wrapper select:hover {
    background-color: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
}

.dropdown-wrapper select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 10px rgba(255, 42, 127, 0.1);
}

.dropdown-wrapper select option {
    background-color: var(--bg-dark);
    color: var(--text-primary);
}

.controls-right {
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding-bottom: 12px;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

/* Product Card - 80% Image / 20% Text */
.product-card {
    height: 420px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    backdrop-filter: blur(10px);
}

.product-card:hover {
    transform: translateY(-8px);
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 
                0 0 20px rgba(255, 42, 127, 0.15);
}

/* Card Image Area (80%) */
.card-image-area {
    height: 80%;
    width: 100%;
    position: relative;
    overflow: hidden;
    background-color: #12101b;
}

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

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

/* Discount Badge - Curved rectangular top-left */
.discount-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 6px 12px;
    background: linear-gradient(135deg, var(--accent), #ff7b00);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    border-radius: 8px 16px 8px 16px; /* Elegant curved rectangle */
    z-index: 2;
    box-shadow: 0 4px 10px rgba(255, 42, 127, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
    text-transform: uppercase;
}

/* Fallback/Placeholder Card View */
.image-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(145deg, #100e1a 0%, #1d1931 100%);
    color: var(--text-secondary);
    padding: 24px;
    text-align: center;
    transition: var(--transition);
}

.product-card:hover .image-fallback {
    background: linear-gradient(145deg, #131020 0%, #25203f 100%);
}

.fallback-icon {
    width: 44px;
    height: 44px;
    margin-bottom: 16px;
    color: var(--gold);
    opacity: 0.7;
    filter: drop-shadow(0 0 8px rgba(212, 163, 115, 0.3));
    transition: var(--transition);
}

.product-card:hover .fallback-icon {
    transform: scale(1.1);
    opacity: 0.9;
    filter: drop-shadow(0 0 12px rgba(255, 42, 127, 0.4));
}

.fallback-category {
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 6px;
}

/* Card Info Area (20%) */
.card-info-area {
    height: 20%;
    width: 100%;
    padding: 0 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(12, 10, 18, 0.85);
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.card-title-block {
    flex: 1;
    min-width: 0;
    padding-right: 12px;
}

.card-title-block h3 {
    font-size: 0.95rem;
    font-weight: 500;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.card-category {
    font-size: 0.7rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-price-tag {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    flex-shrink: 0;
}

.price-sale {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent);
}

.price-original {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-decoration: line-through;
    opacity: 0.7;
    margin-top: 1px;
}

/* Empty State & Error styling */
.empty-state {
    grid-column: 1 / -1;
    padding: 80px 24px;
    text-align: center;
    background: var(--bg-card);
    border: 1px dashed var(--border);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.empty-icon {
    width: 60px;
    height: 60px;
    color: var(--text-secondary);
    opacity: 0.5;
    margin-bottom: 20px;
}

.empty-state h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.empty-state p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    max-width: 400px;
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(5, 4, 8, 0.85);
    backdrop-filter: blur(15px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
    transition: opacity 0.3s ease;
}

.modal-card {
    background: #0d0b16;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6), 
                0 0 40px rgba(255, 42, 127, 0.1);
    backdrop-filter: blur(10px);
}

.animate-modal {
    animation: modalIn 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.92) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
}

.modal-close:hover {
    background: rgba(255, 42, 127, 0.2);
    color: #fff;
    border-color: var(--accent);
}

.modal-close svg {
    width: 18px;
    height: 18px;
}

/* Modal Layout */
.modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 500px;
}

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

.modal-gallery {
    background: #08060f;
    display: flex;
    flex-direction: column;
    padding: 30px;
    justify-content: center;
    align-items: center;
    border-right: 1px solid rgba(255, 255, 255, 0.04);
}

.modal-main-image-container {
    width: 100%;
    height: 350px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border-radius: 16px;
}

.modal-main-image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.modal-img-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #0e0d16 0%, #1e1b34 100%);
    border-radius: 16px;
    padding: 30px;
}

.modal-thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.modal-thumb {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    overflow: hidden;
    opacity: 0.6;
    transition: var(--transition);
}

.modal-thumb.active, .modal-thumb:hover {
    border-color: var(--accent);
    opacity: 1;
}

.modal-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Modal Info Panel */
.modal-info {
    padding: 40px;
    display: flex;
    flex-direction: column;
}

.modal-badge-category {
    align-self: flex-start;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    background: rgba(255, 42, 127, 0.1);
    padding: 6px 12px;
    border-radius: 50px;
    border: 1px solid rgba(255, 42, 127, 0.2);
    margin-bottom: 16px;
}

.modal-info h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.25;
    margin-bottom: 16px;
}

.modal-price-container {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

.modal-price-container .price-sale {
    font-size: 1.8rem;
}

.modal-price-container .price-original {
    font-size: 1.1rem;
}

.price-discount-badge {
    padding: 4px 10px;
    background: rgba(255, 93, 158, 0.15);
    color: #ff5d9e;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 6px;
    border: 1px solid rgba(255, 93, 158, 0.2);
}

.modal-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
    margin-bottom: 24px;
}

.modal-description-section {
    margin-bottom: 24px;
}

.modal-description-section h3, .modal-features-section h3 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.modal-description-section p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.modal-features-section {
    margin-bottom: 35px;
}

.features-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

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

.features-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.feat-icon {
    width: 14px;
    height: 14px;
    color: var(--accent);
}

.btn-whatsapp {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--whatsapp-green), #1ebe5d);
    color: #fff;
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    padding: 16px 32px;
    border-radius: 14px;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    background: linear-gradient(135deg, #20ba5a, #19a34e);
}

.wa-icon {
    width: 22px;
    height: 22px;
}

/* Footer styling */
.main-footer {
    border-top: 1px solid var(--border);
    padding: 60px 24px;
    background: #050409;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: #fff;
    margin-bottom: 16px;
}

.footer-logo span {
    color: var(--accent);
}

.footer-disclaimer {
    max-width: 600px;
    margin: 0 auto 24px auto;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.footer-copy {
    font-size: 0.78rem;
    color: rgba(160, 156, 176, 0.5);
}

/* Responsive Overrides */
@media (max-width: 768px) {
    .catalog-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .dropdown-wrapper select {
        min-width: 100%;
    }
    
    .search-wrapper {
        width: 100%;
        margin-top: 15px;
    }
    
    .header-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .brand-logo {
        text-align: center;
    }
}

/* Copy Toast Notification */
.copy-toast {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border: 1px solid var(--whatsapp-green);
    color: #fff;
    padding: 14px 24px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 99999;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5),
                0 0 20px rgba(37, 211, 102, 0.2);
    animation: toastIn 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    white-space: nowrap;
}

.toast-icon {
    width: 18px;
    height: 18px;
    color: var(--whatsapp-green);
    flex-shrink: 0;
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

