/* =========================================================
   Iz Mart BD — Laravel storefront additions (style.css is the design base)
   ========================================================= */

/* flash messages */
.flash-msg { margin: 16px 0 0; padding: 12px 18px; border-radius: 12px; font-weight: 600; transition: opacity .4s, transform .4s; }
.flash-msg.ok { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.flash-msg.bad { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.flash-msg.hide { opacity: 0; transform: translateY(-6px); pointer-events: none; }

/* home hero: Big Discount box bad — category sidebar + slider (2 column) */
.hero { grid-template-columns: 260px 1fr; }
@media (max-width: 1200px) { .hero { grid-template-columns: 240px 1fr; } }
@media (max-width: 992px) { .hero { grid-template-columns: 1fr; } }

/* pagination links wrap buttons */
.pager a { display: contents; }
.active-chips a { display: contents; }
.f-clear { display: block; }

/* product card image */
.product .thumb img.emo { transition: transform .4s; }
.p-actions a { color: var(--text); }
.p-actions a:hover { background: var(--primary) !important; color: #fff; }

/* ---------- product details ---------- */
.pd { display: grid; grid-template-columns: 1fr 1.1fr; gap: 34px; background: #fff; border-radius: 18px; box-shadow: var(--shadow); padding: 26px; margin-top: 6px; }
.pd-main { position: relative; aspect-ratio: 1; border-radius: 14px; background: #f6f7f9; display: grid; place-items: center; overflow: hidden; }
.pd-main img { width: 100%; height: 100%; object-fit: cover; }
.pd-emo { font-size: clamp(120px, 18vw, 220px); filter: drop-shadow(0 18px 24px rgba(0,0,0,.12)); }
.pd-main .p-badge { top: 16px; left: 16px; font-size: 14px; padding: 5px 12px; }
.pd-wish { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 50%; background: #fff; box-shadow: 0 4px 12px rgba(0,0,0,.1); display: grid; place-items: center; transition: .2s; }
.pd-wish:hover, .pd-wish.liked { background: var(--sale); color: #fff; }
.pd-brand { display: inline-block; color: var(--primary); background: var(--primary-soft); font-weight: 700; font-size: 13px; padding: 4px 12px; border-radius: 20px; margin-bottom: 8px; }
.pd-info h1 { font-size: clamp(22px, 2.6vw, 30px); line-height: 1.3; margin-bottom: 8px; }
.pd-meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.pd-meta .rating { margin: 0; font-size: 16px; }
.pd-camp { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; color: #fff; border-radius: 12px; padding: 10px 16px; font-weight: 600; margin-bottom: 14px; }
.pd-camp b { color: var(--accent); }
.pd-price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; padding: 14px 0; border-top: 1px dashed var(--border); border-bottom: 1px dashed var(--border); }
.pd-price b { font-size: 34px; color: var(--primary); line-height: 1; }
.pd-price s { color: #9ca3af; font-size: 18px; }
.pd-save { background: #fef2f2; color: var(--sale); font-weight: 700; font-size: 13px; padding: 4px 10px; border-radius: 20px; }
.pd-stock { margin: 12px 0; font-weight: 600; font-size: 14.5px; }
.pd-stock.ok { color: var(--success); }
.pd-stock.out { color: var(--danger); }
.pd-short { color: var(--muted); margin-bottom: 12px; }
.pd-attrs { display: grid; grid-template-columns: 90px 1fr; gap: 6px 12px; font-size: 14.5px; margin-bottom: 14px; }
.pd-attrs dt { color: var(--muted); }
.pd-attrs a { color: var(--primary); font-weight: 600; }
.pd-opt { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.pd-opt > span { font-weight: 600; min-width: 50px; }
.pd-opt .size-opts label input, .pd-opt .color-opts label input { display: none; }
.pd-buy { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0; }
.pd-qty { margin: 0; height: 48px; }
.pd-qty button { width: 40px; height: 46px; }
.pd-qty input { width: 46px; border: 0; text-align: center; font-weight: 700; font-size: 16px; font-family: inherit; outline: none; -moz-appearance: textfield; }
.pd-qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.pd-add, .pd-now { flex: 1; justify-content: center; border-radius: 12px; padding: 13px 18px; min-width: 150px; }
.pd-add { border: 1.5px solid var(--primary); color: var(--primary); }
.pd-add:hover { background: var(--primary-soft); }
.pd-perks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pd-perks div { display: flex; gap: 10px; align-items: center; background: #f6f7f9; border-radius: 10px; padding: 10px 12px; font-size: 13.5px; }
.pd-perks span { font-size: 20px; }
.pd-perks b { font-weight: 500; }
.pd-share { margin-top: 14px; color: var(--muted); font-size: 14px; }
.pd-share:hover { color: var(--primary); }
.pd-tabs { background: #fff; border-radius: 18px; box-shadow: var(--shadow); padding: 26px 30px; margin-top: 22px; }
.pd-tabs h2 { font-size: 20px; margin-bottom: 12px; }
.shop-grid.pd-related { grid-template-columns: repeat(5, 1fr); }

@media (max-width: 1200px) { .shop-grid.pd-related { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 992px) {
  .pd { grid-template-columns: 1fr; gap: 20px; padding: 18px; }
  .shop-grid.pd-related { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .pd-perks { grid-template-columns: 1fr; }
  .pd-tabs { padding: 20px 16px; }
  .shop-grid.pd-related { grid-template-columns: repeat(2, 1fr); }
  .pd-add, .pd-now { min-width: 0; }
}

/* ---------- uploaded logo (Admin > Settings > Branding) ---------- */
.logo.has-img { gap: 0; }
.logo-img { display: block; height: 52px; width: auto; max-width: 220px; object-fit: contain; }
.footer .logo.has-img { background: #fff; padding: 8px 14px; border-radius: 12px; }
.footer .logo-img { height: 44px; }
@media (max-width: 992px) { .logo-img { height: 40px; max-width: 160px; } }

/* ---------- WhatsApp (Admin > Settings > WhatsApp number) ---------- */
.wa-btn { position: fixed; right: 22px; bottom: 22px; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; z-index: 61; box-shadow: 0 8px 22px rgba(37, 211, 102, .45); transition: .2s; }
.wa-btn:hover { transform: translateY(-3px); }
.wa-btn::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366; animation: waPulse 2.2s infinite; }
@keyframes waPulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.6); opacity: 0; } }
.wa-tip { position: absolute; right: 66px; background: #1f2430; color: #fff; font-size: 13px; padding: 6px 12px; border-radius: 8px; white-space: nowrap; opacity: 0; pointer-events: none; transition: .2s; }
.wa-btn:hover .wa-tip { opacity: 1; right: 70px; }
.pd-wa { width: 100%; justify-content: center; background: #25d366; color: #fff; border-radius: 12px; padding: 12px; margin: -6px 0 16px; font-weight: 700; }
.pd-wa:hover { background: #1ebe5b; }
@media (max-width: 992px) {
  .wa-btn { bottom: 80px; right: 16px; width: 50px; height: 50px; }
  .wa-tip { display: none; }
}

/* campaign without max discount: "SPECIAL OFFER" disc */
.disc.disc-special strong { font-size: 64px; line-height: 1.1; }
.disc.disc-special span { font-size: 20px; letter-spacing: 1px; }
