body {
    margin: 0;
    font-family: Arial, sans-serif;
}

.top-bar {
    background-color: #33a366;
    color: white;
    text-align: center;
    padding: 8px 0;
    font-size: 14px;
    letter-spacing: 1px;
    transition: transform 0.3s ease;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    position: sticky;
    top: 0;
    background-color: white;
    padding: 10px 40px;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-links {
    display: flex;
    gap: 30px; /* space between links */
}

/* Base nav link style */
.nav-links a {
    text-decoration: none;       
    color: #555;                 
    font-size: 15px;
    position: relative;
    padding-bottom: 3px;         
}

.nav-links a.active {
    color: black;                
}

.nav-links a.active::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;                  
    background-color: green;
}


/* Smaller screens: reduce navbar link font size */
@media (max-width: 768px) {
    .nav-links a {
        font-size: 12px !important;  /* smaller font for mobile/tablet */
    }

    .nav-links {
        gap: 13px; /* optional: reduce space between links */
    }

    .navbar {
        padding: 10px 20px; /* optional: reduce navbar padding */
    }
}



.logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.logo img {
    height: 50px;
    width: 50px;
    border-radius: 50%;
}

.icons {
    display: flex;
    gap: 20px;
    align-items: center;
}

.icons .icon {
    position: relative;
    font-size: 18px;
    cursor: pointer;
}

.cart-badge {
    position: absolute;
    top: -6px;
    right: -10px;
    background-color: black;
    color: white;
    font-size: 10px;
    padding: 2px 5px;
    border-radius: 50%;
}

/* Search bar styles */
.search-bar {
    display: none; /* hidden by default */
    align-items: center;
    justify-content: center;
    padding: 10px 40px;
    background: white;
    position: sticky;  /* stay at top */
    top: 0;
    z-index: 1200;     /* above top bar */
    gap: 10px;
}

.search-bar input {
    width: 60%;
    padding: 8px 12px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.search-bar button {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
}

/* Cart Sidebar */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px; /* hidden off-screen */
    width: 350px;
    height: 100%;
    background: white;
    box-shadow: -2px 0 5px rgba(0,0,0,0.1);
    padding: 20px;

    /* Flexbox centering */
    display: flex;
    flex-direction: column;
    justify-content: center; /* vertical center */
    align-items: center;     /* horizontal center */

    transition: right 0.3s ease;
    z-index: 2000; /* on top */
    text-align: center; /* center text */
}

.cart-sidebar.open {
    right: 0; /* slide in */
}

.close-cart {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

.continue-shopping {
    display: inline-block;
    margin-top: 10px;
    color: black;
    text-decoration: underline;
}

/* Dark overlay */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

.cart-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Hide logo on screens smaller than 768px */
@media (max-width: 768px) {
    .logo {
        display: none;
    }
}

.banner {
    width: 100%;          /* full width */
    overflow: hidden;     /* hide overflow if image is larger */
}

.banner img {
    width: 100%;          /* make image responsive */
    height: auto;         /* maintain aspect ratio */
    display: block;
}

.banner_area {
  background-color: #f8f8f8; /* light gray background */
  padding: 40px 0;           /* spacing top and bottom */
}

.banner_inner {
  display: flex;
  align-items: center;
  height: 100%; 
}

.banner_content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap; /* keeps it responsive */
}

.banner_content h2 {
  font-size: 28px;
  font-weight: 600;
  color: #222; /* dark text */
  margin-bottom: 5px;
}

.banner_content p {
  margin: 0;
  font-size: 14px;
  color: #777;
}

/* Breadcrumb styling */
.page_link {
  text-align: right;
}

.page_link a {
  color: #777;
  font-size: 14px;
  text-decoration: none;
  margin-right: 10px;
}

.page_link a:last-child {
  margin-right: 0;
}

.page_link a::after {
  content: "/";
  margin-left: 10px;
  color: #aaa;
}

.page_link a:last-child::after {
  content: "";
}


/* === Layout === */
.cat_product_area {
  padding: 40px 0;
}
.left_sidebar_area {
  border: 1px solid #eee;
  padding: 15px;
  background: #fff;
}
.l_w_title h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 15px;
  border-bottom: 2px solid #8cc63f;
  padding-bottom: 5px;
}
.widgets_inner ul.list {
  list-style: none;
  padding: 0;
}
.widgets_inner ul.list li {
  margin: 8px 0;
}
.widgets_inner ul.list li a {
  color: #555;
  text-decoration: none;
}
.widgets_inner ul.list li.active a,
.widgets_inner ul.list li a:hover {
  color: #8cc63f;
  font-weight: 500;
}

/* === Product Grid === */
.single-product {
  border: 1px solid #eee;
  border-radius: 6px;
  padding: 15px;
  margin-bottom: 30px;
  background: #fff;
  transition: all 0.3s ease;
}
.single-product:hover {
  box-shadow: 0px 4px 15px rgba(0,0,0,0.1);
  transform: translateY(-5px);
}
.product-img {
  position: relative;
  overflow: hidden;
}
.product-img img {
  width: 100%;
  transition: 0.3s;
}
.product-img:hover img {
  transform: scale(1.05);
}
.p_icon {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 10px;
}

.p_icon a {
  background: #8cc63f;
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  text-decoration: none;
  transition: 0.3s;
}

.p_icon a:hover {
  background: #6ca52f;
  color: #fff;
}


/* === Product Bottom === */
.product-btm {
  text-align: center;
}

.product-btm h4 {
  font-size: 16px;
  font-weight: 600;
  margin: 15px 0 10px;
  text-transform: uppercase;
}

.product-btm span {
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.product-btm del {
  color: #aaa;
  margin-left: 8px;
}

/* === Product Detail Page === */
.product-detail-wrapper {
  padding: 40px;
  background: #fff;
}

.product-detail-container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;

  max-width: 900px;      /* reduce overall width */
  margin: 0 auto;        /* center it horizontally */
}


.product-detail-images {
  flex: 1;
  min-width: 300px;
}

.product-detail-main-image img {
  width: 100%;
  max-width: 400px;
  border-radius: 6px;
  border: 1px solid #eee;
}

.product-detail-thumbnails {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.product-detail-thumbnails img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.product-detail-thumbnails img:hover {
  transform: scale(1.05);
}

.product-detail-info {
  flex: 1;
  min-width: 300px;
}

.product-detail-title {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #222;
}

.product-detail-price {
  font-size: 24px;
  color: #8cc63f;
  font-weight: bold;
  margin-bottom: 15px;
}

.product-detail-meta p {
  margin: 5px 0;
  color: #555;
}

.product-detail-description {
  margin: 20px 0;
  font-size: 14px;
  color: #666;
  line-height: 1.6;
}

.product-detail-quantity {
  margin: 20px 0;
}

.product-detail-quantity input[type="number"] {
  width: 60px;
  padding: 6px 8px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.product-detail-add-to-cart {
  background-color: #8cc63f;
  color: white;
  padding: 12px 30px;
  border: none;
  font-size: 16px;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.3s ease;
}

.product-detail-add-to-cart:hover {
  background-color: #6ca52f;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .product-detail-container {
    flex-direction: column;
  }

  .product-detail-images,
  .product-detail-info {
    width: 100%;
  }
}


#scrollToTopBtn {
  position: fixed;
  bottom: 40px;
  right: 40px;
  z-index: 100;
  border: none;
  outline: none;
  background-color: transparent;
  cursor: pointer;
  padding: 0;
  border-radius: 50%;
  display: none; /* Hidden by default */
}

#scrollToTopBtn img {
  width: 50px;
  height: 50px;
}






.checkout-container {
  display: flex;
  flex-direction: row;
  max-width: 1000px;
  margin: 50px auto;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.checkout-form-section,
.checkout-summary-section {
  padding: 40px;
}

.checkout-form-section {
  flex: 2;
  border-right: 1px solid #eee;
}

.checkout-summary-section {
  flex: 1;
  background-color: #fafafa;
}

.checkout-form-section h2,
.checkout-summary-section h2 {
  margin-top: 0;
}

.checkout-label {
  display: block;
  margin: 15px 0 5px;
}

.checkout-input,
.checkout-select {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.checkout-form-row {
  display: flex;
  gap: 10px;
}

.checkout-form-row > div {
  flex: 1;
}

.checkout-checkbox-row {
  display: flex;
  align-items: center;
  margin: 10px 0;
}

.checkout-checkbox-row input {
  margin-right: 10px;
}

.checkout-shipping-methods {
  margin-top: 20px;
}

.checkout-shipping-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #ccc;
  padding: 10px;
  border-radius: 5px;
  margin-bottom: 10px;
  cursor: pointer;
}

.checkout-shipping-option input {
  margin-right: 10px;
}

/* Summary Section */
.checkout-product {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.checkout-product img {
  width: 60px;
  border-radius: 4px;
  margin-right: 10px;
}

.checkout-summary-table {
  margin-top: 20px;
}

.checkout-summary-table div {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
}

.checkout-total {
  font-weight: bold;
  font-size: 18px;
  margin-top: 10px;
  border-top: 1px solid #ccc;
  padding-top: 10px;
}

.checkout-complete-order-btn {
  background-color: #28a745; /* Bootstrap-like green */
  color: white;
  font-size: 16px;
  padding: 14px 24px;
  border: none;
  border-radius: 8px;
  width: 100%;
  cursor: pointer;
  transition: background-color 0.3s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  font-weight: 600;
  margin-top: 20px;
}

.checkout-complete-order-btn:hover {
  background-color: #218838;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.checkout-complete-order-btn:active {
  background-color: #1e7e34;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}



