/* EYEFLIPZ Product Details Theme — Dark Glassmorphism */
:root {
    --bg-color: #141414;
    --text-primary: #f8fafc;
    --text-secondary: #a0a0a0;
    --accent: #ff6b00; /* EYEFLIPZ Signature Orange */
    --accent-glow: rgba(255, 107, 0, 0.5);
    --accent-neon: #ff9500;
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Outfit', sans-serif;
    --card-bg: rgba(13, 13, 20, 0.45);
    --glass-border: rgba(255, 255, 255, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    background-image:
        radial-gradient(ellipse 80% 60% at 20% 40%, rgba(255, 107, 0, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 70%, rgba(200, 60, 0, 0.1) 0%, transparent 55%),
        radial-gradient(ellipse 100% 80% at 50% 100%, rgba(255, 80, 0, 0.05) 0%, transparent 50%);
    color: var(--text-primary);
    font-family: var(--font-body);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #111;
}
::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* Header Integration */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.8rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 107, 0, 0.35);
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    color: var(--text-primary);
    text-decoration: none;
    transition: text-shadow 0.3s;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.logo:hover {
    text-shadow: 0 0 15px var(--accent-glow);
}

.logo-img {
    height: 32px;
    width: auto;
    transition: transform 0.3s;
}

#logo-text {
    display: inline-block;
}

.desktop-nav {
    display: flex;
    gap: 1.5rem;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-secondary);
    text-decoration: none;
    position: relative;
    padding: 0.4rem 0;
    transition: color 0.3s;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--accent), var(--accent-neon));
    transition: width 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link:hover::after {
    width: 100%;
}

.cta-button {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    padding: 0.8rem 1.8rem;
    border-radius: 40px;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.header-cta {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
}

.header-cta:hover {
    background: var(--text-primary);
    color: var(--bg-color);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Main Product Layout */
.container {
    max-width: 1200px;
    margin: 100px auto 40px; /* offset header */
    padding: 50px 20px;
}

.product {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 50px;
    backdrop-filter: blur(15px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.product::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-neon));
}

/* Product Media Showcase */
.product-media {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    min-height: 400px;
    box-shadow: inset 0 0 30px rgba(0,0,0,0.4);
}

.product-media img {
    max-width: 100%;
    max-height: 350px;
    object-fit: contain;
    filter: drop-shadow(0 15px 30px rgba(0,0,0,0.7));
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

.product-media:hover img {
    transform: scale(1.05) rotate(-2deg);
}

/* Badges and Tags */
.badge {
    display: inline-block;
    background: linear-gradient(90deg, rgba(255, 107, 0, 0.2), rgba(255, 149, 0, 0.2));
    color: var(--text-primary);
    border: 1px solid rgba(255, 107, 0, 0.4);
    padding: 6px 16px;
    border-radius: 30px;
    margin-bottom: 20px;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

h1 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 15px;
    letter-spacing: -0.01em;
    background: linear-gradient(135deg, #fff 30%, var(--accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.price {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    margin: 20px 0;
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.old-price {
    color: var(--text-secondary);
    text-decoration: line-through;
    font-size: 1.4rem;
    font-weight: 400;
}

.description {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 25px;
    font-weight: 300;
    font-size: 1rem;
}

h3.section-subtitle {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
    margin-bottom: 12px;
    font-weight: 600;
}

/* Color Swatches styling */
.colors {
    display: flex;
    gap: 16px;
    margin: 15px 0 30px;
}

.color-option {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.color-option::after {
    content: '';
    position: absolute;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.color-option.active::after {
    border-color: var(--accent);
    box-shadow: 0 0 12px rgba(255, 107, 0, 0.4);
}

.color-option:hover {
    transform: scale(1.08);
}

.color-option span {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: block;
}

.color-black span { background: #111; }
.color-brown span { background: #6b4423; }
.color-blue span { background: #1f4fff; }

/* Buttons Row */
.buttons {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.btn {
    flex: 1;
    padding: 16px 32px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.95rem;
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.cart {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.cart:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent);
    box-shadow: 0 0 15px rgba(255, 107, 0, 0.2);
    transform: translateY(-2px);
}

.buy {
    background: linear-gradient(90deg, var(--accent), var(--accent-neon));
    color: var(--text-primary);
    box-shadow: 0 0 25px rgba(255, 107, 0, 0.3);
}

.buy:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 35px rgba(255, 107, 0, 0.45);
}

/* Features Grid */
.features {
    margin-top: 80px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    padding: 35px 25px;
    border-radius: 18px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s;
}

.feature:hover {
    border-color: rgba(255, 107, 0, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 107, 0, 0.05);
}

.feature-icon {
    font-size: 2.2rem;
    margin-bottom: 15px;
    display: block;
}

.feature h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.feature p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 300;
}

/* Footer Section */
footer {
    text-align: center;
    padding: 40px 20px;
    margin-top: 80px;
    border-top: 1px solid var(--glass-border);
    background: rgba(10, 10, 10, 0.95);
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    position: relative;
    z-index: 10;
}

/* Sliding Cart Drawer */
.cart-drawer {
    position: fixed;
    top: 0;
    right: -450px; /* Hidden offscreen */
    width: 100%;
    max-width: 440px;
    height: 100vh;
    background: rgba(13, 13, 20, 0.96);
    border-left: 1px solid rgba(255, 107, 0, 0.25);
    z-index: 1000;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(20px);
}

.cart-drawer.open {
    right: 0;
}

.cart-header {
    padding: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.cart-close-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
}

.cart-close-btn:hover {
    color: var(--text-primary);
}

.cart-items-container {
    flex-grow: 1;
    padding: 2rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.cart-empty-message {
    text-align: center;
    color: var(--text-secondary);
    margin-top: 3rem;
    font-weight: 300;
}

.cart-item {
    display: flex;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    padding: 1rem;
    border-radius: 12px;
    align-items: center;
    position: relative;
}

.cart-item-img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    background: rgba(255,255,255,0.01);
    border-radius: 8px;
    padding: 5px;
}

.cart-item-details {
    flex-grow: 1;
}

.cart-item-name {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.cart-item-meta {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
}

.cart-item-price {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.cart-item-qty-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 5px;
}

.qty-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    width: 24px;
    height: 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.qty-btn:hover {
    background: var(--accent);
}

.qty-val {
    font-size: 0.9rem;
    font-weight: 600;
    width: 20px;
    text-align: center;
}

.cart-item-remove {
    position: absolute;
    top: 10px;
    right: 12px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.2);
    font-size: 1.1rem;
    cursor: pointer;
    transition: color 0.2s;
}

.cart-item-remove:hover {
    color: #ff3b30;
}

.cart-footer {
    padding: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(10, 10, 15, 0.98);
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.cart-checkout-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 10px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    background: linear-gradient(90deg, var(--accent), var(--accent-neon));
    color: var(--text-primary);
    box-shadow: 0 0 20px rgba(255, 107, 0, 0.25);
    transition: all 0.3s;
}

.cart-checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(255, 107, 0, 0.4);
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(6px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s;
}

.cart-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Checkout Modal Styling (Replicated and Enhanced from specs.html) */
.checkout-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(8, 8, 12, 0.85);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.checkout-modal.show {
    opacity: 1;
    visibility: visible;
}

.checkout-card {
    background: rgba(13, 13, 20, 0.94);
    border: 1px solid rgba(255, 107, 0, 0.2);
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    padding: 2.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(255, 107, 0, 0.05);
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    max-height: 90vh;
    overflow-y: auto;
}

.checkout-modal.show .checkout-card {
    transform: scale(1);
}

.checkout-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-neon));
}

.checkout-close-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.8rem;
    cursor: pointer;
    transition: color 0.3s;
    line-height: 1;
    z-index: 10;
}

.checkout-close-btn:hover {
    color: var(--text-primary);
}

.checkout-header {
    margin-bottom: 1.8rem;
}

.checkout-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: linear-gradient(90deg, #fff, var(--text-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.checkout-subtitle {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 300;
}

.checkout-form-group {
    margin-bottom: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.checkout-form-group label {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    font-weight: 600;
}

.checkout-form-group input,
.checkout-form-group textarea {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 0.8rem 1rem;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s;
}

.checkout-form-group input:focus,
.checkout-form-group textarea:focus {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.04);
}

.checkout-summary {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    padding: 1.2rem;
    border-radius: 10px;
    margin: 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.summary-prod-name {
    font-weight: 600;
}

.summary-prod-price {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--accent-neon);
}

.checkout-submit-btn {
    width: 100%;
    padding: 1rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    background: linear-gradient(90deg, var(--accent), var(--accent-neon));
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    box-shadow: 0 0 20px rgba(255, 107, 0, 0.25);
    transition: all 0.3s;
}

.checkout-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(255, 107, 0, 0.4);
}

/* Payment Selection Grid (Manual payments) */
.payment-options-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 1.5rem;
}

.payment-opt-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px;
    padding: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.payment-opt-card.active {
    border-color: var(--accent);
    background: rgba(255, 107, 0, 0.08);
}

.pay-opt-icon {
    font-size: 1.5rem;
}

.pay-opt-title {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
}

.payment-opt-card.active .pay-opt-title {
    color: var(--text-primary);
}

.payment-details-container {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    padding: 1.2rem;
    margin-bottom: 1.5rem;
}

.pay-details-content {
    display: none;
}

.pay-details-content.active {
    display: block;
}

.pay-instruction-title {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 8px;
    font-weight: 600;
}

.pay-instruction-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 300;
}

.upi-display-box {
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 10px 14px;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.upi-label {
    color: var(--text-secondary);
    font-weight: 500;
}

.upi-value {
    color: var(--text-primary);
    font-family: monospace;
    font-weight: 600;
}

.bank-details-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    font-size: 0.85rem;
}

.bank-details-grid div {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px dashed rgba(255,255,255,0.05);
    padding-bottom: 4px;
}

/* Success View */
.checkout-success-view {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem 0;
}

.success-icon {
    width: 64px;
    height: 64px;
    background: rgba(76, 175, 80, 0.1);
    border: 2px solid #4caf50;
    color: #4caf50;
    font-size: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 20px rgba(76, 175, 80, 0.2);
}

.success-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 0.05em;
}

.success-details {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.success-receipt {
    color: var(--accent-neon);
    font-family: monospace;
    font-weight: 600;
}

/* Toast Notifications */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    background: #0d0d14;
    border: 1px solid var(--accent);
    color: var(--text-primary);
    padding: 1rem 2rem;
    border-radius: 30px;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(255, 107, 0, 0.15);
    z-index: 9999;
    transform: translateY(150%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.show {
    transform: translateY(0);
}

/* Media Queries */
@media (max-width: 992px) {
    .product {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 30px;
    }
    .product-media {
        min-height: 300px;
        padding: 20px;
    }
    .product-media img {
        max-height: 280px;
    }
}

@media (max-width: 768px) {
    .main-header {
        padding: 1.5rem 2rem;
    }
    .desktop-nav {
        display: none;
    }
    .container {
        padding: 20px;
        margin-top: 80px;
    }
    .features {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 40px;
    }
    .buttons {
        flex-direction: column;
        gap: 15px;
    }
    .btn {
        width: 100%;
    }
}

/* ==========================================================================
   E-COMMERCE COLLECTION PAGES (GRID, SIDEBAR FILTERS, SORTING)
   ========================================================================== */
.collection-container {
    max-width: 1300px;
    margin: 100px auto 40px;
    padding: 40px 20px;
}

.collection-header-section {
    text-align: center;
    margin-bottom: 3rem;
}

.collection-title {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #fff 40%, var(--accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.collection-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 300;
}

.collection-body {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    align-items: start;
}

/* Sidebar Filters */
.filter-sidebar {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 25px;
    backdrop-filter: blur(15px);
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
}

.filter-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.filter-sidebar-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-primary);
}

.clear-filters-btn {
    background: transparent;
    border: none;
    color: var(--accent);
    font-size: 0.8rem;
    cursor: pointer;
    font-weight: 600;
    transition: color 0.3s;
}

.clear-filters-btn:hover {
    color: var(--accent-neon);
    text-decoration: underline;
}

.filter-group {
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    padding-bottom: 18px;
    margin-bottom: 18px;
}

.filter-group:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.filter-group-title {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 12px;
    font-weight: 600;
}

.filter-options-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.filter-option-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    cursor: pointer;
    user-select: none;
    transition: color 0.2s;
}

.filter-option-checkbox:hover {
    color: var(--text-primary);
}

.filter-option-checkbox input[type="checkbox"] {
    appearance: none;
    width: 16px;
    height: 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.02);
    cursor: pointer;
    position: relative;
    outline: none;
    transition: all 0.2s;
}

.filter-option-checkbox input[type="checkbox"]:checked {
    background: var(--accent);
    border-color: var(--accent);
}

.filter-option-checkbox input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 0.7rem;
    font-weight: bold;
}

.price-range-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.price-range-slider {
    width: 100%;
    accent-color: var(--accent);
    background: rgba(255,255,255,0.05);
    height: 4px;
    border-radius: 2px;
    cursor: pointer;
}

.price-range-values {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-family: var(--font-heading);
}

/* Sorting & Grid Content */
.collection-content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sort-and-count-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 12px 20px;
    backdrop-filter: blur(10px);
}

.products-count-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.sort-select-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-select-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
    font-weight: 500;
}

.sort-select-input {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    color: var(--text-primary);
    padding: 6px 12px;
    font-size: 0.85rem;
    outline: none;
    cursor: pointer;
    transition: all 0.3s;
}

.sort-select-input:focus {
    border-color: var(--accent);
}

/* Responsive Grid */
.collection-product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

/* Dynamic Product Card */
.collection-product-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}

.collection-product-card:hover {
    border-color: rgba(255, 107, 0, 0.25);
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(255, 107, 0, 0.08), 0 0 25px rgba(0, 0, 0, 0.3);
}

.card-badge-container {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 2;
}

.card-badge {
    background: linear-gradient(90deg, rgba(255,107,0,0.15), rgba(255,149,0,0.15));
    border: 1px solid rgba(255,107,0,0.3);
    color: var(--text-primary);
    font-size: 0.65rem;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.card-media-wrapper {
    height: 180px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255,255,255,0.01);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.2);
}

.card-media-wrapper img {
    max-width: 100%;
    max-height: 140px;
    object-fit: contain;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    filter: drop-shadow(0 8px 16px rgba(0,0,0,0.5));
}

.collection-product-card:hover .card-media-wrapper img {
    transform: scale(1.08) rotate(-1deg);
}

.card-brand-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--accent);
    letter-spacing: 0.1em;
    font-weight: 600;
    margin-bottom: 4px;
}

.card-name-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.25;
}

.card-meta-description {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 20px;
    font-weight: 300;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    padding-top: 15px;
}

.card-price-display {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.card-action-btn {
    background: transparent;
    border: 1px solid rgba(255, 107, 0, 0.4);
    color: var(--text-primary);
    padding: 8px 16px;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.3s;
}

.collection-product-card:hover .card-action-btn {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 15px rgba(255, 107, 0, 0.3);
}

/* ==========================================================================
   PRODUCT DETAILS EXPANSION (INFO TABS ACCORDION & CUSTOM LENS PANELS)
   ========================================================================== */
.product-details-extended-section {
    margin-top: 5rem;
}

.tabs-container {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px;
    backdrop-filter: blur(15px);
}

.tabs-header-row {
    display: flex;
    gap: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 15px;
    margin-bottom: 30px;
    overflow-x: auto;
}

.tab-nav-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    padding: 8px 20px;
    border-radius: 6px;
    transition: all 0.3s;
    white-space: nowrap;
}

.tab-nav-btn.active {
    color: var(--text-primary);
    background: rgba(255, 107, 0, 0.1);
    border: 1px solid rgba(255, 107, 0, 0.2);
}

.tab-pane-content {
    display: none;
    animation: fadeIn 0.4s ease forwards;
}

.tab-pane-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.tab-grid-table {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 40px;
}

.tab-table-row {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px dashed rgba(255,255,255,0.05);
    padding-bottom: 10px;
}

.tab-table-row-label {
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.tab-table-row-value {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

/* Custom Lens Customizer Container */
.lens-customizer-panel {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 30px;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.3);
}

.lens-package-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 15px;
}

.lens-package-card {
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.lens-package-card.active {
    border-color: var(--accent);
    background: rgba(255, 107, 0, 0.06);
    box-shadow: 0 0 15px rgba(255, 107, 0, 0.1);
}

.lens-package-title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.lens-package-desc {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 300;
    line-height: 1.35;
}

.lens-package-price {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--accent-neon);
    margin-top: 5px;
}

/* Prescription Uploader box */
.prescription-upload-box {
    margin-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 20px;
    display: none;
    animation: fadeIn 0.4s ease forwards;
}

.prescription-upload-box.active {
    display: block;
}

.prescription-uploader-zone {
    border: 2px dashed rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.01);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.prescription-uploader-zone:hover {
    border-color: var(--accent);
    background: rgba(255, 107, 0, 0.02);
}

.presc-upload-icon {
    font-size: 1.8rem;
    margin-bottom: 8px;
    display: block;
}

.presc-upload-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 300;
}

.whatsapp-redirect-box {
    margin-top: 15px;
    text-align: center;
}

.whatsapp-consult-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(37, 211, 102, 0.1);
    border: 1px solid rgba(37, 211, 102, 0.3);
    color: #25d366;
    padding: 8px 18px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: var(--font-heading);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: all 0.3s;
}

.whatsapp-consult-btn:hover {
    background: #25d366;
    color: #fff;
    box-shadow: 0 0 15px rgba(37, 211, 102, 0.3);
}

/* responsive media fixes */
@media (max-width: 992px) {
    .collection-body {
        grid-template-columns: 1fr;
    }
    .filter-sidebar {
        position: static;
        max-height: none;
    }
    .collection-product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .collection-title {
        font-size: 2.2rem;
    }
    .collection-product-grid {
        grid-template-columns: 1fr;
    }
    .tab-grid-table {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .lens-package-grid {
        grid-template-columns: 1fr;
    }
}
