/* ===== CSS RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Ensure Font Awesome icons display properly */
.fa, .fas, .far, .fal, .fab {
    font-family: 'Font Awesome 6 Free', 'Font Awesome 6 Brands' !important;
    font-weight: 900;
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1;
}

.fab {
    font-family: 'Font Awesome 6 Brands' !important;
}

:root {
    --primary-color: #000000;
    --secondary-color: #ff9900;
    --dark-color: #1a1a1a;
    --light-gray: #f5f5f5;
    --border-color: #e0e0e0;
    --text-color: #000000;
    --white: #ffffff;
    --success-color: #28a745;
    --error-color: #dc3545;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #0052a3;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: #e55a00;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-small {
    padding: 8px 15px;
    font-size: 14px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-edit {
    background-color: #007bff;
    color: white;
}

.btn-edit:hover {
    background-color: #0056b3;
}

.btn-delete {
    background-color: #dc3545;
    color: white;
}

.btn-delete:hover {
    background-color: #c82333;
}

.text-center {
    text-align: center;
}

/* ===== HEADER ===== */
.site-header {
    position: relative;
    top: 0;
    z-index: 1000;
    background-color: var(--white);
    box-shadow: var(--shadow);
}

.top-bar {
    background-color: var(--dark-color);
    color: var(--white);
    padding: 8px 0;
    font-size: 14px;
    display: block; /* Ensure it's always visible */
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.contact-info span {
    margin-right: 0;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.contact-info i,
.top-links i {
    margin-right: 5px;
    font-size: 14px;
}

.top-links {
    display: flex;
    gap: 20px;
}

.top-links a {
    margin-left: 0;
    color: var(--white);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.top-links a:hover {
    color: var(--secondary-color);
}

.main-header {
    padding: 20px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 28px;
    font-weight: bold;
    color: var(--primary-color);
}

.logo img {
    height: 100px;
    width: auto;
    align-items: left;
}

.logo i {
    font-size: 32px;
}

.search-bar {
    flex: 1;
    max-width: 600px;
}

.search-bar form {
    display: flex;
    border: 2px solid var(--border-color);
    border-radius: 25px;
    overflow: hidden;
}

.search-bar input {
    flex: 1;
    padding: 12px 20px;
    border: none;
    font-size: 16px;
    outline: none;
}

.search-bar button {
    padding: 12px 25px;
    color: #000000;
    border: none;
    cursor: pointer;
    font-size: 18px;
    transition: var(--transition);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-bar button:hover {
    background-color: var(--secondary-color);
}

.header-actions {
    display: flex;
    gap: 20px;
}

.header-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    color: var(--text-color);
    font-size: 14px;
}

.header-btn i {
    font-size: 24px;
}

.header-btn:hover {
    color: var(--primary-color);
}

/* ===== NAVIGATION ===== */
.main-nav {
    background-color: var(--primary-color);
}

.nav-menu {
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-menu > li {
    position: relative;
}

.nav-menu > li > a {
    display: block;
    padding: 15px 25px;
    color: var(--white);
    font-weight: 500;
    transition: var(--transition);
}

.nav-menu > li > a:hover,
.nav-menu > li > a.active {
    background-color: rgba(255, 255, 255, 0.1);
}

.has-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    box-shadow: var(--shadow);
    min-width: 250px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    border-radius: 0 0 5px 5px;
}

.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    display: block;
    padding: 12px 20px;
    color: var(--text-color);
    border-bottom: 1px solid var(--border-color);
}

.dropdown-menu li:last-child a {
    border-bottom: none;
}

.dropdown-menu li a:hover {
    background-color: var(--light-gray);
    color: var(--primary-color);
    padding-left: 25px;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
    padding: 15px;
}

/* ===== HERO SECTION ===== */
.hero-section {
    background: url("/images/heroHomecopy.jpg") no-repeat center center/cover;
    color: var(--white);
    padding: 100px 0;
    text-align: center;
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    color: #ffffff; 
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 30px;
    color: #e7f0f7;
}

/* ===== PROMO BANNERS ===== */
.promo-banners {
    padding: 60px 0;
    background-color: var(--light-gray);
}

.promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.promo-card {
    background-color: var(--white);
    padding: 30px;
    text-align: center;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.promo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.promo-card i {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.promo-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

/* ===== SECTION HEADERS ===== */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 36px;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.section-header p {
    font-size: 18px;
    color: #666;
}

/* ===== PRODUCT CARDS ===== */
.featured-products,
.category-highlights,
.brands-showcase,   
.category-content,
.search-content,
.related-products {
    padding: 60px 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    transition: var(--transition);
}

.product-card:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.product-image {
    position: relative;
    overflow: hidden;
    height: 200px;
    background-color: var(--light-gray);
}

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

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

.badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.product-info {
    padding: 20px;
}

.product-brand {
    color: #999;
    font-size: 14px;
    margin-bottom: 5px;
}

.product-name {
    font-size: 18px;
    margin-bottom: 10px;
    min-height: 50px;
}

.product-name a {
    color: var(--text-color);
}

.product-name a:hover {
    color: var(--primary-color);
}

.product-description {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.5;
}

.product-price {
    font-size: 15px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* ===== CATEGORY SECTIONS ===== */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.category-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    height: 300px;
    box-shadow: var(--shadow);
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.category-card:hover img {
    transform: scale(1.1);
}

.category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: var(--white);
    padding: 30px 20px;
}

.category-overlay h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

/* ===== BRANDS SECTION ===== */
.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.brand-card {
    background-color: var(--white);
    padding: 30px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
    transition: var(--transition);
}

.brand-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-5px);
}

.brand-card img {
    max-height: 60px;
    width: auto;
}

/* ===== PAGE HEADER ===== */
.page-header {
    background: var(--primary-color);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.page-header h1 {
    font-size: 42px;
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
}

.page-header p {
    position: relative;
    z-index: 2;
    font-size: 18px;
}

.breadcrumb {
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.8);
}

.breadcrumb a {
    color: var(--white);
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* ===== CATEGORY PAGE ===== */
.category-info {
    margin-bottom: 30px;
}

.results-count {
    color: #666;
    font-size: 16px;
}

.no-products,
.no-results {
    text-align: center;
    padding: 80px 20px;
}

.no-products i,
.no-results i {
    font-size: 72px;
    color: #ccc;
    margin-bottom: 20px;
}

.no-products p,
.no-results p {
    font-size: 18px;
    color: #666;
    margin-bottom: 30px;
}

/* ===== PRODUCT DETAIL PAGE ===== */
.product-page {
    padding: 40px 0;
}

.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin: 40px 0;
}

.product-gallery {
    position: sticky;
    top: 100px;
}

.main-image {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
    background-color: var(--light-gray);
}

.main-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.thumbnail-images {
    display: flex;
    gap: 15px;
}

.thumbnail-images img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
}

.thumbnail-images img:hover,
.thumbnail-images img.active {
    border-color: var(--primary-color);
}

.product-details h1 {
    font-size: 32px;
    margin-bottom: 15px;
}

.product-price-section {
    background-color: var(--light-gray);
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
}

.product-price-section .product-price {
    font-size: 36px;
    color: var(--primary-color);
    font-weight: bold;
}

.product-description {
    margin: 30px 0;
}

.product-description h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

.product-actions {
    margin: 30px 0;
}

.product-meta {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.product-meta p {
    margin-bottom: 10px;
    color: #666;
}

.product-specifications {
    margin: 60px 0;
}

.product-specifications h2 {
    font-size: 28px;
    margin-bottom: 30px;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.spec-item {
    padding: 15px;
    background-color: var(--light-gray);
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.spec-item strong {
    color: var(--dark-color);
}

/* ===== CATEGORIES PAGE ===== */
.category-grid-large {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.category-card-large {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    transition: var(--transition);
}

.category-card-large:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.category-card-large .category-image {
    height: 250px;
    overflow: hidden;
}

.category-card-large .category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.category-card-large .category-content {
    padding: 30px;
}

.category-card-large h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

.category-card-large p {
    color: #666;
    margin-bottom: 20px;
}

.product-image img,
.brand-card img,
.category-card img,
.main-image img {
  width: 100%;
  height: auto;
  position: relative;
  object-fit: cover;
  border-radius: 8px;
}

@media (max-width: 768px) {
  .product-image,
  .brand-card,
  .category-card,
  .main-image {
    position: relative;
    max-width: 100%;
    z-index: 1; /* Make sure it's not above other content */
  }
}
/* ===== BRANDS PAGE ===== */
.brand-section {
    margin-bottom: 80px;
    padding-bottom: 60px;
    border-bottom: 2px solid var(--border-color);
}

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

.brand-header {
    text-align: center;
    margin-bottom: 40px;
}

.brand-header img {
    margin: 0 auto 20px;
    max-height: 80px;
    width: auto;
}

.brand-header h2 {
    font-size: 32px;
    margin-bottom: 10px;
}

.brand-header p {
    color: #666;
}

/* ===== ABOUT PAGE ===== */
.about-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 80px;
}

.about-text h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.about-text p {
    margin-bottom: 20px;
    line-height: 1.8;
    font-size: 16px;
}

.about-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

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

.why-choose-us,
.our-values {
    margin-bottom: 80px;
}

.why-choose-us h2,
.our-values h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    text-align: center;
    padding: 30px;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    transition: var(--transition);
}

.feature-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-5px);
}

.feature-card i {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

.values-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.value-item {
    padding: 30px;
    background-color: var(--light-gray);
    border-radius: 10px;
}

.value-item h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.value-item i {
    margin-right: 10px;
}

/* ===== CONTACT PAGE ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
}

.contact-info-section h2 {
    font-size: 28px;
    margin-bottom: 20px;
}

.contact-details {
    margin-top: 40px;
}

.contact-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-item i {
    font-size: 32px;
    color: var(--primary-color);
    width: 40px;
}

.contact-item h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.contact-item p {
    color: #666;
    line-height: 1.8;
}

/* ===== FORMS ===== */
.contact-form,
.newsletter-form {
    width: 100%;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark-color);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 16px;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.newsletter-form {
    display: flex;
    gap: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 16px;
}

.newsletter-form button {
    padding: 12px 20px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 18px;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background-color: var(--secondary-color);
}

#newsletter-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    font-size: 14px;
}

/* ===== ALERTS ===== */
.alert {
    padding: 15px 20px;
    border-radius: 5px;
    margin-bottom: 25px;
}

.alert-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.alert-error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.alert i {
    margin-right: 10px;
}

.alert ul {
    list-style: disc;
    margin-left: 30px;
}

/* ===== SEARCH PAGE ===== */
.search-suggestions {
    margin-top: 30px;
    text-align: left;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.search-suggestions h3 {
    margin-bottom: 15px;
}

.search-suggestions ul {
    list-style: disc;
    margin-left: 25px;
}

.search-suggestions li {
    margin-bottom: 10px;
}

.search-suggestions a {
    color: var(--primary-color);
}

.search-suggestions a:hover {
    text-decoration: underline;
}

/* ===== ERROR PAGES ===== */
.error-page {
    padding: 100px 0;
    text-align: center;
}

.error-content {
    max-width: 600px;
    margin: 0 auto;
}

.error-icon i {
    font-size: 100px;
    color: var(--error-color);
    margin-bottom: 30px;
}

.error-content h1 {
    font-size: 120px;
    color: var(--dark-color);
    margin-bottom: 20px;
}

.error-content h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

.error-content p {
    font-size: 18px;
    color: #666;
    margin-bottom: 40px;
}

.error-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* ===== FOOTER ===== */
.site-footer {
    background-color: var(--dark-color);
    color: var(--white);
    padding: 60px 0 20px;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    margin-bottom: 20px;
    font-size: 20px;
}

.footer-column p {
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.footer-column ul li a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    width: 100%;
    flex-wrap: wrap;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

.payment-methods {
    display: flex;
    gap: 15px;
    font-size: 32px;
}

.payment-methods i {
    color: rgba(255, 255, 255, 0.6);
}

/* ===== CART PAGE STYLES ===== */
.cart-page {
  padding: 2rem 1rem;
}

.cart-title {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
  font-weight: 600;
}

.cart-table {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cart-header, .cart-item {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 0.5fr;
  align-items: center;
  text-align: center;
  padding: 1rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.cart-header {
  font-weight: bold;
  background-color: var(--light-gray);
}

.cart-product {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: flex-start;
  text-align: left;
}

.cart-product img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 8px;
}

.cart-quantity input {
  width: 60px;
  padding: 4px;
  text-align: center;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.cart-quantity button,
.cart-action button {
  border: none;
  background: none;
  color: #555;
  cursor: pointer;
  font-size: 1.1rem;
  transition: 0.3s;
}

.cart-action .remove-btn:hover {
  color: crimson;
}

.cart-summary {
  margin-top: 2rem;
  text-align: right;
}

.summary-content {
  display: inline-block;
  text-align: left;
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.summary-actions {
  margin-top: 1rem;
  display: flex;
  gap: 1rem;
}

.checkout-btn,
.continue-btn,
.shop-btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}

.checkout-btn {
  background-color: #000;
  color: #fff;
}

.checkout-btn:hover {
  background-color: #333;
}

.continue-btn {
  background-color: var(--light-gray);
  color: #000;
}

.continue-btn:hover {
  background-color: #ddd;
}

.empty-cart {
  text-align: center;
  padding: 4rem 1rem;
}

.empty-cart i {
  font-size: 4rem;
  color: #aaa;
  margin-bottom: 1rem;
}

.shop-btn {
  background-color: #000;
  color: #fff;
}

.shop-btn:hover {
  background-color: #333;
}

/* ===== ADMIN STYLES ===== */
.admin-header {
    background-color: var(--primary-color);
    color: white;
    padding: 20px 0;
}

.admin-header h1 {
    margin: 0;
    font-size: 28px;
}

.admin-nav {
    margin-top: 15px;
}

.admin-nav ul {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    list-style: none;
}

.admin-nav a {
    display: inline-block;
    padding: 10px 20px;
    background-color: rgba(255,255,255,0.2);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: 0.3s;
}

.admin-nav a:hover,
.admin-nav a.active {
    background-color: var(--secondary-color);
}

.admin-content {
    padding: 40px 0;
}

.admin-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.admin-card h2 {
    margin-top: 0;
    color: var(--dark-color);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    display: block;
    overflow-x: auto;
}

.admin-table thead {
    background-color: var(--light-gray);
}

.admin-table th,
.admin-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
}

.admin-table th {
    font-weight: 600;
    color: var(--dark-color);
}

.admin-table tr:hover {
    background-color: #f9f9f9;
}

.admin-table img {
    max-width: 60px;
    height: auto;
}

.action-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: linear-gradient(135deg, #0066cc, #0052a3);
    color: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
}

.stat-card i {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.9;
}

.stat-card h3 {
    font-size: 36px;
    margin: 10px 0;
}

.stat-card p {
    font-size: 16px;
    opacity: 0.9;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    overflow-y: auto;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-header h2 {
    margin: 0;
}

.close-modal {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #666;
    line-height: 1;
}

.close-modal:hover {
    color: #000;
}

/* Login Page Styles */
.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
}

.login-box {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 450px;
}

.login-box .logo {
    text-align: center;
    margin-bottom: 30px;
}

.login-box .logo img {
    max-width: 150px;
    height: auto;
}

.login-box h1 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--dark-color);
}

.login-form .form-group {
    margin-bottom: 20px;
}

.login-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark-color);
}

.login-form label i {
    margin-right: 8px;
    color: var(--primary-color);
}

.login-form input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 16px;
    transition: var(--transition);
}

.login-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablet and Below */
@media (max-width: 1024px) {
    .product-detail {
        grid-template-columns: 1fr;
    }
    
    .about-intro {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .category-grid-large {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

/* Mobile Responsive - 768px and below */
@media (max-width: 768px) {
    /* Header Adjustments - Keep top bar visible but adjust layout */
    .top-bar {
        font-size: 12px;
        padding: 5px 0;
    }
    
    .top-bar-content {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }
    
    .contact-info {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .contact-info span {
        margin: 0;
        font-size: 11px;
    }
    
    .top-links {
        display: flex;
        gap: 10px;
        justify-content: center;
    }
    
    .top-links a {
        margin: 0;
        font-size: 11px;
    }
    
    .header-content {
        gap: 0.5rem;
        padding: 0.5rem 0;
    }
    
    .logo {
        flex: 0 0 auto;
        max-width: 40%;
    }
    
    .logo img {
        height: 60px;
    }
    
    .header-actions {
        flex: 0 0 auto;
        gap: 10px;
    }
    
    .header-btn {
        font-size: 12px;
    }
    
    .header-btn i {
        font-size: 20px;
    }
    
    .search-bar {
        order: 3;
        flex: 1 1 100%;
        max-width: 100%;
        margin-top: 0.5rem;
    }
    
    .search-bar form {
        width: 100%;
    }
    
    .search-bar input {
        font-size: 14px;
        padding: 10px 15px;
    }
    
    .search-bar button {
        padding: 10px 20px;
    }
    
    /* Navigation */
    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu > li {
        width: 100%;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background-color: rgba(255, 255, 255, 0.1);
        display: none;
    }
    
    .has-dropdown.active .dropdown-menu {
        display: block;
    }
    
    /* Hero Section */
    .hero-content h1 {
        font-size: 32px;
    }
    
    .hero-content p {
        font-size: 16px;
    }
    
    /* Products Grid */
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .product-card {
        font-size: 14px;
    }
    
    .product-image {
        height: 150px;
    }
    
    .product-info {
        padding: 15px;
    }
    
    .product-name {
        font-size: 16px;
        min-height: 40px;
    }
    
    .product-price {
        font-size: 14px;
    }
    
    /* Categories */
    .category-grid,
    .category-grid-large {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .category-card {
        height: 200px;
    }
    
    /* Brands */
    .brands-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    
    /* Cart */
    .cart-header, .cart-item {
        grid-template-columns: 1.5fr 1fr 1fr 1fr;
        font-size: 14px;
    }
    
    .cart-action {
        display: none;
    }
    
    /* Admin */
    .admin-table {
        font-size: 14px;
    }
    
    .admin-table th,
    .admin-table td {
        padding: 10px;
    }
    
    .admin-table img {
        max-width: 40px;
    }
    
    .admin-nav {
        overflow-x: auto;
    }
    
    .admin-nav ul {
        flex-wrap: nowrap;
        min-width: min-content;
    }
    
    .admin-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .modal-content {
        width: 95%;
        padding: 20px;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* Small Mobile - 480px and below */
@media (max-width: 480px) {
    /* Header */
    .logo img {
        height: 50px;
    }
    
    .header-content {
        padding: 0.25rem 0;
    }
    
    .header-actions {
        gap: 5px;
    }
    
    .header-btn span {
        display: none;
    }
    
    /* Hero */
    .hero-section {
        padding: 60px 0;
    }
    
    .hero-content h1 {
        font-size: 24px;
    }
    
    .hero-content p {
        font-size: 14px;
    }
    
    /* Top Bar */
    .top-bar-content {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .contact-info span {
        display: block;
        margin: 5px 0;
    }
    
    .top-links a {
        margin: 0 10px;
    }
    
    /* Products */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .product-card {
        font-size: 12px;
    }
    
    .product-image {
        height: 120px;
    }
    
    .product-info {
        padding: 10px;
    }
    
    .product-name {
        font-size: 14px;
        min-height: 35px;
    }
    
    .product-brand {
        font-size: 11px;
    }
    
    .btn-outline {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    /* Categories */
    .category-grid,
    .category-grid-large {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    /* Promo Banners */
    .promo-grid {
        grid-template-columns: 1fr;
    }
    
    /* Brands */
    .brands-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Error Pages */
    .error-content h1 {
        font-size: 72px;
    }
    
    .error-actions {
        flex-direction: column;
    }
    
    /* Values */
    .values-list {
        grid-template-columns: 1fr;
    }
    
    /* Admin */
    .admin-table {
        display: block;
        overflow-x: auto;
        font-size: 12px;
    }
    
    .admin-stats {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .stat-card i {
        font-size: 36px;
    }
    
    .stat-card h3 {
        font-size: 28px;
    }
    
    /* Page Headers */
    .page-header h1 {
        font-size: 28px;
    }
    
    .page-header p {
        font-size: 14px;
    }
    
    /* Section Headers */
    .section-header h2 {
        font-size: 28px;
    }
    
    .section-header p {
        font-size: 16px;
    }
}

/* Extra Small Screens */
@media (max-width: 360px) {
    .logo img {
        height: 40px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .admin-nav a {
        padding: 8px 12px;
        font-size: 14px;
    }
}

/* Landscape Mobile Specific */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        padding: 40px 0;
    }
    
    .login-container {
        padding: 10px;
    }
    
    .login-box {
        padding: 20px;
    }
}

/* Print Styles */
@media print {
    .site-header,
    .main-nav,
    .site-footer,
    .btn,
    .admin-nav,
    .search-bar,
    .header-actions {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
}

/* High DPI Screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .product-image img,
    .category-card img {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* ===== MOBILE FIXES ===== */

/* Fix sticky product images on mobile */
.product-image {
    position: relative; /* Changed from any sticky/fixed value */
    overflow: hidden;
    height: 200px;
    background-color: var(--light-gray);
}

/* Ensure images don't stick on scroll */
.product-card .product-image,
.category-card .category-image {
    position: relative !important; /* Force relative positioning */
    z-index: 1; /* Keep it below other content */
}

/* Fix for product detail page images */
.product-gallery {
    position: relative; /* Remove sticky if it exists */
    top: auto;
}

.product-gallery .main-image {
    position: relative;
    z-index: 1;
}

/* Mobile specific fixes - 768px and below */
@media (max-width: 768px) {
    
    /* Ensure no sticky images on mobile */
    .product-image,
    .main-image,
    .category-image {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
    }
    
    /* Fix product gallery on mobile */
    .product-gallery {
        position: relative !important;
        top: auto !important;
        height: auto !important;
    }
    
    /* Ensure proper stacking order */
    .site-header {
        position: relative;
        z-index: 100;
    }
    
    .main-nav {
        position: relative;
        z-index: 99;
    }
    
    /* Fix navigation dropdowns on mobile */
    .has-dropdown .dropdown-menu {
    position: static;
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    max-height: 300px;
    overflow-y: auto;
  }

    
    .has-dropdown.active .dropdown-menu {
        display: block;
    }
    
    /* Make dropdowns work with click on mobile */
    .has-dropdown > a {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .has-dropdown > a i {
        transition: transform 0.3s ease;
    }
    
    .has-dropdown.active > a i {
        transform: rotate(180deg);
    }
    
    /* Fix search bar loading/results */
    .search-bar {
        position: relative;
        z-index: 10;
    }
    
    .search-results {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        max-height: 400px;
        overflow-y: auto;
        z-index: 1000;
    }
    
    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden;
    }
    
    /* Fix mobile menu */
    .nav-menu {
    display: none;
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--primary-color);
    z-index: 1000;
    overflow-y: auto;
    transition: left 0.3s ease;
    padding-top: 60px;
    flex-direction: column;
    }  
    
    .nav-menu.active {
    left: 0;
    display: flex;
    }
    
    /* Mobile menu overlay */
    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 999;
        display: none;
    }
    
    .mobile-menu-overlay.active {
        display: block;
    }
    
    /* Fix products grid on mobile */
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px;
    }
    
    .product-card {
        width: 100%;
        height: auto;
    }
    
    .product-image {
        height: 150px;
    }
}

/* Extra small mobile - 480px and below */
@media (max-width: 480px) {
    /* Single column for very small screens */
    .products-grid {
        grid-template-columns: 1fr !important;
    }
    
    .product-image {
        height: 200px;
    }
    
    /* Ensure dropdowns are accessible */
    .dropdown-menu {
        font-size: 14px;
    }
    
    .dropdown-menu li a {
        padding: 10px 15px;
    }
}

.brand-card img,
.category-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
}

/* Fallback for missing images */
.brand-card img[src=""],
.brand-card img:not([src]),
.category-card img[src=""],
.category-card img:not([src]) {
  display: none;
}

.brand-card:not(:has(img[src])):before,
.category-card:not(:has(img[src])):before {
  content: '📦';
  font-size: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}


/* ADD THIS TO YOUR style.css - Mobile Responsive Navigation */

/* Header - Make it sticky */
.top-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: white;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Navigation improvements */
.main-nav {
  background: var(--primary-color);
  position: sticky;
  top: 60px; /* Adjust based on your header height */
  z-index: 999;
}

.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  justify-content: center;
  align-items: center;
}

.nav-menu > li {
  position: relative;
}

.nav-menu > li > a {
  display: block;
  padding: 15px 20px;
  color: white;
  text-decoration: none;
  transition: background-color 0.3s;
}

.nav-menu > li > a:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Dropdown menu */
.has-dropdown .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  min-width: 200px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  display: none;
  z-index: 1000;
}

.has-dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu li a {
  display: block;
  padding: 10px 20px;
  color: #333;
  text-decoration: none;
  transition: background-color 0.3s;
}

.dropdown-menu li a:hover {
  background-color: #f5f5f5;
}

/* Mobile menu toggle - hide by default */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  padding: 10px;
}

/* Mobile styles */
@media (max-width: 768px) {
  /* Make header smaller on mobile */
  .top-header .container {
    padding: 10px 15px;
  }
  
  .logo h1 {
    font-size: 1.2rem;
  }
  
  .header-actions {
    gap: 10px;
  }
  
  .header-actions a {
    font-size: 14px;
    padding: 8px 12px;
  }
  
  /* Adjust sticky position for smaller header */
  .main-nav {
    top: 50px;
  }
  
  /* Show mobile toggle */
  .mobile-menu-toggle {
    display: block;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
  }
  
  /* Hide menu by default on mobile */
  .nav-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    background: var(--primary-color);
  }
  
  /* Show menu when active */
  .nav-menu.active {
    display: flex;
  }
  
  .nav-menu > li {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .nav-menu > li > a {
    padding: 12px 20px;
  }
  
  /* Dropdown on mobile */
  .has-dropdown .dropdown-menu {
    position: static;
    display: none;
    box-shadow: none;
    background: rgba(0, 0, 0, 0.1);
  }
  
  .has-dropdown.active .dropdown-menu {
    display: block;
  }
  
  .dropdown-menu li a {
    color: white;
    padding-left: 40px;
  }
  
  .dropdown-menu li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
  }
}

/* Tablet styles */
@media (max-width: 992px) and (min-width: 769px) {
  .nav-menu > li > a {
    padding: 15px 15px;
    font-size: 14px;
  }
}