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

:root {
    --primary: #6366f1;
    --secondary: #ec4899;
    --accent: #06b6d4;
    --dark: #0f172a;
    --light: #f8fafc;
    --gray: #64748b;
    --gradient: linear-gradient(135deg, #6366f1 0%, #ec4899 100%);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--dark);
    color: var(--light);
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
}

/* 3D Print Background Animation */
.background-wrapper {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
}

.background-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(50px) rotate(0.5deg); }
}

.print-layers {
    position: absolute;
    inset: 0;
    perspective: 1000px;
}

.layer {
    position: absolute;
    width: 200px;
    height: 200px;
    border: 2px solid rgba(99, 102, 241, 0.1);
    border-radius: 8px;
    animation: layerFloat 15s ease-in-out infinite;
}

.layer:nth-child(1) {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
    border-color: rgba(99, 102, 241, 0.15);
}

.layer:nth-child(2) {
    top: 50%;
    right: 15%;
    animation-delay: -5s;
    border-color: rgba(236, 72, 153, 0.1);
}

.layer:nth-child(3) {
    bottom: 20%;
    left: 20%;
    animation-delay: -10s;
    border-color: rgba(6, 182, 212, 0.1);
}

.layer:nth-child(4) {
    top: 30%;
    right: 30%;
    animation-delay: -7s;
    border-color: rgba(99, 102, 241, 0.08);
}

.layer:nth-child(5) {
    bottom: 10%;
    right: 10%;
    animation-delay: -3s;
    border-color: rgba(236, 72, 153, 0.12);
}

@keyframes layerFloat {
    0%, 100% {
        transform: translateY(0) rotateX(10deg) rotateY(5deg);
        opacity: 0.3;
    }
    50% {
        transform: translateY(-30px) rotateX(-10deg) rotateY(-5deg);
        opacity: 0.6;
    }
}

.nozzle-dots {
    position: absolute;
    inset: 0;
}

.dot {
    position: absolute;
    width: 4px;
    height: 4px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.8) 0%, transparent 70%);
    border-radius: 50%;
    animation: dotPrint 8s ease-in-out infinite;
}

.dot:nth-child(odd) {
    background: radial-gradient(circle, rgba(236, 72, 153, 0.8) 0%, transparent 70%);
}

.dot:nth-child(3n) {
    background: radial-gradient(circle, rgba(6, 182, 212, 0.8) 0%, transparent 70%);
}

@keyframes dotPrint {
    0%, 100% {
        transform: scale(0);
        opacity: 0;
    }
    10% {
        transform: scale(1);
        opacity: 1;
    }
    90% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(0);
        opacity: 0;
    }
}

/* Glow effect */
.glow-orb {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    animation: orbPulse 10s ease-in-out infinite;
}

.glow-orb:nth-child(1) {
    top: -100px;
    left: -100px;
    background: #6366f1;
    animation-delay: 0s;
}

.glow-orb:nth-child(2) {
    bottom: -100px;
    right: -100px;
    background: #ec4899;
    animation-delay: -5s;
}

.glow-orb:nth-child(3) {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #06b6d4;
    animation-delay: -2.5s;
}

@keyframes orbPulse {
    0%, 100% {
        transform: scale(1) translate(0, 0);
        opacity: 0.1;
    }
    50% {
        transform: scale(1.2) translate(20px, -20px);
        opacity: 0.2;
    }
}

/* Floating Particles */
.floating-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.9) 0%, transparent 70%);
    border-radius: 50%;
    animation: particleFloat 20s ease-in-out infinite;
}

.particle:nth-child(1) {
    left: 10%;
    top: 100%;
    animation-delay: 0s;
    animation-duration: 18s;
}

.particle:nth-child(2) {
    left: 20%;
    top: 100%;
    animation-delay: 2s;
    animation-duration: 22s;
}

.particle:nth-child(3) {
    left: 40%;
    top: 100%;
    animation-delay: 4s;
    animation-duration: 19s;
}

.particle:nth-child(4) {
    left: 60%;
    top: 100%;
    animation-delay: 1s;
    animation-duration: 21s;
}

.particle:nth-child(5) {
    left: 80%;
    top: 100%;
    animation-delay: 3s;
    animation-duration: 20s;
}

.particle:nth-child(6) {
    left: 90%;
    top: 100%;
    animation-delay: 5s;
    animation-duration: 23s;
}

.particle:nth-child(7) {
    left: 30%;
    top: 100%;
    animation-delay: 2.5s;
    animation-duration: 17s;
}

.particle:nth-child(8) {
    left: 70%;
    top: 100%;
    animation-delay: 1.5s;
    animation-duration: 24s;
}

@keyframes particleFloat {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) translateX(100px);
        opacity: 0;
    }
}

.particle:nth-child(odd) {
    background: radial-gradient(circle, rgba(236, 72, 153, 0.9) 0%, transparent 70%);
}

.particle:nth-child(3n) {
    background: radial-gradient(circle, rgba(6, 182, 212, 0.9) 0%, transparent 70%);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(99, 102, 241, 0.2);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--light);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-text .first-line {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.6rem;
    color: #ffffff;
    text-shadow: 0 0 20px rgba(34, 197, 94, 0.6);
    letter-spacing: 1px;
}

.logo-text .second-line {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    color: #22c55e;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.logo-img {
    width: 85px;
    height: 85px;
    object-fit: contain;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-radius: 50%;
    padding: 2px;
    border: 2px solid #22c55e;
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.5);
    animation: logoPanda 3s ease-in-out infinite;
}

@keyframes logoPanda {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(-5deg); }
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    color: var(--light);
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
    text-shadow: 0 0 15px rgba(99, 102, 241, 0.5);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-link-action {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    color: var(--light);
    transition: color 0.3s ease, text-shadow 0.3s ease;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
}

.nav-link-action:hover {
    color: var(--primary);
    text-shadow: 0 0 15px rgba(99, 102, 241, 0.5);
    background: rgba(99, 102, 241, 0.1);
}

.cart-toggle {
    position: relative;
    background: var(--gradient);
    border: none;
    padding: 12px 18px;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
}

.cart-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.6);
}

.cart-icon {
    font-size: 1.2rem;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ef4444;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Shop Layout */
.shop-layout {
    padding-top: 80px;
    min-height: 100vh;
}

.shop-layout .container {
    display: flex;
    gap: 30px;
}

/* Filters Sidebar */
.filters-sidebar {
    width: 280px;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 16px;
    padding: 25px;
    height: fit-content;
    position: sticky;
    top: 100px;
    backdrop-filter: blur(10px);
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(99, 102, 241, 0.2);
}

.filters-header h3 {
    font-size: 1.2rem;
    color: var(--light);
}

.close-filters {
    background: rgba(99, 102, 241, 0.2);
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--light);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: none;
    transition: background 0.3s ease;
}

.close-filters:hover {
    background: rgba(99, 102, 241, 0.4);
}

.filter-section {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(99, 102, 241, 0.2);
}

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

.filter-section h4 {
    font-size: 0.95rem;
    margin-bottom: 15px;
    color: var(--light);
}

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

.filter-option {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.filter-option:hover {
    background: rgba(99, 102, 241, 0.1);
}

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

.filter-option span {
    font-size: 0.95rem;
    color: var(--light);
}

.filter-section select {
    width: 100%;
    padding: 12px;
    border: 2px solid rgba(99, 102, 241, 0.3);
    border-radius: 10px;
    font-size: 0.95rem;
    cursor: pointer;
    background: rgba(15, 23, 42, 0.8);
    color: var(--light);
}

.filter-section select:focus {
    outline: none;
    border-color: var(--primary);
}

.filter-section select option {
    background: var(--dark);
    color: var(--light);
}

.apply-filters {
    width: 100%;
    background: var(--gradient);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.apply-filters::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.apply-filters:hover::before {
    left: 100%;
}

.apply-filters:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(99, 102, 241, 0.5);
}

/* Products Area */
.products-area {
    flex: 1;
}

.products-header {
    margin-bottom: 30px;
}

.products-header h1 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--light);
    text-shadow: 0 0 30px rgba(99, 102, 241, 0.5);
}

.products-controls {
    display: flex;
    gap: 15px;
    align-items: center;
}

.search-input {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid rgba(99, 102, 241, 0.3);
    border-radius: 12px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: rgba(15, 23, 42, 0.8);
    color: var(--light);
}

.search-input::placeholder {
    color: #64748b;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}

.mobile-filter-toggle {
    display: none;
    background: rgba(30, 41, 59, 0.8);
    border: 2px solid rgba(99, 102, 241, 0.3);
    padding: 12px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 500;
    color: var(--light);
    transition: all 0.3s ease;
}

.mobile-filter-toggle:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: var(--primary);
}

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

.product-card {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 16px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
    position: relative;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(236, 72, 153, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.15s ease;
    pointer-events: none;
}

.product-card:hover::before {
    opacity: 1;
}

.product-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 50px rgba(99, 102, 241, 0.3);
    border-color: rgba(99, 102, 241, 0.5);
}

.product-image {
    height: 220px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(236, 72, 153, 0.2) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.new-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 10;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.product-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent 0px,
        transparent 2px,
        rgba(255, 255, 255, 0.05) 3px,
        transparent 4px
    );
    animation: printLayer 3s linear infinite;
}

@keyframes printLayer {
    0% { transform: translateY(-220px); }
    100% { transform: translateY(220px); }
}

.product-image-icon {
    font-size: 5rem;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 4px 10px rgba(99, 102, 241, 0.5));
    animation: iconPulse 4s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.product-info {
    padding: 20px;
}

.product-category {
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
    display: inline-block;
    padding: 4px 10px;
    background: rgba(6, 182, 212, 0.15);
    border-radius: 20px;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--light);
}

.product-description {
    color: #94a3b8;
    font-size: 0.9rem;
    margin-bottom: 15px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent);
    text-shadow: 0 0 15px rgba(6, 182, 212, 0.5);
}

.add-to-cart-btn {
    background: var(--gradient);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    position: relative;
    overflow: hidden;
}

.add-to-cart-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.2s ease;
}

.add-to-cart-btn:hover::before {
    left: 100%;
}

.add-to-cart-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(99, 102, 241, 0.5);
}

.loading {
    text-align: center;
    padding: 60px;
    color: #94a3b8;
    font-size: 1.1rem;
}

.loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(99, 102, 241, 0.3);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
    padding: 20px;
}

.pagination button {
    background: rgba(30, 41, 59, 0.8);
    border: 2px solid rgba(99, 102, 241, 0.3);
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    color: var(--light);
}

.pagination button:hover:not(:disabled) {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.2);
    color: var(--primary);
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination button.active {
    background: var(--gradient);
    border-color: transparent;
    color: white;
}

/* Cart Sidebar */
.cart-sidebar {
    width: 400px;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 16px;
    padding: 25px;
    height: fit-content;
    position: sticky;
    top: 100px;
    backdrop-filter: blur(10px);
    display: none;
}

.cart-sidebar.open {
    display: block;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(99, 102, 241, 0.2);
}

.cart-header h3 {
    font-size: 1.2rem;
    color: var(--light);
}

.close-cart {
    display: none;
    background: rgba(99, 102, 241, 0.2);
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--light);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    transition: background 0.3s ease;
}

.close-cart:hover {
    background: rgba(99, 102, 241, 0.4);
}

.cart-items {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.cart-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid rgba(99, 102, 241, 0.2);
}

.cart-item-image {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.3) 0%, rgba(236, 72, 153, 0.3) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.cart-item-info {
    flex: 1;
}

.cart-item-title {
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 0.95rem;
    color: var(--light);
}

.cart-item-price {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

.cart-item-qty {
    display: flex;
    align-items: center;
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.5);
}

.cart-item-qty button {
    background: none;
    border: none;
    padding: 5px 12px;
    cursor: pointer;
    font-size: 1.1rem;
    color: var(--light);
}

.cart-item-qty button:hover {
    background: rgba(99, 102, 241, 0.2);
}

.cart-item-qty span {
    padding: 5px 10px;
    font-weight: 600;
    color: var(--light);
}

.cart-item-remove {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 5px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    margin-left: auto;
    transition: all 0.3s ease;
}

.cart-item-remove:hover {
    background: rgba(239, 68, 68, 0.4);
}

.cart-empty {
    text-align: center;
    padding: 40px 20px;
    color: #94a3b8;
}

.empty-icon {
    font-size: 4rem;
    display: block;
    margin-bottom: 15px;
    opacity: 0.5;
}

.empty-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    margin-top: 15px;
    display: inline-block;
}

.cart-footer {
    border-top: 1px solid rgba(99, 102, 241, 0.2);
    padding-top: 20px;
}

.coupon-section {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.coupon-section input {
    flex: 1;
    padding: 12px;
    border: 2px solid rgba(99, 102, 241, 0.3);
    border-radius: 10px;
    font-size: 0.95rem;
    background: rgba(15, 23, 42, 0.8);
    color: var(--light);
}

.coupon-section input::placeholder {
    color: #64748b;
}

.coupon-section button {
    background: rgba(99, 102, 241, 0.3);
    color: white;
    border: 1px solid rgba(99, 102, 241, 0.5);
    padding: 12px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.coupon-section button:hover {
    background: rgba(99, 102, 241, 0.5);
    box-shadow: 0 5px 20px rgba(99, 102, 241, 0.4);
}

#couponMessage {
    margin-bottom: 15px;
    font-size: 0.9rem;
}

#couponMessage.success {
    color: #22c55e;
}

#couponMessage.error {
    color: #ef4444;
}

.cart-totals {
    margin-bottom: 20px;
}

.total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: var(--light);
}

.total-row.discount {
    color: #22c55e;
}

.total-row.final {
    font-size: 1.3rem;
    font-weight: 700;
    border-top: 2px solid rgba(99, 102, 241, 0.3);
    padding-top: 15px;
    margin-top: 15px;
    color: var(--accent);
}

.checkout-btn {
    width: 100%;
    background: var(--gradient);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.checkout-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.checkout-btn:hover::before {
    left: 100%;
}

.checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.5);
}

/* Modal */
.modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.modal-content {
    position: relative;
    background: rgba(30, 41, 59, 0.95);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlide 0.3s ease;
    backdrop-filter: blur(20px);
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}
    padding: 25px;
    border-bottom: 1px solid rgba(99, 102, 241, 0.2);
}

.modal-header h2 {
    font-size: 1.5rem;
    color: var(--light);
}

.modal-close {
    background: rgba(99, 102, 241, 0.2);
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--light);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    transition: background 0.3s ease;
}

.modal-close:hover {
    background: rgba(99, 102, 241, 0.4);
}

.modal-body {
    padding: 0;
}

.checkout-section {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(99, 102, 241, 0.2);
}

.checkout-section:last-child {
    border-bottom: none;
}

.checkout-section h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--light);
}

.payment-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.payment-option {
    cursor: pointer;
}

.payment-option input {
    display: none;
}

.payment-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    border: 2px solid rgba(99, 102, 241, 0.2);
    border-radius: 12px;
    transition: all 0.3s ease;
    background: rgba(15, 23, 42, 0.5);
}

.payment-option input:checked + .payment-card {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.15);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}

.payment-icon {
    font-size: 2rem;
}

.payment-info strong {
    display: block;
    margin-bottom: 5px;
    color: var(--light);
}

.payment-info p {
    font-size: 0.9rem;
    color: #94a3b8;
}

.order-summary {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 12px;
    padding: 15px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(99, 102, 241, 0.2);
    color: var(--light);
}

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

.summary-total {
    display: flex;
    justify-content: space-between;
    padding-top: 15px;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--accent);
}

.payment-container {
    margin: 20px 0;
}

#paypal-button-container {
    min-height: 50px;
}

.bank-transfer-info {
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
}

.bank-transfer-info h4 {
    margin-bottom: 15px;
    color: var(--accent);
}

.bank-transfer-info p {
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: var(--light);
}

.place-order-btn {
    width: 100%;
    background: var(--gradient);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.place-order-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.place-order-btn:hover::before {
    left: 100%;
}

.place-order-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.5);
}

/* Responsive */
@media (max-width: 1024px) {
    .cart-sidebar {
        position: fixed;
        right: 0;
        top: 0;
        bottom: 0;
        width: 100%;
        max-width: 400px;
        border-radius: 0;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 1500;
        display: block;
    }

    .cart-sidebar.open {
        transform: translateX(0);
    }

    .close-cart {
        display: block;
    }

    .filters-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        width: 100%;
        max-width: 320px;
        border-radius: 0;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1500;
    }

    .filters-sidebar.open {
        transform: translateX(0);
    }

    .close-filters {
        display: block;
    }

    .mobile-filter-toggle {
        display: flex;
        align-items: center;
        gap: 8px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        gap: 15px;
    }

    .nav-links a {
        font-size: 0.85rem;
    }

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

    .payment-card {
        flex-direction: column;
        text-align: center;
    }
}

/* Logout Button */
.logout-btn {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    padding: 12px 24px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: rgba(239, 68, 68, 0.4);
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.4);
}

@media (max-width: 768px) {
    .nav-actions {
        gap: 8px;
    }

    .logout-btn {
        padding: 8px 14px;
        font-size: 0.85rem;
    }

    .cart-toggle {
        padding: 10px 14px;
    }
}

/* Product Detail Modal Styles */
.product-modal-content {
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
    border-radius: 20px;
}

.product-modal-content img {
    max-width: 100%;
    display: block;
}

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

.product-detail {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.product-detail-image {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
}

.product-detail-icon {
    font-size: 6rem;
}

.product-detail-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-detail-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--light);
}

.product-detail-description {
    color: #94a3b8;
    line-height: 1.7;
    font-size: 0.95rem;
}

.product-detail-price {
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.4);
    border-radius: 14px;
    padding: 12px 24px;
    display: inline-block;
    align-self: flex-start;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.2);
}

.product-detail-price .price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.product-detail-stock {
    margin-top: 5px;
}

.stock-status {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
}

.stock-status.in-stock {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.stock-status.out-of-stock {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Product Image Styles */
.main-image-wrapper {
    width: calc(100% + 40px);
    margin: 0 -20px;
}

.product-image-main {
    position: relative;
    width: 100%;
    min-height: 150px;
    max-height: 40vh;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 10px;
    box-sizing: border-box;
}

.product-image-main img {
    max-width: 100%;
    max-height: calc(40vh - 20px);
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.product-image-fallback {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.product-image-fallback.large {
    min-height: 450px;
}

.product-image-fallback .product-detail-icon {
    font-size: 10rem;
}

.product-thumbnails {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 100%;
    padding: 0 10px;
}

.thumb {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid rgba(99, 102, 241, 0.3);
    cursor: pointer;
    background: rgba(15, 23, 42, 0.8);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.thumb:hover {
    border-color: rgba(99, 102, 241, 0.8);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.thumb:hover img {
    transform: scale(1.1);
}

.thumb.active {
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
}

.modal-add-btn {
    margin-top: 8px;
    padding: 14px 28px;
    font-size: 1rem;
    width: 100%;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.modal-add-btn:hover {
    box-shadow: 0 6px 25px rgba(99, 102, 241, 0.5);
}

@media (max-width: 768px) {
    .product-detail {
        flex-direction: column;
        gap: 0;
    }

    .product-modal-body {
        padding: 0;
    }

    .product-image-main {
        max-height: 300px;
        height: auto;
        border-radius: 0;
    }

    .thumb {
        width: 60px;
        height: 60px;
    }

    .product-thumbnails {
        gap: 8px;
    }
}

/* Thank You Section */
.thank-you {
    padding: 30px;
    text-align: center;
    background: rgba(34, 197, 94, 0.1);
    border: 2px solid rgba(34, 197, 94, 0.4);
    border-radius: 12px;
    margin: 20px;
}

.thank-you h3 {
    font-size: 1.5rem;
    color: #22c55e;
    margin-bottom: 20px;
}

.thank-you p {
    color: var(--light);
    margin-bottom: 10px;
}
