/* Product cards: same photo size everywhere */
.product_grid .shop_thumb img.card-img-top { width: 100%; aspect-ratio: 5 / 7; object-fit: cover; }

/* Product page and quick view */
#productGallery img { border-radius: 14px; }
.pd-badge { display: inline-block; margin-bottom: 10px; padding: 4px 12px; border-radius: 20px; background: #fdefef; color: #e42d29; font-size: 12px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; }
.pd-info h2 { margin-bottom: 4px; font-size: 28px; line-height: 1.25; color: #151515; }
.pd-sku { margin-bottom: 12px; color: #70798b; font-size: 13px; }
.pd-sku:has(span:empty) { display: none; }
.pd-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid #f0f0f3; }
.pd-price-now { color: #e42d29; font-size: 30px; font-weight: 700; line-height: 1; }
.pd-price-was { color: #9aa1ad; font-size: 17px; text-decoration: line-through; }
.pd-stock { padding: 3px 10px; border-radius: 20px; background: #e8f7ee; color: #1e8e4e; font-size: 12px; font-weight: 600; }
.pd-short { color: #5b6270; line-height: 1.7; }
.pd-label { margin-bottom: 8px; color: #151515; font-size: 14px; font-weight: 600; }
.pd-info .size-option .form-option-label { border: 1.5px solid #e5e7eb; border-radius: 10px; font-weight: 600; color: #151515; box-shadow: none; transition: border-color .15s; }
.pd-info .size-option .form-option-label:hover { border-color: #e42d29; }
.pd-info .form-check-input:checked + .form-option-label { border-color: #e42d29; color: #e42d29; background-color: #fdefef; box-shadow: none; }
.pd-info .offer-tile { flex: 1; min-width: 100px; border: 1.5px solid #e5e7eb; border-radius: 10px; background: #fff; color: #151515; font-weight: 600; text-transform: uppercase; box-shadow: none; transition: border-color .15s, background .15s; }
.pd-info .offer-tile:hover { border-color: #e42d29; }
.pd-info .offer-tile small { color: #70798b; font-weight: 500; }
.pd-info .offer-tile.active { border-color: #e42d29; background: #fdefef; color: #e42d29; box-shadow: none; }
.pd-info .offer-tile.active small { color: #e42d29; font-weight: 600; }
.pd-info .price-summary { padding: 12px 14px; border: 1px solid #f0f0f3; border-radius: 10px; background: #fafafb; }
.pd-cart-btn { border-radius: 10px; }
.pd-buy-now { display: flex; align-items: center; justify-content: center; gap: 16px; width: 100%; min-height: 60px; padding: 8px 20px; border: 0; border-radius: 12px; background: linear-gradient(135deg, #e42d29 0%, #a8161b 100%); color: #fff; box-shadow: 0 8px 20px rgba(228,45,41,.28); cursor: pointer; transition: transform .15s, box-shadow .15s; }
.pd-buy-now:hover { transform: translateY(-1px); box-shadow: 0 12px 24px rgba(228,45,41,.35); }
.pd-buy-now:focus-visible { outline: 3px solid rgba(228,45,41,.35); outline-offset: 2px; }
.pd-buy-text { text-align: center; }
.pd-buy-text strong { display: block; font-size: 17px; line-height: 1.2; }
.pd-buy-text small { display: block; font-size: 12px; opacity: .9; }
.pd-pay-icons { display: flex; }
.pd-pay { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; margin-left: -6px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px #c21f1b; font-size: 18px; }
.pd-pay:first-child { margin-left: 0; }
.pd-pay-upi { color: #097939; font-size: 9px; font-weight: 800; letter-spacing: .2px; }

/* Custom embroidery */
.emb-card { border-radius: 12px; overflow: hidden; border: 1px solid #f5d0ce; box-shadow: 0 6px 20px rgba(21,21,21,.07); }
.emb-card-head, .emb-modal .modal-header { display: flex; align-items: center; background: linear-gradient(135deg, #e42d29 0%, #a8161b 100%); color: #fff; }
.emb-card-head { gap: 14px; padding: 16px 18px; }
.emb-icon { flex: none; width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.18); display: flex; align-items: center; justify-content: center; font-size: 19px; }
.emb-card-head h5 { color: #fff; margin: 0; font-size: 18px; font-weight: 700; }
.emb-card-head p { margin: 2px 0 0; font-size: 13px; color: rgba(255,255,255,.88); }
.emb-card-body { background: #fff; padding: 6px; }
.emb-choice { position: relative; display: flex; gap: 12px; align-items: flex-start; margin: 0; padding: 12px; border-radius: 8px; cursor: pointer; transition: background .15s; }
.emb-choice:hover { background: #fdefef; }
.emb-choice input, .emb-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.emb-radio { flex: none; position: relative; width: 20px; height: 20px; margin-top: 2px; border: 2px solid #c5cad3; border-radius: 50%; transition: border-color .15s; }
.emb-choice input:checked + .emb-radio { border-color: #e42d29; }
.emb-choice input:checked + .emb-radio::after { content: ''; position: absolute; top: 3px; left: 3px; right: 3px; bottom: 3px; border-radius: 50%; background: #e42d29; }
.emb-choice input:focus-visible + .emb-radio, .emb-option input:focus-visible + .emb-option-box { box-shadow: 0 0 0 3px rgba(228,45,41,.25); }
.emb-choice strong { display: block; color: #151515; font-size: 15px; }
.emb-choice small { display: block; color: #70798b; font-size: 13px; }
.emb-summary { display: flex; align-items: center; gap: 10px; margin-top: 8px; padding: 8px 10px; border-radius: 8px; background: #fdefef; font-size: 13px; color: #151515; }
.emb-summary img { width: 44px; height: 44px; object-fit: contain; background: #fff; border: 1px solid #eee; border-radius: 6px; }
.emb-edit { margin-left: auto; padding: 0; border: 0; background: none; color: #e42d29; font-weight: 600; cursor: pointer; }
.emb-modal .modal-content { border: 0; border-radius: 14px; overflow: hidden; }
.emb-modal .modal-header { border: 0; }
.emb-modal .modal-title { color: #fff; font-weight: 700; }
.emb-modal button.close { position: static; display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; margin: 0 0 0 auto; padding: 0; border-radius: 50%; background: rgba(255,255,255,.2); color: #fff; font-size: 22px; opacity: 1; text-shadow: none; }
.emb-modal button.close:hover { background: rgba(255,255,255,.32); color: #fff; }
.emb-step { margin: 0 0 8px; color: #151515; font-size: 14px; font-weight: 600; }
.emb-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.emb-option { position: relative; margin: 0; cursor: pointer; }
.emb-option-box { display: block; height: 100%; padding: 14px 10px; border: 2px solid #e5e7eb; border-radius: 10px; text-align: center; color: #151515; transition: border-color .15s, background .15s; }
.emb-option-box i { display: block; margin-bottom: 6px; font-size: 20px; color: #e42d29; }
.emb-option input:checked + .emb-option-box { border-color: #e42d29; background: #fdefef; }
.emb-price { display: block; margin-top: 2px; color: #e42d29; font-weight: 700; }
.emb-drop { display: flex; flex-direction: column; align-items: center; gap: 4px; margin: 0 0 6px; padding: 18px; border: 2px dashed #eebab8; border-radius: 10px; background: #fffafa; text-align: center; cursor: pointer; }
.emb-drop:hover { border-color: #e42d29; }
.emb-drop > i { font-size: 26px; color: #e42d29; }
.emb-drop img { max-width: 100%; max-height: 90px; object-fit: contain; }
.emb-save { background: #e42d29; color: #fff; border-radius: 8px; }
.emb-save:hover { background: #c9221e; color: #fff; }
.emb-panel { padding: 14px 16px 16px; border-top: 1px solid #f5d0ce; background: #fff; }
.emb-panel-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }

/* Quantity stepper */
.qty-stepper { display: flex; align-items: stretch; width: 140px; height: 52px; border: 1px solid #e5e5e5; border-radius: 10px; overflow: hidden; background: #fff; }
.qty-stepper button { width: 44px; border: 0; background: #f4f5f7; color: #333; font-size: 18px; line-height: 1; cursor: pointer; }
.qty-stepper button:hover { background: #e9ebef; }
.qty-stepper input { flex: 1; min-width: 0; border: 0; text-align: center; font-size: 16px; color: #333; -moz-appearance: textfield; }
.qty-stepper input:focus { outline: none; }
.qty-stepper:focus-within { border-color: #252525; }
.qty-stepper input::-webkit-inner-spin-button, .qty-stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

/* Quick view */
.qv-modal .modal-dialog { max-width: 1000px; }
.qv-modal .modal-content { border: 0; border-radius: 18px; overflow: hidden; box-shadow: 0 24px 60px rgba(21,21,21,.25); }
.qv-modal.fade .modal-dialog { transform: translateY(18px) scale(.98); transition: transform .22s ease-out; }
.qv-modal.show .modal-dialog { transform: none; }
.qv-close { position: absolute; top: 14px; right: 14px; z-index: 5; display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%; background: #fff; color: #151515; font-size: 13px; box-shadow: 0 4px 14px rgba(21,21,21,.15); cursor: pointer; transition: transform .2s; }
.qv-close:hover { transform: rotate(90deg); }
.qv-wrap { display: flex; height: min(680px, calc(100vh - 3.5rem)); }
.qv-media { flex: 0 0 46%; display: flex; flex-direction: column; gap: 12px; min-height: 0; padding: 24px; background: #f6f7f9; }
.qv-main { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; }
.qv-main img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 14px; }
.qv-thumbs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.qv-thumb { flex: 0 0 64px; height: 64px; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: #fff; opacity: .7; cursor: pointer; transition: border-color .15s, opacity .15s; }
.qv-thumb:hover, .qv-thumb.active { border-color: #e42d29; opacity: 1; }
.qv-thumb img { width: 100%; height: 100%; object-fit: cover; }
.qv-info { flex: 1; min-width: 0; overflow-y: auto; padding: 30px 28px 24px; }
.qv-info h2 { padding-right: 40px; font-size: 23px; }
.qv-info .pd-price-now { font-size: 26px; }
.qv-save { padding: 3px 10px; border-radius: 20px; background: #e42d29; color: #fff; font-size: 12px; font-weight: 700; }
.qv-save:empty { display: none; }
.qv-short { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: 14px; }
.qv-details { display: inline-flex; align-items: center; gap: 6px; color: #151515; font-weight: 600; }
.qv-details:hover { color: #e42d29; }
.qv-skeleton { display: flex; height: min(680px, calc(100vh - 3.5rem)); }
.qv-skeleton .qv-media .qv-bone { flex: 1; }
.qv-skeleton .qv-media, .qv-skeleton .qv-info { gap: 14px; }
.qv-skeleton .qv-info { display: flex; flex-direction: column; }
.qv-bone { border-radius: 10px; background: linear-gradient(90deg, #eceef1 25%, #f6f7f9 37%, #eceef1 63%); background-size: 400% 100%; animation: qv-shimmer 1.2s ease infinite; }
@keyframes qv-shimmer { from { background-position: 100% 50%; } to { background-position: 0 50%; } }
@media (max-width: 767.98px) {
    .qv-wrap, .qv-skeleton { flex-direction: column; height: auto; }
    .qv-media { flex: none; padding: 12px; }
    .qv-main img { max-height: 60vh; }
    .qv-info { overflow: visible; padding: 20px 16px; }
}
