/* ============================================
   iPad 7th Generation CSS (Mobile View)
   10.2-inch display - Force Mobile Layout
   ============================================ */

@media (min-width: 768px) and (max-width: 1024px) {

  /* ===== MOBILE MENU STATES ===== */
  .mobile-menu {
    display: block !important;
    position: fixed;
    left: 0;
    top: 0;
    width: 85%;
    height: 100vh;
    background: white;
    z-index: 1001;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.2);
  }

  /* ✅ BOTH STATES */
  .mobile-menu.open,
  body.menu-open .mobile-menu {
    transform: translateX(0);
  }

  .mobile-overlay {
    display: block !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
  }

  /* ✅ BOTH STATES */
  .mobile-overlay.show,
  body.menu-open .mobile-overlay {
    opacity: 1;
    pointer-events: auto;
  }

  /* ===== MOBILE HEADER ===== */
  .mobile-header {
    display: flex !important;
    position: sticky;
    top: 0;
    background: white;
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    z-index: 1000;
    justify-content: space-between;
    align-items: center;
  }

  .mobile-menu-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
    padding: 5px;
  }

  .mobile-logo img {
    height: 40px;
    width: auto;
  }

  .mobile-search-trigger,
  .mobile-cart {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #333;
    padding: 5px;
    position: relative;
  }

  .mobile-cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #d4af37;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
  }

  /* ===== MOBILE SEARCH PANEL ===== */
  .mobile-search-panel {
    display: none !important;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: white;
    padding: 15px;
    border-bottom: 1px solid #eee;
    z-index: 999;
  }

  .mobile-search-panel.active {
    display: block !important;
  }

  .mobile-search-box {
    display: flex;
    gap: 10px;
  }

  .mobile-search-input-wrapper {
    flex: 1;
    position: relative;
  }

  .mobile-search-box input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
  }

  .mobile-search-box button {
    background: #d4af37;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
  }

  #mobileSearchResults {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 6px 6px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
  }

  .search-results .search-item {
    padding: 12px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
  }

  .search-results .search-item:hover {
    background: #f5f5f5;
  }

  /* ===== MOBILE MENU CONTENT ===== */
  .mobile-menu-top {
    padding: 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 16px;
  }

  .mobile-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
  }

  .mobile-menu-section {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
  }

  .mobile-menu-section a {
    display: block;
    padding: 12px 15px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    border-left: 3px solid transparent;
    transition: all 0.2s;
  }

  .mobile-menu-section a:active {
    border-left-color: #d4af37;
    background: #f5f5f5;
    color: #d4af37;
  }

  .mobile-menu-section h4 {
    padding: 12px 15px;
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
  }

  /* ===== CATEGORIES IN MOBILE MENU ===== */
  .mobile-category {
    border-bottom: 1px solid #f0f0f0;
  }

  .mobile-cat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
  }

  .mobile-cat-title {
    flex: 1;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 14px;
  }

  .mobile-toggle {
    cursor: pointer;
    color: #999;
    font-size: 14px;
    padding: 5px 10px;
    transition: transform 0.2s;
  }

  .mobile-category.active .mobile-toggle i {
    transform: rotate(180deg);
  }

  .mobile-subcats {
    display: none;
    background: #f9f9f9;
  }

  .mobile-subcategory {
    border-bottom: 1px solid #e8e8e8;
  }

  .mobile-subcat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 30px 12px 15px;
  }

  .mobile-subcat-header a {
    flex: 1;
    text-decoration: none;
    color: #555;
    font-size: 13px;
  }

  .mobile-sub-toggle {
    cursor: pointer;
    color: #999;
    font-size: 12px;
    padding: 5px;
  }

  .mobile-childcats {
    display: none;
    background: #f0f0f0;
    padding: 10px 0;
  }

  .mobile-childcats a {
    display: block;
    padding: 10px 45px;
    text-decoration: none;
    color: #666;
    font-size: 12px;
    border-left: 2px solid transparent;
  }

  .mobile-childcats a:active {
    border-left-color: #d4af37;
    color: #d4af37;
  }

  /* ===== HIDE DESKTOP ELEMENTS ===== */
  .sticky-header,
  .main-header,
  .navbar,
  .top-bar {
    display: none !important;
  }

  /* ===== MAIN CONTENT ===== */
  body {
    margin: 0;
    padding: 0;
  }

  .container {
    width: 100%;
    padding: 0;
    max-width: 100%;
    margin: 0;
  }

  /* ===== B2B BANNER ===== */
  .b2b-banner {
    background-color: #ffc107;
    padding: 12px 15px;
    text-align: center;
    font-weight: 600;
    font-size: 13px;
    color: #333;
    margin-top: 60px;
  }

  /* ===== HERO SECTION ===== */
  .hero-section {
    width: 100%;
    padding: 40px 15px;
    text-align: center;
    background: linear-gradient(135deg, #d4af37 0%, #f5f5dc 100%);
  }

  .hero-section h1 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
  }

  .hero-section p {
    font-size: 14px;
    margin-bottom: 15px;
  }

  /* ===== PRODUCT GRID (Single Column) ===== */
  .product-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 15px;
  }

  .product-card {
    background: white;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
  }

  .product-card:active {
    transform: scale(0.98);
  }

  .product-image {
    height: 200px;
    overflow: hidden;
    background-color: #f9f9f9;
  }

  .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .product-info {
    padding: 12px;
  }

  .product-name {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #333;
    line-height: 1.3;
  }

  .product-price {
    font-size: 15px;
    color: #d4af37;
    font-weight: 700;
    margin-bottom: 8px;
  }

  .product-rating {
    font-size: 11px;
    color: #ffc107;
    margin-bottom: 8px;
  }

  .add-to-cart-btn {
    width: 100%;
    padding: 10px;
    background-color: #d4af37;
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    font-size: 13px;
    transition: background-color 0.2s;
  }

  .add-to-cart-btn:active {
    background-color: #b8941f;
  }

  /* ===== FOOTER ===== */
  footer {
    background-color: #2c2c2c;
    color: white;
    padding: 30px 15px;
    margin-top: 30px;
  }

  .footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 20px;
  }

  .footer-column h3 {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 10px;
  }

  .footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .footer-column ul li {
    margin-bottom: 6px;
  }

  .footer-column ul li a {
    color: #ccc;
    text-decoration: none;
    font-size: 12px;
  }

  .footer-column ul li a:active {
    color: #d4af37;
  }

  .footer-bottom {
    border-top: 1px solid #444;
    padding-top: 15px;
    text-align: center;
    font-size: 11px;
  }

  /* ===== CART PAGE ===== */
  .cart-table {
    width: 100%;
    border-collapse: collapse;
  }

  .cart-table th,
  .cart-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #eee;
    font-size: 12px;
  }

  .cart-table th {
    background-color: #f5f5f5;
    font-weight: 600;
  }

  .cart-table img {
    height: 50px;
    width: auto;
  }

  /* ===== FORMS ===== */
  input[type="text"],
  input[type="email"],
  input[type="password"],
  textarea,
  select {
    width: 100%;
    padding: 12px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 12px;
    box-sizing: border-box;
    font-family: inherit;
  }

  input[type="text"]:focus,
  input[type="email"]:focus,
  input[type="password"]:focus,
  textarea:focus,
  select:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
  }

  /* ===== BUTTONS ===== */
  .purchase-plan-btn {
    background-color: #d4af37;
    color: white;
    padding: 10px 15px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 12px;
    text-decoration: none;
    display: inline-block;
  }

  .purchase-plan-btn:active {
    background-color: #b8941f;
  }

  /* ===== MINI CART ===== */
  #mini-cart-box {
    display: none;
  }

  /* ===== HIDE DESKTOP NAV ===== */
  .login-dropdown,
  .dropdown,
  .mega-menu,
  .cart-preview-box {
    display: none !important;
  }

  /* ===== SPACING & TYPOGRAPHY ===== */
  h1, h2, h3, h4, h5, h6 {
    margin: 0;
    line-height: 1.3;
  }

  p {
    margin: 0;
    line-height: 1.4;
  }

  /* ===== LANDSCAPE MODE (iPad 7 Landscape) ===== */
}

@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {

  .mobile-header {
    padding: 10px 15px;
  }

  .mobile-logo img {
    height: 35px;
  }

  .b2b-banner {
    padding: 10px 15px;
    font-size: 12px;
  }

  .hero-section {
    padding: 30px 15px;
  }

  .hero-section h1 {
    font-size: 22px;
  }

  .hero-section p {
    font-size: 13px;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 15px;
  }

  .product-image {
    height: 180px;
  }

  .product-info {
    padding: 10px;
  }

  .product-name {
    font-size: 12px;
  }

  .product-price {
    font-size: 14px;
  }

  footer {
    padding: 20px 15px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

}

/* ===== HIDE SCROLLBAR ANIMATION ===== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ======================================================
INDEX PAGE MOBILE STYLES
====================================================== */

@media (min-width: 768px) and (max-width: 1024px) {
    .desktop-slider {
        display: none;
    }

    .mobile-slider {
        display: block;
    }

    /* Force 2:1 ratio */
    .mobile-slider {
        aspect-ratio: 2 / 1;
        height: auto;
    }

    /* Text styling */
    .index-page .hero-slider .slide-content h2 {
        font-size: 16px;
        padding: 8px;
        text-align: center;
    }

    /* Shop By Category */
    
    .index-page .categories,
    .index-page .exclusive-section {
        width: 100%;
        max-width: 100%;
        margin: 0;
    }

    
    .index-page .categories {
        margin-top: 10px;   /* reduce gap */
        padding-top: 0;
    }
    
    .index-page .categories .category-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 0 10px;
    }

    .index-page .categories .category-card img {
        width: 100%;
        border-radius: 8px;
    }

    .index-page .categories .category-card h3 {
        font-size: 14px;
        margin-top: 6px;
        text-align: center;
    }

    /* Exclusive For You */
    

    /* MOBILE - FORCE 2 COLUMNS */

   
    .exclusive-section {
        margin-top: 0;
        padding-top: 0;
    }
    
    .exclusive-section .exclusive-grid{
    grid-template-columns:repeat(2,1fr);
    gap:12px;
    padding:0 10px;
    }
    
    .exclusive-section .section-title{
    font-size:22px;
    }
    
    .exclusive-section .exclusive-card h4{
    font-size:14px;
    }
    
    .exclusive-section .price{
    font-size:14px;
    }
    
    .exclusive-section .btn-outline{
    font-size:13px;
    padding:6px 10px;
    }

   /* ======================================================
INSTAGRAM SLIDER
====================================================== */

.insta-slider-wrapper{
position:relative;
padding:10px 12px;
}

.instagram-slider{
display:flex;
gap:12px;
overflow-x:auto;
scroll-behavior:smooth;
}

.instagram-slider::-webkit-scrollbar{
display:none;
}

.insta-item{
min-width:160px;
aspect-ratio:1/2;
border-radius:10px;
overflow:hidden;
flex-shrink:0;
}

.insta-item video{
width:100%;
height:100%;
object-fit:cover;
}

.insta-arrow{
position:absolute;
top:50%;
transform:translateY(-50%);
background:#fff;
border:none;
font-size:22px;
width:36px;
height:36px;
border-radius:50%;
box-shadow:0 2px 6px rgba(0,0,0,0.2);
cursor:pointer;
display:flex;
align-items:center;
justify-content:center;
}

.insta-arrow.left{
left:5px;
}

.insta-arrow.right{
right:5px;
}

/* ======================================================
FOOTER
====================================================== */

.footer-top {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 40px 15px;
}

.flex-between {
    flex-direction: column;
    gap: 10px;
    text-align: center;
}

.payment-icons {
    justify-content: center;
}

/* ======================================================
BOTTOM NAVIGATION
====================================================== */

.mobile-bottom-nav{
position:fixed;
bottom:0;
left:0;
width:100%;
background:#fff;
display:flex;
justify-content:space-around;
align-items:center;
padding:10px 0;
border-top:1px solid #eee;
z-index:9999;
}

.mobile-bottom-nav a{
display:flex;
flex-direction:column;
align-items:center;
font-size:12px;
color:#333;
text-decoration:none;
}

.mobile-bottom-nav i{
font-size:18px;
margin-bottom:3px;
}

.cart-badge{
position:absolute;
top:-5px;
right:-8px;
background:red;
color:#fff;
font-size:10px;
padding:2px 6px;
border-radius:50%;
}

/* ==============================
CATEGORY PAGE MOBILE
============================== */

.category-page{
display:flex;
gap:50px;
width:100%;
margin:auto;
padding-top:10px;
}

.subcategory-page{
display:flex;
gap:50px;
width:100%;
margin:auto;
padding-top:10px;
}

/* ==============================
FILTER PANEL
============================== */

/* ==============================
FILTER PANEL - FIXED
============================== */

.filters {
  position: fixed;
  top: 70px;
  left: 0;
  width: 80%;
  height: 100vh;
  background: #fff;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
  padding: 60px 20px 20px 20px;
  z-index: 9999;
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

/* ✅ OPEN STATE */
.filters.active,
.filters.open {
  transform: translateX(0);
}

.filters h3 {
  font-size: 18px;
  margin-bottom: 15px;
  margin-top: 0;
}

.filter-group {
  margin-bottom: 15px;
}

.filter-group label {
  display: block;
  font-size: 14px;
  margin-bottom: 6px;
  font-weight: 600;
}

.filter-group input,
.filter-group select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  box-sizing: border-box;
}

.filter-inline {
  display: flex;
  gap: 10px;
}

.filter-inline input {
  flex: 1;
}

/* ✅ CLOSE BUTTON - FIXED & VISIBLE */
.close-filter {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  z-index: 10001;
  color: #333;
  padding: 5px 10px;
  display: block !important;
  visibility: visible !important;
}

.close-filter:hover {
  color: #000;
  transform: scale(1.2);
}

.close-filter i {
  pointer-events: none;
}

/* ==============================
FILTER BUTTON BAR
============================== */

.product-topbar {
  position: sticky;
  top: 60px;
  background: #fff;
  padding: 5px 15px;
  z-index: 50;
  border-bottom: 1px solid #eee;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.product-topbar select {
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid #ddd;
  font-size: 13px;
}

/* ==============================
MOBILE FILTER BUTTON
============================== */

.mobile-filter-btn {
  display: block;
  position: sticky;
  top: 60px;
  width: 90%;
  margin: 8px auto;
  padding: 12px;
  border: none;
  background: var(--secondary, #c6a85b);
  color: #fff;
  font-size: 16px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  z-index: 49;
}

.mobile-filter-btn:active {
  opacity: 0.8;
}

/* ==============================
PRODUCT GRID
============================== */

.product-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

/* ==============================
CATEGORY PAGE
============================== */

.category-page {
  flex-direction: column;
}
/* ===============================
PRODUCT PAGE BASE LAYOUT
=============================== */

.product-page{
    max-width:1200px;
    margin:auto;
    padding:20px;
}

/* ===============================
BREADCRUMB
=============================== */

.breadcrumb{
    font-size:14px;
    margin-bottom:20px;
    color:#666;
}

.breadcrumb a{
    color:#0FA4AF;
    text-decoration:none;
}

.breadcrumb span{
    color:#222;
}
/* ===============================
PRODUCT HERO SECTION
=============================== */

/* ===============================
MOBILE PRODUCT HERO
=============================== */

.product-hero{
    flex-direction:column;
    gap:20px;
    margin-bottom:40px;
}

/* gallery layout */

.product-page .product-gallery{
    display:flex;
    flex-direction:column;
    gap:15px;
}

/* main product image */

.product-page .product-image{
    width:100%;
    display:flex;
    justify-content:center;
    align-items:center;
}

.product-page .product-image img{
    width:80%;
    max-height:280px;
    object-fit:contain;
}

/* thumbnails row */

.product-page .thumbnails{
    display:flex;
    flex-direction:row;
    gap:10px;
    overflow-x:auto;
    padding-bottom:5px;
}

/* hide scrollbar (optional) */

.product-page .thumbnails::-webkit-scrollbar{
    display:none;
}

.product-page .thumbnails img{
    width:100px;
    height:100px;
    flex-shrink:0;
    object-fit:cover;
    cursor:pointer;
}
/* main image first */
.product-page .product-image{
    order:1;
}

/* thumbnails second */
.product-page .thumbnails{
    order:2;
}

/* product info */

.product-info h1{
    font-size:20px;
}

.price{
    font-size:20px;
}

/* quantity */

.quantity-dropdown{
    width:auto;
}

/* buttons */

.btn-primary
{
    width:100%;
    margin-top:10px;
}

/* trust badges */

.trust-badges{
    flex-direction:column;
    gap:6px;
}
/* ===============================
STICKY CART (MOBILE ONLY)
=============================== */

.sticky-cart{
    display:flex;
    position:fixed;
    bottom:0;
    left:0;
    width:100%;
    height:60px;
    background:#fff;
    border-top:1px solid #ddd;
    padding:12px 16px;
    justify-content:space-between;
    align-items:center;
    gap:10px;
    z-index:99999;
    box-sizing:border-box;
}

.sticky-cart-price{
    font-size:18px;
    font-weight:bold;
    color:#0FA4AF;
}

.sticky-cart button{
    flex-shrink:0;
    background:#0FA4AF;
    color:#fff;
    border:none;
    padding:10px 18px;
    border-radius:6px;
    font-size:14px;
    cursor:pointer;
}

/* ===============================
B2B CARD
=============================== */

.b2b-card{
    margin-top:25px;
    border:1px solid #ddd;
    border-radius:8px;
    padding:15px;
    background:#fafafa;
}

/* ===============================
DESCRIPTION
=============================== */

.description-section{
    margin-top:25px;
}

.desc-toggle{
    background:none;
    border:none;
    font-size:16px;
    font-weight:600;
    cursor:pointer;
}

.desc-content{
    margin-top:10px;
    display:none;
}

/* ===== Weight Range Horizontal Scroll ===== */

/* ===== Different Weight Products (Mobile) ===== */

.product-page .product-carousel{
    position:relative;
}

/* horizontal scroll */
.product-page .different-weight-products .product-grid{
    display:flex;
    gap:12px;
    overflow-x:auto;
    scroll-behavior:smooth;
    padding-bottom:10px;
}

.product-page .different-weight-products .product-grid::-webkit-scrollbar{
    display:none;
}

/* product card fix */
/* Product card */
.product-page .different-weight-products .product-card{
    min-width:170px;
    flex:0 0 auto;
    display:block;
    text-align:center;
}

/* image fix */
.product-page .different-weight-products .product-image{
    width:100%;
}

.product-page .different-weight-products .product-image img{
    width:100%;
    height:auto;
    display:block;
}

/* button fix */
.product-page .different-weight-products .btn-outline{
    font-size:11px;
    padding:5px 6px;
    margin-top:4px;
}

/* arrows */

.product-page .different-weight-products .carousel-arrow{
    position:absolute;
    top:40%;
    transform:translateY(-50%);
    width:32px;
    height:32px;
    border:none;
    background:#fff;
    border-radius:50%;
    box-shadow:0 2px 6px rgba(0,0,0,0.25);
    z-index:5;
}

.product-page .different-weight-products .carousel-arrow.left{
    left:-5px;
}

.product-page .different-weight-products .carousel-arrow.right{
    right:-5px;
}
/* ===== similar-products (Mobile) ===== */

/* horizontal scroll */
.product-page .similar-products .product-grid{
    display:flex;
    gap:12px;
    overflow-x:auto;
    scroll-behavior:smooth;
    padding-bottom:10px;
}

.product-page .similar-products .product-grid::-webkit-scrollbar{
    display:none;
}

/* product card fix */
/* Product card */
.product-page .similar-products .product-card{
    min-width:170px;
    flex:0 0 auto;
    display:block;
    text-align:center;
}

/* image fix */
.product-page .similar-products .product-image{
    width:100%;
}

.product-page .similar-products .product-image img{
    width:100%;
    height:auto;
    display:block;
}

/* button fix */
.product-page .similar-products .btn-outline{
    font-size:11px;
    padding:5px 6px;
    margin-top:4px;
}

/* arrows */

.product-page .similar-products .carousel-arrow{
    position:absolute;
    top:40%;
    transform:translateY(-50%);
    width:32px;
    height:32px;
    border:none;
    background:#fff;
    border-radius:50%;
    box-shadow:0 2px 6px rgba(0,0,0,0.25);
    z-index:5;
}

.product-page .similar-products .carousel-arrow.left{
    left:-5px;
}

.product-page .similar-products .carousel-arrow.right{
    right:-5px;
}

/* ===== Featured-products (Mobile) ===== */

/* horizontal scroll */
.product-page .featured-products .product-grid{
    display:flex;
    gap:12px;
    overflow-x:auto;
    scroll-behavior:smooth;
    padding-bottom:10px;
}

.product-page .featured-products .product-grid::-webkit-scrollbar{
    display:none;
}

/* product card fix */
/* Product card */
.product-page .featured-products .product-card{
    min-width:170px;
    flex:0 0 auto;
    display:block;
    text-align:center;
}

/* image fix */
.product-page .featured-products .product-image{
    width:100%;
}

.product-page .featured-products .product-image img{
    width:100%;
    height:auto;
    display:block;
}

/* button fix */
.product-page .featured-products .btn-outline{
    font-size:11px;
    padding:5px 6px;
    margin-top:4px;
}

/* arrows */

.product-page .featured-products .carousel-arrow{
    position:absolute;
    top:40%;
    transform:translateY(-50%);
    width:32px;
    height:32px;
    border:none;
    background:#fff;
    border-radius:50%;
    box-shadow:0 2px 6px rgba(0,0,0,0.25);
    z-index:5;
}

.product-page .featured-products .carousel-arrow.left{
    left:-5px;
}

.product-page .featured-products .carousel-arrow.right{
    right:-5px;
}    
}


/* ===============================
   CART PAGE - MOBILE
=============================== */

@media (min-width: 768px) and (max-width: 1024px) {

  /* REMOVE ALL OUTER SPACE */
  body {
    margin: 0;
    padding: 0;
  }

  .cart-page {
    padding: 0 !important;
    margin: 0 !important;
  }

  /* MAIN CONTAINER - FULL WIDTH */
  .cart-container {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 10px !important;
    box-sizing: border-box;
    display:flex;
    flex-direction: column;
  }
 
  /* REMOVE EXTRA GREY BACKGROUND GAP */
  .cart-items {
    width: 100%;
    padding: 0;
    margin: 0;
    background: transparent;
  }

  /* FIX TOP SPACING */
  .cart-header {
    margin: 5px 0 10px 0;
    text-align: center;
  }

  .cart-header h2 {
    font-size: 18px;
    margin: 0;
  }

  /* PRODUCT CARD */
  .cart-row {
    display: flex;
    flex-direction: column;
    background: #fff;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  }

  /* IMAGE */
  .col-image {
    display: flex;
    justify-content: flex-start; /* 🔥 LEFT ALIGN FIX */
  }

  .col-image img {
    width: 110px;
    height: auto;
    border-radius: 8px;
  }

  /* PRODUCT DETAILS */
  .col-product {
    text-align: left; /* 🔥 FIX */
    margin-top: 8px;
  }

  .col-product h3 {
    font-size: 15px;
    margin-bottom: 4px;
  }

  .col-product p {
    font-size: 13px;
    margin: 2px 0;
  }

  /* ACTIONS */
  .row-actions {
    display: flex;
    gap: 15px;
    margin-top: 6px;
  }

  .icon-btn {
    font-size: 13px;
    padding: 0;
  }

  /* PRICE */
  .col-price {
    margin-top: 6px;
    font-size: 14px;
  }

  /* QUANTITY */
  .col-qty {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
  }

  .qty-btn {
    width: 30px;
    height: 30px;
    border-radius: 6px;
  }

  .qty-input {
    width: 45px;
    text-align: center;
  }

  /* SUBTOTAL */
  .col-subtotal {
    margin-top: 6px;
    font-size: 14px;
  }

  .cart-total-line {
    display: flex;
    flex-direction: column;   /* 🔥 stack vertically */
    gap: 6px;
    font-size: 14px;
  }

  .cart-total-line .total-items,
  .cart-total-line .total-amount {
    display: block;
    width: 100%;
  }

  /* REMOVE HR GAP */
  hr {
    display: none;
  }

  /* INLINE TOTAL */
  .cart-total-line {
    margin-top: 10px;
    padding: 10px 0;
    font-size: 14px;
  }

  /* ===============================
     ORDER SUMMARY FIX
  =============================== */

  .cart-summary {
    width: 95%;
    margin: 10px auto 0 auto;
    padding: 12px;
    border-radius: 10px;
    background: #fff;

    /* 🔥 IMPORTANT FIX */
    position: static;   /* remove sticky causing overflow */
  }

  .cart-summary h3 {
    font-size: 15px;
    margin-bottom: 8px;
  }

  .summary-row {
    font-size: 14px;
    margin-bottom: 6px;
  }

  .total-row {
    font-size: 15px;
    font-weight: bold;
  }

  /* BUTTON */
  .btn-checkout {
    width: 90%;
    padding: 12px;
    margin: 10px auto 0 auto; /* 👈 centers horizontally */
   display: block; /* 👈 required for margin auto to work */
    
  }

}

@media (min-width: 768px) and (max-width: 1024px) {

  .cart-summary {
    position: sticky;
    bottom: 0;
    z-index: 100;
  }

}

/* ===========================
   Mobile Checkout Styles
=========================== */
@media (min-width: 768px) and (max-width: 1024px) {
  .checkout-container {
    display: flex;
    flex-direction: column;   /* stack left + right */
    gap: 20px;
    width: 100%;
    padding: 15px;
    box-sizing: border-box;
    overflow-x: hidden;       /* ✅ prevent horizontal scroll */
  }

  /* Left side (shipping + payment) */
  .checkout-items {
    width: 100%;
  }

  .checkout-card {
    padding: 15px;
    margin-bottom: 20px;
  }

  .checkout-form .form-row {
    flex-direction: column;   /* stack inputs */
    gap: 12px;
  }

  .checkout-form .form-group {
    width: 100%;
  }

  .checkout-form input {
    width: 93%;
    padding: 10px;
    font-size: 14px;
  }

  /* Payment options */
  .payment-options {
    flex-direction: column;
    gap: 12px;
  }

  .payment-box {
    flex-direction: row;
    justify-content: space-between;
    padding: 12px;
  }

  .payment-left {
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }

  .payment-title {
    font-size: 14px;
  }

  .payment-sub {
    font-size: 12px;
  }

  /* Right side summary */
  .checkout-summary {
    width: 100%;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 6px;
    box-sizing: border-box;
  }

  .summary-row {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
  }

  .summary-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
  }

  .summary-details p {
    font-size: 13px;
    margin: 2px 0;
  }

  .summary-price {
    font-size: 14px;
    font-weight: 600;
  }

  .btn-place-order {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    margin-top: 20px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 4px;
  }

  /* Bottom mobile nav fix */
  .mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-around;
    background: #fff;
    border-top: 1px solid #ddd;
    padding: 8px 0;
    z-index: 1000;
  }

  .mobile-bottom-nav a {
    flex: 1;
    text-align: center;
    font-size: 12px;
    color: #333;
    text-decoration: none;
  }

  .mobile-bottom-nav i {
    display: block;
    font-size: 18px;
    margin-bottom: 4px;
  }

  .cart-badge {
    position: absolute;
    top: 2px;
    right: 20%;
    background: red;
    color: #fff;
    font-size: 10px;
    padding: 2px 5px;
    border-radius: 50%;
  }
}

/* ============================= */
/* MOBILE RESPONSIVE CONTACT UI */
/* ============================= */

@media (min-width: 768px) and (max-width: 1024px) {

  /* HERO SECTION */
  .hero-container {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }

  .hero-text h1 {
    font-size: 28px;
  }

  .hero-text p {
    font-size: 14px;
  }

  .hero-image img {
    width: 100%;
    max-width: 320px;
    margin-top: 20px;
  }

  /* CONTACT SECTION */
  .contact-section {
    flex-direction: column;
    margin-top: -60px;
    gap: 20px;
    padding: 0 15px 50px;
  }

  /* CARDS */
  .card {
    width: 100%;
    padding: 20px;
    border-radius: 10px;
  }

  /* CONTACT INFO TEXT */
  .contact-info h3 {
    font-size: 16px;
  }

  .contact-info p {
    font-size: 13px;
  }

  /* SOCIAL ICONS */
  .social-links {
    text-align: center;
  }

  .social-links a {
    margin: 5px;
    padding: 8px;
  }

  /* FORM */
  .contact-form h2 {
    font-size: 20px;
    text-align: center;
  }

  .form-group label {
    font-size: 12px;
  }

  .form-group input,
  .form-group textarea {
    font-size: 13px;
    padding: 8px;
  }

  .btn-submit {
    font-size: 14px;
    padding: 10px;
  }

  /* SUCCESS CARD */
  .success-card {
    font-size: 14px;
    padding: 15px;
  }
}
@media (max-width: 480px) {
  .hero-text h1 {
    font-size: 24px;
  }

  .card {
    padding: 15px;
  }

  .btn-submit {
    padding: 9px;
  }
}
