/* =====================================
   ZAWAYA SABK - CLEAN CSS
   ===================================== */

html,
body{
  max-width:100% !important;
  overflow-x:hidden !important;
}

/* الديسكتوب */
@media (min-width:769px){

  .s-product-card-image,
  .s-product-card-image a{
    height:220px !important;
    overflow:hidden !important;
    background:#fff !important;
    border-radius:12px !important;
  }

  .s-product-card-image img,
  .s-product-card-image a img{
    width:100% !important;
    height:100% !important;
    object-fit:contain !important;
    padding:8px !important;
    transition:.3s ease !important;
  }

  .s-product-card-entry:hover .s-product-card-image img{
    transform:scale(1.04);
  }
}

/* الشريط كامل العرض */
header .container:first-child{
  width:100vw !important;
  max-width:100vw !important;
}

/* TradingView */
#metal-bar{
  width:100% !important;
  background:#000 !important;
  overflow:hidden !important;
  position:relative !important;
  z-index:99999 !important;
  box-shadow:0 2px 10px rgba(0,0,0,.25) !important;
}

#metal-bar iframe{
  width:100% !important;
  height:46px !important;
  border:0 !important;
}

/* منع الضغط على TradingView */
#metal-bar::after{
  content:"";
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:100%;
  z-index:999999;
  background:transparent;
}

/* الجوال */
@media (max-width:768px){

  #metal-bar{
    height:46px !important;
  }

  .s-announcement-bar{
    min-height:36px !important;
    font-size:13px !important;
    overflow:hidden !important;
  }

  header,
  .s-header{
    padding-top:0 !important;
    margin-top:0 !important;
  }

  .s-block--hero img,
  .s-slider-block img,
  video{
    max-height:220px !important;
    object-fit:cover !important;
  }

  .category-item img,
  .category-card img{
    width:95px !important;
    height:95px !important;
    object-fit:cover !important;
    border-radius:18px !important;
  }

  .category-item .title,
  .category-card .title{
    font-size:15px !important;
    margin-top:8px !important;
  }

  .s-product-card-image,
  .s-product-card-image a{
    height:135px !important;
    overflow:hidden !important;
    background:#fff !important;
    border-radius:12px !important;
  }

  .s-product-card-image img,
  .s-product-card-image a img{
    width:100% !important;
    height:100% !important;
    object-fit:contain !important;
    padding:5px !important;
  }

  .s-product-card-entry{
    padding:8px !important;
  }

  .s-product-card-name{
    font-size:13px !important;
    line-height:1.5 !important;
  }

  .s-product-card-price{
    font-size:15px !important;
  }

  .s-button-element{
    height:38px !important;
    font-size:13px !important;
  }

  .whatsapp-btn,
  a[href*="wa.me"]{
    bottom:88px !important;
  }
}



/* Bigger, properly-cropped product cards */
salla-product-card .s-product-card-image,
salla-product-card .product-img,
salla-product-card img {
  aspect-ratio: 1 / 1;      /* match the source ratio, no crop */
  object-fit: contain;       /* show the whole bullion bar */
  background: #fafafa;       /* fill the contain padding */
  height: auto !important;
}

/* Allocate more vertical room to the image */
@media (max-width: 768px) {
  salla-product-card { min-height: 380px; }
}



:root { font-size: 16px; }                /* up from 15 */
body { font-size: 1rem; line-height: 1.7; } /* RTL Arabic needs ~1.7 line-height */

/* Product card title */
salla-product-card h3,
salla-product-card .product-title {
  font-size: 1rem;         /* up from 15px */
  font-weight: 600;
  line-height: 1.5;
  min-height: 3em;          /* reserve 2 lines so cards don't jump */
}

/* Product price */
salla-product-card .price,
salla-product-card h4 {
  font-size: 1.125rem;     /* 18px — price should be louder than title */
  font-weight: 700;
  color: #af9d55;           /* your existing gold accent */
}

/* Header nav */
header nav a, header .navigation a {
  font-size: 1rem;          /* up from 14px */
}

/* Section titles */
main > section h2, main > section .section-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-block: 2rem 1rem;
}



/* Make the header sticky, slim it down on scroll */
header.store-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
  background: rgba(255,255,255,0.92);
  transition: padding 0.2s;
}
/* Collapse the announcement bar after scroll using a JS class toggle */
header.store-header.is-scrolled .announcement-bar,
header.store-header.is-scrolled .price-ticker {
  display: none;
}
/* Show a real search bar on desktop */
@media (min-width: 1024px) {
  header .search-icon-only { display: none; }
  header .search-form-inline {
    display: flex;
    width: 360px;
    height: 44px;
    border: 1px solid #c5b57e;
    border-radius: 8px;
  }
}
/* Logo right-side for proper RTL hierarchy */
header .logo { margin-inline-start: auto; }





@media (min-width: 1024px) {
  .w-full.flex.justify-between.flex-1.mbfixd.mb-1\.5 {
    justify-content: center !important;
  }
}


button#quickControlBtn,
a.wa-s-n {
    display: none;
  }
}



/* Centering the main footer container */
.store-footer__inner .container {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 1rem !important; /* Tailwind gap-4 */
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Centering all footer columns */
.store-footer__inner .container > div {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
}

/* Styling the separator lines */
.store-footer__inner .lineafter {
    display: block !important;
    background-color: rgba(0, 0, 0, 0.1) !important;
    width: 80% !important;
    height: 1px !important;
    margin: 0.5rem auto !important;
}

@media (min-width: 1024px) {
    .store-footer__inner .container {
        flex-direction: row !important;
        justify-content: center !important;
    }
    .store-footer__inner .lineafter {
        width: 1px !important;
        height: auto !important;
        align-self: stretch !important;
        margin: 0 0.5rem !important;
    }
}

/* Specifically target the first column with max-width */
.store-footer__inner .container > div:first-child {
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;  /* Removes the RTL/LTR offset padding */
    padding-right: 0 !important;
}



.cart-options.reveal.animating {
    /* Adds space outside the element */
    margin-top: 20px;
    margin-bottom: 20px;

    /* Adds space inside the element */
    padding: 10px;

    /* If you want space between the two internal forms */
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.first\:pt-5:first-child {
padding-top: 0.25rem;
}