@import url("https://fonts.googleapis.com/css?family=Muli:300,400,600,700,800,900");

/* ================================== GENERAL ============================== */

body {
    font-family: "Muli", sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    padding-top: 70px;      /* Adjust for fixed header */
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: #222;
}

h1 {
    font-size: 36px;
    margin-bottom: 20px;
}

h2 {
    font-size: 28px;
}

p {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
}

/* ================= HEADER ================= */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
}

.header-top1 {
    background: #f8f9fa;
    padding: 8px 15px;
    border-bottom: 1px solid #e0e0e0;
}

.header-top1 marquee a {
    color: #b02a2a; /* better contrast */
    font-weight: 600;
    text-decoration: none;
    margin-right: 20px;
}

.header-top1 marquee a:hover {
    text-decoration: underline;
}

/* ================= NAVBAR ================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: block;
    font-family: 'Segoe UI', sans-serif;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.navbar-brand {
    font-size: 24px;
    font-weight: bold;
    color: #007bff;
    text-decoration: none;
}

.navbar-nav {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.navbar-nav .nav-item {
    margin: 2px;
    padding: 2px;
}

.nav-link {
    text-decoration: none;
    font-size: 16px;
    color: #333;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #007bff;
}

/* ================= SEARCH ================= */
.search-bar {
    display: flex;
    align-items: center;
}

.search-bar select,
.search-bar input {
    padding: 10px;
    border: 1px solid #aaa; /* improved contrast */
    border-radius: 4px;
    font-size: 14px;
}

.search-bar button {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 10px 15px;
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-bar button:hover {
    background-color: #0056b3;
}

/* ======= Breaking News Marquee ======= */
.header-top1 {
    background: #f8f9fa;
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
}
.header-top1 marquee a {
    color: #c0392b;
    font-weight: 600;
    text-decoration: none;
    margin-right: 20px;
}
.header-top1 marquee a:hover {
    text-decoration: underline;
}

/* ================= PRODUCTS ================= */
.popular-deals {
    background-color: #f9f9f9;
}

.popular-deals .section-title h1 {
    font-weight: 700;
    font-size: 2.8rem;
    color: #222;
}

.popular-deals .product-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.popular-deals .product-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.popular-deals .product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.popular-deals .product-image-wrapper {
    aspect-ratio: 1 / 1;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 5px;
}

.popular-deals .product-img {
    width: 150px;
    height: 150px;
    object-fit: contain;
    display: block;
    margin: auto;
}

.popular-deals .card-body {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 5px 10px;
}

.popular-deals .card-title {
    font-size: 14px;
    font-weight: 600;
    color: #222;
    margin: 0;
    text-align: center;
    word-wrap: break-word;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .popular-deals .section-title h1 {
    font-size: 2.2rem;
  }
}

@media (max-width: 480px) {
  .popular-deals .section-title h1 {
    font-size: 1.8rem;
  }
}

.img-fluid{
    width  : 250px;
    height : 250px;
}
.w-full{
    width  : 150px;
    padding:5px;
}
/* Section heading */
.section-heading {
    font-weight: 700;
    color: #222;
    font-size: 2rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .card-title {
        font-size: 0.95rem;
        min-height: auto;
    }

    .section-heading {
        font-size: 1.5rem;
    }
}
.section-padding-top-heading {
    padding: 60px 0;
    background-color: #f9f9f9;
}



.item-sub-category li {
    list-style: none;
    margin-bottom: 5px;
}

.banner-box img {
    width: 100%;
    object-fit: cover;
}
/* ================= CATEGORY BOX ================= */
.category-box-layout2 {
    background: #fff;
    padding: 10px;
    border-radius: 12px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.07);
    transition: 0.3s ease;
}

.category-box-layout2:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    transform: translateY(-5px);
}

.category-box-layout2 img {
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    width: 70px;
    height: 70px;
    object-fit: cover;
}

.category-box-layout2 h5 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #222;
}

.item-sub-category {
    padding-left: 0;
    margin-top: 14px;
    list-style: none;
}

.item-sub-category a {
    font-size: 12px;
    color: #333; /* improved */
    text-decoration: none;
    transition: color 0.2s ease;
}

.item-sub-category a:hover {
    color: #007bff;
}
/* View All link aligned right */
.category-box-layout2 .text-end {
    margin-top: 10px;
}

/* Fix inner alignment */
.category-box-layout2 .d-flex.align-items-center {
    gap: 4px;
}

  .form-section-title {
      font-weight: 600;
      color: #0d6efd;
      margin-bottom: 1rem;
      border-bottom: 1px solid #dee2e6;
      padding-bottom: 0.5rem;
    }
    .form-control, .form-select {
      border-radius: 0.4rem;
    }
    .sidebar .list-group-item.active {
      background-color: #0d6efd;
      border-color: #0d6efd;
      color: #fff;
    }

/* Button */
.container-1 button {
    width: 100%;
    padding: 10px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    cursor: pointer;
    transition: 0.3s;
}

.container-1 button:hover {
    background-color: #0056b3;
}

/* Success & Error Messages */
.success, .error {
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 5px;
    font-size: 14px;
}

.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* General Styles */
.login-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #f4f4f4;
}
/* Register Link */
.container-1 p {
    margin-top: 15px;
    font-size: 14px;
}

.container-1 a {
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
}

.container-1 a:hover {
    text-decoration: underline;
}

/* Responsive Fixes */
@media (max-width: 768px) {
    .category-box-layout2 {
        padding: 15px;
    }
    .popular-deals .card-body {
        padding: 10px;
    }
    .header-top1 marquee a {
        font-size: 0.85rem;
    }
}
@media (max-width: 480px) {
    header {
        padding: 10px 0;
    }
    .search-bar select,
    .search-bar input {
        width: 100%;
    }
    .search-bar button {
        width: 100%;
    }
}
/* ================= BREADCRUMB ================= */
.breadcrumb {
    display: flex;
    gap: 8px;
    font-size: 14px;
    padding: 12px 20px;
    background: #fff;
    border: 1px solid #dbe5f1;
    border-radius: 8px;
    color: #333;
    overflow-x: auto;
    white-space: nowrap;
}

.breadcrumb a {
    color: #212529;
    text-decoration: underline;
    font-weight: 500;
    flex-shrink: 0;
}

.breadcrumb a:hover {
    color: #0056b3;
}

.breadcrumb .separator {
    color: #444; /* improved contrast */
}

.breadcrumb .current {
    color: #111;
    font-weight: 600;
}
/* =============== Product Page Layout =============== */
.product-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 30px;
}

/* Top section: gallery, info, seller */
.product-main {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-start;
}

/* Left: Product Images */
.product-gallery {
    flex: 1 1 300px;
    max-width: 300px;
    position: sticky;
    top: 120px;
    height: fit-content;
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.08);
}

.main-product-image {
    width: 100%;
    border-radius: 6px;
    object-fit: cover;
}

.thumbnail-slider {
    margin-top: 10px;
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    overflow-x: auto;
}

.thumbnail {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border 0.2s ease;
}

.thumbnail.active {
    border: 2px solid #3498db;
}

/* Center: Product Info */
.product-info {
    flex: 2 1 500px;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.08);
}

.product-info h1 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #2c3e50;
}

.product-info table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.product-info th,
.product-info td {
    padding: 10px 15px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: top;
    text-align: left;
    font-size: 15px;
}

.product-info th {
    width: 140px;
    color: #555;
    font-weight: 600;
}

/* Right: Seller Info */
.business-info {
    flex: 1 1 260px;
    max-width: 260px;
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    position: relative;
    top: auto;
    height: fit-content;
    box-shadow: 0 0 10px rgba(0,0,0,0.08);
    font-size: 15px;
}

/* Bottom: Description Section */
.product-description-section {
    background: #fff;
    padding: 25px 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.08);
    font-size: 15px;
    line-height: 1.6;
}

.product-description-section table {
    width: 100%;
    border-collapse: collapse;
}

.product-description-section th,
.product-description-section td {
    padding: 12px 18px;
    vertical-align: top;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.product-description-section th {
    width: 130px;
    font-weight: 600;
    color: #444;
    font-size: 15px;
}
.seller-card {
  transition: all 0.3s ease;
}
.seller-card:hover {
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.1);
}
.seller-card h5 {
  font-size: 1.25rem;
}
.seller-card ul li i {
  font-size: 1rem;
  vertical-align: middle;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .product-main {
        flex-direction: column;
    }

    .product-gallery,
    .product-info,
    .business-info {
        max-width: 100%;
        position: static;
    }

    .product-description-section {
        padding: 20px;
    }
}
/* Thumbnail active border */
.img-thumbnail:hover,
.img-thumbnail.active {
  border: 2px solid #007bff;
  cursor: pointer;
}

/* Sticky seller details */
@media (min-width: 768px) {
  .position-sticky {
    position: sticky !important;
  }
}

/* ================= FOOTER ================= */
footer {
    background-color: #222;
    color: #fff;
    text-align: center;
    padding: 20px 0;
}


/* ================= PAGINATION ================= */
.pagination {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
}

.pagination li {
    margin: 0 5px;
}

.pagination a {
    display: block;
    padding: 10px 15px;
    color: #007bff;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    transition: 0.3s;
}

.pagination a:hover,
.pagination .active a {
    background-color: #007bff;
    color: #fff;
}

/* ================= ACCESSIBILITY FIXES ================= */
a:focus, button:focus, input:focus, select:focus {
    outline: 3px solid #0056b3;
    outline-offset: 2px;
}

a, button {
    min-width: 44px;
    min-height: 44px;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #007bff;
    color: #fff;
    padding: 8px;
    z-index: 100;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 10px;
}
