:root {
    /* Primary Colors - Inspired by Logo Gradient */
    --primary-color: #ff6b35;        /* Vibrant orange from logo */
    --primary-dark: #e55a2b;         /* Deeper orange */
    --primary-light: #ff8c5a;        /* Lighter orange */
    --secondary-color: #dc2626;      /* Deep red from logo bottom */
    
    /* Accent Colors - Complementary Palette */
    --accent-color: #f97316;         /* Pure orange */
    --accent-light: #fb923c;         /* Soft orange */
    --accent-dark: #ea580c;          /* Dark orange */
    --warning-color: #f59e0b;        /* Amber warning */
    --danger-color: #dc2626;         /* Red danger */
    --success-color: #059669;        /* Emerald success */
    
    /* Logo Gradient Colors */
    --logo-orange: #ff6b35;
    --logo-red: #dc2626;
    --logo-gradient: linear-gradient(135deg, #ff8c5a 0%, #ff6b35 30%, #e55a2b 70%, #dc2626 100%);
    --logo-gradient-soft: linear-gradient(135deg, #fff7ed 0%, #fed7aa 50%, #fdba74 100%);
    
    /* Neutral Colors - Clean & Modern */
    --white: #ffffff;
    --gray-50: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #e5e5e5;
    --gray-300: #d4d4d4;
    --gray-400: #a3a3a3;
    --gray-500: #737373;
    --gray-600: #525252;
    --gray-700: #404040;
    --gray-800: #262626;
    --gray-900: #171717;
    
    /* Warm Neutral Tints - Complementing Logo Colors */
    --warm-50: #fffbf5;
    --warm-100: #fef3e2;
    --warm-200: #fde4c4;
    --warm-300: #fbcf9b;
    --warm-400: #f7b370;
    --warm-500: #f2944a;
    
    /* Backgrounds */
    --bg-primary: #ffffff;
    --bg-secondary: #fffbf5;          /* Warm white */
    --bg-tertiary: #fef3e2;           /* Very light orange */
    --bg-gradient: linear-gradient(135deg, #fffbf5 0%, #fef3e2 50%, #fde4c4 100%);
    --bg-hero: var(--logo-gradient);
    
    /* Card & Surface Colors */
    --surface-primary: #ffffff;
    --surface-secondary: #fffbf5;
    --surface-elevated: #ffffff;
    --surface-gradient: linear-gradient(145deg, #ffffff 0%, #fffbf5 100%);
    
    /* Shadows - Warm Tinted */
    --shadow-xs: 0 1px 2px 0 rgb(255 107 53 / 0.05);
    --shadow-sm: 0 1px 2px 0 rgb(255 107 53 / 0.08);
    --shadow: 0 1px 3px 0 rgb(255 107 53 / 0.12), 0 1px 2px -1px rgb(255 107 53 / 0.08);
    --shadow-md: 0 4px 6px -1px rgb(255 107 53 / 0.12), 0 2px 4px -2px rgb(255 107 53 / 0.08);
    --shadow-lg: 0 10px 15px -3px rgb(255 107 53 / 0.12), 0 4px 6px -4px rgb(255 107 53 / 0.08);
    --shadow-xl: 0 20px 25px -5px rgb(255 107 53 / 0.12), 0 8px 10px -6px rgb(255 107 53 / 0.08);
    --shadow-brand: 0 8px 32px rgb(255 107 53 / 0.15);
    
    /* Text Colors */
    --text-primary: #171717;          /* Dark gray */
    --text-secondary: #404040;        /* Medium gray */
    --text-tertiary: #737373;         /* Light gray */
    --text-inverse: #ffffff;          /* White text */
    --text-brand: var(--primary-color);
    --text-muted: #a3a3a3;
    
    /* Border Colors */
    --border-primary: #e5e5e5;
    --border-secondary: #d4d4d4;
    --border-brand: var(--primary-color);
    --border-warm: #fde4c4;
    
    /* Modern Gradients - Logo Inspired */
    --gradient-primary: var(--logo-gradient);
    --gradient-secondary: linear-gradient(135deg, #fef3e2 0%, #fdba74 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-light) 100%);
    --gradient-hero: var(--logo-gradient);
    --gradient-card: linear-gradient(145deg, #ffffff 0%, #fffbf5 100%);
    --gradient-subtle: linear-gradient(135deg, #fffbf5 0%, #ffffff 100%);
    
    /* Interactive States */
    --hover-primary: #e55a2b;         /* Darker orange */
    --hover-secondary: #b91c1c;       /* Darker red */
    --focus-ring: rgb(255 107 53 / 0.2);
    --active-primary: #dc2626;
    
    /* Status Colors - Harmonized with Brand */
    --success: #059669;
    --success-light: #d1fae5;
    --warning: #f59e0b;
    --warning-light: #fef3c7;
    --error: #dc2626;
    --error-light: #fee2e2;
    --info: #0ea5e9;
    --info-light: #e0f2fe;
    
    /* Border Radius - Modern & Clean */
    --radius-xs: 0.25rem;
    --radius-sm: 0.375rem;
    --radius: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-2xl: 2rem;
    --radius-full: 9999px;
    
    /* Spacing Scale */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    
    /* Transitions - Smooth & Professional */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease-out;
    --transition-bounce: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Universal Box-Sizing and Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-secondary);
    color: var(--gray-800);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh; /* Ensure body takes full viewport height */
    display: flex; /* For sticky footer or overall layout control */
    flex-direction: column;
}

/* Enhanced Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    font-weight: 700;
    color: var(--gray-900) !important;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none; /* Ensure brand is not underlined */
}

.navbar-brand img {
    height: 45px;
    width: auto;
    border-radius: var(--radius-md);
    transition: var(--transition-bounce);
}

.navbar-brand img:hover {
    transform: scale(1.05) rotate(2deg);
}

.navbar .nav-link {
    color: var(--gray-600) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    padding: 0.75rem 1rem !important;
    border-radius: var(--radius-full);
    transition: var(--transition);
    position: relative;
    text-decoration: none; /* Remove underline from nav links */
}

.navbar .nav-link:hover {
    color: var(--primary-color) !important;
    background: var(--gray-100);
    transform: translateY(-2px);
}

.navbar .nav-link.active {
    color: var(--primary-color) !important;
    background: linear-gradient(135deg, var(--primary-color)10, var(--primary-color)20);
}

/* Hero Section - More Appealing */
.hero-section {
    background: var(--gradient-hero);
    color: white;
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
    text-align: center; /* Center align content */
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.05)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.4;
    pointer-events: none; /* Ensure grain overlay doesn't block interactions */
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    font-weight: 800;
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, #fff, #e2e8f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hero-section .lead {
    font-size: 1.25rem;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto 2rem auto; /* Add margin-bottom for spacing */
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* Modern Product Cards */
.card {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: var(--transition);
    background: var(--gradient-card);
    box-shadow: var(--shadow);
    height: 100%;
    position: relative;
    display: flex; /* Use flexbox for consistent card layout */
    flex-direction: column;
}

.card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.card-img-top {
    height: 240px;
    object-fit: contain;
    padding: 1.5rem;
    background: var(--gray-50);
    transition: var(--transition);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    width: 100%; /* Ensure image takes full width of its container */
}

.card:hover .card-img-top {
    transform: scale(1.05);
    background: var(--white);
}

.card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: var(--white);
    flex-grow: 1; /* Allow body to grow and fill space */
}

.card-title {
    font-weight: 600;
    color: var(--gray-900);
    font-size: 1.125rem;
    line-height: 1.4;
    margin: 0;
}

.card-text {
    color: var(--gray-600);
    font-size: 0.875rem;
    line-height: 1.6;
    flex: 1;
}

/* Modern Price Section */
.price-section {
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    border: 1px solid var(--gray-200);
    position: relative;
    overflow: hidden;
    display: flex; /* Use flexbox for price and discount alignment */
    align-items: center;
    justify-content: space-between;
}

.price-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(59, 130, 246, 0.05) 50%, transparent 70%);
    pointer-events: none; /* Ensure gradient doesn't block interactions */
}

.price-info { /* New wrapper for price elements */
    display: flex;
    align-items: baseline;
    position: relative;
    z-index: 1;
}

.price-current {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.price-original {
    font-size: 1rem;
    color: var(--gray-500);
    text-decoration: line-through;
    margin-left: 0.5rem;
}

.discount-badge {
    background: var(--gradient-accent);
    color: white;
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: var(--shadow-md);
    display: inline-block;
    position: relative;
    z-index: 1;
}

/* Modern Buttons */
.btn {
    font-weight: 500;
    border-radius: var(--radius-lg);
    padding: 0.75rem 1.5rem;
    transition: var(--transition-bounce);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
    font-size: 0.875rem;
    position: relative;
    overflow: hidden;
    white-space: nowrap; /* Prevent text wrapping on small buttons */
}

.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;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    transform: translateY(-2px) scale(1.05);
    box-shadow: var(--shadow-lg);
    color: white;
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--gray-100);
    color: var(--gray-700);
    border: 1px solid var(--gray-300);
}

.btn-secondary:hover {
    background: var(--gray-200);
    color: var(--gray-800);
    transform: translateY(-1px);
}

/* Laptop Tag */
.laptop-tag {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--gradient-primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 10;
    box-shadow: var(--shadow-md);
}

/* Enhanced Search Section */
.search-container {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    display: flex; /* Use flexbox for input and button alignment */
    gap: 0.75rem; /* Space between input and button */
}

.search-input {
    border-radius: var(--radius-xl);
    padding: 1.25rem 1.5rem;
    border: 2px solid var(--gray-300);
    font-size: 1rem;
    background: var(--white);
    transition: var(--transition);
    width: 100%;
    box-shadow: var(--shadow-sm);
    flex-grow: 1; /* Allow input to take available space */
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1), var(--shadow-md);
    transform: translateY(-2px);
}

.search-btn {
    border-radius: var(--radius-xl);
    padding: 1.25rem 2rem;
    background: var(--gradient-primary);
    border: none;
    color: white;
    font-weight: 600;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    flex-shrink: 0; /* Prevent button from shrinking */
}

.search-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: var(--shadow-lg);
}

/* Responsive Filters Section */
.filters-section {
    background: var(--white);
    border-radius: var(--radius-2xl);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
}

.filter-group {
    margin-bottom: 1.5rem;
}

.filter-group label {
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 0.75rem;
    display: block;
    font-size: 0.875rem;
}

.form-select,
.form-range {
    border-radius: var(--radius-lg);
    border: 2px solid var(--gray-300);
    padding: 0.875rem 1rem;
    transition: var(--transition);
    background: var(--white);
    font-size: 0.875rem;
    width: 100%;
    appearance: none; /* Remove default arrow on select for custom styling */
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%22292.4%22 height%3D%22292.4%22 viewBox%3D%220 0 292.4 292.4%22%3E%3Cpath fill%3D%22%236b7280%22 d%3D%22M287 197.399l-133.4 133.5c-4.4 4.4-10.6 6.8-17.1 6.8s-12.7-2.4-17.1-6.8L5.4 197.399c-8.8-8.8-8.8-23 0-31.8 8.8-8.8 23-8.8 31.8 0L146.2 268l110.8-110.8c8.8-8.8 23-8.8 31.8 0s8.8 23 0 31.8z%22%2F%3E%3C%2Fsvg%3E'); /* Custom arrow for select */
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 0.75rem auto;
}

.form-select:focus,
.form-range:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.range-values {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-top: 0.5rem;
    font-weight: 500;
}

/* Sort Section */
.sort-section {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    border: 1px solid var(--gray-200);
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
    display: flex; /* Use flexbox for layout */
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap; /* Allow items to wrap on smaller screens */
    gap: 1rem; /* Spacing between items */
}

/* Modern Cart Elements */
.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--gradient-accent);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: var(--shadow-md);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: -450px;
    width: 450px;
    max-width: 90vw; /* Max width for mobile */
    height: 100vh;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-xl);
    z-index: 1050;
    transition: right 0.4s ease-in-out; /* Smoother transition */
    padding: 2rem;
    overflow-y: auto;
    border-left: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
}

.cart-drawer.show {
    right: 0;
}

.cart-drawer-header { /* New header for cart drawer */
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-200);
}

.cart-drawer-header h4 {
    margin: 0;
    color: var(--gray-900);
}

.cart-close-btn { /* Close button for cart drawer */
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--gray-500);
    cursor: pointer;
    transition: var(--transition-fast);
}

.cart-close-btn:hover {
    color: var(--gray-700);
    transform: rotate(90deg);
}

.cart-items-container {
    flex-grow: 1; /* Allow items container to take available space */
    margin-bottom: 1.5rem;
}

.cart-item {
    border-bottom: 1px solid var(--gray-200);
    padding: 1rem 0;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    margin-bottom: 1rem;
    padding: 1rem;
    transition: var(--transition);
    display: flex; /* Use flexbox for item layout */
    align-items: center;
    gap: 1rem;
}

.cart-item:hover {
    background: var(--gray-100);
    transform: translateX(5px);
}

.cart-item img {
    height: 70px;
    width: 70px; /* Make image square */
    object-fit: contain;
    border-radius: var(--radius-md);
    background: var(--white);
    padding: 0.5rem;
    flex-shrink: 0; /* Prevent image from shrinking */
}

.cart-item-details { /* New wrapper for cart item text details */
    flex-grow: 1;
}

.cart-item-title {
    font-weight: 600;
    color: var(--gray-800);
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.cart-item-price {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.9rem;
}

.cart-summary { /* New for cart summary */
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 1.125rem;
    color: var(--gray-900);
}

.cart-actions { /* New for cart buttons */
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}


/* Product Detail Modal */
.product-detail-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 2000;
    overflow-y: auto;
    padding: 2rem;
    align-items: center; /* Center vertically */
    justify-content: center; /* Center horizontally */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

.product-detail-container.show {
    display: flex; /* Display as flex when shown */
}

.product-detail {
    background: var(--white);
    border-radius: var(--radius-2xl);
    margin: 2rem auto;
    max-width: 1100px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    position: relative; /* For close button positioning */
    display: flex; /* Use flexbox for image and details layout */
    flex-direction: column; /* Stack on small screens */
}

.product-detail-close { /* New close button for modal */
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--gray-500);
    cursor: pointer;
    z-index: 2001;
    transition: var(--transition-fast);
}

.product-detail-close:hover {
    color: var(--gray-700);
    transform: rotate(90deg);
}

.product-detail-content { /* New wrapper for product details */
    display: flex;
    flex-direction: column; /* Stack image and details on small screens */
    flex-grow: 1;
}

.product-detail-img {
    height: 400px;
    object-fit: contain;
    background: var(--gray-50);
    padding: 2rem;
    border-radius: var(--radius-xl);
    width: 100%; /* Take full width on small screens */
}

.product-info-area { /* New wrapper for title, price, description, etc. */
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.product-detail-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.product-detail-description {
    color: var(--gray-700);
    line-height: 1.7;
    font-size: 1rem;
}

.product-specs {
    background: var(--gray-50);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.product-spec {
    display: flex;
    justify-content: space-between;
    padding: 0.875rem 0;
    border-bottom: 1px solid var(--gray-200);
    transition: var(--transition);
    border-radius: var(--radius-md);
}

.product-spec:last-child { /* Remove border from last spec */
    border-bottom: none;
}

.product-spec:hover {
    background: var(--gray-100);
    padding-left: 1rem;
    padding-right: 1rem;
}

.spec-title {
    font-weight: 600;
    color: var(--gray-800);
}

.spec-value {
    color: var(--gray-600);
    text-align: right;
}

/* Modern Badge Styles */
.badge-custom {
    background: var(--gradient-primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.75rem;
    box-shadow: var(--shadow-sm);
    display: inline-block; /* Ensure it respects padding/margin */
}

/* Clear Filters Button */
.clear-filters {
    background: var(--danger-color);
    border: none;
    border-radius: var(--radius-lg);
    color: white;
    padding: 0.625rem 1.25rem;
    font-weight: 500;
    font-size: 0.875rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
}

.clear-filters:hover {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Services Section */
.services-section {
    background: var(--bg-gradient);
    padding: 5rem 0;
}

.service-card {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--white);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--gray-200);
    height: 100%; /* Ensure consistent height for cards */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.service-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.service-card h3 { /* Added styling for service card titles */
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.service-card p { /* Added styling for service card paragraphs */
    color: var(--gray-700);
}

/* Modern Footer */
footer {
    background: var(--gray-900);
    color: var(--gray-300);
    padding: 4rem 0 2rem;
    margin-top: auto; /* Push footer to the bottom */
}

footer h5 {
    color: var(--white);
    font-weight: 600;
    margin-bottom: 1rem;
}

footer a {
    color: var(--gray-400);
    text-decoration: none;
    transition: var(--transition);
    display: block; /* Make links block level for better click area */
    padding: 0.25rem 0;
}

footer a:hover {
    color: var(--primary-light);
    transform: translateX(3px);
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 56px;
    height: 56px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 50%;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    transition: var(--transition-bounce);
    z-index: 1000;
}

.scroll-to-top:hover {
    transform: translateY(-4px) scale(1.1);
    box-shadow: var(--shadow-xl);
}

/* Modern Loading States */
.loading-shimmer {
    background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-lg);
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Main Container for overall content */
.container {
    width: 100%;
    max-width: 1200px; /* Limit max width for readability */
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem; /* Consistent padding */
    padding-right: 1.5rem; /* Consistent padding */
}

/* Tab container */
.tab-container {
    max-width: 1200px; /* Use max-width for better responsiveness */
    margin: auto;
    font-family: 'Segoe UI', sans-serif;
    padding: 0 1rem; /* Add horizontal padding for smaller screens */
}

.tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    flex-wrap: wrap; /* Allow tabs to wrap on smaller screens */
    gap: 10px; /* Space between wrapped tabs */
}

.tab {
    padding: 12px 24px;
    margin: 0; /* Reset margin as gap handles spacing */
    border: none;
    background-color: #f0f0f0;
    color: #333;
    cursor: pointer;
    border-radius: 25px;
    transition: all 0.3s ease;
    white-space: nowrap; /* Prevent tab text from wrapping */
}

.tab:hover, .tab.active {
    background-color: #007bff;
    color: white;
    transform: scale(1.05);
}

.tab-content {
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

.tab-content.active {
    display: block;
    opacity: 1;
    width: 100%;
}

/* Ensure the laptops section takes full width */
.tab-content.active #laptops {
    width: 100%;
}

.tab-content.active #laptops .container {
    width: 100%;
    max-width: 100%;
    padding: 0; /* Remove container padding inside the tab content */
}

/* Fix for the row containing filters and laptop grid */
.tab-content.active #laptops .row {
    width: 100%;
    margin: 0;
    display: flex; /* Ensure row uses flexbox for column layout */
    flex-wrap: wrap; /* Allow columns to wrap */
}

/* New: Filter Toggle Button */
.filter-toggle {
    display: none; /* Hidden by default on larger screens */
    width: 100%;
    padding: 0.75rem 1.25rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 1.5rem;
    transition: var(--transition);
    justify-content: center; /* Center content */
    align-items: center;
    gap: 0.5rem;
}

.filter-toggle:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}


/* Out of Stock Styles */
.out-of-stock {
    opacity: 0.7;
    position: relative;
    pointer-events: none; /* Disable interaction with out-of-stock items */
}

.out-of-stock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    border-radius: var(--radius-xl); /* Match card radius for overlay */
    text-align: center;
}

.out-of-stock-label {
    background: var(--danger-color);
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.9rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    animation: fadeIn 0.3s ease-out; /* Add fade-in animation */
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Disabled button styles */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: var(--gray-300); /* Muted background for disabled buttons */
    color: var(--gray-500); /* Muted text for disabled buttons */
    box-shadow: none;
    transform: none; /* Remove hover effects */
}

.btn:disabled::before { /* Remove shimmer effect for disabled buttons */
    display: none;
}

/* Stock indicator styles */
.text-success {
    color: var(--success-color) !important;
}

.text-danger {
    color: var(--danger-color) !important;
}

/* Quantity controls styling */
.quantity-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.quantity-controls button {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: var(--gray-200);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    color: var(--gray-700);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.quantity-controls button:hover {
    background: var(--gray-300);
}

.quantity-controls span {
    font-weight: 600;
    color: var(--gray-800);
    min-width: 25px; /* Ensure consistent width for quantity number */
    text-align: center;
}

/* Cart item styling */
.cart-item {
    transition: var(--transition);
}

.cart-item:hover {
    box-shadow: var(--shadow-xs); /* Lighter shadow on hover */
}

/* Stock status badge */
.stock-status {
    font-size: 0.8rem;
    font-weight: 500;
    margin-top: 0.5rem;
    display: block; /* Ensure it takes its own line */
}

/* Animation for stock changes */
.stock-update {
    animation: stockPulse 0.5s ease-in-out;
}

@keyframes stockPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Product detail out of stock styling */
.product-detail .out-of-stock-indicator {
    background: #f8d7da;
    color: #721c24;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #f5c6cb;
    margin-bottom: 1rem;
    text-align: center;
    font-weight: 500;
}

/* Low stock warning */
.low-stock-warning {
    background: #fff3cd;
    color: #856404;
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid #ffeaa7;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    display: inline-block; /* Ensure it takes up minimal space */
}

/* --- Media Queries for enhanced responsiveness --- */

/* Mobile Responsive Design (Common Breakpoints) */
@media (max-width: 991.98px) { /* Tablet and smaller */
    .filter-toggle {
        display: flex; /* Show filter toggle button on smaller screens */
    }

    .filters-section {
        display: none; /* Hide filters section by default */
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--white); /* Use white for full background */
        z-index: 1050;
        overflow-y: auto;
        padding: 2rem 1.5rem; /* More generous padding */
        margin-bottom: 0;
        border-radius: 0; /* No border-radius for full screen overlay */
        box-shadow: none; /* No shadow for full screen overlay */
    }

    .filters-section.show {
        display: block;
    }

    .filters-section .filter-close {
        position: sticky; /* Make close button sticky at the top */
        top: 0;
        right: 0;
        background: var(--white); /* Match background */
        border: none;
        font-size: 2rem; /* Larger close button */
        color: var(--gray-500);
        z-index: 1051;
        width: fit-content; /* Shrink to content */
        padding: 0.5rem; /* Add padding for click area */
        margin-left: auto; /* Push to the right */
        display: block;
    }

    .filters-section .filter-close:hover {
        color: var(--gray-700);
    }

    .filters-section .d-flex {
        margin-top: 0; /* Reset top margin as close button is sticky */
        flex-direction: column; /* Stack clear filters and apply buttons */
        gap: 1rem;
    }

    .hero-section {
        padding: 4rem 0;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .card-img-top {
        height: 200px;
        padding: 1rem;
    }
    
    .cart-drawer {
        width: 100%;
        right: -100%;
    }
    
    .product-spec {
        flex-direction: column;
        gap: 0.25rem;
        align-items: flex-start;
    }
    
    .search-input {
        padding: 1rem 1.25rem;
        font-size: 0.875rem;
    }
    .search-btn {
        padding: 1rem 1.5rem; /* Adjusted for smaller screens */
        font-size: 0.875rem;
    }
    
    .filters-section {
        padding: 1.5rem;
        border-radius: var(--radius-xl);
    }
    
    .sort-section {
        padding: 1.25rem;
        flex-direction: column; /* Stack sort elements */
        align-items: flex-start;
    }
    
    /* Mobile Filters - Stack Vertically */
    .filter-group {
        margin-bottom: 1.25rem;
    }
    
    .form-select {
        padding: 1rem;
        font-size: 1rem;
    }
    
    /* Mobile Cards */
    .card-body {
        padding: 1.25rem;
    }
    
    .price-section {
        padding: 1rem;
    }
    
    .service-card {
        padding: 2rem 1.5rem;
        margin-bottom: 1.5rem;
    }

    .product-detail {
        flex-direction: column; /* Stack image and content */
        margin: 1rem; /* More margin for modal on smaller screens */
    }

    .product-detail-img {
        border-radius: var(--radius-xl) var(--radius-xl) 0 0; /* Adjust border radius for stacked layout */
    }

    .product-info-area {
        padding: 1.5rem; /* Reduced padding for smaller screens */
    }

    .product-detail-close {
        top: 0.75rem;
        right: 0.75rem;
    }
}

@media (max-width: 767.98px) { /* Extra small devices (phones) */
    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.8125rem;
        width: 100%; /* Make buttons full width in certain contexts */
    }
    
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .navbar-brand img {
        height: 35px;
    }
    
    .hero-section {
        padding: 3rem 0;
    }
    
    .hero-section .lead {
        font-size: 1.125rem;
    }
    
    .filters-section {
        padding: 1.25rem;
        margin-bottom: 1.5rem;
    }
    
    .filter-group {
        margin-bottom: 1rem;
    }
    
    .scroll-to-top {
        width: 48px;
        height: 48px;
        bottom: 1.5rem;
        right: 1.5rem;
    }

    .tab {
        padding: 10px 18px; /* Smaller padding for tabs */
        font-size: 0.9rem;
    }

    .search-container {
        flex-direction: column; /* Stack search input and button */
        gap: 1rem;
    }

    .search-btn {
        width: 100%; /* Full width for search button */
    }
}

/* Extra Small Devices */
@media (max-width: 480px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .card {
        margin-bottom: 1.5rem;
    }
    
    .product-detail {
        margin: 0.75rem; /* Smaller margin for modal on very small screens */
        border-radius: var(--radius-xl);
    }
    
    .product-detail-img {
        height: 250px; /* Smaller image height on very small screens */
        padding: 1rem;
    }

    .cart-drawer {
        padding: 1.5rem; /* Reduced padding for cart drawer */
    }

    .cart-item {
        flex-direction: column; /* Stack image and details in cart item */
        align-items: flex-start;
        text-align: center; /* Center text within stacked items */
        gap: 0.75rem;
    }

    .cart-item img {
        margin-bottom: 0.5rem;
    }

    .quantity-controls {
        width: 100%; /* Full width for quantity controls */
        justify-content: space-between; /* Distribute buttons */
    }

    .price-section {
        flex-direction: column; /* Stack price and discount badge */
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* Focus States for Accessibility */
*:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

/* Print Styles */
@media print {
    .navbar,
    .cart-drawer,
    .scroll-to-top,
    .filters-section,
    .filter-toggle { /* Hide filter toggle for print */
        display: none !important;
    }
    
    .card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid var(--gray-300);
    }
    
    .hero-section {
        background: var(--gray-100) !important;
        color: var(--gray-900) !important;
    }

    .product-detail-container {
        display: block !important; /* Show modal content for printing */
        position: static;
        background: none;
        backdrop-filter: none;
        padding: 0;
        overflow-y: visible;
    }

    .product-detail {
        box-shadow: none;
        border: 1px solid var(--gray-300);
        margin: 0;
        border-radius: 0;
        flex-direction: row; /* Layout for print */
    }

    .product-detail-img {
        height: 200px;
        width: 30%; /* Allocate width for image */
        flex-shrink: 0;
        border-radius: 0;
    }

    .product-info-area {
        padding: 1rem;
        flex-grow: 1;
    }

    .product-detail-close {
        display: none !important;
    }
}

/* Smooth Animations */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}


/* Form Styling */
        .form-section-title {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            font-size: 1.125rem;
            font-weight: 600;
            color: var(--gray-800);
            margin: 2rem 0 1.5rem 0;
            padding-bottom: 0.75rem;
            border-bottom: 2px solid var(--warm-200);
        }

        .form-section-title i {
            color: var(--primary-color);
        }

        .form-group {
            margin-bottom: 1.5rem;
        }

        .form-label {
            display: block;
            font-weight: 600;
            color: var(--gray-700);
            margin-bottom: 0.5rem;
            font-size: 0.875rem;
            text-transform: uppercase;
            letter-spacing: 0.025em;
        }

        .form-control {
            width: 100%;
            padding: 1rem 1.25rem;
            border: 2px solid var(--gray-300);
            border-radius: var(--radius-lg);
            font-size: 1rem;
            transition: var(--transition);
            background: var(--white);
            color: var(--gray-800);
        }

        .form-control:focus {
            outline: none;
            border-color: var(--primary-color);
            box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.1);
            transform: translateY(-2px);
        }

        .form-control::placeholder {
            color: var(--gray-400);
        }

        select.form-control {
            appearance: none;
            background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%22292.4%22 height%3D%22292.4%22 viewBox%3D%220 0 292.4 292.4%22%3E%3Cpath fill%3D%22%23737373%22 d%3D%22M287 197.399l-133.4 133.5c-4.4 4.4-10.6 6.8-17.1 6.8s-12.7-2.4-17.1-6.8L5.4 197.399c-8.8-8.8-8.8-23 0-31.8 8.8-8.8 23-8.8 31.8 0L146.2 268l110.8-110.8c8.8-8.8 23-8.8 31.8 0s8.8 23 0 31.8z%22%2F%3E%3C%2Fsvg%3E');
            background-repeat: no-repeat;
            background-position: right 1rem center;
            background-size: 0.75rem auto;
            padding-right: 3rem;
        }

        textarea.form-control {
            resize: vertical;
            min-height: 120px;
        }

        .contact-item {
            display: flex;
            align-items: flex-start;
            gap: 1rem;
            margin-bottom: 2rem;
            padding: 1.5rem;
            background: var(--warm-50);
            border-radius: var(--radius-xl);
            border: 1px solid var(--warm-200);
            transition: var(--transition);
        }

        .contact-item:hover {
            background: var(--white);
            transform: translateX(8px);
            box-shadow: var(--shadow-md);
        }

        .contact-icon {
            width: 48px;
            height: 48px;
            background: var(--logo-gradient);
            color: white;
            border-radius: var(--radius-lg);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.25rem;
            flex-shrink: 0;
            box-shadow: var(--shadow-md);
        }

        .contact-details h6 {
            font-weight: 700;
            color: var(--gray-900);
            margin-bottom: 0.5rem;
            font-size: 1rem;
        }

        .contact-details p {
            color: var(--gray-600);
            margin: 0;
            line-height: 1.6;
        }

        /* Social Links */
        .social-links {
            display: flex;
            gap: 0.75rem;
            margin-top: 1rem;
        }

        .social-link {
            width: 48px;
            height: 48px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: var(--radius-lg);
            text-decoration: none;
            transition: var(--transition-bounce);
            font-size: 1.25rem;
            position: relative;
            overflow: hidden;
        }

        .social-link.facebook {
            background: linear-gradient(135deg, #1877f2, #42a5f5);
            color: white;
        }

        .social-link.google {
            background: linear-gradient(135deg, #ea4335, #fbbc04);
            color: white;
        }

        .social-link.youtube {
            background: linear-gradient(135deg, #ff0000, #ff4444);
            color: white;
        }

        .social-link:hover {
            transform: translateY(-4px) scale(1.1);
            box-shadow: var(--shadow-lg);
        }

       

        /* Animation Classes */
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .animate-fade-in-up {
            animation: fadeInUp 0.6s ease-out;
        }

        /* Loading Animation */
        .btn-loading {
            pointer-events: none;
            opacity: 0.7;
        }

        .btn-loading::after {
            content: '';
            position: absolute;
            width: 16px;
            height: 16px;
            border: 2px solid transparent;
            border-top: 2px solid currentColor;
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }

        @keyframes spin {
            to {
                transform: rotate(360deg);
            }
        }

       