/* ClickBuy Style CSS for Kharidlo */

/* General Styles */
body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Navbar Styles */
.navbar-top {
    background: #f8f9fa;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
}

.navbar-top p {
    margin: 0;
    font-size: 14px;
}

.navbar-top .list-inline-item a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
}

.navbar-top .list-inline-item a:hover {
    color: #007bff;
}

.osahan-menu {
    padding: 15px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-brand img {
    max-height: 50px;
}

.top-categories-search {
    max-width: 600px;
    margin: 0 auto;
}

.top-categories-search .input-group {
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.top-categories-search .form-control {
    border: none;
    padding: 12px 20px;
    font-size: 14px;
}

.top-categories-search .btn-theme-round {
    background: #007bff;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 0 25px 25px 0;
}

.categories-dropdown select {
    border: none;
    background: #f8f9fa;
    padding: 12px 15px;
    font-size: 14px;
    border-radius: 25px 0 0 25px;
}

/* Product Styles */
.categories-list {
    padding: 40px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 30px;
}

.heading-design-h5 {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    position: relative;
    padding-bottom: 10px;
}

.heading-design-h5:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #007bff;
}

.product-item {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
    min-width: 280px; /* Ensure minimum width */
    max-width: 350px; /* Maximum width for consistency */
}

.product-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

/* Product image container improvements */
.product-item-image {
    position: relative;
    overflow: hidden;
    border-radius: 15px 15px 0 0;
    height: 280px; /* Increased height */
    width: 100%;
}

.product-item-image img {
    width: 100%;
    height: 280px; /* Increased height */
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-item:hover .product-item-image img {
    transform: scale(1.08);
}

.offer-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 2;
    padding: 8px 15px;
    font-size: 12px;
    border-radius: 20px;
    font-weight: 600;
}

.like-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 2;
}

/* Product body improvements */
.product-item-body {
    padding: 20px;
    min-height: 180px; /* Ensure consistent height */
    width: 100%;
}

.product-item-action {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 3;
}

.product-item:hover .product-item-action {
    opacity: 1;
}

.btn-theme-round {
    border-radius: 50%;
    width: 45px;
    height: 45px;
    margin: 0 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #007bff;
    color: white;
    border: none;
    transition: all 0.3s ease;
    font-size: 16px;
}

.btn-theme-round:hover {
    background: #0056b3;
    transform: scale(1.15);
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    margin: 15px 0 10px 0;
    line-height: 1.4;
    min-height: 45px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-title a {
    color: #333;
    text-decoration: none;
}

.card-title a:hover {
    color: #007bff;
}

.product-desc-price {
    color: #999;
    text-decoration: line-through;
    font-size: 14px;
    margin-right: 10px;
}

.product-price {
    color: #007bff;
    font-weight: 700;
    font-size: 18px;
}

.product-discount {
    color: #dc3545;
    font-size: 13px;
    font-weight: 600;
    margin-left: 10px;
}

.product-item-footer {
    padding: 15px 20px;
    border-top: 1px solid #f8f9fa;
    background: #f8f9fa;
}

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

.stars-rating .fa-star {
    color: #ffc107;
    font-size: 14px;
}

/* Direct buy section improvements */
.direct-buy-section {
    padding: 15px 20px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    width: 100%;
}

.direct-buy-btn {
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(45deg, #28a745, #20c997);
    color: white;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    margin-bottom: 8px;
}

.direct-buy-btn:hover {
    background: linear-gradient(45deg, #218838, #1ea085);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    color: white;
    text-decoration: none;
}

.whatsapp-buy-btn {
    width: 100%;
    padding: 10px 20px;
    background: linear-gradient(45deg, #25d366, #128c7e);
    color: white;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.whatsapp-buy-btn:hover {
    background: linear-gradient(45deg, #1ea952, #0e6b5f);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    color: white;
    text-decoration: none;
}

/* Product Grid Improvements */
.owl-carousel-featured .item {
    padding: 0 8px; /* Reduced padding */
}

.owl-carousel-featured .product-item {
    margin: 0;
    min-width: 320px; /* Increased minimum width */
    max-width: 400px; /* Increased maximum width */
}

/* Product card container improvements */
.single-categorie {
    padding: 0 5px; /* Reduced padding */
}

.owl-carousel-featured {
    margin: 0 -8px; /* Reduced negative margin */
}

.owl-carousel-featured .owl-stage {
    padding: 0 8px; /* Reduced padding */
}

/* Responsive improvements */
@media (max-width: 768px) {
    .navbar-top {
        text-align: center;
    }
    
    .top-categories-search {
        margin: 15px 0;
    }
    
    .carousel-item img {
        height: 300px;
    }
    
    #carouselExampleIndicators {
        min-height: 300px;
    }
    
    #carouselExampleIndicators .carousel-inner {
        min-height: 300px;
    }
    
    #carouselExampleIndicators .carousel-item {
        min-height: 300px;
    }
    
    .product-item-image {
        height: 220px;
    }
    
    .product-item-image img {
        height: 220px;
    }
    
    .product-item-body {
        padding: 15px;
        min-height: 160px;
    }
    
    .card-title {
        font-size: 14px;
        min-height: 40px;
    }
    
    .product-price {
        font-size: 16px;
    }
}

/* Responsive improvements for product cards */
@media (max-width: 1200px) {
    .product-item {
        min-width: 260px;
        max-width: 320px;
    }
}

@media (max-width: 768px) {
    .product-item {
        min-width: 240px;
        max-width: 300px;
    }
    
    .owl-carousel-featured .item {
        padding: 0 10px;
    }
    
    .product-item-image {
        height: 220px;
    }
    
    .product-item-image img {
        height: 220px;
    }
    
    .product-item-body {
        padding: 15px;
        min-height: 160px;
    }
    
    .card-title {
        font-size: 14px;
        min-height: 40px;
    }
    
    .product-price {
        font-size: 16px;
    }
}

/* Footer Styles */
.footer-Content {
    background: #2c3e50;
    color: white;
    padding: 40px 0;
}

.footer-widget h3 {
    color: white;
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-widget ul {
    list-style: none;
    padding: 0;
}

.footer-widget ul li {
    margin-bottom: 8px;
}

.footer-widget ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-widget ul li a:hover {
    color: white;
}

.media-list .media {
    margin-bottom: 15px;
}

.media-list .media i {
    color: #007bff;
    margin-right: 10px;
    width: 20px;
}

.footer {
    background: #34495e;
    color: white;
    padding: 20px 0;
    text-align: center;
}

.copyright a {
    color: #007bff;
    text-decoration: none;
}

/* Carousel Styles */
.carousel-item img {
    height: 500px; /* Increased height */
    object-fit: cover;
    width: 100%;
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
}

/* Full width slider container */
#carouselExampleIndicators {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    min-height: 500px;
}

#carouselExampleIndicators .carousel-inner {
    min-height: 500px;
}

#carouselExampleIndicators .carousel-item {
    min-height: 500px;
}

/* Responsive slider */
@media (max-width: 768px) {
    .navbar-top {
        text-align: center;
    }
    
    .top-categories-search {
        margin: 15px 0;
    }
    
    .carousel-item img {
        height: 300px;
    }
    
    #carouselExampleIndicators {
        min-height: 300px;
    }
    
    #carouselExampleIndicators .carousel-inner {
        min-height: 300px;
    }
    
    #carouselExampleIndicators .carousel-item {
        min-height: 300px;
    }
    
    .product-item-image {
        height: 220px;
    }
    
    .product-item-image img {
        height: 220px;
    }
    
    .product-item-body {
        padding: 15px;
        min-height: 160px;
    }
    
    .card-title {
        font-size: 14px;
        min-height: 40px;
    }
    
    .product-price {
        font-size: 16px;
    }
}

/* Owl Carousel Customization */
.owl-carousel-featured .owl-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    pointer-events: none;
}

.owl-carousel-featured .owl-prev,
.owl-carousel-featured .owl-next {
    position: absolute;
    background: rgba(0,123,255,0.8) !important;
    color: white !important;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: all;
    transition: all 0.3s ease;
}

.owl-carousel-featured .owl-prev {
    left: -20px;
}

.owl-carousel-featured .owl-next {
    right: -20px;
}

.owl-carousel-featured .owl-prev:hover,
.owl-carousel-featured .owl-next:hover {
    background: rgba(0,123,255,1) !important;
    transform: scale(1.1);
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-item {
    animation: fadeInUp 0.6s ease;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #007bff;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0056b3;
}

/* Additional Product Card Width Improvements */
.categories-list .container {
    max-width: 1400px; /* Increase container width */
}

.categories-list .row {
    margin: 0 -15px;
}

.categories-list .col-lg-12 {
    padding: 0 15px;
}

/* Owl Carousel specific improvements */
.owl-carousel-featured {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.owl-carousel-featured .item {
    flex: 0 0 auto;
    width: 320px; /* Fixed width for each product card */
    max-width: 100%;
}

.owl-carousel-featured .product-item {
    width: 100%;
    min-width: 300px;
    max-width: 350px;
    margin: 0 auto;
}

/* Ensure proper spacing between cards */
.owl-carousel-featured .owl-stage {
    display: flex;
    gap: 20px;
    padding: 0 10px;
}

.owl-carousel-featured .owl-item {
    width: 320px !important;
    margin-right: 20px;
}

/* Responsive adjustments */
@media (max-width: 1400px) {
    .owl-carousel-featured .item {
        width: 300px;
    }
    
    .owl-carousel-featured .owl-item {
        width: 300px !important;
    }
}

@media (max-width: 1200px) {
    .owl-carousel-featured .item {
        width: 280px;
    }
    
    .owl-carousel-featured .owl-item {
        width: 280px !important;
    }
}

@media (max-width: 768px) {
    .owl-carousel-featured .item {
        width: 260px;
    }
    
    .owl-carousel-featured .owl-item {
        width: 260px !important;
    }
    
    .categories-list .container {
        max-width: 100%;
        padding: 0 10px;
    }
}

/* Icon Fixes and Fallbacks */
.fas, .fab, .far {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands", "Font Awesome 6 Regular";
    font-weight: 900;
}

.fab {
    font-weight: 400;
}

.far {
    font-weight: 400;
}

/* Ensure icons are visible */
i[class*="fas"], i[class*="fab"], i[class*="far"] {
    display: inline-block;
    width: auto;
    height: auto;
    line-height: 1;
}

/* Icon spacing */
.fas, .fab, .far {
    margin-right: 5px;
}

/* WhatsApp icon specific styling */
.fab.fa-whatsapp {
    color: #25d366;
}

/* Phone icon styling */
.fas.fa-phone {
    color: #007bff;
}

/* Search icon styling */
.fas.fa-search {
    color: #fff;
}

/* Home icon styling */
.fas.fa-home {
    color: #28a745;
}

/* Globe icon styling */
.fas.fa-globe {
    color: #17a2b8;
}

/* Headset icon styling */
.fas.fa-headset {
    color: #6f42c1;
}

/* Additional Container Width Improvements */
.categories-list .container {
    max-width: 1600px; /* Increased container width further */
    padding: 0 15px;
}

.categories-list .row {
    margin: 0 -8px; /* Reduced negative margin */
}

.categories-list .col-lg-12 {
    padding: 0 8px; /* Reduced padding */
}

/* Owl Carousel specific improvements */
.owl-carousel-featured {
    display: flex;
    flex-wrap: wrap;
    gap: 16px; /* Reduced gap */
    justify-content: flex-start; /* Changed to flex-start for better alignment */
}

.owl-carousel-featured .item {
    flex: 0 0 auto;
    width: 340px; /* Increased width */
    max-width: 100%;
    margin: 0 4px; /* Reduced margin */
}

.owl-carousel-featured .product-item {
    width: 100%;
    min-width: 340px; /* Increased minimum width */
    max-width: 400px; /* Increased maximum width */
    margin: 0;
}

/* Ensure proper spacing between cards */
.owl-carousel-featured .owl-stage {
    display: flex;
    gap: 16px; /* Reduced gap */
    padding: 0 8px; /* Reduced padding */
}

.owl-carousel-featured .owl-item {
    padding: 0 4px; /* Reduced padding */
}

/* Responsive improvements */
@media (max-width: 1200px) {
    .owl-carousel-featured .item {
        width: 320px;
    }
    
    .owl-carousel-featured .product-item {
        min-width: 320px;
    }
}

@media (max-width: 768px) {
    .owl-carousel-featured .item {
        width: 280px;
    }
    
    .owl-carousel-featured .product-item {
        min-width: 280px;
    }
    
    .owl-carousel-featured {
        gap: 12px;
    }
}

/* ===== Header Restyle to Match Image-1 (Scoped) ===== */
:root {
  --teal: #27ae96;           /* nav + search button */
  --teal-dark: #1c8f7b;
  --blue: #1976d2;           /* phone/WhatsApp number */
  --whatsapp: #25D366;
  --muted: #6b7280;
  --danger: #e53935;         /* "AFFORDABLE" */
  --ink: #0f172a;
  --line: #e5e7eb;
}

/* Apply Poppins font to header elements */
.navbar-top,
.osahan-menu-top-4,
.osahan-menu-4,
.top-categories-search,
.main-nav-right {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

/* Announcement bar (top strip) - Image-1 styling */
.navbar-top {
  background: #f7f7f7 !important;
  height: 34px !important;
  line-height: 34px !important;
  font-size: 13px !important;
  color: var(--ink) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 0 16px !important;
  margin: 0 !important;
  border: none !important;
}

.navbar-top p {
  margin: 0 !important;
  font-weight: 400 !important;
}

.navbar-top strong {
  color: var(--danger) !important;
  font-weight: 600 !important;
}

.navbar-top .text-right {
  color: var(--muted) !important;
  display: flex !important;
  gap: 18px !important;
  align-items: center !important;
}

.navbar-top .text-right i {
  opacity: 0.9 !important;
  margin-right: 6px !important;
  color: var(--muted) !important;
}

.navbar-top .text-right a {
  color: var(--muted) !important;
  text-decoration: none !important;
}

/* Main header row - Image-1 styling */
.osahan-menu-top-4 {
  background: #fff !important;
  padding: 12px 0 !important;
  border: none !important;
  box-shadow: none !important;
}

.osahan-menu-top-4 .container {
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 0 16px !important;
  display: grid !important;
  grid-template-columns: 220px 1fr auto !important;
  gap: 20px !important;
  align-items: center !important;
}

/* Logo styling */
.navbar-brand {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
}

.navbar-brand img {
  max-height: 50px !important;
  width: auto !important;
}

/* Search group (dropdown + input + button) - Image-1 styling */
.top-categories-search {
  background: #fff !important;
  border: 1px solid var(--line) !important;
  border-radius: 12px !important;
  box-shadow: 0 6px 18px rgba(15,23,42,0.08) !important;
  display: flex !important;
  align-items: center !important;
  overflow: hidden !important;
  height: 48px !important;
  width: 100% !important;
}

.top-categories-search .input-group {
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
  height: 100% !important;
  border: none !important;
  box-shadow: none !important;
}

.top-categories-search .categories-dropdown {
  min-width: 220px !important;
  height: 100% !important;
  border: none !important;
  border-right: 1px solid var(--line) !important;
  padding: 0 14px !important;
  font-size: 14px !important;
  color: #374151 !important;
  background: #fff !important;
  display: flex !important;
  align-items: center !important;
}

.top-categories-search .categories-dropdown select {
  border: none !important;
  outline: none !important;
  background: transparent !important;
  width: 100% !important;
  font-size: 14px !important;
  color: #374151 !important;
  padding: 0 !important;
}

.top-categories-search .form-control {
  flex: 1 !important;
  border: none !important;
  outline: none !important;
  height: 100% !important;
  padding: 0 14px !important;
  font-size: 14px !important;
  color: #111827 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.top-categories-search .btn-theme-round {
  height: 100% !important;
  padding: 0 18px !important;
  border: none !important;
  cursor: pointer !important;
  background: var(--teal) !important;
  color: #fff !important;
  font-weight: 600 !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.top-categories-search .btn-theme-round i {
  opacity: 0.95 !important;
  color: #fff !important;
}

/* WhatsApp number on right - Image-1 styling */
.main-nav-right {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  font-weight: 700 !important;
  font-size: 20px !important;
  color: var(--blue) !important;
}

.main-nav-right a {
  color: var(--blue) !important;
  text-decoration: none !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.main-nav-right .fa-whatsapp {
  color: var(--whatsapp) !important;
  font-size: 22px !important;
}

/* Teal nav bar - Image-1 styling */
.osahan-menu-4 {
  background: var(--teal) !important;
  height: 50px !important;
  display: flex !important;
  align-items: center !important;
  box-shadow: inset 0 -1px 0 rgba(255,255,255,0.12) !important;
  border: none !important;
  padding: 0 !important;
}

.osahan-menu-4 .container {
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 0 12px !important;
  display: flex !important;
  gap: 28px !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.osahan-menu-4 .navbar-nav {
  display: flex !important;
  gap: 28px !important;
  align-items: center !important;
  margin: 0 !important;
  padding: 0 !important;
}

.osahan-menu-4 .nav-link {
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 500 !important;
  font-size: 14px !important;
  padding: 14px 6px !important;
  position: relative !important;
  background: transparent !important;
  border: none !important;
}

.osahan-menu-4 .nav-link:hover,
.osahan-menu-4 .nav-link:focus {
  color: #fff !important;
  background: transparent !important;
  text-decoration: none !important;
}

.osahan-menu-4 .nav-link:hover::after,
.osahan-menu-4 .nav-link:focus::after {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  height: 2px !important;
  background: var(--teal-dark) !important;
}

.osahan-menu-4 .navbar-text {
  color: #fff !important;
  font-weight: 500 !important;
  font-size: 14px !important;
  margin: 0 !important;
}

.osahan-menu-4 .text-warning {
  color: #fff !important;
  font-weight: 600 !important;
}

/* Tighten spacing */
.navbar-top-4 {
  margin-bottom: 0 !important;
}

.osahan-menu-top-4 {
  margin-bottom: 0 !important;
}

/* Mobile responsive - Image-1 styling */
@media (max-width: 992px) {
  .osahan-menu-top-4 .container {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  
  .main-nav-right {
    justify-content: flex-start !important;
    font-size: 18px !important;
  }
  
  .top-categories-search {
    width: 100% !important;
  }
  
  .navbar-top .text-right {
    gap: 12px !important;
  }
  
  .osahan-menu-4 .container {
    flex-direction: column !important;
    gap: 10px !important;
    padding: 10px 12px !important;
  }
  
  .osahan-menu-4 .navbar-nav {
    flex-wrap: wrap !important;
    gap: 15px !important;
    justify-content: center !important;
  }
}

@media (max-width: 768px) {
  .navbar-top {
    padding: 0 12px !important;
    font-size: 12px !important;
  }
  
  .navbar-top .text-right {
    gap: 8px !important;
  }
  
  .osahan-menu-top-4 .container {
    padding: 0 12px !important;
  }
  
  .top-categories-search .categories-dropdown {
    min-width: 150px !important;
  }
}

/* --- Search button polish --- */
.top-categories-search {
  position: relative !important;
  overflow: visible !important;
} /* allow dropdown to float */

.top-categories-search .btn-theme-round {
  height: 48px !important;
  padding: 0 22px !important;
  font-weight: 600 !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  border: none !important;
  cursor: pointer !important;
  background: var(--teal) !important;
  color: #fff !important;
  border-radius: 0 12px 12px 0 !important;
  white-space: nowrap !important;
  min-width: 122px !important; /* prevent 'Sear' truncation */
  line-height: 1 !important;
  box-shadow: none !important;
  transition: transform 0.06s ease, filter 0.2s ease !important;
}

.top-categories-search .btn-theme-round:focus-visible {
  outline: 2px solid #b2f5ea !important;
  outline-offset: 2px !important;
}

.top-categories-search .btn-theme-round:hover {
  filter: brightness(0.95) !important;
}

.top-categories-search .btn-theme-round:active {
  transform: translateY(1px) !important;
}

/* keep layout stable: dropdown (cat) fixed width, input flex */
.top-categories-search .categories-dropdown {
  flex: 0 0 220px !important;
}

.top-categories-search input[type="search"],
.top-categories-search input[type="text"] {
  flex: 1 1 auto !important;
  min-width: 160px !important;
}

/* --- Searchable dropdown (custom panel) --- */
.cat-wrap {
  position: relative !important;
}

.cat-dropdown {
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  right: auto !important;
  width: 340px !important;
  background: #fff !important;
  border: 1px solid var(--line) !important;
  border-radius: 12px !important;
  box-shadow: 0 18px 40px rgba(15,23,42,0.16) !important;
  padding: 10px !important;
  margin-top: 8px !important;
  z-index: 1000 !important;
  display: none !important;
}

.cat-dropdown.open {
  display: block !important;
}

.cat-dropdown .filter {
  width: 100% !important;
  height: 38px !important;
  border: 1px solid var(--line) !important;
  border-radius: 8px !important;
  padding: 0 12px !important;
  outline: none !important;
  font-size: 14px !important;
}

.cat-dropdown .list {
  max-height: 260px !important;
  overflow: auto !important;
  margin-top: 8px !important;
  border-radius: 8px !important;
  border: 1px solid var(--line) !important;
}

.cat-dropdown .item {
  padding: 10px 12px !important;
  font-size: 14px !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.cat-dropdown .item:hover,
.cat-dropdown .item[aria-selected="true"] {
  background: #f4faf9 !important;
}

.cat-dropdown .empty {
  padding: 12px !important;
  color: #6b7280 !important;
  font-size: 13px !important;
  border: 1px dashed var(--line) !important;
  border-radius: 8px !important;
  margin-top: 8px !important;
  display: none !important;
}

/* caret indicator on the visible button */
.cat-trigger {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  height: 48px !important;
  padding: 0 14px !important;
  background: #fff !important;
  border: none !important;
  cursor: pointer !important;
  width: 100% !important;
}

.cat-trigger .label {
  color: #374151 !important;
  font-size: 14px !important;
}

.cat-trigger .caret {
  border: solid #6b7280 !important;
  border-width: 0 2px 2px 0 !important;
  display: inline-block !important;
  padding: 3px !important;
  transform: rotate(45deg) !important;
  margin-left: 10px !important;
}

.cat-trigger.open .caret {
  transform: rotate(-135deg) !important;
}

/* divider between category and input like Example-1 */
.top-categories-search .cat-divider {
  width: 1px !important;
  height: 32px !important;
  background: var(--line) !important;
  margin: 0 6px !important;
  align-self: center !important;
}

/* Product Cards & WhatsApp Enhancement */
.product-item{
  position:relative; background:#fff; border:1px solid #eef2f6; border-radius:14px;
  box-shadow:0 4px 14px rgba(15,23,42,.06); transition:transform .2s ease, box-shadow .2s ease;
  margin-bottom:15px; /* Reduced from default */
}
.product-item:hover{ transform:translateY(-3px); box-shadow:0 10px 24px rgba(15,23,42,.10); }

/* Hover actions overlay */
.product-item .pc-actions{
  position:absolute; left:12px; right:12px; bottom:12px;
  display:flex; gap:10px; opacity:0; transform:translateY(8px);
  transition:opacity .18s ease, transform .18s ease; pointer-events:none;
}
.product-item:hover .pc-actions{ opacity:1; transform:translateY(0); pointer-events:auto; }

.pc-btn{
  flex:1 1 auto; height:38px; border-radius:10px;
  display:flex; align-items:center; justify-content:center;
  font-size:14px; font-weight:600; text-decoration:none;
  border:1px solid transparent; box-shadow:0 6px 14px rgba(15,23,42,.10);
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.pc-btn.wa{ background:#25D366; color:#fff; }
.pc-btn.wa:hover{ background:#1fb257; }
.pc-btn.view{ background:#fff; color:#0f172a; border-color:#e5e7eb; }
.pc-btn.view:hover{ border-color:#cbd5e1; }
.pc-btn i{ margin-right:8px; }

/* Reserve space so overlay doesn't cover price/title area badly */
.product-item .pc-spacer{ height:46px; }

/* Tabs polish (Description / Tags / Reviews) */
.product-tabs{
  border-bottom:1px solid #e5e7eb; display:flex; gap:18px;
}
.product-tabs .tab{
  padding:10px 14px; font-weight:600; color:#6b7280; text-decoration:none; position:relative;
}
.product-tabs .tab.active{ color:#0f172a; }
.product-tabs .tab.active::after{
  content:""; position:absolute; left:0; right:0; bottom:-1px; height:2px; background:#27ae96;
}

/* ===== Reduced General Spacing ===== */
/* Container spacing */
.container-fluid{ padding-left:10px; padding-right:10px; }
.container{ padding-left:10px; padding-right:10px; }

/* Row spacing */
.row{ margin-left:-5px; margin-right:-5px; }
.col-lg-12, .col-md-12, .col-sm-12{ padding-left:5px; padding-right:5px; }

/* Section spacing */
.categories-list{ margin-bottom:15px; padding:10px 0; }
.section-header{ margin-bottom:10px; }
.heading-design-h5{ margin-bottom:8px; }

/* Carousel spacing */
.owl-carousel{ margin:0; }
.owl-carousel .owl-stage-outer{ padding:0; }
.owl-carousel .owl-stage{ padding:0; }
.owl-carousel .owl-item{ padding:0 3px; }
.owl-carousel .owl-item:first-child{ padding-left:0; }
.owl-carousel .owl-item:last-child{ padding-right:0; }

/* Featured carousel specific */
.owl-carousel-featured .owl-item{ padding:0 4px; }
.owl-carousel-featured .owl-item:first-child{ padding-left:0; }
.owl-carousel-featured .owl-item:last-child{ padding-right:0; }

/* Single category spacing */
.single-categorie{ padding:0; margin:0; }
.single-categorie .owl-carousel{ margin:0; }

/* Product card spacing */
.product-item, .product-card{ margin-bottom:10px; }

/* Responsive spacing */
@media (max-width: 768px){
  .container-fluid{ padding-left:8px; padding-right:8px; }
  .container{ padding-left:8px; padding-right:8px; }
  .owl-carousel .owl-item{ padding:0 2px; }
  .owl-carousel-featured .owl-item{ padding:0 3px; }
  .categories-list{ margin-bottom:12px; padding:8px 0; }
}

@media (max-width: 576px){
  .container-fluid{ padding-left:6px; padding-right:6px; }
  .container{ padding-left:6px; padding-right:6px; }
  .owl-carousel .owl-item{ padding:0 1px; }
  .owl-carousel-featured .owl-item{ padding:0 2px; }
  .categories-list{ margin-bottom:10px; padding:6px 0; }
}

/* ===== Always Visible Search Form ===== */
.top-categories-search-main {
    flex: 1;
    max-width: 600px;
    margin: 0 auto;
    display: flex !important;
    align-items: center;
}

.top-categories-search {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.top-categories-search .input-group {
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    background: #fff;
}

.top-categories-search .form-control {
    border: none;
    padding: 12px 20px;
    font-size: 14px;
    background: transparent;
}

.top-categories-search .btn-theme-round {
    background: #27ae96;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 0 25px 25px 0;
    font-weight: 600;
    transition: all 0.3s ease;
}

.top-categories-search .btn-theme-round:hover {
    background: #1c8f7b;
    transform: translateY(-1px);
}

.categories-dropdown select {
    border: none;
    background: #f8f9fa;
    padding: 12px 15px;
    font-size: 14px;
    border-radius: 25px 0 0 25px;
    min-width: 150px;
}

/* Mobile Responsive for Search */
@media (max-width: 768px) {
    .top-categories-search-main {
        order: 2;
        width: 100%;
        margin: 10px 0;
    }
    
    .top-categories-search {
        max-width: 100%;
    }
    
    .top-categories-search .input-group {
        flex-wrap: wrap;
    }
    
    .categories-dropdown {
        width: 100%;
        margin-bottom: 5px;
    }
    
    .categories-dropdown select {
        width: 100%;
        border-radius: 25px;
        margin-bottom: 5px;
    }
    
    .top-categories-search .form-control {
        border-radius: 25px 0 0 25px;
    }
    
    .top-categories-search .btn-theme-round {
        border-radius: 0 25px 25px 0;
    }
}

@media (max-width: 576px) {
    .navbar-brand img {
        width: 150px !important;
    }
    
    .top-categories-search-main {
        order: 2;
        margin: 10px 0;
    }
    
    .main-nav-right {
        order: 3;
        margin-top: 10px;
    }
}

/* ===== Home carousels only ===== */
#home-sliders .pc-title a{
  font-size:16px;                  /* smaller title */
  font-weight:600;                 /* normal/medium weight */
  line-height:1.35;
  text-transform:none;
  color:#0f172a;
  text-decoration:none;            /* remove underline */
}
#home-sliders .pc-title a:hover,
#home-sliders .pc-title a:focus,
#home-sliders .pc-title a:active{
  color:#0f172a;
  text-decoration:none;            /* keep it clean */
}

/* Make any buttons in cards stay clean (no underline) */
#home-sliders .pc-btn,
#home-sliders .pc-btn:link,
#home-sliders .pc-btn:hover,
#home-sliders .pc-btn:focus,
#home-sliders .pc-btn:active{
  text-decoration:none !important;
}

/* Tighter gaps between slides (works for Owl/Slick) */
#home-sliders .owl-carousel .owl-stage { margin-left:-8px; margin-right:-8px; }
#home-sliders .owl-carousel .owl-item  { padding:0 8px; }

#home-sliders .slick-slider .slick-list { margin:0 -8px; }
#home-sliders .slick-slider .slick-slide{ padding:0 8px; }

/* Row paddings (left/right) */
#home-sliders .slider-row{ padding-left:12px; padding-right:12px; }
@media (min-width: 992px){
  #home-sliders .slider-row{ padding-left:24px; padding-right:24px; }
}

/* Make the image overlay link fill the media area without layout shift */
#home-sliders .product-card .pc-media{ position:relative; }
#home-sliders .product-card .pc-media a.pc-img-link{
  position:absolute; inset:0; display:block; z-index:2;
  border-radius:inherit; text-decoration:none;
}
