:root {
    --primary-orange: #2a2a2b;
}

body {
    margin: 0;
    font-family: sans-serif;
}

.promo-bar {
    background-color: #e3f2fd;
    text-align: center;
    padding: 8px;
    font-size: 13px;
}
.header-actions {
    display: flex;
    align-items: center;
    gap: 30px; /* Space between the three blocks */
}

.action-block {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

/* Icon Styles */
.action-block .icon {
    font-size: 24px;
    color: #333;
}

/* Text Grouping */
.text-group {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.label {
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.value {
    font-size: 14px;
    font-weight: 700;
    color: #333;
}

/* Cart Badge Styling */
.cart-wrapper {
    position: relative;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background: #ff9900;
    color: white;
    font-size: 10px;
    font-weight: bold;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Auth Links */
.auth-link {
    text-decoration: none;
    color: #333;
    font-weight: 700;
    font-size: 14px;
}

.auth-sub {
    text-decoration: none;
    color: #ff9900;
    font-size: 12px;
}

.auth-link:hover, .auth-sub:hover {
    text-decoration: underline;
}
/* Branding Styles */
.logo-branding {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.brand-name {
    font-size: 32px;         /* Extra Large Font */
    font-weight: 900;        /* Very Bold */
    color: #333;
    letter-spacing: -1px;    /* Tight modern spacing */
    font-family: 'Arial Black', sans-serif; /* Thick, heavy font */
    line-height: 1;
}

.brand-name .accent {
    color: #ff9900;          /* The orange highlight */
}

/* Header Adjustments */
.main-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 5%;        /* Slightly more padding for the larger logo */
    background: #fff;
    border-bottom: 2px solid #f1f1f1;
}

.search-wrapper {
    flex: 1;
    max-width: 600px;
    margin: 0 40px;
}

.search-box {
    display: flex;
    border: 2px solid #eee; /* Slightly thicker border to match bold logo */
    border-radius: 4px;
    overflow: hidden;
}

.search-box input {
    flex: 1;
    border: none;
    padding: 12px 15px;
    outline: none;
}

.search-btn {
    background: #333; /* Dark button looks better with bold text logo */
    color: white;
    border: none;
    padding: 0 25px;
    font-weight: bold;
    cursor: pointer;
}

.search-btn:hover {
    background: #ff9900;
}


.search-container {
    display: flex;
    flex: 1;
    margin: 0 30px;
    border: 1px solid #ccc;
}

.search-container input {
    flex: 1;
    padding: 10px;
    border: none;
    outline: none;
}

.search-btn {
    background: var(--primary-orange);
    color: white;
    border: none;
    padding: 0 20px;
    cursor: pointer;
}

.nav-bar {
    background: var(--primary-orange);
    
}

.nav-container {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: center;
}

.nav-item {
    padding: 15px 20px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    position: relative; /* Essential for dropdown alignment */
}

/* THE DROPDOWN FIX */
.dropdown-content {
    display: none; 
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 220px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    padding: 0;
    z-index: 1000;
}

.dropdown-content li {
    display: block; /* Stacks items vertically */
    padding: 12px;
    color: #333;
    border-bottom: 1px solid #eee;
}

.dropdown-content li:hover {
    background: #f4f4f4;
    color: var(--primary-orange);
}

.show {
    display: block !important;
}

/* --- Hero Slider Container --- */
.hero-slider {
    position: relative;
    width: 100%;
    height: 60vh; /* Adjust height as needed */
    overflow: hidden;
    background-color: #111; /* Set a dark background, never white */
}

/* --- Base Slide Styling --- */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    /* Initially hidden */
    opacity: 0;
    
    /* The Transition: Only 'opacity' changes smoothly.
       This creates the cross-fade effect. */
    transition: opacity 1.5s ease-in-out; 
    z-index: 1; /* All slides start at low depth */
}

/* --- Active Slide State --- */
.slide.active {
    opacity: 1;
    z-index: 2; /* Active slide is on top */
}

/* Adjust images within slides */
.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Images fill the area without stretching */
    display: block;
}

/* --- Slide Content Positioning (Optional, for text overlay) --- */
.slide-content {
    position: absolute;
    bottom: 10%;
    left: 5%;
    color: white;
    z-index: 3; /* Text must be on top of everything */
    background: rgba(0, 0, 0, 0.3); /* Slight background for readability */
    padding: 20px;
    border-radius: 8px;
    
    /* Additional: Text Animation (Fade-in-up) */
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease 0.5s, transform 1s ease 0.5s; /* Wait for slide cross-fade */
}

/* When the slide is active, animate the content */
.slide.active .slide-content {
    opacity: 1;
    transform: translateY(0);
}

.slide-content h2 { font-size: 2.5rem; margin-bottom: 10px; }
.slide-content p { font-size: 1.2rem; margin-bottom: 20px; }
.shop-btn {
    background-color: #ff9900;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}
/* Product Section Styling */
.product-container {
    padding: 50px 5%;
    background-color: #f9f9f9;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 28px;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Product Grid එකේ සැකසුම */
.product-grid {
    display: grid;
    /* මෙතන තමයි magic එක: screen එකේ ඉඩ අනුව තීරු ගණන තීරණය වෙනවා */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px; /* Items අතර ඉඩ */
    padding: 20px 0;
    width: 100%;
}

/* Product Card එකේ සැකසුම */
.product-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

/* මවුස් එක උඩට ගියාම පොඩ්ඩක් Zoom වෙන Effect එක (මම කලින් කිව්වා වගේ) */
.product-card:hover {
    transform: translateY(-10px); /* පොඩ්ඩක් ඉහළට එසවෙනවා */
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.product-card img {
    width: 100%;
    height: 250px;
    object-fit: cover; /* පින්තූරය ඇදෙන්නේ නැතුව ලස්සනට පෙනේ */
    transition: transform 0.5s ease;
}

/* පින්තූරය ඇතුළතින් Zoom වීම */
.product-card:hover img {
    transform: scale(1.1);
}

/* Individual Card Styling */
/* --- Individual Card Styling (Animated & Professional) --- */
.product-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    padding-bottom: 20px;
    
    /* Animation Initial State */
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.2, 1, 0.3, 1);
}

/* State when card is revealed by scroll */
.product-card.reveal {
    opacity: 1;
    transform: translateY(0);
}

/* Hover Animation Improvements */
.product-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
    border-color: #ff9900;
}

.product-image img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    padding: 10px;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1); /* Zoom effect on image */
}
.add-to-cart {
    background-color: #333;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    width: 80%;
    transition: all 0.3s ease;
}

.add-to-cart:hover {
    background-color: #ff9900;
    letter-spacing: 1px; /* Subtle expansion */
    box-shadow: 0 4px 15px rgba(255, 153, 0, 0.3);
}
.product-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    
    /* ADD THIS LINE */
    margin-bottom: 40px; 
    
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    padding-bottom: 20px;
}
.brand-name {
    font-size: 32px;
    font-weight: 900;
    color: #333;
    letter-spacing: -1px;
    font-family: 'Arial Black', sans-serif;
}

.brand-name .accent {
    color: #ff9900;
}
/* Cart Page Layout */
.cart-container {
    padding: 40px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.page-title {
    margin-bottom: 30px;
    font-size: 28px;
    font-weight: 900;
}

.cart-layout {
    display: grid;
    grid-template-columns: 2fr 1fr; /* 2/3 for items, 1/3 for summary */
    gap: 30px;
}

/* Individual Item Row */
.cart-item {
    display: flex;
    align-items: center;
    background: #fff;
    padding: 20px;
    border-bottom: 1px solid #eee;
    gap: 20px;
}

.cart-item img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
}

.item-details { flex: 2; }
.item-details h3 { margin: 0 0 5px 0; font-size: 18px; }
.item-category { color: #888; font-size: 13px; }

.remove-btn {
    background: none;
    border: none;
    color: #ff4444;
    cursor: pointer;
    font-size: 12px;
    padding: 0;
    margin-top: 10px;
}

/* Quantity Toggler */
.item-quantity {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.item-quantity input {
    width: 40px;
    text-align: center;
    border: none;
    outline: none;
}

.qty-btn {
    background: #f8f9fa;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
}

.item-price {
    font-weight: bold;
    font-size: 18px;
    min-width: 100px;
    text-align: right;
}

/* Summary Card */
.cart-summary {
    background: #fdfdfd;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #eee;
    height: fit-content;
    position: sticky;
    top: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.total {
    font-size: 20px;
    font-weight: 900;
    margin-top: 10px;
}

.free { color: #2ecc71; font-weight: bold; }

.checkout-btn {
    width: 100%;
    background: #ff9900;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    margin-top: 20px;
    transition: 0.3s;
}

.checkout-btn:hover { background: #333; }
.payment-note {
    font-size: 11px;
    text-align: center;
    color: #999;
    margin-top: 15px;
}

/* Auth Page Background */
.auth-page {
    background: #f4f7f6; /* Soft grey/blue professional background */
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Central Card */
.login-card {
    background: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.login-header h2 {
    margin: 20px 0 5px;
    font-size: 24px;
    color: #333;
}

.login-header p {
    color: #888;
    font-size: 14px;
    margin-bottom: 30px;
}

/* Input Styling */
.input-group {
    text-align: left;
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #555;
}

.input-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s;
    box-sizing: border-box; /* Crucial for padding */
}

.input-group input:focus {
    border-color: #ff9900;
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 153, 0, 0.1);
}

/* Password Helper */
.forgot-password {
    display: block;
    text-align: right;
    font-size: 12px;
    color: #ff9900;
    text-decoration: none;
    margin-top: 5px;
}

/* Main Button */
.login-btn {
    width: 100%;
    background: #333;
    color: white;
    padding: 14px;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 10px;
}

.login-btn:hover {
    background: #ff9900;
}

.login-footer {
    margin-top: 25px;
    font-size: 14px;
    color: #666;
}

.login-footer a {
    color: #ff9900;
    text-decoration: none;
    font-weight: bold;
}

/* Additional Registration Styles */
.terms-group {
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
    margin-bottom: 20px;
    font-size: 13px;
    color: #666;
}

.terms-group input {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.terms-group a {
    color: #ff9900;
    text-decoration: none;
}


/* Profile Page Styling */
.bg-light { background-color: #f8f9fa; }

.profile-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 5%;
}

/* Sidebar */
.profile-sidebar {
    background: white;
    padding: 30px 0;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    height: fit-content;
}

.user-info {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.user-avatar { font-size: 50px; margin-bottom: 10px; }
.user-info h3 { margin: 0; font-size: 18px; }
.user-info p { font-size: 12px; color: #888; margin: 5px 0 0; }

.profile-nav a {
    display: block;
    padding: 15px 25px;
    text-decoration: none;
    color: #555;
    font-size: 14px;
    transition: 0.3s;
}

.profile-nav a.active {
    color: #ff9900;
    border-left: 4px solid #ff9900;
    background: #fff9f0;
}

.profile-nav a:hover:not(.active) { background: #fcfcfc; color: #333; }
.logout { color: #ff4444 !important; margin-top: 20px; border-top: 1px solid #eee; }

/* Order Cards */
.profile-content h2 { margin-top: 0; font-weight: 800; }

.order-card {
    background: white;
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;
    border: 1px solid #eee;
}

.order-header {
    background: #fafafa;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #eee;
}

.order-header .label { font-size: 11px; color: #999; text-transform: uppercase; display: block; }
.order-header .value { font-size: 14px; font-weight: bold; }

.status-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: bold;
}

.processing { background: #fff4e5; color: #ff9900; }

.order-body {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.order-body img { width: 60px; height: 60px; border-radius: 6px; object-fit: cover; }
.order-details h4 { margin: 0; font-size: 15px; }
.order-total { margin-left: auto; font-weight: bold; font-size: 16px; }

.back-link { text-decoration: none; color: #333; font-weight: bold; font-size: 14px; }

.category-container {
    padding: 40px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.category-header {
    text-align: center;
    margin-bottom: 50px;
}

.category-header h1 {
    font-size: 36px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.category-header p {
    color: #666;
    margin-top: 10px;
}
/* Navbar එකේ තියෙන හැම ලින්ක් එකකටම පොදු ස්ටයිල් එක */
.nav-item a {
    position: relative;
    text-decoration: none;
    color: white; /* අකුරු සුදු පාටයි */
    padding: 5px 0;
    transition: color 0.3s ease;
}

/* මවුස් එක උඩට ගියාම අකුරු වල පාට මඳක් වෙනස් කරන්න (Optional) */
.nav-item a:hover {
    color: #ff9900; 
}

/* යටින් ඇඳෙන ඉරේ මූලික හැඩය (මුලින් ඉර පේන්නේ නැහැ) */
.nav-item a::after {
    content: '';
    position: absolute;
    width: 0;           /* මුලින් පළල බිංදුවයි */
    height: 2px;        /* ඉරේ මහත */
    bottom: 0;
    left: 0;
    background-color: #ff9900; /* ඉරේ පාට (තැඹිලි) */
    transition: width 0.3s ease; /* තත්පර 0.3කින් ඉර ඇඳී එයි */
}

/* මවුස් එක උඩට ගිය සැනින් ඉරේ පළල 100% ක් වෙන්න සලස්වයි */
.nav-item a:hover::after {
    width: 100%;
}

/* Brand Name එකේ මූලික හැඩය */
.brand-name {
    position: relative;
    display: inline-block;
    color: #333; /* මූලික පාට (තද අළු) */
    font-weight: 800; /* අකුරු මහත */
    font-size: 24px; /* ඔබේ logo එකේ size එක */
    text-transform: uppercase;
    letter-spacing: 1px;
    
    /* Animation: "Shimmer" animation එක තත්පර 3කට වරක් ක්‍රියාත්මක වේ */
    animation: shimmer 3s infinite;
}

/* Accent (.LK) කොටස */
.accent {
    color: #ff9900; /* තැඹිලි පාට */
    transition: color 0.3s ease;
}

/* 3. Animation Definition: @keyframes shimmer */
@keyframes shimmer {
    0% {
        color: #333;
    }
    50% {
        color: #ff9900; /* මැදදී අකුරු තැඹිලි පාට වේ */
    }
    100% {
        color: #333;
    }
}
.container {
    max-width: 1200px; /* වෙබ් අඩවියේ උපරිම පළල */
    margin: 0 auto;    /* මැදට (Center) ගැනීමට */
    padding: 0 20px;   /* දෙපැත්තෙන් පොඩි ඉඩක් තැබීමට */
    width: 100%;       /* කුඩා screen වලදී 100% ක් වීමට */
    box-sizing: border-box;
}.main-header, .nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap; /* Items පේළියෙන් පේළියට වැටීම වළක්වයි */
}

/* සෙවුම් තීරුව (Search Bar) ඕනෑවට වඩා ලොකු වීම වැළැක්වීමට */
.search-container {
    flex: 1; 
    max-width: 500px;
    margin: 0 20px;
}/* Screen එක 1024px වඩා අඩු වූ විට (Laptops/Tablets) */
@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr); /* පේළියකට Items 3 බැගින් */
    }
    .hero-slider { height: 50vh; }
}

/* Screen එක 768px වඩා අඩු වූ විට (Mobile Phones) */
@media (max-width: 768px) {
    .header-actions {
        display: none; /* Mobile වලදී අමතර icon සඟවන්න (පසුව menu එකකට දාමු) */
    }
    .product-grid {
        grid-template-columns: repeat(2, 1fr); /* පේළියකට Items 2 බැගින් */
    }
    .brand-name { font-size: 18px; }
}



/* Screen එක 768px වඩා අඩු වූ විට (Mobile) */
@media (max-width: 768px) {
    
    /* 1. Header එකේ Items සඟවන්න (Mobile වලදී ඒවා ගොඩක් ඉඩ ගන්නවා) */
    .header-actions {
        display: none; 
    }

    /* 2. Navbar එකේ අකුරු කුඩා කරන්න සහ පේළි අතර ඉඩ හදන්න */
    .nav-bar ul {
        flex-wrap: wrap; /* අකුරු කැඩී යටට වැටෙන්න ඉඩ දෙන්න */
        justify-content: center;
        gap: 10px;
    }

    .nav-item {
        font-size: 12px; /* අකුරු පොඩි කරන්න */
    }

    /* 3. Slider එකේ අකුරු (Text) හරිගස්සමු */
    .hero-slider {
        height: 40vh; /* Slider එකේ උස Mobile වලට ගැලපෙන්න අඩු කරන්න */
    }

    .slide-content h2 {
        font-size: 24px; /* "Luxury Gaming setups" කියන එක පොඩි කරන්න */
    }

    .slide-content p {
        font-size: 14px; /* විස්තරය පොඩි කරන්න */
    }

    .shop-btn {
        padding: 8px 15px; /* Button එක පොඩි කරන්න */
        font-size: 12px;
    }

    /* 4. Logo එක මැදට ගන්න */
    .logo-branding {
        text-align: center;
        width: 100%;
        margin-bottom: 10px;
    }
}