/* ============================================================
   SARWESHWAR INDUSTRIES — shop.css
   Shop page styles
   ============================================================ */

:root {
  --red: #e8190a; --red-dark: #b91208;
  --gray-bg: #f4f4f4; --card-bg: #fff;
  --border: #e5e5e5; --text: #222;
  --text-mid: #555; --strike: #999;
}

/* ── Hero Banner ── */
.sh-backimage {
    background-image: url('../img/Aboutpage.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    height: 350px;
    display: flex;
    align-items: center;
}

.sh-container {
    width: 100%;
    padding: 0 15px;
}

.sh-row {
    display: flex;
    flex-wrap: wrap;
}

.sh-col-12 {
    width: 100%;
}

/* ── H1 Badge ── */
.sh-h1-wrap h1 {
    font-size: 50px;
    background-color: rgba(255, 0, 0, 0.61);
    padding: 16px 45px 17px 58px;
    color: white;
    border-radius: 47px;
    display: inline-block;
    margin-left: 50px;
}

/* ────────────────────────────────
   RESPONSIVE BREAKPOINTS
──────────────────────────────── */

/* Tablet — 768px se neeche */
@media (max-width: 768px) {
    .sh-backimage { height: 280px; }

    .sh-h1-wrap h1 {
        font-size: 36px;
        padding: 12px 30px 13px 35px;
        border-radius: 35px;
        margin-left: 20px;
    }
}

/* Mobile — 480px se neeche */
@media (max-width: 480px) {
    .sh-backimage { height: 220px; }

    .sh-h1-wrap h1 {
        font-size: 26px;
        padding: 10px 20px;
        border-radius: 25px;
        margin-left: 15px;
        max-width: calc(100% - 30px);
        text-align: center;
    }
}

/* Bahut chhoti screen — 360px se neeche */
@media (max-width: 360px) {
    .sh-backimage { height: 180px; }

    .sh-h1-wrap h1 {
        font-size: 22px;
        padding: 8px 16px;
        border-radius: 20px;
        margin-left: 10px;
    }
}


/* ── Shop Section ── */
.shop-section { background: var(--gray-bg); padding: 40px 20px 60px; }

h2.section-title {
  text-align: center; font-size: 24px; font-weight: 700;
  color: var(--red); margin-bottom: 30px; letter-spacing: 0.5px;
  font-family: 'Poppins',sans-serif; text-transform: uppercase;
}

.grid {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 20px; max-width: 1200px; margin: 0 auto 32px;
}

.card {
  background: var(--card-bg); border-radius: 10px;
  border: 1px solid var(--border); overflow: hidden;
  position: relative; cursor: pointer;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
  display: flex !important; flex-direction: column !important;
}
.card:hover { box-shadow: 0 8px 28px rgba(0,0,0,0.13); transform: translateY(-4px); }

.card .badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--red) !important; color: #fff !important;
  font-size: 12px; font-weight: 700; width: 46px; height: 46px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  z-index: 2; box-shadow: 0 2px 8px rgba(232,25,10,0.4); padding: 0; border: none;
}

.img-wrap {
  width: 100%; aspect-ratio: 1/1; overflow: hidden;
  background: #fff; position: relative; flex-shrink: 0;
}
.img-wrap img {
  width: 100%; height: 100%; object-fit: contain; padding: 16px;
  position: absolute; top: 0; left: 0;
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.img-wrap .img-primary { opacity: 1; transform: scale(1); }
.img-wrap .img-hover   { opacity: 0; transform: scale(1.08); }
.card:hover .img-primary { opacity: 0; transform: scale(0.94); }
.card:hover .img-hover   { opacity: 1; transform: scale(1); }

.card .card-body { padding: 14px 14px 18px; border-top: 1px solid var(--border); display: flex; flex-direction: column; flex: 1; }
.card .card-body h3 { font-size: 13px; font-weight: 600; color: var(--text); line-height: 1.5; min-height: 40px; margin-bottom: 10px; text-align: center; font-family: 'Poppins',sans-serif; }

.price-row { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 14px; }
.price-new { font-size: 15px; font-weight: 700; color: var(--red); font-family: 'Poppins',sans-serif; }
.price-old { font-size: 12px; color: var(--strike); text-decoration: line-through; }

.btn-buy {
  display: block; width: 100%; background: var(--red); color: #fff;
  border: none; border-radius: 25px; padding: 10px 0; font-size: 13px;
  font-weight: 700; letter-spacing: 1px; cursor: pointer;
  transition: background 0.2s, transform 0.15s; font-family: 'Poppins',sans-serif; margin-top: auto;
}
.btn-buy:hover { background: var(--red-dark); transform: scale(1.03); }

.pagination { display: flex !important; align-items: center; justify-content: center; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.page-btn { width: 40px; height: 40px; border-radius: 8px; border: 1.5px solid var(--border); background: #fff; font-size: 14px; font-weight: 600; color: var(--text); cursor: pointer; transition: all 0.2s; display: flex; align-items: center; justify-content: center; font-family: 'Poppins',sans-serif; }
.page-btn:hover { border-color: var(--red); color: var(--red); background: #fff5f5; }
.page-btn.active { background: var(--red); color: #fff; border-color: var(--red); }
.page-btn:disabled { opacity: 0.35; cursor: not-allowed; pointer-events: none; }
.page-info { font-size: 13px; color: var(--text-mid); text-align: center; margin-top: 14px; font-family: 'Poppins',sans-serif; }

@media(max-width:1100px) { .grid { grid-template-columns: repeat(3,1fr); } }
@media(max-width:768px)  { .grid { grid-template-columns: repeat(2,1fr); } }
@media(max-width:480px)  {
  .grid { grid-template-columns: repeat(2,1fr); gap: 12px; }
  .img-wrap img { padding: 8px; }
}