:root {
    --primary: #667eea;
      --danger: #ef4444; 
    --primary-dark: #5568d3;
    --secondary: #764ba2;
    --accent: #f093fb;
    --bg: #f8f9fe;
    --card: #ffffff;
    --text: #1a202c;
    --text-light: #718096;
    --border: #e2e8f0;
    --shadow: 0 4px 20px rgba(102, 126, 234, 0.08);
    --shadow-lg: 0 8px 30px rgba(102, 126, 234, 0.12);
    --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-light: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
}

[data-theme="dark"] {
    --bg: #0f172a;
    --card: #1e293b;
    --text: #f1f5f9;
    --text-light: #94a3b8;
    --border: #334155;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

/* Top Bar */
.top-bar {
    background: var(--gradient);
    color: white;
    padding: 0.75rem 0;
    font-size: 0.9rem;
}

.top-bar-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-links {
    display: flex;
    gap: 1.5rem;
}

.top-links a {
    color: white;
    text-decoration: none;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    color: white;
    font-size: 1.2rem;
}


/* Header */
header {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

[data-theme="dark"] header {
    background: var(--card);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}



.tagline {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: -5px;
}

nav {
    display: flex;
    gap: 2.5rem;
}

nav a {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s;
}

nav a:hover,
nav a.active {
    color: var(--primary);
}

.header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.btn {
    background: var(--gradient);
    border: none;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--text);
    color: var(--text);
}

.btn-outline:hover {
    background: var(--text);
    color: white;
}

.icon-btn {
    background: transparent;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    position: relative;
    padding: 0.5rem;
    color: var(--text);
}

.cart-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--primary);
    color: white;
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-weight: 700;
}

/* Hero Section */
.hero {
    position: relative;
    height: 900px;
    overflow: hidden;
    margin-bottom: 3rem;
}

.hero-slides {
    display: flex;
    height: 100%;
    transition: transform 0.6s ease;
}

.hero-slide {
    min-width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    /* background: linear-gradient(135deg, rgba(102, 126, 234, 0.85) 0%, rgba(118, 75, 162, 0.75) 100%); */
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    color: white;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
    z-index: 3;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s;
}

.hero-dot.active {
    background: white;
    width: 32px;
    border-radius: 6px;
}

/* Container */
.container {
    max-width: 1900px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin: 4rem 0 3rem;
}

.section-label {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    background: var(--gradient-light);
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 1rem;
}

.section-desc {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Main Grid */
.main-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    margin-bottom: 5rem;
}

/* Sidebar */
.sidebar {
    background: var(--card);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.filter-group {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.filter-group:last-child {
    border-bottom: none;
}

.filter-group h4 {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1rem;
}

input[type="text"],
input[type="number"],
select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 0.9rem;
    background: var(--card);
    color: var(--text);
    transition: border-color 0.3s;
}

input:focus,
select:focus {
    outline: none;
    border-color: var(--primary);
}

.categories {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.category-btn {
    padding: 0.75rem 1rem;
    border: 2px solid var(--border);
    background: var(--card);
    border-radius: 8px;
    cursor: pointer;
    text-align: left;
    font-weight: 600;
    color: var(--text);
    transition: all 0.3s;
    font-size: 0.9rem;
}

.category-btn:hover {
    background: var(--bg);
    border-color: var(--primary);
}

.category-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.price-inputs {
    display: flex;
    gap: 0.75rem;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--card);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    cursor: pointer;
    border: 2px solid transparent;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.product-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient);
    border-radius: 16px;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: -1;
}

.product-card:hover::before {
    opacity: 0.1;
}

.product-image-container {
    position: relative;
    width: 100%;
    height: 280px;
    margin-bottom: 1rem;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg);
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--gradient);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.product-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.product-category {
    color: var(--text-light);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
    line-height: 1.4;
}

.product-price-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0.5rem 0;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}

.product-original-price {
    font-size: 1.1rem;
    color: var(--text-light);
    text-decoration: line-through;
}

.product-rating {
    color: #fbbf24;
    font-size: 0.9rem;
    font-weight: 600;
}

.product-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.product-actions .btn {
    flex: 1;
    padding: 0.75rem;
    font-size: 0.85rem;
}

/* Brand Section */
.brands-section {
    background: var(--card);
    padding: 4rem 0;
    margin: 5rem 0;
    border-radius: 15px;
     overflow: hidden;
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 3rem;
    align-items: center;
    justify-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.brand-item {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-light);
    opacity: 0.7;
    transition: all 0.3s;
    cursor: pointer;
}

.brand-item:hover {
    opacity: 1;
    color: var(--primary);
    transform: scale(1.1);
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Image Grid */
.image-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 1rem;
    margin: 3rem 0;
}

.image-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
}

.image-grid .large {
    grid-row: span 2;
}

/* Services Section */
.services-section {
    background: var(--card);
    padding: 5rem 0;
    margin: 5rem 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    text-align: center;
    padding: 2rem;
    border-radius: 16px;
    transition: all 0.3s;
}

.service-card:hover {
    background: var(--gradient-light);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 4px 8px rgba(102, 126, 234, 0.2));
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.service-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Footer */
footer {
    background: var(--text);
    color: white;
    padding: 4rem 0 0rem;
    margin-top: 5rem;
}

[data-theme="dark"] footer {
    background: #0a0f1a;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.footer-desc {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s;
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

/* Modal */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 300;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.modal.open {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--card);
    padding: 2.5rem;
    border-radius: 20px;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text);
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

/* Drawer */
.drawer {
    position: fixed;
    right: 0;
    top: 0;
    height: 100vh;
    width: 500px;
    background: var(--card);
    box-shadow: -10px 0 50px rgba(0, 0, 0, 0.3);
    transform: translateX(100%);
    transition: transform 0.4s;
    z-index: 200;
    overflow-y: auto;
    padding: 2rem;
}

.drawer.open {
    transform: translateX(0);
}

.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 199;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Checkout */
.checkout-section {
    max-width: 900px;
    margin: 3rem auto 5rem;
    padding: 0 2rem;
}

.cart-items {
    background: var(--card);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.cart-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border);
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-image {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: 12px;
    background: var(--bg);
}

.cart-item-info {
    flex: 1;
}

.form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    border: 1px solid var(--border);
    font-size: 0.95rem;
    background: var(--bg);
    box-sizing: border-box;
}



/* hero video section  */



.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.5) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    color: white;
    text-align: left;
}


/* brand logo section */
/* .brands-section {
    background: var(--card);
    padding: 1rem 0;
    background: border-box;
    overflow: hidden;
} */

.brand-slider {
    width: 100%;
    display: flex;
    align-items: center;
    overflow: hidden;
    position: relative;
}


.brand-track {
    display: flex;
    gap: 4rem;
    animation: scroll 30s linear infinite;
}

.brand-track img {
    height: 100px;
    width: auto;
    width: 330px;
    max-width: 330px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.brand-track img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.15);
}

/* Smooth infinite animation */
@keyframes scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}





/* Responsive */
@media (max-width: 1024px) {
    .main-grid {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: relative;
        top: 0;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    nav {
        display: none;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .drawer {
        width: 100%;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 1rem;
    }

    .image-grid {
        grid-template-columns: 1fr;
    }

    .image-grid .large {
        grid-row: span 1;
    }
}

nav a i {
  margin-right: 6px;
  font-size: 0.9rem;
}

.logo i {
  margin-right: 8px;
  color: var(--primary);
}

.icon-btn i {
  font-size: 1.1rem;
}

.btn i {
  margin-right: 6px;
}

.pagination-btn {
  padding: 0.45rem 0.9rem;
  border: 2px solid var(--border);
  background: var(--card);
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
  border-radius: 8px;
}

.pagination-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ================= PROFILE AVATAR ================= */
.profile-menu {
  position: relative;
}

.profile-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea, #764ba2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(102,126,234,0.45);
  transition: all 0.3s ease;
}

.profile-avatar i {
  color: #fff;
  font-size: 1.15rem;
}

.profile-avatar:hover {
  transform: scale(1.08);
  box-shadow: 0 10px 30px rgba(102,126,234,0.6);
}


/* ================= DROPDOWN ================= */
.profile-dropdown {
  position: absolute;
  top: 55px;
  right: 0;
  min-width: 220px;
  background: var(--card);
  border-radius: 16px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.15);
  padding: 0.8rem 0;
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  pointer-events: none;
  transition: all 0.25s ease;
  z-index: 999;
}



.profile-menu.open .profile-dropdown {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
/* ================= NAME ================= */
.profile-name {
  padding: 0.9rem 1.2rem;
  font-weight: 800;
  font-size: 1rem;
  color: var(--primary);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

/* ================= LINKS ================= */
.profile-dropdown a {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.85rem 1.3rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  transition: all 0.25s ease;
}

.profile-dropdown a i {
  font-size: 1rem;
  color: var(--primary);
}

.profile-dropdown a:hover {
  background: var(--gradient-light);
  padding-left: 1.6rem;
  color: var(--primary);
}

/* ================= LOGOUT ================= */
.profile-dropdown a.logout {
  color: #ef4444;
}

.profile-dropdown a.logout i {
  color: #ef4444;
}

.profile-dropdown a.logout:hover {
  background: rgba(239,68,68,0.08);
}

/* Profile icon same as cart */
.profile-btn {
  color: var(--text);
}

.profile-btn i {
  font-size: 1.3rem; /* SAME AS CART */
}

/* Dropdown (already good, no change needed) */
.profile-menu {
  position: relative;
}

.profile-menu.open .profile-btn {
  color: var(--primary);
}


.color-white {
  color: #ffffff !important;
  text-decoration: none;
}

.color-white:hover {
  text-decoration: underline;
}