/* =====================================
   GLOBAL STYLES AND TOUCH IMPROVEMENTS
   ===================================== */

/* Global touch-friendly improvements for tablets and touch devices */
@media (hover: none) and (pointer: coarse) {
    /* Better touch targets for all interactive elements */
    button, .btn, a[role="button"], .nav-menu a, .mobile-nav-icons a {
        min-height: 44px;
        min-width: 44px;
        padding: 0.8rem 1.2rem;
    }
    
    /* Improve focus states for touch navigation */
    *:focus {
        outline: 2px solid #6b46c1;
        outline-offset: 2px;
    }
}

/* Improve general touch responsiveness */
* {
    -webkit-tap-highlight-color: rgba(107, 70, 193, 0.2);
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Allow text selection for content */
p, span, h1, h2, h3, h4, h5, h6, .product-name, .product-description {
    -webkit-user-select: text;
    -khtml-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* =====================================
   CUTE LOADING SCREEN
   ===================================== */

/* Prevent scrolling during loading */
body.loading {
    overflow: hidden !important;
    height: 100% !important;
}

html.loading {
    overflow: hidden !important;
    height: 100% !important;
}

/* Cute Loading Screen */
.loading-screen {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 50%, #fecfef 100%);
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.2) 0%, transparent 50%);
    z-index: 999999 !important;
    display: flex !important;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
    font-family: 'Inter', 'Roboto', 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Arial', sans-serif;
    overflow: hidden;
}

.loading-screen.hidden {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    z-index: -1 !important;
}

.loading-container {
    text-align: center;
    position: relative;
    z-index: 999998 !important;
    animation: containerBounce 3s ease-in-out infinite;
}

@keyframes containerBounce {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Cute Robot Mascot */
.cute-mascot {
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
    animation: robotFloat 2s ease-in-out infinite alternate;
}

@keyframes robotFloat {
    0% { transform: translateY(0px) rotate(-2deg); }
    100% { transform: translateY(-15px) rotate(2deg); }
}

.robot-head {
    width: 80px;
    height: 70px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 20px 20px 15px 15px;
    position: relative;
    margin: 0 auto 10px;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    border: 3px solid #fff;
}

.robot-eyes {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 15px 12px 8px;
}

.eye {
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    position: relative;
    animation: eyeBlink 3s infinite;
}

.eye-pupil {
    width: 8px;
    height: 8px;
    background: #333;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: eyeMove 4s ease-in-out infinite;
}

@keyframes eyeBlink {
    0%, 90%, 100% { transform: scaleY(1); }
    95% { transform: scaleY(0.1); }
}

@keyframes eyeMove {
    0%, 100% { transform: translate(-50%, -50%); }
    25% { transform: translate(-70%, -50%); }
    50% { transform: translate(-50%, -70%); }
    75% { transform: translate(-30%, -50%); }
}

.robot-mouth {
    width: 25px;
    height: 12px;
    background: #ff6b6b;
    border-radius: 0 0 12px 12px;
    margin: 0 auto;
    animation: mouthTalk 1.5s ease-in-out infinite;
}

@keyframes mouthTalk {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(0.6); }
}

.robot-antennas {
    position: absolute;
    top: -15px;
    width: 100%;
    display: flex;
    justify-content: space-around;
}

.antenna {
    width: 3px;
    height: 15px;
    background: #764ba2;
    position: relative;
    animation: antennaWiggle 2s ease-in-out infinite;
}

.antenna-1 { animation-delay: 0s; }
.antenna-2 { animation-delay: 0.5s; }

@keyframes antennaWiggle {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(10deg); }
}

.antenna-tip {
    width: 8px;
    height: 8px;
    background: #ff6b6b;
    border-radius: 50%;
    position: absolute;
    top: -4px;
    left: -2.5px;
    animation: tipGlow 1s ease-in-out infinite alternate;
}

@keyframes tipGlow {
    0% { box-shadow: 0 0 5px #ff6b6b; }
    100% { box-shadow: 0 0 15px #ff6b6b, 0 0 25px #ff6b6b; }
}

.robot-body {
    width: 60px;
    height: 40px;
    background: linear-gradient(135deg, #74b9ff, #0984e3);
    border-radius: 10px;
    margin: 0 auto;
    position: relative;
    border: 3px solid #fff;
    box-shadow: 0 5px 15px rgba(116, 185, 255, 0.4);
}

.robot-screen {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 40px;
    height: 20px;
    background: #2d3436;
    border-radius: 3px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    padding: 3px;
}

.screen-line {
    height: 2px;
    background: #00b894;
    border-radius: 1px;
    animation: screenFlicker 2s ease-in-out infinite;
}

.screen-line:nth-child(1) { animation-delay: 0s; }
.screen-line:nth-child(2) { animation-delay: 0.3s; }
.screen-line:nth-child(3) { animation-delay: 0.6s; }

@keyframes screenFlicker {
    0%, 100% { opacity: 1; width: 100%; }
    50% { opacity: 0.5; width: 70%; }
}

/* Brand Section */
.brand-section {
    margin: 20px 0;
}

.cute-title {
    font-family: 'Inter', 'Roboto', 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Arial', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(45deg, #667eea, #764ba2, #ff6b6b, #4ecdc4);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: rainbowText 3s ease-in-out infinite;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    letter-spacing: 0.05em;
    text-rendering: optimizeLegibility;
}

@keyframes rainbowText {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.cute-subtitle {
    font-size: 1.1rem;
    color: #2d3436;
    margin: 10px 0;
    font-weight: 600;
    animation: subtitleBounce 2s ease-in-out infinite;
}

@keyframes subtitleBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Cute Progress Bar */
.cute-progress {
    margin: 30px 0;
}

.progress-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

.cute-progress-bar {
    width: 250px;
    height: 12px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    overflow: hidden;
    border: 3px solid #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #feca57);
    background-size: 300% 100%;
    border-radius: 20px;
    transition: width 0.3s ease;
    animation: progressRainbow 2s linear infinite;
    position: relative;
}

@keyframes progressRainbow {
    0% { background-position: 0% center; }
    100% { background-position: 300% center; }
}

.progress-sparkle {
    position: absolute;
    top: 0;
    right: 0;
    width: 20px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent);
    animation: sparkleMove 1.5s ease-in-out infinite;
}

@keyframes sparkleMove {
    0% { transform: translateX(-20px) scaleX(0); }
    50% { transform: translateX(0px) scaleX(1); }
    100% { transform: translateX(20px) scaleX(0); }
}

.progress-percentage {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2d3436;
    min-width: 40px;
}

.cute-message {
    font-size: 1rem;
    color: #2d3436;
    font-weight: 600;
    animation: messageWiggle 3s ease-in-out infinite;
}

@keyframes messageWiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(1deg); }
    75% { transform: rotate(-1deg); }
}

/* Floating Decorations */
.cute-decorations {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.decoration {
    position: absolute;
    font-size: 2rem;
    animation: floatDecoration 4s ease-in-out infinite;
}

.decoration:nth-child(1) {
    top: 15%;
    left: 10%;
    animation-delay: 0s;
}

.decoration:nth-child(2) {
    top: 20%;
    right: 15%;
    animation-delay: 0.5s;
}

.decoration:nth-child(3) {
    bottom: 30%;
    left: 20%;
    animation-delay: 1s;
}

.decoration:nth-child(4) {
    top: 60%;
    right: 10%;
    animation-delay: 1.5s;
}

.decoration:nth-child(5) {
    bottom: 20%;
    right: 25%;
    animation-delay: 2s;
}

.decoration:nth-child(6) {
    top: 40%;
    left: 5%;
    animation-delay: 2.5s;
}

.decoration:nth-child(7) {
    bottom: 50%;
    left: 80%;
    animation-delay: 3s;
}

.decoration:nth-child(8) {
    top: 80%;
    left: 50%;
    animation-delay: 3.5s;
}

@keyframes floatDecoration {
    0%, 100% {
        transform: translateY(0px) rotate(0deg) scale(1);
        opacity: 0.7;
    }
    25% {
        transform: translateY(-20px) rotate(5deg) scale(1.1);
        opacity: 1;
    }
    50% {
        transform: translateY(-10px) rotate(-5deg) scale(0.9);
        opacity: 0.8;
    }
    75% {
        transform: translateY(-30px) rotate(3deg) scale(1.05);
        opacity: 0.9;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .cute-title {
        font-size: 2rem;
    }
    
    .cute-subtitle {
        font-size: 1rem;
    }
    
    .robot-head {
        width: 70px;
        height: 60px;
    }
    
    .robot-body {
        width: 50px;
        height: 35px;
    }
    
    .cute-progress-bar {
        width: 200px;
        height: 10px;
    }
    
    .decoration {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .cute-title {
        font-size: 1.6rem;
    }
    
    .cute-subtitle {
        font-size: 0.9rem;
        padding: 0 20px;
    }
    
    .robot-head {
        width: 60px;
        height: 50px;
    }
    
    .robot-body {
        width: 45px;
        height: 30px;
    }
    
    .cute-progress-bar {
        width: 150px;
        height: 8px;
    }
    
    .progress-percentage {
        font-size: 1rem;
    }
    
    .cute-message {
        font-size: 0.9rem;
        padding: 0 20px;
    }
    
    .decoration {
        font-size: 1.2rem;
    }
}

/* =====================================
   RESET AND BASE STYLES
   ===================================== */

/* Circuit Animation */
.circuit-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    border-radius: 30px;
}

.circuit-line {
    position: absolute;
    background: linear-gradient(90deg, transparent, #6b46c1, transparent);
    opacity: 0.6;
}

.line-1 {
    width: 100%;
    height: 2px;
    top: 30%;
    animation: lineMove1 4s linear infinite;
}

.line-2 {
    width: 2px;
    height: 100%;
    left: 70%;
    animation: lineMove2 3s linear infinite;
}

.line-3 {
    width: 100%;
    height: 2px;
    bottom: 30%;
    animation: lineMove3 5s linear infinite;
}

.circuit-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #ec4899;
    border-radius: 50%;
    box-shadow: 0 0 15px #ec4899;
}

.dot-1 {
    top: 30%;
    left: 20%;
    animation: dotPulse 2s ease-in-out infinite;
}

.dot-2 {
    top: 50%;
    right: 30%;
    animation: dotPulse 2.5s ease-in-out infinite 0.5s;
}

.dot-3 {
    bottom: 30%;
    left: 60%;
    animation: dotPulse 3s ease-in-out infinite 1s;
}

/* Progress Bar */
.loading-progress {
    margin-top: 2rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1rem;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #6b46c1, #ec4899, #8b5cf6);
    border-radius: 10px;
    width: 0%;
    transition: width 0.3s ease;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 2s infinite;
}

.progress-text {
    color: #6b46c1;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 1px;
}

/* Floating Icons */
.floating-icons {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    border-radius: 30px;
}

.floating-icon {
    position: absolute;
    color: rgba(107, 70, 193, 0.3);
    font-size: 2rem;
    animation: floatIcon 6s ease-in-out infinite;
}

.icon-1 { top: 10%; left: 10%; animation-delay: 0s; }
.icon-2 { top: 20%; right: 15%; animation-delay: 1s; }
.icon-3 { bottom: 20%; left: 15%; animation-delay: 2s; }
.icon-4 { bottom: 10%; right: 10%; animation-delay: 3s; }
.icon-5 { top: 60%; left: 5%; animation-delay: 4s; }
.icon-6 { top: 40%; right: 5%; animation-delay: 5s; }

/* Animations */
@keyframes logoFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes lineMove1 {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes lineMove2 {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

@keyframes lineMove3 {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

@keyframes dotPulse {
    0%, 100% { 
        transform: scale(1); 
        box-shadow: 0 0 15px #ec4899; 
    }
    50% { 
        transform: scale(1.5); 
        box-shadow: 0 0 25px #ec4899, 0 0 35px #ec4899; 
    }
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes floatIcon {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
        opacity: 0.3; 
    }
    50% { 
        transform: translateY(-20px) rotate(180deg); 
        opacity: 0.6; 
    }
}

/* Responsive Loading */
@media (max-width: 768px) {
    .loading-container {
        padding: 1.5rem;
        max-width: 350px;
    }
    
    .loading-title {
        font-size: 2.5rem;
    }
    
    .loading-subtitle {
        font-size: 1rem;
    }
    
    .floating-icon {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .loading-container {
        padding: 1rem;
        border-radius: 20px;
    }
    
    .loading-title {
        font-size: 2rem;
    }
    
    .loading-subtitle {
        font-size: 0.9rem;
    }
}

/* =====================================
   MAIN STYLES
   ===================================== */

/* =====================================
   VIETNAMESE FONT OPTIMIZATION
   ===================================== */

/* Optimize Vietnamese text rendering */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-feature-settings: "liga" 1, "kern" 1;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Headings font optimization */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', 'Roboto', 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Arial', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

/* Banner title specific font */
.banner-title {
    font-family: 'Inter', 'Roboto', 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Arial', sans-serif !important;
    font-weight: 800;
    letter-spacing: -0.03em;
    text-rendering: optimizeLegibility;
}

/* Section titles font optimization */
.section-header h3 {
    font-family: 'Inter', 'Roboto', 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Arial', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Product names font */
.product-info h4 {
    font-family: 'Inter', 'Roboto', 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Arial', sans-serif;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

/* Button text font */
button, .btn, .add-to-cart {
    font-family: 'Inter', 'Roboto', 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Arial', sans-serif;
    font-weight: 600;
    letter-spacing: 0.01em;
}

/* Form labels and inputs */
label, input, textarea, select {
    font-family: 'Inter', 'Roboto', 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Arial', sans-serif;
    font-weight: 400;
}

/* Navigation font */
.nav-menu a {
    font-family: 'Inter', 'Roboto', 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Arial', sans-serif;
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* Vietnamese diacritics optimization */
.banner-title,
.section-header h3,
.product-info h4,
.benefit-item h4,
.cart-item-name,
.form-section h4,
.modal-header h3 {
    font-variant-ligatures: common-ligatures;
    font-kerning: normal;
    text-align-last: auto;
    word-break: normal;
    overflow-wrap: break-word;
}

/* Ensure proper line height for Vietnamese text */
p, span, div, label {
    line-height: 1.5;
    word-spacing: normal;
    letter-spacing: normal;
}

/* Price text optimization */
.product-price span,
.cart-item-price,
.order-item-price {
    font-variant-numeric: tabular-nums;
    font-weight: 700;
}

/* Form text optimization */
input::placeholder,
textarea::placeholder {
    font-style: italic;
    opacity: 0.7;
}

/* Emoji and special characters optimization */
.decoration,
.cute-subtitle,
.section-header h3 {
    font-variant-emoji: emoji;
}

/* VND currency display */
.product-price span,
.cart-total,
.order-item-price,
.total-line span {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* Prevent text breaking on Vietnamese words */
.product-info h4,
.cart-item-name,
.benefit-item h4 {
    word-break: keep-all;
    overflow-wrap: anywhere;
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
}

body {
    font-family: 'Inter', 'Roboto', 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Arial', sans-serif;
    font-weight: 400;
    background: linear-gradient(135deg, #e8d5ff 0%, #f5c6d0 100%);
    background-image: url('../background.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    color: #333;
    overflow-x: hidden;
}

/* Header Styles */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-radius: 15px;
    margin: 1rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-brand h1 {
    font-size: 1.8rem;
    font-weight: bold;
    color: #6b46c1;
}

.nav-menu a {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #6b46c1;
}

.build-btn {
    background: linear-gradient(135deg, #6b46c1, #8b5cf6);
    color: white !important;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.8rem;
}

.build-btn.secondary {
    background: linear-gradient(135deg, #f472b6, #ec4899);
}

/* Admin Dropdown Styles */
.admin-dropdown {
    position: relative;
    display: inline-block;
}

.admin-dropdown .dropdown-toggle {
    text-decoration: none;
    color: #555;
    font-family: 'Inter', 'Roboto', 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Arial', sans-serif;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: color 0.3s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-align: center;
    padding: 0;
    margin: 0;
    border: none;
    background: none;
}

.admin-dropdown .dropdown-toggle:hover {
    color: #6b46c1;
}

/* Desktop specific styles for admin dropdown */
@media (min-width: 769px) {
    .admin-dropdown .dropdown-toggle {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        padding: 0 !important;
        width: auto !important;
        background: none !important;
        text-align: left !important;
    }
}

.admin-dropdown .dropdown-toggle i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
    margin-left: 0.25rem;
    flex-shrink: 0;
}

.admin-dropdown.active .dropdown-toggle i {
    transform: rotate(180deg);
}

.admin-dropdown .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 160px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    border: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.admin-dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.admin-dropdown .dropdown-menu a {
    display: block !important;
    padding: 0.75rem 1rem;
    color: #555;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    width: 100%;
    white-space: nowrap;
    box-sizing: border-box;
}

.admin-dropdown .dropdown-menu a:hover {
    background: #f8f9fa;
    color: #6b46c1;
    padding-left: 1.5rem;
}

/* Mobile responsive styles for admin dropdown */
@media (max-width: 768px) {
    /* Ensure header doesn't clip dropdown */
    .header {
        overflow: visible;
    }
    
    .navbar {
        overflow: visible;
    }
    
    .nav-menu {
        overflow: visible; /* Allow dropdown to extend beyond */
    }
    
    .nav-menu.active {
        overflow-y: auto; /* But allow scrolling for the menu itself */
    }
    
    /* Admin dropdown mobile positioning */
    .admin-dropdown {
        position: relative;
        display: block;
        width: 100%;
        z-index: 10000; /* Very high z-index */
    }
    
    .admin-dropdown .dropdown-toggle {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 0.75rem 1rem;
        width: 100%;
        text-align: center;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 8px;
        margin: 0.25rem 0;
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.2);
        font-family: 'Inter', 'Roboto', 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Arial', sans-serif;
        font-weight: 600;
        letter-spacing: 0.02em;
        gap: 0.5rem;
    }
    
    .admin-dropdown .dropdown-toggle:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: translateY(-2px);
    }
    
    .admin-dropdown .dropdown-menu {
        position: static;
        width: 100%;
        margin-top: 0;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(15px);
        border: 1px solid rgba(255, 255, 255, 0.3);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
        max-height: 0;
        overflow: hidden;
        transition: all 0.3s ease, max-height 0.3s ease;
    }
    
    .admin-dropdown.active .dropdown-menu {
        max-height: 400px; /* Increased from 200px to fit all items */
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        overflow-y: auto; /* Allow scrolling if needed */
    }
    
    .admin-dropdown .dropdown-menu a {
        padding: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        font-size: 1rem;
        font-weight: 500;
        transition: all 0.2s ease;
        pointer-events: auto;
        position: relative;
        z-index: 10003;
        cursor: pointer;
    }
    
    .admin-dropdown .dropdown-menu a:last-child {
        border-bottom: none;
    }
    
    .admin-dropdown .dropdown-menu a:hover {
        background: rgba(107, 70, 193, 0.1);
        color: #6b46c1;
        transform: translateX(5px);
    }
    
    /* Ensure dropdown is above other elements on mobile */
    .nav-menu.active .admin-dropdown {
        z-index: 1001;
    }
}

@media (max-width: 480px) {
    .admin-dropdown .dropdown-toggle {
        padding: 1rem;
        font-size: 1.1rem;
        justify-content: center;
        text-align: center;
        width: 100%;
    }
    
    .admin-dropdown .dropdown-menu a {
        padding: 1.25rem;
        font-size: 1.1rem;
    }
}

.nav-icons {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-shrink: 0;
}

.nav-icons i {
    font-size: 1.2rem;
    color: #555;
    cursor: pointer;
    transition: color 0.3s ease;
}

.nav-icons i:hover {
    color: #6b46c1;
}

/* Desktop nav menu */
.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
    flex-wrap: nowrap;
}

/* Tablet and Large Device Responsive (768px - 1366px) */
@media (min-width: 768px) and (max-width: 1400px) {
    /* Show mobile menu toggle on tablet for better touch interaction */
    .mobile-menu-toggle {
        display: flex !important;
        flex-direction: column;
        cursor: pointer;
        padding: 0.8rem;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 10px;
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.2);
        transition: all 0.3s ease;
        /* Larger touch target for tablet */
        min-width: 48px;
        min-height: 48px;
        justify-content: center;
        align-items: center;
    }
    
    .mobile-menu-toggle:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: scale(1.05);
    }
    
    .mobile-menu-toggle i {
        font-size: 1.8rem;
        color: #6b46c1;
        transition: all 0.3s ease;
    }
    
    .mobile-menu-toggle:hover i {
        color: #8b5cf6;
    }
    
    /* Tablet navigation menu */
    .nav-menu {
        transition: all 0.3s ease;
        transform: translateY(-10px);
        opacity: 0;
        visibility: hidden;
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 1rem;
        right: 1rem;
        z-index: 1000;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(15px);
        border-radius: 15px;
        padding: 1.5rem;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
        border: 1px solid rgba(255, 255, 255, 0.3);
        gap: 1rem;
        margin-top: 1rem;
    }
    
    .nav-menu.active {
        display: flex;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    .nav-menu a {
        padding: 1rem 1.5rem;
        text-align: center;
        border-radius: 10px;
        transition: all 0.3s ease;
        font-size: 1.1rem;
        /* Better touch targets for tablet */
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .nav-menu a:hover {
        background: rgba(107, 70, 193, 0.1);
        transform: translateY(-2px);
    }
    
    /* Show mobile nav icons on tablet */
    .mobile-nav-icons {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        margin-top: 1.5rem;
        padding-top: 1.5rem;
        border-top: 1px solid rgba(107, 70, 193, 0.2);
    }
    
    .mobile-nav-icons a {
        display: flex;
        align-items: center;
        gap: 1rem;
        padding: 1rem 1.5rem;
        color: #6b46c1;
        text-decoration: none;
        border-radius: 10px;
        transition: all 0.3s ease;
        /* Better touch targets for tablet */
        min-height: 48px;
        font-size: 1.1rem;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .mobile-nav-icons a:hover {
        background: rgba(107, 70, 193, 0.1);
        transform: translateY(-2px);
    }
    
    .mobile-nav-icons i {
        font-size: 1.3rem;
        flex-shrink: 0;
    }
    
    /* Fix cart count spacing in mobile nav */
    .mobile-nav-icons #cartCount {
        display: inline;
        margin: 0;
        padding: 0;
        font-size: inherit;
        line-height: inherit;
    }
    
    /* Hide desktop nav icons on tablet */
    .nav-icons {
        display: none !important;
    }
    
    /* Hero section adjustments for tablet */
    .hero-text h2 {
        font-size: 2.5rem;
    }
    
    .hero-text p {
        font-size: 1.2rem;
    }
}

/* Mobile Menu Animation - only apply on mobile */
@media (max-width: 768px) {
    /* Show mobile menu toggle on mobile */
    .mobile-menu-toggle {
        display: flex !important;
        flex-direction: column;
        cursor: pointer;
        padding: 0.5rem;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 8px;
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.2);
        transition: all 0.3s ease;
    }
    
    .mobile-menu-toggle:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: scale(1.05);
    }
    
    .mobile-menu-toggle i {
        font-size: 1.5rem;
        color: #6b46c1;
        transition: all 0.3s ease;
    }
    
    .mobile-menu-toggle:hover i {
        color: #8b5cf6;
        transform: rotate(90deg);
    }
    
    .nav-menu {
        transition: all 0.3s ease;
        transform: translateY(-10px);
        opacity: 0;
        visibility: hidden;
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 1rem;
        right: 1rem;
        z-index: 1000;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(15px);
        border-radius: 15px;
        padding: 1rem;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
        border: 1px solid rgba(255, 255, 255, 0.3);
        gap: 0.5rem;
        
        /* Enhanced scrolling for all devices */
        max-height: calc(100vh - 120px);
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
        scrollbar-width: thin;
        scrollbar-color: rgba(107, 70, 193, 0.3) transparent;
        
        /* Force hardware acceleration */
        will-change: scroll-position, transform;
        transform: translate3d(0, -10px, 0);
        -webkit-transform: translate3d(0, -10px, 0);
        
        /* Touch scrolling optimization */
        touch-action: pan-y;
        overscroll-behavior-y: contain;
        scroll-behavior: smooth;
        
        /* Ensure minimum content height for scrolling */
        min-height: auto;
        
        /* Webkit specific touch improvements */
        -webkit-touch-callout: none;
        -webkit-tap-highlight-color: transparent;
    }

    /* Custom scrollbar styling */
    .nav-menu::-webkit-scrollbar {
        width: 6px;
    }

    .nav-menu::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.1);
        border-radius: 3px;
    }

    .nav-menu::-webkit-scrollbar-thumb {
        background: rgba(107, 70, 193, 0.3);
        border-radius: 3px;
    }

    .nav-menu::-webkit-scrollbar-thumb:hover {
        background: rgba(107, 70, 193, 0.5);
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    /* Style navigation links in mobile menu */
    .nav-menu a {
        padding: 0.75rem 1rem;
        margin: 0.25rem 0;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        text-align: center;
        font-weight: 600;
        transition: all 0.3s ease;
        flex-shrink: 0; /* Prevent items from shrinking */
    }
    
    .nav-menu a:hover {
        background: rgba(107, 70, 193, 0.1);
        color: #6b46c1;
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(107, 70, 193, 0.2);
    }

    /* Admin dropdown in mobile menu */
    .nav-menu .admin-dropdown {
        width: 100%;
        margin: 0.25rem 0;
        flex-shrink: 0;
    }

    .nav-menu .admin-dropdown .dropdown-toggle {
        width: 100%;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
    }

    .nav-menu .admin-dropdown .dropdown-menu {
        position: static;
        display: none;
        width: 100%;
        background: rgba(107, 70, 193, 0.1);
        border-radius: 8px;
        margin-top: 0.5rem;
        padding: 0.5rem;
        box-shadow: none;
        border: 1px solid rgba(107, 70, 193, 0.2);
    }

    .nav-menu .admin-dropdown.active .dropdown-menu {
        display: block;
    }

    .nav-menu .admin-dropdown .dropdown-menu a {
        margin: 0.25rem 0;
        padding: 0.5rem 1rem;
        background: rgba(255, 255, 255, 0.05);
        font-size: 0.9rem;
    }

    /* Mobile nav icons styling */
    .nav-menu .mobile-nav-icons {
        width: 100%;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(107, 70, 193, 0.2);
        flex-shrink: 0;
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .nav-menu .mobile-nav-icons a {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        padding: 0.75rem 1rem;
        margin: 0.25rem 0;
        text-align: left;
        background: rgba(107, 70, 193, 0.05);
        border: 1px solid rgba(107, 70, 193, 0.1);
    }

    .nav-menu .mobile-nav-icons a i {
        margin-right: 0.75rem;
        width: 20px;
        text-align: center;
        color: #6b46c1;
    }

    .nav-menu .mobile-nav-icons a:hover {
        background: rgba(107, 70, 193, 0.15);
        transform: translateX(5px);
    }

    /* Build button styling in mobile */
    .nav-menu .build-btn {
        background: linear-gradient(135deg, #6b46c1, #8b5cf6);
        color: white;
        border: none;
        font-weight: bold;
        margin: 0.5rem 0;
        box-shadow: 0 4px 15px rgba(107, 70, 193, 0.3);
        flex-shrink: 0;
    }

    .nav-menu .build-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(107, 70, 193, 0.4);
    }

    /* Scroll indicator for better UX */
    .nav-menu::after {
        content: '';
        position: sticky;
        bottom: 0;
        left: 0;
        right: 0;
        height: 10px;
        background: linear-gradient(to top, rgba(255,255,255,0.8) 0%, transparent 100%);
        pointer-events: none;
        border-radius: 0 0 15px 15px;
    }
    
    /* Force scroll behavior for problematic devices */
    .nav-menu.active {
        /* Ensure scrolling works on all devices */
        height: auto;
        max-height: calc(100vh - 120px);
        overflow-y: scroll !important;
        -webkit-overflow-scrolling: touch !important;
        
        /* Additional scroll fixes for iOS Safari */
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
        
        /* Force momentum scrolling */
        -webkit-tap-highlight-color: transparent;
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        user-select: none;
        
        /* Ensure content is scrollable */
        min-height: calc(100vh - 120px);
        padding-bottom: 2rem; /* Extra space at bottom */
    }
}

/* Special fixes for devices with scroll issues */
/* iOS Safari specific fixes */
@supports (-webkit-touch-callout: none) {
    @media (max-width: 768px) {
        .nav-menu.active {
            overflow-y: scroll !important;
            -webkit-overflow-scrolling: touch !important;
            transform: translate3d(0, 0, 0) !important;
            will-change: scroll-position !important;
        }
    }
}

/* Android Chrome specific fixes */
@media (max-width: 768px) and (-webkit-min-device-pixel-ratio: 1) {
    .nav-menu.active {
        overscroll-behavior: contain;
        scroll-snap-type: none;
        touch-action: pan-y manipulation;
    }
}

/* Samsung Internet and other mobile browsers */
@media (max-width: 768px) {
    .nav-menu.active .mobile-nav-icons {
        margin-bottom: 1rem; /* Ensure last items are accessible */
        padding-bottom: 1rem;
    }
    
    /* Force scrollbar visibility on some devices */
    .nav-menu.active::-webkit-scrollbar {
        width: 8px !important;
        display: block !important;
    }
    
    .nav-menu.active::-webkit-scrollbar-thumb {
        background: rgba(107, 70, 193, 0.5) !important;
        border-radius: 4px !important;
    }
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle i {
    font-size: 1.5rem;
    color: #6b46c1;
    transition: color 0.3s ease;
}

.mobile-menu-toggle:hover i {
    color: #8b5cf6;
}

/* Hide mobile nav icons on desktop only */
@media (min-width: 769px) {
    .mobile-nav-icons {
        display: none !important;
    }
}

/* Hide mobile menu toggle on large desktop screens */
@media (min-width: 1401px) {
    .mobile-menu-toggle {
        display: none !important;
    }
}

/* Specific media queries for Surface Duo and Nest Hub */
/* Surface Duo (540x720) - Portrait mode */
@media (min-width: 540px) and (max-width: 540px) and (min-height: 720px) {
    .nav-menu {
        max-height: calc(100vh - 80px);
        padding: 0.75rem;
    }
    
    .nav-menu a {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .nav-menu .mobile-nav-icons a {
        padding: 0.6rem 0.8rem;
    }
}

/* Nest Hub (1024x600) - Landscape mode */
@media (min-width: 1024px) and (max-width: 1024px) and (max-height: 600px) {
    .nav-menu {
        max-height: calc(100vh - 100px);
        left: 2rem;
        right: 2rem;
        padding: 1.25rem;
    }
    
    .nav-menu a {
        padding: 0.8rem 1.2rem;
        font-size: 1rem;
    }
    
    .nav-menu .mobile-nav-icons {
        margin-top: 1.5rem;
        padding-top: 1.5rem;
    }
    
    .nav-menu .mobile-nav-icons a {
        padding: 0.8rem 1.2rem;
    }
}

/* General tablet optimization for scrollable menu */
@media (min-width: 768px) and (max-width: 1024px) {
    .nav-menu {
        max-height: calc(100vh - 90px);
        overflow-y: auto;
        scrollbar-width: thin;
    }
    
    .nav-menu::-webkit-scrollbar {
        width: 8px;
    }
    
    .nav-menu::-webkit-scrollbar-thumb {
        background: rgba(107, 70, 193, 0.4);
        border-radius: 4px;
    }
}
@media (min-width: 1401px) {
    .mobile-nav-icons {
        display: none;
    }
}

/* =====================================
   LARGE TABLET NAVIGATION (iPad Pro, Surface Pro)
   ===================================== */
@media (min-width: 1025px) and (max-width: 1400px) {
    /* Show mobile menu toggle for large tablets with touch interface */
    .mobile-menu-toggle {
        display: flex !important;
        flex-direction: column;
        cursor: pointer;
        padding: 0.8rem;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 10px;
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.2);
        transition: all 0.3s ease;
        min-width: 48px;
        min-height: 48px;
        justify-content: center;
        align-items: center;
    }
    
    .mobile-menu-toggle:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: scale(1.05);
    }
    
    .mobile-menu-toggle i {
        font-size: 1.8rem;
        color: #6b46c1;
        transition: all 0.3s ease;
    }
    
    .mobile-menu-toggle:hover i {
        color: #8b5cf6;
    }
    
    /* Large tablet navigation menu */
    .nav-menu {
        transition: all 0.3s ease;
        transform: translateY(-10px);
        opacity: 0;
        visibility: hidden;
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 1rem;
        right: 1rem;
        z-index: 1000;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(15px);
        border-radius: 15px;
        padding: 1.5rem;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
        border: 1px solid rgba(255, 255, 255, 0.3);
    }
    
    .nav-menu.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    /* Show mobile nav icons on large tablets */
    .mobile-nav-icons {
        display: flex !important;
        flex-direction: column;
        gap: 1rem;
        margin-top: 1.5rem;
        padding-top: 1.5rem;
        border-top: 1px solid rgba(107, 70, 193, 0.2);
    }
    
    .mobile-nav-icons a {
        display: flex;
        align-items: center;
        gap: 1rem;
        padding: 1rem 1.5rem;
        color: #6b46c1;
        text-decoration: none;
        border-radius: 10px;
        transition: all 0.3s ease;
        min-height: 48px;
        font-size: 1.1rem;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .mobile-nav-icons a:hover {
        background: rgba(107, 70, 193, 0.1);
        transform: translateY(-2px);
    }
    
    .mobile-nav-icons i {
        font-size: 1.3rem;
        flex-shrink: 0;
    }
    
    /* Hide desktop nav icons on large tablets */
    .nav-icons {
        display: none !important;
    }
}

/* =====================================
   BANNER CAROUSEL - COMPLETELY REWRITTEN
   ===================================== */

.banner-section {
    margin: 1rem;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 10;
}

.banner-container {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    background: #1a1a1a;
}

.banner-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    padding: 0 50px;
}

.banner-slide.active {
    opacity: 1;
}

.banner-content {
    position: relative;
    z-index: 2;
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

.banner-left {
    flex: 1;
    max-width: 500px;
}

.banner-title {
    font-size: 3rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.banner-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2.5rem;
    line-height: 1.6;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.banner-button {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.banner-button:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.banner-right {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.banner-image-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
}

/* Navigation Arrows */
.banner-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 20;
    backdrop-filter: blur(10px);
}

.banner-nav:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.banner-prev {
    left: 20px;
}

.banner-next {
    right: 20px;
}

/* Dots Indicator */
.banner-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 20;
    /* Prevent touch zoom and improve mobile interaction */
    touch-action: manipulation;
    -webkit-user-select: none;
    user-select: none;
}

.banner-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    /* Prevent touch zoom on mobile */
    touch-action: manipulation;
    -webkit-user-select: none;
    user-select: none;
}

.banner-dot.active {
    background: #00d4ff;
    border-color: white;
    transform: scale(1.2);
}

.banner-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* Slide Background Images */
.banner-slide:nth-child(1) {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.banner-slide:nth-child(2) {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.banner-slide:nth-child(3) {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

/* Background classes for individual slides */
.bg-gradient-1 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.bg-gradient-2 {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.bg-gradient-3 {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.banner-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .banner-section {
        /* Prevent zoom and improve mobile performance */
        touch-action: manipulation;
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        user-select: none;
        -webkit-tap-highlight-color: transparent;
    }
    
    .banner-container {
        height: 300px;
        margin: 15px 0;
        /* Enhanced mobile touch handling */
        touch-action: manipulation;
        -webkit-overflow-scrolling: touch;
    }
    
    .banner-slide {
        padding: 0 30px;
    }
    
    .banner-content {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1rem;
        gap: 2rem;
    }
    
    .banner-title {
        font-size: 2rem;
        margin-bottom: 10px;
    }
    
    .banner-subtitle {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    
    .banner-button {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }
    
    .banner-image-container {
        max-width: 300px;
        height: 250px;
    }
    
    .banner-nav {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .banner-prev {
        left: 15px;
    }
    
    .banner-next {
        right: 15px;
    }
    
    .banner-indicators {
        bottom: 15px;
        gap: 8px;
        /* Enhanced mobile touch prevention */
        touch-action: manipulation;
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        -khtml-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
        pointer-events: auto;
    }
    
    .banner-dot {
        width: 10px;
        height: 10px;
        /* Disable transform scale on mobile to prevent unwanted zoom */
        transform: none !important;
        /* Enhanced mobile touch prevention */
        touch-action: manipulation;
        -webkit-touch-callout: none;
        -webkit-tap-highlight-color: transparent;
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
    }
    
    .banner-dot.active {
        /* Use border instead of scale for active state on mobile */
        border: 2px solid white;
        background: #00d4ff;
        transform: none !important;
        /* No scale, no zoom on mobile */
        -webkit-transform: none !important;
        -moz-transform: none !important;
        -ms-transform: none !important;
    }
    
    .banner-dot:hover {
        /* Disable hover effects on mobile */
        background: rgba(255, 255, 255, 0.5);
        transform: none !important;
    }
}

@media (max-width: 480px) {
    .header {
        margin: 0.25rem;
        padding: 0.8rem;
    }
    
    .nav-brand h1 {
        font-size: 1.3rem;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-icons {
        display: none;
    }
    
    .nav-menu {
        padding: 0.8rem;
        gap: 0.8rem;
    }
    
    .nav-menu a {
        padding: 0.6rem;
        font-size: 0.9rem;
    }
    
    .build-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .banner-container {
        height: 250px;
        border-radius: 10px;
    }
    
    .banner-slide {
        padding: 0 20px;
    }
    
    .banner-title {
        font-size: 1.5rem;
    }
    
    .banner-subtitle {
        font-size: 0.9rem;
    }
    
    .banner-button {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }

    .product-image {
        height: 160px;
        padding: 0.5rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Hero Section */
.hero {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 2rem auto 0;
    position: relative;
    z-index: 5;
}

.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    border-radius: 25px;
    padding: 3rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.hero-text h2 {
    font-size: 3rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 1rem;
}

.hero-text p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
}

.shop-btn {
    background: linear-gradient(135deg, #4c1d95, #6b46c1);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.shop-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(107, 70, 193, 0.3);
}

.hero-image img {
    max-width: 400px;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.2));
}

/* Featured Products */
.featured-products {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 5;
}

.featured-products h3 {
    font-size: 2rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 2rem;
    text-align: left;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.product-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.product-image {
    background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
    border-radius: 15px;
    padding: 1rem;
    text-align: center;
    margin-bottom: 1rem;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.product-image:hover img {
    transform: scale(1.05);
}

.product-rating {
    margin-bottom: 0.5rem;
}

.product-rating i {
    color: #fbbf24;
    margin-right: 2px;
}

.product-info h4 {
    font-size: 1.1rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 1rem;
}

.product-price {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
}

.product-price span {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
    text-align: center;
}

.add-to-cart {
    background: linear-gradient(135deg, #f472b6, #ec4899);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 0.5rem;
}

.add-to-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(236, 72, 153, 0.4);
    background: linear-gradient(135deg, #ec4899, #db2777);
}

/* Build Section */
.build-section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 5;
}

.build-section h3 {
    font-size: 2rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 2rem;
    text-align: left;
}

.build-options {
    display: flex;
    justify-content: center;
    gap: 2rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    border-radius: 25px;
    padding: 3rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.build-option {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.build-option.active {
    background: linear-gradient(135deg, #a855f7, #7c3aed);
    color: white;
    transform: scale(1.1);
}

.build-option:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.build-icon span {
    font-size: 0.8rem;
    font-weight: bold;
    text-align: center;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #4c1d95, #6b46c1);
    color: white;
    padding: 3rem 2rem 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    margin-bottom: 2rem;
}

.footer-section h4 {
    font-size: 1rem;
    font-weight: bold;
}

.footer-social {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-social h4 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
}

.footer-social i {
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.footer-social i:hover {
    transform: scale(1.2);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Category Page Styles */
.category-section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.category-content h2 {
    font-size: 3rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 1rem;
}

.category-content p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 3rem;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.category-item {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.category-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6b46c1, #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.category-image i {
    font-size: 2rem;
    color: white;
}

.category-item h3 {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 1rem;
}

.category-item p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.category-btn {
    background: linear-gradient(135deg, #6b46c1, #8b5cf6);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(107, 70, 193, 0.3);
}

.back-section {
    padding: 2rem;
    text-align: center;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    color: #6b46c1;
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-weight: bold;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.back-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header {
        margin: 0.5rem;
        padding: 1rem;
    }
    
    .navbar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: relative;
        flex-wrap: nowrap;
        z-index: 9998;
    }
    
    .nav-brand {
        flex: 1;
    }
    
    .nav-brand h1 {
        font-size: 1.5rem;
    }
    
    .mobile-menu-toggle {
        display: flex;
        order: 3;
    }
    
    .nav-icons {
        display: none;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        border-radius: 15px;
        padding: 1rem;
        margin-top: 1rem;
        gap: 1rem;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
        display: none;
        z-index: 9999;
        pointer-events: none;
    }
    
    .nav-menu.active {
        display: flex;
        pointer-events: auto;
        max-height: 80vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: rgba(107, 70, 193, 0.3) transparent;
    }
    
    /* Enhanced scrollbar for nav-menu on mobile */
    .nav-menu.active::-webkit-scrollbar {
        width: 4px;
    }
    
    .nav-menu.active::-webkit-scrollbar-thumb {
        background: rgba(107, 70, 193, 0.3);
        border-radius: 2px;
    }
    
    .nav-menu.active::-webkit-scrollbar-track {
        background: transparent;
    }
    
    .nav-menu a {
        padding: 0.8rem 1rem;
        text-align: center;
        border-radius: 10px;
        transition: all 0.3s ease;
        pointer-events: auto;
        position: relative;
        z-index: 10000;
    }
    
    .nav-menu a:hover {
        background: rgba(107, 70, 193, 0.1);
    }
    
    .build-btn {
        margin: 0.5rem 0;
        padding: 1rem 2rem;
        font-size: 1rem;
        text-align: center;
    }
    
    .mobile-nav-icons {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(107, 70, 193, 0.2);
        pointer-events: auto;
        position: relative;
        z-index: 10001;
    }
    
    .mobile-nav-icons a {
        display: flex;
        align-items: center;
        gap: 0.8rem;
        padding: 0.8rem 1rem;
        color: #6b46c1;
        text-decoration: none;
        border-radius: 10px;
        transition: all 0.3s ease;
        min-width: 0; /* Allow flex item to shrink */
        pointer-events: auto;
        position: relative;
        z-index: 10002;
        cursor: pointer;
    }
    
    .mobile-nav-icons a:hover {
        background: rgba(107, 70, 193, 0.1);
    }
    
    .mobile-nav-icons i {
        font-size: 1.1rem;
        flex-shrink: 0; /* Keep icon size fixed */
    }
    
    .mobile-nav-icons a span,
    .mobile-nav-icons a:not(:has(span)) {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        flex: 1;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .hero-text h2 {
        font-size: 2rem;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .product-image {
        height: 180px;
        padding: 0.8rem;
    }

    .product-card {
        padding: 1.2rem;
        margin-bottom: 1rem;
    }

    .build-options {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-social {
        max-width: 100%;
        overflow: hidden;
        align-items: center;
        text-align: center;
    }
    
    .footer-social h4 {
        margin-bottom: 1rem;
        font-size: 1rem;
    }
    
    .social-icons {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .contact-info {
        align-items: center;
        max-width: 100%;
    }
    
    .contact-info p {
        justify-content: center;
        flex-wrap: wrap;
        font-size: 0.9rem;
        max-width: 100%;
        text-align: center;
    }

    .category-content h2 {
        font-size: 2rem;
    }

    .category-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Carousel Responsive */
    .carousel-container {
        height: 400px;
    }

    .banner-carousel {
        margin: 0.5rem;
    }

    .hero {
        padding: 2rem 1rem;
        margin-top: 1rem;
    }

    .slide-content {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1rem;
        gap: 2rem;
    }

    .slide-text {
        max-width: 100%;
    }

    .slide-image {
        min-height: 200px;
    }

    .slide-image img {
        max-width: 300px;
        max-height: 200px;
    }

    .slide-text h2 {
        font-size: 1.8rem;
    }

    .slide-text p {
        font-size: 1rem;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
    }

    .prev-btn {
        left: 10px;
    }

    .next-btn {
        right: 10px;
    }

    .carousel-dots {
        bottom: 10px;
    }
}

/* =====================================
   PRODUCT SECTIONS STYLING
   ===================================== */

/* Common section styling with rounded corners */
.new-products,
.best-sellers,
.laptops-section,
.monitors-section,
.storage-section,
.quick-purchase {
    background: rgba(255, 245, 245, 0.4);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    margin: 3rem 2rem;
    padding: 3rem 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.best-sellers {
    background: rgba(255, 247, 237, 0.4);
}

.laptops-section {
    background: rgba(240, 249, 255, 0.4);
}

.monitors-section {
    background: rgba(245, 243, 255, 0.4);
}

.storage-section {
    background: rgba(236, 253, 245, 0.4);
}

.quick-purchase {
    background: rgba(254, 249, 195, 0.4);
}

/* Section headers with navigation arrows */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.section-header h3 {
    font-size: 2.5rem;
    font-weight: bold;
    color: #1a202c;
    text-align: center;
    margin: 0;
    flex: 1;
}

.nav-arrows {
    display: flex;
    gap: 1rem;
}

.nav-arrow {
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: rgba(168, 85, 247, 0.1);
    color: #a855f7;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.nav-arrow:hover {
    background: #a855f7;
    color: white;
    transform: scale(1.1);
}

.nav-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
}

/* Products container with horizontal scroll */
.products-container {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    padding: 1rem 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.products-container::-webkit-scrollbar {
    height: 8px;
}

.products-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.products-container::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #a855f7, #ec4899);
    border-radius: 10px;
}

.products-container::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #7c3aed, #be185d);
}

/* Override product card styling for new sections */
.new-products .product-card,
.best-sellers .product-card,
.laptops-section .product-card,
.monitors-section .product-card,
.storage-section .product-card {
    min-width: 280px;
    flex-shrink: 0;
}

/* Index page specific overrides */
.index-page .product-price {
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem !important;
    align-items: stretch !important;
}

.index-page .product-price span {
    font-size: 1.2rem !important;
    font-weight: bold !important;
    color: #333 !important;
    text-align: center !important;
}

.index-page .add-to-cart {
    background: linear-gradient(135deg, #f472b6, #ec4899) !important;
    color: white !important;
    border: none !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 25px !important;
    font-size: 0.9rem !important;
    font-weight: bold !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    width: 100% !important;
    margin-top: 0.5rem !important;
}

.new-products .product-card .product-price,
.best-sellers .product-card .product-price,
.laptops-section .product-card .product-price,
.monitors-section .product-card .product-price,
.storage-section .product-card .product-price {
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem !important;
    align-items: center !important;
}

.new-products .product-price span,
.best-sellers .product-price span,
.laptops-section .product-price span,
.monitors-section .product-price span,
.storage-section .product-price span {
    font-size: 1.4rem;
    font-weight: bold;
    color: #dc2626;
}

.new-products .product-card .add-to-cart,
.best-sellers .product-card .add-to-cart,
.laptops-section .product-card .add-to-cart,
.monitors-section .product-card .add-to-cart,
.storage-section .product-card .add-to-cart {
    width: 100% !important;
    margin-top: 0.5rem !important;
}

/* Build section updates */
.build-section {
    background: rgba(245, 243, 255, 0.4);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    margin: 3rem 2rem;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.build-complete-btn {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 2rem;
}

.build-complete-btn:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.3);
}

.build-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
}

.build-icon i {
    font-size: 1.5rem;
}

.build-icon span {
    font-size: 0.8rem;
    font-weight: bold;
}

/* Quick purchase section */
.quick-purchase-content h3 {
    font-size: 2.5rem;
    font-weight: bold;
    color: #1a202c;
    text-align: center;
    margin-bottom: 2rem;
}

.purchase-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.benefit-item {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-5px);
}

.benefit-item i {
    font-size: 3rem;
    color: #a855f7;
    margin-bottom: 1rem;
}

.benefit-item h4 {
    font-size: 1.4rem;
    font-weight: bold;
    color: #1a202c;
    margin: 1rem 0;
}

.benefit-item p {
    color: #6b7280;
    line-height: 1.6;
}

/* =====================================
   SHOPPING CART SIDEBAR
   ===================================== */

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
    opacity: 0;
    transition: all 0.3s ease;
    display: none;
}

.cart-overlay.active {
    z-index: 999;
    opacity: 1;
    display: block;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.active {
    right: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.cart-header h3 {
    font-size: 1.4rem;
    font-weight: bold;
    color: #1a202c;
    margin: 0;
}

.close-cart {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6b7280;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-cart:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #1a202c;
}

.cart-items {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
}

.empty-cart {
    text-align: center;
    padding: 3rem 1rem;
    color: #6b7280;
}

.cart-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    transition: background 0.3s ease;
}

.cart-item:hover {
    background: rgba(0, 0, 0, 0.05);
}

.cart-item-image {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cart-item-image i {
    font-size: 1.5rem;
    color: #a855f7;
}

.cart-item-details {
    flex: 1;
}

.cart-item-name {
    font-weight: bold;
    color: #1a202c;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.cart-item-price {
    color: #dc2626;
    font-weight: bold;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    border: 1px solid #d1d5db;
    background: white;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quantity-btn:hover {
    border-color: #a855f7;
    background: #a855f7;
    color: white;
}

.quantity-btn:disabled {
    background: #f3f4f6;
    border-color: #e5e7eb;
    color: #9ca3af;
    cursor: not-allowed;
    opacity: 0.6;
}

.quantity-btn:disabled:hover {
    background: #f3f4f6;
    border-color: #e5e7eb;
    color: #9ca3af;
}

.cart-item-quantity {
    min-width: 30px;
    text-align: center;
    font-weight: bold;
}

.remove-item {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 3px;
    transition: all 0.3s ease;
    margin-left: 0.5rem;
}

.remove-item:hover {
    background: rgba(239, 68, 68, 0.1);
}

.remove-item:disabled {
    color: #9ca3af;
    cursor: not-allowed;
    opacity: 0.6;
}

.remove-item:disabled:hover {
    background: none;
    color: #9ca3af;
}

.cart-footer {
    padding: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.8);
}

.cart-total {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    text-align: center;
    color: #1a202c;
}

.checkout-btn {
    width: 100%;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 10px;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.checkout-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.3);
}

.checkout-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.cart-icon-wrapper {
    position: relative;
    cursor: pointer;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ef4444;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
}

.cart-badge:empty {
    display: none;
}

/* =====================================
   CHECKOUT MODAL
   ===================================== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 1rem;
    box-sizing: border-box;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    border-radius: 20px;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    transform: scale(0.8);
    transition: transform 0.3s ease;
    position: relative;
    margin: 0 auto;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e5e7eb;
    background: linear-gradient(135deg, #a855f7, #ec4899);
    color: white;
}

.modal-header h3 {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0;
}

.close-modal {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.close-modal:hover {
    background: rgba(255, 255, 255, 0.2);
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
    padding: 2rem;
    max-height: 60vh;
    overflow-y: auto;
}

.checkout-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form-section {
    background: rgba(249, 250, 251, 0.5);
    padding: 1.5rem;
    border-radius: 15px;
    border: 1px solid #e5e7eb;
}

.form-section h4 {
    font-size: 1.2rem;
    font-weight: bold;
    color: #1a202c;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-row {
    display: flex;
    align-items: flex-end;
    gap: 1rem;
}

.form-row .form-group {
    flex: 1;
}

.form-row .remove-attr-btn,
.form-row .remove-spec-btn {
    align-self: center;
    margin-bottom: -20px;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #a855f7;
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.1);
}

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.payment-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-method:hover {
    border-color: #a855f7;
    background: rgba(168, 85, 247, 0.05);
}

.payment-method input[type="radio"] {
    width: auto;
}

.payment-method input[type="radio"]:checked + .payment-icon + span {
    color: #a855f7;
    font-weight: bold;
}

.payment-icon {
    color: #6b7280;
    font-size: 1.2rem;
}

.order-summary {
    background: rgba(249, 250, 251, 0.5);
    padding: 1.5rem;
    border-radius: 15px;
    border: 1px solid #e5e7eb;
    height: fit-content;
}

.order-summary h4 {
    font-size: 1.2rem;
    font-weight: bold;
    color: #1a202c;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.order-items {
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 1rem;
}

.order-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.order-item:last-child {
    border-bottom: none;
}

.order-item-name {
    font-size: 0.9rem;
    color: #374151;
}

.order-item-price {
    font-weight: bold;
    color: #1a202c;
}

.order-totals {
    border-top: 2px solid #e5e7eb;
    padding-top: 1rem;
}

.total-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.total-line.total {
    font-size: 1.2rem;
    font-weight: bold;
    color: #1a202c;
    border-top: 1px solid #e5e7eb;
    padding-top: 0.5rem;
    margin-top: 0.5rem;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding: 1.5rem 2rem;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
}

.btn-secondary {
    background: #6b7280;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #4b5563;
}

.btn-primary {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.3);
}

/* Footer Updates */
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    margin-bottom: 2rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: white;
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.social-icons a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.contact-info p {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    line-height: 1.4;
}

.contact-info p i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-arrows {
        display: none;
    }
    
    .section-header h3 {
        font-size: 2rem;
    }
    
    .modal-body {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .purchase-benefits {
        grid-template-columns: 1fr;
    }
    
    .build-options {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .build-option {
        width: 60px;
        height: 60px;
    }
}

/* =====================================
   SEARCH OVERLAY STYLES
   ===================================== */

.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    transition: all 0.3s ease;
}

.search-overlay.active {
    display: flex;
    opacity: 1;
}

.search-overlay .search-container {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    transform: translateY(50px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-overlay.active .search-container {
    transform: translateY(0);
}

.search-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}

.search-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.search-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.search-close:hover {
    background: #f5f5f5;
    color: #667eea;
    transform: scale(1.1);
}

.search-box {
    position: relative;
    margin-bottom: 1.5rem;
}

.search-box input {
    width: 100%;
    padding: 1rem 4rem 1rem 1.5rem;
    border: 2px solid #e5e7eb;
    border-radius: 15px;
    font-size: 1rem;
    background: #f9fafb;
    transition: all 0.3s ease;
    outline: none;
}

.search-box input:focus {
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-box input::placeholder {
    color: #9ca3af;
}

.search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: #667eea;
    color: white;
    border: none;
    border-radius: 10px;
    padding: 0.8rem 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn:hover {
    background: #4c63d2;
    transform: translateY(-50%) scale(1.05);
}

.search-btn i {
    font-size: 1rem;
}

.search-suggestions {
    max-height: 600px;
    overflow-y: auto;
    border-radius: 15px;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
}

.search-suggestions:empty {
    display: none;
}

.suggestion-item {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.search-suggestions .suggestion-item:hover,
.suggestion-item:hover {
    background: #667eea !important;
    background-color: #667eea !important;
    transition: all 0.2s ease !important;
}

.suggestion-item:hover .suggestion-text h4,
.suggestion-item:hover .suggestion-text p {
    color: white !important;
}

.suggestion-item:hover .suggestion-text h4 mark {
    background: #fbbf24 !important;
    color: #92400e !important;
}
div.suggestion-item:hover
.suggestion-item i {
    font-size: 1.2rem;
    color: #667eea;
    width: 20px;
}

.suggestion-item:hover i {
    color: rgb(255, 255, 255);
}

.suggestion-text {
    flex: 1;
}

.suggestion-text h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.suggestion-text p {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* Search Overlay Mobile Responsive */
@media (max-width: 768px) {
    .search-overlay .search-container {
        width: 95%;
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .search-header h3 {
        font-size: 1.3rem;
    }
    
    .search-close {
        width: 35px;
        height: 35px;
        font-size: 1.3rem;
    }
    
    .search-box input {
        padding: 0.9rem 3.5rem 0.9rem 1.2rem;
        font-size: 0.95rem;
    }
    
    .search-btn {
        padding: 0.7rem 1rem;
        right: 6px;
    }
    
    .suggestion-item {
        padding: 0.8rem 1.2rem;
    }
}

/* =====================================
   ADMIN INPUT PAGE STYLES - PASTEL THEME
   ===================================== */

/* Admin input page container with beautiful pastel gradient */
.admin-input-page {
    min-height: 100vh;
    background: linear-gradient(135deg, 
        #fdf2f8 0%, 
        #f3e8ff 35%, 
        #dbeafe 70%, 
        #f0f9ff 100%);
    padding: 2rem 0;
    font-family: 'Inter', 'Roboto', sans-serif;
    position: relative;
    overflow-x: hidden;
}

/* Animated background elements */
.admin-input-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(251, 207, 232, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(196, 181, 253, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(147, 197, 253, 0.2) 0%, transparent 50%);
    pointer-events: none;
    animation: backgroundFloat 10s ease-in-out infinite;
}

@keyframes backgroundFloat {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(5deg); }
}

.admin-input-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
    z-index: 1;
}

/* Header styling with pastel colors */
.admin-header {
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.9), 
        rgba(253, 242, 248, 0.8));
    border-radius: 25px;
    padding: 2.5rem;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.admin-header .header-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ec4899, #a855f7, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.admin-header h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #be185d, #7c3aed, #1d4ed8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

.admin-header p {
    font-size: 1.2rem;
    color: #6b7280;
    font-weight: 400;
}

/* Form container with glass morphism effect */
.admin-form-container {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.9), 
        rgba(255, 255, 255, 0.7));
    backdrop-filter: blur(20px);
    border-radius: 25px;
    padding: 3rem;
    box-shadow: 
        0 25px 50px rgba(0,0,0,0.08),
        0 0 0 1px rgba(255,255,255,0.5) inset;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Form sections with pastel accents */
.form-section {
    margin-bottom: 2.5rem;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.6), 
        rgba(248, 250, 252, 0.4));
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 25px rgba(0,0,0,0.03);
    transition: all 0.3s ease;
}

.form-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}

.form-section h3 {
    color: #374151;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid transparent;
    background: linear-gradient(90deg, rgba(236, 72, 153, 0.1), rgba(168, 85, 247, 0.1), rgba(59, 130, 246, 0.1));
    border-radius: 10px;
    padding: 1rem;
}

/* Specific section colors */
.form-section:nth-child(1) h3 {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.1), rgba(251, 207, 232, 0.2));
}

.form-section:nth-child(1) h3 i {
    color: #ec4899;
}

.form-section:nth-child(2) h3 {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.1), rgba(196, 181, 253, 0.2));
}

.form-section:nth-child(2) h3 i {
    color: #a855f7;
}

.form-section:nth-child(3) h3 {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(110, 231, 183, 0.2));
}

.form-section:nth-child(3) h3 i {
    color: #10b981;
}

.form-section:nth-child(4) h3 {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(147, 197, 253, 0.2));
}

.form-section:nth-child(4) h3 i {
    color: #3b82f6;
}

/* Form rows and groups */
.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    color: #374151;
    font-weight: 500;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

/* Form inputs with pastel styling */
.form-input,
.form-textarea,
.form-select {
    padding: 1rem 1.2rem;
    border: 2px solid #f1f5f9;
    border-radius: 15px;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.9), 
        rgba(248, 250, 252, 0.8));
    color: #374151;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: #ec4899;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 
        0 0 0 4px rgba(236, 72, 153, 0.1),
        0 8px 25px rgba(236, 72, 153, 0.15);
    transform: translateY(-1px);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #9ca3af;
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

/* Image upload area with gradient */
.image-upload-section h3 {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(110, 231, 183, 0.2)) !important;
}

.image-upload-area {
    border: 2px dashed #d1fae5;
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, 
        rgba(16, 185, 129, 0.05), 
        rgba(110, 231, 183, 0.08));
    position: relative;
    overflow: hidden;
}

.image-upload-area::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, 
        transparent, 
        rgba(16, 185, 129, 0.03), 
        transparent);
    transform: rotate(45deg);
    transition: all 0.3s ease;
}

.image-upload-area:hover,
.image-upload-area.dragover {
    border-color: #10b981;
    background: linear-gradient(135deg, 
        rgba(16, 185, 129, 0.1), 
        rgba(110, 231, 183, 0.15));
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(16, 185, 129, 0.2);
}

.upload-icon {
    font-size: 3.5rem;
    color: #10b981;
    margin-bottom: 1rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.upload-text h4 {
    color: #374151;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.upload-text p {
    color: #6b7280;
    font-size: 0.95rem;
}

/* Image preview grid with pastel styling */
.image-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.preview-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    aspect-ratio: 1;
    border: 2px solid #f1f5f9;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.preview-item:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.preview-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.remove-image {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
    transition: all 0.3s ease;
}

.remove-image:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

/* Upload progress with gradient */
.upload-progress {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-radius: 15px;
    height: 10px;
    overflow: hidden;
    margin-top: 1rem;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #34d399, #6ee7b7);
    border-radius: 15px;
    transition: width 0.3s ease;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

/* Specifications section */
.specs-section h3 {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(147, 197, 253, 0.2)) !important;
}

.spec-inputs {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.spec-row {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 1rem;
    align-items: end;
}

.add-spec-btn {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 15px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 1rem;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.add-spec-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(59, 130, 246, 0.4);
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.remove-spec-btn,
.remove-attr-btn {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 12px;
    cursor: pointer;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.remove-spec-btn:hover,
.remove-attr-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

/* Submit section */
.submit-section {
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid rgba(0,0,0,0.05);
    margin-top: 2rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.5), rgba(248, 250, 252, 0.3));
    border-radius: 20px;
}

.submit-btn {
    background: linear-gradient(135deg, #ec4899, #a855f7, #3b82f6);
    color: white;
    border: none;
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(236, 72, 153, 0.3);
    min-width: 200px;
}

.submit-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;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(236, 72, 153, 0.4);
    background: linear-gradient(135deg, #be185d, #7c3aed, #1d4ed8);
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 8px 20px rgba(236, 72, 153, 0.2);
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 0.5rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Messages with pastel styling */
.message {
    padding: 1rem 1.5rem;
    border-radius: 15px;
    margin: 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.message.success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(110, 231, 183, 0.15));
    color: #047857;
    border: 2px solid rgba(16, 185, 129, 0.2);
}

.message.error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(252, 165, 165, 0.15));
    color: #dc2626;
    border: 2px solid rgba(239, 68, 68, 0.2);
}

/* Back to home button */
.back-to-home {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.9), 
        rgba(248, 250, 252, 0.8));
    color: #374151;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    z-index: 1000;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.back-to-home:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 1), rgba(248, 250, 252, 0.9));
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    color: #1f2937;
}

/* Responsive design */
@media (max-width: 768px) {
    .admin-input-page {
        padding: 1rem 0;
    }
    
    .admin-form-container {
        padding: 2rem 1.5rem;
        margin: 0 1rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .spec-row {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .back-to-home {
        position: static;
        display: inline-block;
        margin-bottom: 2rem;
    }
    
    .admin-header h1 {
        font-size: 2.2rem;
    }
    
    .image-upload-area {
        padding: 2rem 1rem;
    }
    
    .submit-btn {
        width: 100%;
        padding: 1rem 2rem;
    }
}

/* =====================================
   EDIT PAGE STYLES - PASTEL THEME
   ===================================== */

/* Edit Page Main Styles */
.admin-edit-page {
    background: linear-gradient(135deg, #fce7f3 0%, #e0e7ff 50%, #dbeafe 100%);
    min-height: 100vh;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    padding-bottom: 50px;
}

.admin-edit-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
}

/* Edit Header */
.edit-header {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 2px solid #e2e8f0;
    border-radius: 20px;
    padding: 30px 40px;
    text-align: center;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.edit-header .header-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #ec4899, #a855f7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: white;
    box-shadow: 0 8px 20px rgba(236, 72, 153, 0.3);
}

.edit-header h1 {
    color: #1e293b;
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0 0 10px;
    background: linear-gradient(135deg, #ec4899, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.edit-header p {
    color: #64748b;
    font-size: 1.1rem;
    margin: 0;
}

/* Search & Filter Section */
.admin-edit-page .search-filter-section {
    background: white;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 2px solid #f1f5f9;
    position: relative;
    z-index: 1;
}

/* Reset search modal CSS for edit page */
.admin-edit-page .search-container {
    display: flex !important;
    gap: 15px !important;
    margin-bottom: 20px !important;
    flex-wrap: wrap !important;
    position: static !important;
    z-index: auto !important;
    background: transparent !important;
    border-radius: 0 !important;
    padding: 0 !important;
    max-width: none !important;
    width: 100% !important;
    max-height: none !important;
    overflow-y: visible !important;
    box-shadow: none !important;
    transform: none !important;
    transition: none !important;
    align-items: stretch !important;
}

.admin-edit-page .search-input-wrapper {
    flex: 1;
    position: relative;
    min-width: 200px;
    display: flex;
    align-items: center;
}

.admin-edit-page .search-input-wrapper i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1.1rem;
}

.admin-edit-page .search-input {
    width: 100%;
    padding: 15px 15px 15px 50px;
    border: 2px solid #e2e8f0;
    border-radius: 15px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8fafc;
}

.admin-edit-page .search-input:focus {
    outline: none;
    border-color: #ec4899;
    background: white;
    box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.1);
}

.admin-edit-page .search-btn {
    background: linear-gradient(135deg, #ec4899, #f472b6) !important;
    color: white !important;
    border: none !important;
    padding: 15px 25px !important;
    border-radius: 15px !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    white-space: nowrap !important;
    position: static !important;
    transform: none !important;
    flex-shrink: 0 !important;
    height: auto !important;
    min-height: 50px !important;
}

.admin-edit-page .search-btn:hover {
    background: linear-gradient(135deg, #d946ef, #ec4899) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(236, 72, 153, 0.3) !important;
}

.admin-edit-page .filter-container {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
    position: relative;
    z-index: auto;
    clear: both;
    margin-top: 20px;
}

.admin-edit-page .filter-select {
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.95rem;
    background: #f8fafc;
    color: #475569;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 150px;
}

.admin-edit-page .filter-select:focus {
    outline: none;
    border-color: #a855f7;
    background: white;
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.1);
}

.admin-edit-page .refresh-btn {
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-edit-page .refresh-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(59, 130, 246, 0.3);
}

/* Products List Section */
.admin-edit-page .products-list-section {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 2px solid #f1f5f9;
}

.admin-edit-page .products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f1f5f9;
}

.admin-edit-page .products-header h3 {
    color: #1e293b;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-edit-page .products-header h3 i {
    color: #a855f7;
}

.admin-edit-page .products-count {
    background: linear-gradient(135deg, #ddd6fe, #c7d2fe);
    color: #6d28d9;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.95rem;
}

/* Loading & Empty States */
.loading-spinner-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: #64748b;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e2e8f0;
    border-top: 4px solid #ec4899;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.no-products {
    text-align: center;
    padding: 60px 20px;
    color: #64748b;
}

.no-products i {
    font-size: 4rem;
    color: #cbd5e1;
    margin-bottom: 20px;
}

.no-products h4 {
    font-size: 1.3rem;
    margin: 0 0 10px;
    color: #475569;
}

.no-products p {
    margin: 0;
    font-size: 1rem;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin-top: 25px;
}

/* Product Edit Cards */
.product-edit-card {
    background: linear-gradient(135deg, #fefcff 0%, #faf5ff 100%);
    border: 2px solid #f3e8ff;
    border-radius: 18px;
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.product-edit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #ec4899, #a855f7, #3b82f6);
}

.product-edit-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(168, 85, 247, 0.15);
    border-color: #e879f9;
}

.product-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.product-category-badge {
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.category-laptop { background: #fce7f3; color: #be185d; }
.category-pc { background: #e0e7ff; color: #4338ca; }
.category-gpu { background: #dbeafe; color: #1d4ed8; }
.category-cpu { background: #f3e8ff; color: #7c3aed; }
.category-ram { background: #fef3c7; color: #d97706; }
.category-storage { background: #d1fae5; color: #059669; }
.category-other { background: #f1f5f9; color: #475569; }

.product-status-badge {
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-in-stock { background: #d1fae5; color: #059669; }
.status-out-of-stock { background: #fee2e2; color: #dc2626; }
.status-pre-order { background: #fef3c7; color: #d97706; }
.status-unknown { background: #f1f5f9; color: #6b7280; }

.product-card-image {
    position: relative;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
}

.product-card-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: all 0.3s ease;
}

.product-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #cbd5e1;
    font-size: 2.5rem;
}

.product-placeholder.hidden {
    display: none;
}

.product-card-content {
    text-align: left;
}

.product-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 8px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-brand {
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 5px;
}

.product-sku {
    color: #94a3b8;
    font-size: 0.85rem;
    margin-bottom: 12px;
    font-family: 'Monaco', 'Consolas', monospace;
}

.product-price-info {
    margin-bottom: 12px;
}

.current-price {
    font-size: 1.2rem;
    font-weight: 800;
    color: #059669;
    margin-bottom: 3px;
}

.old-price {
    font-size: 0.9rem;
    color: #94a3b8;
    text-decoration: line-through;
}

.product-stock-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f1f5f9;
}

.stock-count {
    color: #475569;
    font-size: 0.9rem;
    font-weight: 500;
}

.product-rating-small {
    color: #f59e0b;
    font-size: 0.85rem;
}

.product-rating-small span {
    color: #94a3b8;
    font-size: 0.8rem;
    margin-left: 5px;
}

.product-actions {
    display: flex;
    gap: 10px;
}

.edit-btn {
    flex: 1;
    background: linear-gradient(135deg, #a855f7, #c084fc);
    color: white;
    border: none;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.edit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(168, 85, 247, 0.3);
}

.product-actions .delete-btn {
    background: linear-gradient(135deg, #ef4444, #f87171);
    color: white;
    border: none;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 80px;
}

.product-actions .delete-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(239, 68, 68, 0.3);
}

/* Edit Modal Styles */
.edit-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
    box-sizing: border-box;
}

.edit-modal-content {
    background: white;
    border-radius: 20px;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    border: 2px solid #f1f5f9;
}

.edit-modal-header {
    background: linear-gradient(135deg, #fdf2f8 0%, #f3e8ff 100%);
    padding: 25px 30px;
    border-bottom: 2px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.edit-modal-header h3 {
    color: #1e293b;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.edit-modal-header h3 i {
    color: #ec4899;
}

.close-modal {
    background: none;
    border: none;
    color: #64748b;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.close-modal:hover {
    background: #f1f5f9;
    color: #475569;
}

.edit-modal-body {
    padding: 0;
    max-height: calc(90vh - 140px);
    overflow-y: auto;
}

.edit-form {
    padding: 30px;
}

.edit-form .form-section {
    background: linear-gradient(135deg, #fefcff 0%, #faf5ff 100%);
    border: 2px solid #f3e8ff;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
}

.edit-form .form-section h4 {
    color: #1e293b;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e879f9;
}

.edit-form .form-section h4 i {
    color: #a855f7;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    padding-top: 20px;
    border-top: 2px solid #f1f5f9;
    margin-top: 30px;
}

.save-btn {
    background: linear-gradient(135deg, #059669, #10b981);
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.save-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(5, 150, 105, 0.3);
}

.cancel-btn {
    background: linear-gradient(135deg, #6b7280, #9ca3af);
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cancel-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(107, 114, 128, 0.3);
}

.form-actions .delete-btn {
    background: linear-gradient(135deg, #dc2626, #ef4444);
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-actions .delete-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(220, 38, 38, 0.3);
}

/* Delete Modal */
.delete-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    padding: 20px;
}

.delete-modal-content {
    background: white;
    border-radius: 20px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    border: 2px solid #fef2f2;
    overflow: hidden;
}

.delete-modal-header {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    padding: 25px 30px;
    border-bottom: 2px solid #fecaca;
    text-align: center;
}

.delete-modal-header h3 {
    color: #991b1b;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.delete-modal-header h3 i {
    color: #dc2626;
    font-size: 1.5rem;
}

.delete-modal-body {
    padding: 30px;
    text-align: center;
}

.delete-modal-body p {
    margin: 0 0 15px;
    color: #475569;
    line-height: 1.5;
}

.product-name-delete {
    font-weight: 700;
    color: #dc2626;
    font-size: 1.1rem;
    background: #fef2f2;
    padding: 10px 15px;
    border-radius: 10px;
    border: 2px solid #fecaca;
}

.delete-modal-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    padding: 0 30px 30px;
}

.confirm-delete-btn {
    background: linear-gradient(135deg, #dc2626, #ef4444);
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.confirm-delete-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(220, 38, 38, 0.3);
}

.cancel-delete-btn {
    background: linear-gradient(135deg, #6b7280, #9ca3af);
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cancel-delete-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(107, 114, 128, 0.3);
}

/* Specification Rows for Edit Form */
.edit-form .spec-row {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 15px;
    align-items: center;
    margin-bottom: 15px;
    padding: 15px;
    background: linear-gradient(135deg, #fefcff 0%, #f8fafc 100%);
    border: 2px solid #e2e8f0;
    border-radius: 12px;
}

.edit-form .spec-key,
.edit-form .spec-value {
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: white;
}

.edit-form .spec-key:focus,
.edit-form .spec-value:focus {
    outline: none;
    border-color: #a855f7;
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.1);
}

.remove-spec-btn {
    background: linear-gradient(135deg, #ef4444, #f87171);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.remove-spec-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.add-spec-btn {
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
}

.add-spec-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(59, 130, 246, 0.3);
}

/* Success/Error Messages for Edit Page */
.admin-edit-page .message {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10002;
    padding: 15px 25px;
    border-radius: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    animation: slideInFromRight 0.3s ease;
}

.admin-edit-page .message.success {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    color: #047857;
    border: 2px solid #6ee7b7;
}

.admin-edit-page .message.error {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    color: #991b1b;
    border: 2px solid #f87171;
}

@keyframes slideInFromRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive Design for Edit Page */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 20px;
    }
    
    .edit-modal-content {
        max-width: 95vw;
    }
}

@media (max-width: 768px) {
    .admin-edit-container {
        padding: 15px;
    }
    
    .edit-header {
        padding: 25px 20px;
        margin-bottom: 20px;
    }
    
    .edit-header h1 {
        font-size: 2rem;
    }
    
    .admin-edit-page .search-filter-section {
        padding: 20px;
    }
    
    .admin-edit-page .search-container {
        flex-direction: column !important;
        gap: 15px !important;
    }
    
    .admin-edit-page .search-input-wrapper {
        min-width: 100% !important;
        flex: none !important;
    }
    
    .admin-edit-page .search-btn {
        width: 100% !important;
        justify-content: center !important;
        min-height: 50px !important;
    }
    
    .admin-edit-page .filter-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .admin-edit-page .filter-select {
        min-width: 100%;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .products-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .edit-modal-content {
        max-width: 95vw;
        max-height: 95vh;
    }
    
    .edit-form {
        padding: 20px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .edit-form .spec-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .delete-modal-content {
        max-width: 95vw;
    }
    
    .delete-modal-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .edit-header h1 {
        font-size: 1.8rem;
    }
    
    .edit-header .header-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .admin-edit-page .search-filter-section {
        padding: 15px;
    }
    
    .admin-edit-page .products-list-section {
        padding: 20px;
    }
    
    .product-edit-card {
        padding: 15px;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .edit-modal-header {
        padding: 20px;
    }
    
    .edit-modal-header h3 {
        font-size: 1.3rem;
    }
    
    .edit-form {
        padding: 15px;
    }
    
    .edit-form .form-section {
        padding: 20px;
    }
    
    .delete-modal-body {
        padding: 20px;
    }
    
    .delete-modal-actions {
        padding: 0 20px 20px;
    }
}

/* =====================================
   LOGIN MODAL STYLES
   ===================================== */

.login-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9000; /* Reduced z-index to allow notifications to show above */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.login-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.login-modal {
    background: white;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    max-width: 420px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(-20px) scale(0.95);
    transition: all 0.3s ease;
    position: relative;
}

.login-modal-overlay.active .login-modal {
    transform: translateY(0) scale(1);
}

.login-modal-header {
    padding: 25px 30px 15px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.login-modal-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.close-login-modal {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #666;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.2s ease;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-login-modal:hover {
    background: #f5f5f5;
    color: #333;
}

.login-modal-content {
    padding: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.2s ease;
    font-family: inherit;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    font-size: 0.9rem;
}

.remember-me, .agree-terms {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: #666;
}

.remember-me input, .agree-terms input {
    width: auto;
    margin-right: 8px;
    margin-bottom: 0;
}

.forgot-password {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.forgot-password:hover {
    text-decoration: underline;
}

.login-btn, .register-btn {
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
}

.login-btn:hover, .register-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.social-login {
    margin: 25px 0;
}

.divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
    color: #999;
    font-size: 0.9rem;
}

.divider:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e1e5e9;
    z-index: 1;
}

.divider span {
    background: white;
    padding: 0 15px;
    position: relative;
    z-index: 2;
}

.google-signin-btn {
    width: 100%;
    padding: 12px 20px;
    background: white;
    color: #333;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.google-signin-btn:hover {
    border-color: #4285f4;
    box-shadow: 0 2px 10px rgba(66, 133, 244, 0.2);
}

.google-signin-btn i {
    color: #4285f4;
    font-size: 1.1rem;
}

.modal-footer {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
    color: #666;
    font-size: 0.9rem;
}

.modal-footer a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.modal-footer a:hover {
    text-decoration: underline;
}

.agree-terms a {
    color: #667eea;
    text-decoration: none;
}

.agree-terms a:hover {
    text-decoration: underline;
}

/* Animation for form switching */
.login-form, .register-form {
    transition: all 0.3s ease;
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .login-modal {
        margin: 20px;
        width: calc(100% - 40px);
        max-width: none;
    }
    
    .login-modal-content {
        padding: 20px;
    }
    
    .login-modal-header {
        padding: 20px 20px 10px;
    }
    
    .form-options {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
}

/* =====================================
   ENHANCED NAVIGATION COMPONENTS
   ===================================== */

/* Enhanced Build PC Button */
.build-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    min-width: fit-content;
}

.build-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.build-btn:hover::before {
    left: 100%;
}

.build-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    color: white !important;
}

.build-btn:active {
    transform: translateY(0px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* Enhanced Search Icon */
.fas.fa-search {
    font-size: 18px !important;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 10px;
    border-radius: 50%;
    background: transparent;
    position: relative;
}

.fas.fa-search:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
    transform: scale(1.1);
}

.fas.fa-search:active {
    transform: scale(0.95);
}

/* Enhanced Cart Icon */
.cart-icon-wrapper {
    position: relative;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    transition: all 0.3s ease;
    background: transparent;
}

.cart-icon-wrapper:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: scale(1.05);
}

.cart-icon-wrapper .fas.fa-shopping-cart {
    font-size: 18px;
    color: #4a5568;
    transition: color 0.3s ease;
}

.cart-icon-wrapper:hover .fas.fa-shopping-cart {
    color: #667eea;
}

.cart-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 50%;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
    animation: cartBadgePulse 2s infinite;
}

@keyframes cartBadgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Enhanced User Icon Authenticated */
.user-icon-authenticated {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    border-radius: 25px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.user-icon-authenticated::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea, #764ba2);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 25px;
    z-index: -1;
}

.user-icon-authenticated:hover::before {
    opacity: 0.1;
}

.user-icon-authenticated:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.3);
}

.user-avatar-small {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
    object-fit: cover;
}

.user-icon-authenticated:hover .user-avatar-small {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.user-name-display {
    font-size: 14px;
    font-weight: 600;
    color: #4a5568;
    transition: color 0.3s ease;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-icon-authenticated:hover .user-name-display {
    color: #667eea;
}

/* Responsive Design */
@media (max-width: 768px) {
    .build-btn {
        padding: 10px 18px;
        font-size: 12px;
        white-space: nowrap;
        min-width: fit-content;
    }
    
    .user-name-display {
        display: none;
    }
    
    .user-icon-authenticated {
        padding: 8px;
        gap: 0;
    }
    
    .nav-icons {
        gap: 0.3rem;
        flex-shrink: 0;
    }
    
    .fas.fa-search,
    .cart-icon-wrapper {
        padding: 8px;
    }
}

@media (max-width: 480px) {
    .build-btn {
        padding: 8px 14px;
        font-size: 10px;
        white-space: nowrap;
        min-width: fit-content;
        letter-spacing: 0.3px;
    }
    
    .user-avatar-small {
        width: 28px;
        height: 28px;
    }
    
    .fas.fa-search,
    .cart-icon-wrapper {
        padding: 6px;
    }
    
    .fas.fa-search {
        font-size: 16px !important;
    }
    
    .cart-icon-wrapper .fas.fa-shopping-cart {
        font-size: 16px;
    }
}

/* =====================================
   TABLET DEVICES - Show mobile-nav-icons on tablets
   ===================================== */

/* Nest Hub Max (1280 x 800) */
@media (min-width: 769px) and (max-width: 1366px) and (max-height: 1024px) {
    .mobile-nav-icons {
        display: flex !important;
        flex-direction: column;
        gap: 0.5rem;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(107, 70, 193, 0.2);
        pointer-events: auto;
        position: relative;
        z-index: 10001;
    }
    
    .mobile-nav-icons a {
        display: flex;
        align-items: center;
        gap: 0.8rem;
        padding: 0.8rem 1rem;
        color: #6b46c1;
        text-decoration: none;
        border-radius: 10px;
        transition: all 0.3s ease;
        min-width: 0;
        pointer-events: auto;
        position: relative;
        z-index: 10002;
        font-size: 0.9rem;
    }
    
    .mobile-nav-icons a:hover {
        background: rgba(107, 70, 193, 0.1);
        transform: translateX(5px);
    }
    
    .mobile-nav-icons i {
        font-size: 1.1rem;
        width: 20px;
        text-align: center;
    }
}

/* iPad Pro Portrait and similar (769px - 1024px width) */
@media (min-width: 769px) and (max-width: 1024px) {
    .nav-menu .mobile-nav-icons {
        display: flex !important;
        flex-direction: column;
        gap: 0.5rem;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(107, 70, 193, 0.2);
    }
    
    .nav-menu .mobile-nav-icons a {
        display: flex;
        align-items: center;
        gap: 0.8rem;
        padding: 0.8rem 1rem;
        color: #6b46c1;
        text-decoration: none;
        border-radius: 10px;
        transition: all 0.3s ease;
        font-size: 0.9rem;
    }
    
    .nav-menu .mobile-nav-icons a:hover {
        background: rgba(107, 70, 193, 0.1);
        transform: translateX(5px);
    }
}

/* Surface Pro and iPad Air Portrait (825px - 912px width) */
@media (min-width: 825px) and (max-width: 912px) and (orientation: portrait) {
    .mobile-nav-icons {
        display: flex !important;
    }
    
    .nav-menu .mobile-nav-icons {
        display: flex !important;
    }
}

/* Asus Zenbook Fold (853 x 1280) */
@media (min-width: 853px) and (max-width: 853px) {
    .mobile-nav-icons {
        display: flex !important;
    }
    
    .nav-menu .mobile-nav-icons {
        display: flex !important;
    }
}

/* Large tablets and touch devices */
@media (min-width: 769px) and (max-width: 1366px) and (pointer: coarse) {
    .mobile-nav-icons {
        display: flex !important;
    }
    
    .nav-menu .mobile-nav-icons {
        display: flex !important;
    }
}

/* Nest Hub Max and similar landscape devices (1280x800) */
@media (min-width: 1024px) and (max-width: 1366px) and (max-height: 900px) {
    .mobile-nav-icons {
        display: flex !important;
    }
    
    .nav-menu .mobile-nav-icons {
        display: flex !important;
    }
    
    .nav-menu.active {
        max-height: 80vh !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
    
    .nav-menu {
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: thin !important;
    }
}

/* Specific for Nest Hub Max (1280x800) */
@media (width: 1280px) and (height: 800px) {
    .mobile-nav-icons {
        display: flex !important;
    }
    
    .nav-menu .mobile-nav-icons {
        display: flex !important;
    }
    
    .nav-menu.active {
        max-height: 600px !important;
        overflow-y: scroll !important;
        -webkit-overflow-scrolling: touch !important;
    }
}

/* All touch devices regardless of size */
@media (pointer: coarse) {
    .mobile-nav-icons {
        display: flex !important;
    }
    
    .nav-menu .mobile-nav-icons {
        display: flex !important;
    }
}

/* Fix cart count spacing globally */
#cartCount {
    display: inline;
    margin: 0 !important;
    padding: 0 !important;
    font-size: inherit !important;
    line-height: inherit !important;
}

/* Fix parentheses spacing in cart text */
.mobile-nav-icons a,
.nav-icons a {
    white-space: nowrap;
}

.mobile-nav-icons a span,
.nav-icons a span {
    display: inline;
    margin: 0;
    padding: 0;
}

/* =====================================
   VARIANT SELECTION MODAL STYLES
   ===================================== */

/* Variant Selection Container */
.variant-selection {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 100%;
    margin: 0 auto;
}

.main-product-info {
    text-align: center;
    margin-bottom: 1rem;
}

.variant-info-text {
    background: linear-gradient(135deg, #e0f2fe 0%, #f0f9ff 100%);
    border-left: 4px solid #0ea5e9;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin: 0;
    font-size: 0.95rem;
    color: #0c4a6e;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    line-height: 1.5;
}

.variant-info-text i {
    font-size: 1.1rem;
    color: #0ea5e9;
    flex-shrink: 0;
}

/* Variant Options Grid */
.variant-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 100%;
}

.variant-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.variant-option:hover {
    border-color: #a855f7;
    box-shadow: 0 4px 20px rgba(168, 85, 247, 0.1);
    transform: translateY(-2px);
}

.variant-option.main-product {
    border-color: #10b981;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
}

.variant-option.main-product:hover {
    border-color: #059669;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.15);
}

/* Variant Option Image */
.variant-option-image {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
}

.variant-option-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.variant-option:hover .variant-option-image img {
    transform: scale(1.05);
}

/* Variant Option Info */
.variant-option-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 0;
}

.variant-option-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 0.25rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.variant-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.variant-badge.main {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.variant-badge.variant {
    background: linear-gradient(135deg, #a855f7 0%, #9333ea 100%);
    color: white;
}

.variant-option-price {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: #dc2626;
    margin: 0.25rem 0;
}

.variant-option-price .old-price {
    font-size: 0.9rem;
    font-weight: 400;
    color: #9ca3af;
    text-decoration: line-through;
}

.variant-option-desc {
    font-size: 0.9rem;
    color: #6b7280;
    margin: 0.25rem 0;
}

.variant-option-desc strong {
    color: #374151;
}

.variant-option-stock {
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    display: inline-block;
    width: fit-content;
}

.variant-option-stock.in-stock {
    background: #dcfce7;
    color: #166534;
}

.variant-option-stock.out-of-stock {
    background: #fee2e2;
    color: #991b1b;
}

/* Variant Select Button */
.variant-select-btn {
    background: linear-gradient(135deg, #a855f7 0%, #9333ea 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    white-space: nowrap;
}

.variant-select-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.3);
    background: linear-gradient(135deg, #9333ea 0%, #7c3aed 100%);
}

.variant-select-btn i {
    font-size: 1rem;
}

.variant-option.main-product .variant-select-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.variant-option.main-product .variant-select-btn:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

/* Variant Actions */
.variant-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.variant-actions .btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border: 2px solid #d1d5db;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.variant-actions .btn-secondary:hover {
    background: #e5e7eb;
    border-color: #9ca3af;
    transform: translateY(-1px);
}

/* Modal Body Override for Variant Selection */
.modal-body:has(.variant-selection) {
    display: block;
    padding: 2rem;
    max-height: 70vh;
    overflow-y: auto;
}



/* Responsive Design for Variant Modal */
@media (max-width: 768px) {
    .variant-option {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 1rem;
    }
    
    .variant-option-image {
        width: 100px;
        height: 100px;
        margin: 0 auto;
    }
    
    .variant-option-info {
        align-items: center;
        text-align: center;
    }
    
    .variant-option-name {
        justify-content: center;
        text-align: center;
    }
    
    .variant-select-btn {
        width: 100%;
        justify-content: center;
    }
    
    .variant-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .variant-actions .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .modal-content {
        margin: 1rem;
        width: calc(100% - 2rem);
        max-width: none;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .variant-info-text {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .variant-option {
        padding: 0.75rem;
        gap: 0.75rem;
    }
    
    .variant-option-image {
        width: 80px;
        height: 80px;
    }
    
    .variant-option-name {
        font-size: 1rem;
    }
    
    .variant-select-btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
}

/* Tablet specific adjustments */
@media (max-width: 1024px) and (min-width: 769px) {
    .variant-option {
        padding: 1rem;
    }
    
    .variant-option-image {
        width: 90px;
        height: 90px;
    }
}

/* Fix for very wide content */
.modal-content[style*="max-width: 600px"] {
    max-width: 600px !important;
    width: min(90%, 600px);
    margin: 0 auto;
}