/* Bootstrap slider track */
.featured-track{
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.featured-track::-webkit-scrollbar{ display:none; }

/* Card width responsive */
.featured-item{
  flex: 0 0 auto;
  scroll-snap-align: start;
  width: 78vw;          /* mobile */
}
@media (min-width:576px){
  .featured-item{ width: 44vw; }
}
@media (min-width:768px){
  .featured-item{ width: 280px; }
}
@media (min-width:1200px){
  .featured-item{ width: 300px; }
}
/* Keep desktop exactly as-is */
@media (max-width: 991px) {
  .featured-product {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding: 0 2px 10px;
    margin: 0;
  }

  .featured-product li {
    flex: 0 0 280px; /* card width on tablet */
    list-style: none;
    scroll-snap-align: start;
  }

  .featured-product::-webkit-scrollbar {
    height: 6px;
  }
}

/* Mobile smaller cards */
@media (max-width: 576px) {
  .featured-product li {
    flex: 0 0 85%;
  }

  .pro-img img {
    width: 100%;
    height: auto;
    display: block;
  }
}
@media (max-width: 991px) {
  .footer,
  .footer * { text-align: center; }

  .footer img { margin: 0 auto; display: block; }

  .footer ul {
    padding-left: 0;
    list-style: none;
  }

  .footer .foot-social ul {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 0;
  }

  .footer .foot-top a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }
}
/* Center heading + contact links */
.footer .foot-top .row {
  justify-content: center;      /* centers columns */
  align-items: center;
}

.footer .foot-top h3 {
  text-align: center;
  margin: 0 auto;
}

/* Center the inner row (Email/WhatsApp/Phone) */
.footer .foot-top .col-md-7 > .row {
  justify-content: center;
  text-align: center;
}

/* Make each contact item centered */
.footer .foot-top .col-md-7 > .row .col {
  display: flex;
  justify-content: center;
}

/* Center icon + text */
.footer .foot-top a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
}
@media (max-width: 576px) {

  /* Sidebar + Product area full width */
  .product-listing-page .row > .col-3,
  .product-listing-page .row > .col-9 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  /* remove extra padding issues */
  .product-listing-area .container {
    padding-left: 0;
    padding-right: 0;
  }

  /* Products grid: 2 per row on mobile */
  .product-listing-area .row.g-4 > .col-4 {
    flex: 0 0 50%;
    max-width: 50%;
  }

  /* Optional: make product card smaller */
  .pro-item h3 {
    font-size: 14px;
  }

  .pro-item .price {
    font-size: 13px;
  }

  .pro-img img {
    width: 100%;
    height: auto;
    object-fit: cover;
  }
}
@media (max-width: 576px) {

  /* stack sidebar + content */
  .myAccount-page .row > .col-3,
  .myAccount-page .row > .col-9 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  /* reduce spacing so it fits */
  .myAccount-page .card {
    border-radius: 12px;
  }

  .myAccount-page .account-settings-links {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px;
  }

  /* make left menu items look like buttons */
  .myAccount-page .account-settings-links .list-group-item {
    width: calc(50% - 5px); /* 2 per row */
    border: 1px solid #eee;
    border-radius: 10px;
    text-align: center;
    padding: 10px 8px;
    font-size: 14px;
  }

  /* dropdown full width */
  .myAccount-page .my-profile {
    width: 100%;
  }
  .myAccount-page .my-profile > a {
    width: 100%;
    text-align: center;
  }

  /* form buttons full width */
  .myAccount-page .save,
  .myAccount-page .delete {
    width: 100%;
  }

  /* table: allow horizontal scroll */
  .myAccount-page .table {
    display: block;
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
  }

  /* address cards spacing */
  .myAccount-page .radio-btn {
    display: block;
  }
}
/* ===== Address section mobile fix ===== */
@media (max-width: 767.98px) {

  .radio-btn {
    display: block;
    position: relative;
  }

  .edit-adrs {
    float: none !important;
    display: block !important;
    margin-top: 10px;
    text-align: right;
  }

  .add-more-address {
    margin-left: 0 !important;
    margin-top: 12px;
  }
}
/* ===== Checkout Mobile Fix ===== */
@media (max-width: 767.98px) {

  .checkout-page .checkout-area {
    padding: 12px !important;
  }

  /* Product summary cards spacing */
  .product-summary-card {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  /* Qty controls stay in one line */
  .qty {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
  }
  .qty input {
    width: 72px;
    text-align: center;
  }

  /* Title doesn’t push layout */
  .product-summary-card h3 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* Prices wrap nicely */
  .pro-details span {
    display: inline-block;
    margin-bottom: 6px;
  }

  /* Summary right becomes normal block */
  .summary-right {
    position: static !important;
  }
}
/* ===== Delivery Address Card - Mobile Responsive ===== */
@media (max-width: 767.98px) {

  /* stack address cards vertically */
  .delivery .radio-buttons{
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
  }

  .delivery label.custom-radio{
    width: 100% !important;
    display: block !important;
  }

  /* make the address card a flex row */
  .delivery .radio-btn{
    width: 100% !important;
    display: flex !important;
    align-items: flex-start !important;
    gap: 10px !important;
    position: relative !important;
    padding: 12px !important;
    box-sizing: border-box !important;
  }

  /* ✅ left check icon */
  .delivery .radio-btn > i.fa-check{
    flex: 0 0 auto !important;
    margin-top: 4px !important;
  }

  /* ✅ main text area */
  .delivery .my-addrs{
    flex: 1 1 auto !important;
    min-width: 0 !important;     /* very important for wrapping */
  }

  .delivery .my-addrs h3{
    margin: 0 0 6px !important;
  }

  .delivery .my-addrs p{
    margin: 0 !important;
    word-break: break-word !important;
  }

  /* ✅ edit button fixed top-right (no collision) */
  .delivery .edit-adrs{
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    float: none !important;
    display: block !important;
    margin: 0 !important;
  }

  /* ✅ give space so text doesn't go under edit */
  .delivery .my-addrs{
    padding-right: 70px !important;
  }
}
