.page-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

/* Left Main Content */
.main-content {
  flex: 1 1 700px;
}

.product-page {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

.product-image {
  flex: 1 1 350px;
  text-align: center;
}

.product-image img {
  max-width: 100%;
  border-radius: 5px;
}

.product-details {
  flex: 1 1 350px;
}

.product-title {
  line-height: 1.167;
  letter-spacing: inherit !important;
  font-weight: 700;
  margin-bottom: 10px;
}

.product-price {
  font-size: 36px;
  font-weight: 700;
  font-weight: bold;
  color: #222;
  margin-bottom: 5px;
}

.availability-panel {
    background: #e5e5e5;
    border-radius: 6px;
    padding: 10px;
    margin-top: 10px;
}
.availability-header {
    display: flex;
    align-items: center;
    cursor: pointer;
}
.checkmark {
    color: #6BCBB8;
    font-size: 1.5rem;
    margin-right: 10px;
}
.status-text {
    font-weight: 600;
    flex-grow: 1;
}
.arrow {
    font-size: 1.2rem;
    transition: transform 0.3s;
}
.availability-content {
    margin-top: 10px;
}
.locations-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5px 20px;
}
.location-item {
    display: flex;
    justify-content: space-between;
}
.location-available {
    color: #6BCBB8;
    font-weight: 600;
}

.part-number,
.availability {
  font-size: 1.1rem;
  margin-top: 10px;
  margin-bottom: 8px;
}

.availability span {
  color: green;
  font-weight: bold;
}

.qty-add {
  display: flex;
  align-items: center;
  margin: 15px 0;
  gap: 10px;
}

.qty-add input {
  width: 50px;
  text-align: center;
  padding: 5px;
}

.btn {
  color: #fff;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  font-weight: bold;
  border-radius: 3px;
}



.social-share {
  margin-top: 10px;
  display: flex;
  background-color: #fff;
  color: #666;
}

.social-share button {
  margin-right: 8px;
  padding: 5px 10px;
  border: 1px solid #333;
  cursor: pointer;
}

/* WooCommerce-style Tabs */
.tabs-nav {
  display: flex;
  border-bottom: 2px solid #ddd;
  overflow-x: auto;
  list-style: none;
  padding: 0;
  margin: 20px 0 0 0;
}
.tabs-nav li {
  margin: 0;
}
.tabs-nav li a {
  display: block;
  padding: 10px 15px;
  background: #f8f8f8;
  text-decoration: none;
  color: #333;
  font-weight: bold;
  border: 1px solid #ddd;
  border-bottom: none;
}
.tabs-nav li.active a,
.tabs-nav li a:hover {
  background: #fff;
  border-bottom: 2px solid #fcb800;
}
.tab-content {
  border: 1px solid #ddd;
  padding: 20px;
  display: none;
  background: #fff;
}
.tab-content.active {
  display: block;
}
.product-metrics-grid {
  display: flex;
  gap: 20px;
}
.metric-item {
  display: flex;
  flex-direction: column;
}
.metric-label {
  font-weight: bold;
}
.brand-item {
  text-align: center;
}
.brand-item img {
  max-width: 100px;
  margin-bottom: 5px;
}
#models .product-tab-brands {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
#models .product-tab-brands .brand-item {
  width: calc(20% - 6px);
}

#models .product-tab-brands .brand-item:not(:last-child) {
  margin: 0;
}

#models .product-tab-brands .term-name {
  margin: 0px;
  word-break: break-all;
}

#models .product-tab-brands .brand-item>* {
  display: flex;
  vertical-align: middle;
  border: 1px solid var(--main-line);
  padding: 10px;
  text-align: start;
  font-size: 14px;
  width: 100%;
  align-items: center;
  justify-content: center;
  height: 100%;
}


/* Sidebar */
.sidebar {
  flex: 0 0 250px;
}

.sidebar-box {
  border: 1px solid #eee;
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 5px;
  background: #fafafa;
}

.sidebar-box h4 {
  font-size: 1rem;
  margin-bottom: 10px;
  font-weight: bold;
}

.sidebar-box p {
  font-size: 0.9rem;
  margin: 5px 0;
}

.bestsellers ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.bestsellers li {
  border-bottom: 1px solid #eee;
  padding: 8px 0;
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
}

.bestsellers li:last-child {
  border-bottom: none;
}

/* Related Products Slider */
.related-products {
  width: 100%;
  margin: 40px 0;
}

.related-products h3 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  border-bottom: 2px solid #fcb800;
  display: inline-block;
  padding-bottom: 5px;
}

.related-slider {
  display: flex;
  overflow-x: auto;
  gap: 20px;
  padding-bottom: 10px;
  scroll-behavior: smooth;
}

.related-item {
  min-width: 150px;
  border: 1px solid #eee;
  padding: 10px;
  text-align: center;
  border-radius: 5px;
  flex: 0 0 auto;
  background: #fff;
}

.related-item img {
  max-width: 100%;
  height: auto;
  margin-bottom: 10px;
}

.related-item h4 {
  font-size: 0.9rem;
  margin: 8px 0;
}

.related-item .price {
  font-size: 1rem;
  color: #d49a00;
  font-weight: bold;
}

/* Scrollbar hidden */
.related-slider::-webkit-scrollbar {
  display: none;
}

/* Position mini cart dropdown */
.block-myminicart {
  position: relative;
  display: inline-block;
}

/* Hide dropdown by default */
.block-myminicart .my-widget_shopping_cart {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  width: 310px;
  color: var(--main-cl);
  box-shadow: var(--popup-sd);
  background-color: var(--popup-bg);
  padding: 24px 20px 30px;
  z-index: 9999;
  transition: all 0.2s ease;
  text-align: start;
  overflow: hidden;
  border-radius: var(--main-bora);
  border-top: 2px solid var(--main-color);
}

.block-myminicart .my-widget_shopping_cart > .widget-title{
    font-size: 20px;
    font-family: inherit;
    font-weight: 700;
    color: var(--default-color);
    padding-bottom: 19px;
    border-bottom: 1px solid var(--main-line);
    margin-bottom: 17px;
}


.block-myminicart > a .amount{
    font-family: inherit;
    color: inherit;
}
.cart-head{
    font-size: 13px;
    line-height: 20px;
    text-transform: var(--main-h-tt);
    margin-bottom: 30px;
}
.cart-head .count{
    text-decoration: underline;
}

.block-myminicart .woocommerce-mini-cart__empty-message{
    margin: 0;
    text-align: center;
}
.my-widget_shopping_cart .total {
    font-size: 14px;
    line-height: 24px;
    padding: 20px 0 0;
    border-top: 1px solid var(--main-line);
    margin: 30px 0 0;
}
.my-widget_shopping_cart .buttons .button {
    --button-padding: 8px;
    --button-padding-h: 15px;
    width: calc(50% - 3px);
    margin: 6px 0 0;
}


table {
  border-collapse: collapse;
  width: 60%;
  margin: 20px auto;
}
th, td {
  border: 1px solid #ccc;
  padding: 8px;
  text-align: center;
}
#pagination {
  text-align: center;  
  float: right;
  margin: 15px;
  float: right !important;
}
#pagination button {
  margin: 0 5px;
  padding: 5px 10px;
  color: #000;
  cursor: pointer;
}
#pagination button.active {
  background: #fcc81d ;
  color: #fff;
}
/* Pagination Styling */
.pagination {
  display: flex;
  float: right !important;
  margin: 15px;
  list-style: none;
  padding: 0;
}
.pagination li {
  margin: 0 3px;
}
.pagination button {
  border: 1px solid #ccc;
  padding: 6px 12px;
  color: #000;
  cursor: pointer;
}
.pagination button.active {
  background: #fcc81d;
  font-weight: bold;
  color: #fff;
}
.pagination button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}


/* Featured Brands*/
.featured-brands {
  margin: 40px 0;
}
.featured-brands h2 {
  font-size: 22px;
  margin-bottom: 8px;
}
.featured-brands p {
  margin-bottom: 20px;
  color: #444;
  font-size: 14px;
}
.featured-brands .brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
}
.featured-brands .grid-item {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 15px;
  text-align: center;
  transition: box-shadow 0.3s ease;
}
.featured-brands .grid-item:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.featured-brands .grid-item img {
  max-width: 120px;
  height: auto;
}
.featured-brands .see-all {
  margin-top: 15px;
  text-align: right;
}
.featured-brands .see-all a {
  font-weight: 600;
  color: #000;
  text-decoration: none;
}



/* Responsive */
@media (max-width: 968px) {
    .checkout-container {
        grid-template-columns: 1fr;
    }

    .order-summary {
        order: -1;
    }
}

@media (max-width: 640px) {
    .checkout-form,
    .order-summary {
        padding: 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    body {
        padding: 10px;
    }
}
/* Responsive */
@media (max-width: 992px) {
  .page-layout {
    flex-direction: column;
  }

  .sidebar {
    order: -1;
    flex: 1 1 100%;
  }
}