/* ==========================================================================
   T Balaji store: inner pages (shop, product, cart, checkout, account…)
   Uses the colour and font variables defined in style.css.
   ========================================================================== */
.logo-img { height: 58px; width: auto; }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--coral); }
.btn-outline { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn-disabled, .btn[disabled] { background: #cfd5db; color: #fff; cursor: not-allowed; }
.link-btn { background: none; border: 0; padding: 0; color: var(--coral); font-weight: 600; cursor: pointer; text-decoration: underline; }
.link-btn.danger { color: #c0392b; }
.badge.oos { background: #6b7280; }
.promo-navy { background: var(--navy); color: #fff; }
.promo-navy h3, .promo-navy p, .promo-navy p span { color: #fff; }
.copyright { margin: 0; font-size: 14px; opacity: .85; }
.hp { position: absolute; left: -9999px; }
.narrow { max-width: 860px; }
.hint { font-size: 14px; color: var(--text); margin: 12px 0 0; }
.hint a, .checkout-login a, .form-row-between a, .alert a { color: var(--coral); font-weight: 600; }

/* Page banner */
.page-banner { background: var(--pink); padding: 46px 0; position: relative; overflow: hidden; }
.page-banner::after { content: ''; position: absolute; inset: 0; background: url('../images/pattern.svg') center / 420px; opacity: .25; pointer-events: none; }
.page-banner .container { position: relative; z-index: 1; }
.page-banner h1 { font-size: clamp(26px, 3vw, 38px); font-weight: 600; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 10px; font-size: 14px; }
.crumbs a { color: var(--coral); font-weight: 500; }
.crumbs i { font-size: 10px; opacity: .6; }
.crumbs span { color: var(--navy); }

/* Alerts */
.alert { padding: 14px 18px; border-radius: 10px; margin: 0 0 20px; font-size: 15px; border-left: 4px solid; }
.alert-success { background: #e8f6ef; border-color: #1e8c75; color: #145a4b; }
.alert-error { background: #fdecea; border-color: #c0392b; color: #8e2b20; }
.alert-info { background: #eaf2f8; border-color: var(--navy); color: var(--navy); }

/* Forms */
.form-card { background: #fff; border: 1px solid #ecdcd8; border-radius: 14px; padding: 28px; margin-bottom: 22px; }
.form-card h2 { font-size: 20px; font-weight: 600; margin-bottom: 18px; display: flex; align-items: center; gap: 12px; }
.form-card h2 span { width: 30px; height: 30px; border-radius: 50%; background: var(--coral); color: #fff; display: grid; place-items: center; font-size: 15px; }
.narrow-card { max-width: 560px; margin: 0 auto; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 500; font-size: 14px; color: var(--navy); margin-bottom: 6px; }
.field input, .field select, .field textarea, .price-range input, .coupon-form input, .shop-toolbar select {
  width: 100%; padding: 12px 14px; border: 1px solid #d9cfcc; border-radius: 10px; font: inherit; font-size: 15px; color: var(--navy); background: #fff; transition: border-color .2s, box-shadow .2s; }
.field input:focus, .field select:focus, .field textarea:focus, .coupon-form input:focus { outline: none; border-color: var(--coral); box-shadow: 0 0 0 3px rgba(212,103,90,.15); }
.field input:disabled { background: #f5f5f5; }
.field small { display: block; font-size: 13px; margin-top: 5px; color: #7a8590; }
.field.has-error input, .field.has-error select { border-color: #c0392b; }
small.error, .field small.error { color: #c0392b; display: block; font-size: 13px; margin-top: 5px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 18px; }
.check { display: flex; align-items: center; gap: 10px; font-size: 15px; cursor: pointer; margin: 6px 0 14px; }
.check input { width: 18px; height: 18px; accent-color: var(--coral); }
.form-row-between { display: flex; justify-content: space-between; margin: -4px 0 18px; font-size: 14px; }

/* Empty states */
.empty-state { text-align: center; padding: 60px 20px; }
.empty-state i { font-size: 54px; color: var(--pink-2); }
.empty-state h2 { font-size: 24px; margin: 18px 0 8px; }
.empty-state p { margin: 0 0 22px; }
.empty-state.small { padding: 30px; }

/* Shop */
.shop { padding-top: 50px; }
.shop-layout { display: grid; grid-template-columns: 270px 1fr; gap: 36px; align-items: start; }
.shop-filters { position: sticky; top: 84px; }
.filter-box { background: var(--pink); border-radius: 14px; padding: 22px; margin-bottom: 20px; }
.filter-box h3 { font-size: 17px; font-weight: 600; margin-bottom: 14px; }
.filter-cats li a { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed #e3cdc8; font-size: 15px; }
.filter-cats li a span { background: #fff; border-radius: 20px; padding: 0 9px; font-size: 12px; line-height: 22px; }
.filter-cats li a.active, .filter-cats li a:hover { color: var(--coral); font-weight: 600; }
.price-range { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.price-range input { padding: 9px 10px; }
.clear-link { display: block; text-align: center; margin-top: 10px; font-size: 14px; color: var(--coral); }
.shop-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.shop-toolbar p { margin: 0; font-weight: 500; color: var(--navy); }
.shop-toolbar form { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.shop-toolbar select { width: auto; padding: 9px 12px; }
.shop-grid { grid-template-columns: repeat(4, 1fr) !important; }
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 44px; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; border: 1px solid #e3cdc8; }
.pagination .current { background: var(--coral); color: #fff; border-color: var(--coral); }
.pagination a:hover { border-color: var(--coral); color: var(--coral); }
.pagination .dots { border: 0; }

/* Product page */
.product-page { padding-top: 50px; }
.product-layout { display: grid; grid-template-columns: minmax(280px, 460px) 1fr; gap: 56px; align-items: start; }
.product-gallery { position: relative; background: var(--pink); border-radius: 16px; padding: 30px; overflow: hidden; }
.product-gallery img { width: 100%; aspect-ratio: 3/4; object-fit: cover; box-shadow: 0 18px 40px rgba(0,0,0,.18); transition: transform .3s; }
@media (hover: hover) and (min-width: 901px) { .product-gallery:hover img { transform: scale(1.6); } }
.product-gallery .badges { top: 16px; left: 16px; }
.eyebrow-link { color: var(--coral); font-weight: 600; font-size: 14px; text-transform: uppercase; letter-spacing: 1px; }
.product-info h1 { font-size: clamp(26px, 2.6vw, 36px); font-weight: 600; margin: 8px 0 12px; }
.product-sub { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 15px; }
.product-price { display: flex; align-items: baseline; gap: 14px; margin: 22px 0 14px; flex-wrap: wrap; }
.product-price .now { font-family: var(--font-head); font-weight: 700; font-size: 32px; color: var(--coral); }
.product-price del { font-size: 18px; }
.product-price .save { background: #e8f6ef; color: #145a4b; padding: 3px 10px; border-radius: 20px; font-size: 13px; font-weight: 600; }
.lead { font-size: 17px; }
.stock { font-weight: 600; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.stock.in { color: #1e8c75; } .stock.out { color: #c0392b; }
.buy-row { display: flex; align-items: center; gap: 14px; margin: 24px 0; flex-wrap: wrap; }
.qty { display: inline-flex; align-items: center; border: 1px solid #d9cfcc; border-radius: 50px; overflow: hidden; background: #fff; }
.qty input { width: 52px; text-align: center; border: 0; font: inherit; font-weight: 600; color: var(--navy); padding: 12px 0; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty-btn { width: 42px; height: 46px; border: 0; background: transparent; font-size: 20px; cursor: pointer; color: var(--navy); }
.qty-btn:hover { background: var(--pink); }
.qty-sm .qty-btn { width: 32px; height: 38px; font-size: 17px; } .qty-sm input { width: 40px; padding: 8px 0; }
.icon-btn-lg { width: 50px; height: 50px; border-radius: 50%; border: 1.5px solid var(--coral); background: #fff; color: var(--coral); font-size: 19px; cursor: pointer; }
.icon-btn-lg.active, .icon-btn-lg:hover { background: var(--coral); color: #fff; }
.perks { display: grid; gap: 10px; margin: 6px 0 24px; font-size: 15px; }
.perks i { color: var(--coral); width: 24px; }
.details-table { border-collapse: collapse; width: 100%; font-size: 15px; }
.details-table th, .details-table td { text-align: left; padding: 10px 0; border-bottom: 1px solid #f0e3e0; }
.details-table th { width: 140px; color: var(--navy); font-weight: 600; }
.product-tabs { display: grid; grid-template-columns: 2fr 1fr; gap: 36px; margin-top: 60px; }
.tab-panel { background: var(--pink); border-radius: 14px; padding: 30px; }
.tab-panel h2 { font-size: 21px; font-weight: 600; margin-bottom: 14px; }
.ship-list li { padding: 8px 0; border-bottom: 1px dashed #e3cdc8; font-size: 15px; }
.prose { font-size: 16px; line-height: 1.8; }
.prose h2, .prose h3 { margin: 24px 0 10px; }
.prose a { color: var(--coral); text-decoration: underline; }
.prose ul, .prose ol { padding-left: 22px; list-style: revert; }

/* Cart + checkout */
.cart-layout { display: grid; grid-template-columns: 1fr 380px; gap: 36px; align-items: start; }
.table-wrap { overflow-x: auto; }
.cart-table, .data-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.cart-table th, .data-table th { text-align: left; font-family: var(--font-head); color: var(--navy); font-weight: 600; padding: 14px 12px; background: var(--pink); }
.cart-table td, .data-table td { padding: 16px 12px; border-bottom: 1px solid #f0e3e0; vertical-align: middle; }
.c-img img { width: 70px; aspect-ratio: 3/4; object-fit: cover; border-radius: 4px; box-shadow: 0 4px 10px rgba(0,0,0,.12); }
.c-title a { font-weight: 600; color: var(--navy); }
.c-title .warn { display: block; color: #c0392b; }
.remove-btn { border: 0; background: none; color: #a0a8b0; font-size: 17px; cursor: pointer; padding: 6px; }
.remove-btn:hover { color: #c0392b; }
.back-link { display: inline-flex; gap: 8px; align-items: center; margin-top: 20px; font-weight: 600; color: var(--coral); }
.summary-box { background: var(--pink); border-radius: 16px; padding: 28px; position: sticky; top: 84px; }
.summary-box h2 { font-size: 21px; font-weight: 600; margin-bottom: 18px; }
.coupon-form { display: flex; gap: 8px; margin-bottom: 18px; }
.coupon-form input { padding: 10px 14px; }
.coupon-applied { margin: 0; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; color: #145a4b; }
.totals { margin: 0 0 20px; }
.totals > div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed #e3cdc8; font-size: 15px; }
.totals dt small { color: #7a8590; }
.totals dd { margin: 0; font-weight: 600; color: var(--navy); white-space: nowrap; }
.totals .disc dd { color: #1e8c75; }
.totals .grand { border: 0; font-size: 19px; padding-top: 14px; }
.totals .grand dt, .totals .grand dd { font-family: var(--font-head); font-weight: 700; color: var(--navy); }
.totals.compact { max-width: 360px; margin: 24px auto; text-align: left; }
.checkout-login { margin: 0 0 20px; }
.saved-addresses { margin-bottom: 16px; } .saved-addresses p { margin: 0 0 8px; font-size: 14px; }
.chip { border: 1px solid #e3cdc8; background: var(--pink); border-radius: 30px; padding: 7px 14px; margin: 0 6px 6px 0; cursor: pointer; font: inherit; font-size: 14px; color: var(--navy); }
.chip:hover { border-color: var(--coral); }
.option-list { display: grid; gap: 12px; margin-bottom: 16px; }
.option { display: flex; align-items: center; gap: 14px; border: 1.5px solid #e6d8d4; border-radius: 12px; padding: 14px 16px; cursor: pointer; transition: border-color .2s, background .2s; }
.option:has(input:checked) { border-color: var(--coral); background: #fff7f5; }
.option input { width: 18px; height: 18px; accent-color: var(--coral); flex-shrink: 0; }
.option span { flex: 1; display: grid; }
.option strong { color: var(--navy); font-weight: 600; }
.option small { color: #7a8590; font-size: 13.5px; }
.option .pay-instructions { margin-top: 6px; color: var(--navy); background: #fff; border-radius: 8px; padding: 8px 10px; }
.option b { color: var(--navy); white-space: nowrap; }
.mini-items { display: grid; gap: 14px; margin-bottom: 18px; }
.mini-items li { display: flex; align-items: center; gap: 12px; font-size: 14.5px; }
.mini-items img { width: 46px; aspect-ratio: 3/4; object-fit: cover; border-radius: 3px; box-shadow: 0 3px 8px rgba(0,0,0,.12); }
.mini-items span { flex: 1; color: var(--navy); font-weight: 500; line-height: 1.35; }
.mini-items small { display: block; color: #7a8590; font-weight: 400; }
.mini-items b { color: var(--navy); white-space: nowrap; }

/* Success / order view */
.success-card { text-align: center; background: #fff; border: 1px solid #ecdcd8; border-radius: 18px; padding: 50px 30px; }
.success-icon { width: 84px; height: 84px; border-radius: 50%; background: #1e8c75; color: #fff; font-size: 38px; display: grid; place-items: center; margin: 0 auto 22px; }
.success-icon.pending { background: #e2a33c; }
.success-card h1 { font-size: 30px; font-weight: 600; margin-bottom: 10px; }
.btn-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 10px; }
.order-view { background: #fff; border: 1px solid #ecdcd8; border-radius: 16px; padding: 30px; }
.order-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; flex-wrap: wrap; margin-bottom: 24px; }
.order-head h2 { font-size: 22px; font-weight: 600; } .order-head p { margin: 4px 0 0; font-size: 14px; }
.order-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 36px; }
.order-grid h3 { font-size: 16px; font-weight: 600; margin: 0 0 10px; }
.address { line-height: 1.7; }
.progress-steps { display: grid; grid-template-columns: repeat(6, 1fr); margin: 0 0 26px; padding: 0; list-style: none; counter-reset: s; }
.progress-steps li { text-align: center; font-size: 13px; position: relative; color: #9aa3ab; }
.progress-steps li span { display: block; width: 22px; height: 22px; border-radius: 50%; background: #e6dfdd; margin: 0 auto 8px; position: relative; z-index: 1; }
.progress-steps li::before { content: ''; position: absolute; top: 10px; left: -50%; width: 100%; height: 3px; background: #e6dfdd; }
.progress-steps li:first-child::before { display: none; }
.progress-steps li.done { color: var(--navy); font-weight: 600; }
.progress-steps li.done span, .progress-steps li.done::before { background: #1e8c75; }
.timeline { border-left: 2px solid #f0e3e0; padding-left: 18px; margin-bottom: 20px; }
.timeline li { position: relative; padding: 0 0 14px; font-size: 14.5px; }
.timeline li::before { content: ''; position: absolute; left: -25px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--coral); }
.timeline small { display: block; color: #7a8590; }
.status { display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: 12.5px; font-weight: 600; background: #eef1f4; color: var(--navy); white-space: nowrap; }
.status-pending, .status-unpaid { background: #fff4e0; color: #9a6200; }
.status-confirmed, .status-packed { background: #e8effa; color: #24539a; }
.status-shipped, .status-out_for_delivery { background: #efe8fa; color: #5b3a9a; }
.status-delivered, .status-paid { background: #e8f6ef; color: #145a4b; }
.status-cancelled, .status-returned, .status-failed, .status-refunded { background: #fdecea; color: #8e2b20; }

/* Account */
.account-layout { display: grid; grid-template-columns: 270px 1fr; gap: 36px; align-items: start; }
.account-nav { background: var(--pink); border-radius: 16px; padding: 22px; position: sticky; top: 84px; }
.account-hello { display: flex; gap: 12px; align-items: center; padding-bottom: 18px; border-bottom: 1px dashed #e3cdc8; margin-bottom: 10px; }
.account-hello .avatar { width: 48px; height: 48px; font-size: 20px; background: var(--navy); }
.account-hello strong { color: var(--navy); display: block; } .account-hello small { font-size: 13px; word-break: break-all; }
.account-nav nav a, .account-nav nav button { display: flex; gap: 12px; align-items: center; width: 100%; padding: 11px 12px; border-radius: 10px; font: inherit; font-size: 15px; color: var(--navy); background: none; border: 0; cursor: pointer; text-align: left; }
.account-nav nav i { width: 18px; color: var(--coral); }
.account-nav nav a.active, .account-nav nav a:hover, .account-nav nav button:hover { background: #fff; }
.account-main > h2 { font-size: 24px; font-weight: 600; margin-bottom: 20px; }
.address-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.address-card { border: 1.5px solid #ecdcd8; border-radius: 14px; padding: 20px; position: relative; }
.address-card.default { border-color: var(--coral); }
.address-card .tag { position: absolute; top: 14px; right: 14px; background: var(--coral); color: #fff; font-size: 12px; padding: 2px 10px; border-radius: 20px; }
.address-card p { margin: 0 0 12px; line-height: 1.7; font-size: 15px; }
.address-card .btn-row { justify-content: flex-start; gap: 16px; }
.auth-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px; max-width: 920px; margin: 0 auto; }
.auth-side { background: var(--pink); border: 0; }

/* Contact + articles */
.contact-layout { display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; align-items: start; }
.contact-info h2 { font-size: 28px; font-weight: 600; margin-bottom: 12px; }
.contact-cards { display: grid; gap: 16px; margin-top: 26px; }
.contact-cards li { display: flex; gap: 16px; background: var(--pink); border-radius: 14px; padding: 18px; }
.contact-cards i { width: 46px; height: 46px; border-radius: 50%; background: var(--coral); color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.contact-cards strong { display: block; color: var(--navy); }
.article-img { width: 100%; border-radius: 16px; margin-bottom: 18px; aspect-ratio: 16/8; object-fit: cover; }
.article-meta { font-size: 14px; color: #7a8590; }
.blog-body p { margin: -10px 0 20px; font-size: 15px; }

/* Spotlight (book of the month) */
.spotlight .author-photo img { aspect-ratio: 3/4; width: 78%; margin: 0 auto; box-shadow: 0 24px 50px rgba(0,0,0,.35); }
.spotlight .author-photo { padding-top: 92px; }
.spotlight .seller-badge { left: 0; right: 0; }

@media (max-width: 1100px) {
  .shop-grid { grid-template-columns: repeat(3, 1fr) !important; }
  .cart-layout { grid-template-columns: 1fr; }
  .summary-box { position: static; }
  .product-tabs { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .shop-layout, .account-layout, .contact-layout, .auth-grid { grid-template-columns: 1fr; }
  .shop-filters, .account-nav { position: static; }
  .product-layout { grid-template-columns: 1fr; gap: 30px; }
  .product-gallery { max-width: 420px; margin: 0 auto; }
  .order-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .shop-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .form-card, .order-view { padding: 20px; }
  .page-banner { padding: 30px 0; }
  .progress-steps { grid-template-columns: repeat(3, 1fr); row-gap: 16px; }
  .progress-steps li:nth-child(4)::before { display: none; }
  .cart-table thead { display: none; }
  .cart-table, .cart-table tbody, .cart-table tr, .cart-table td { display: block; }
  .cart-table tr { display: grid; grid-template-columns: 80px 1fr auto; gap: 4px 14px; padding: 14px 0; border-bottom: 1px solid #f0e3e0; }
  .cart-table td { border: 0; padding: 0; }
  .cart-table td.c-img { grid-row: span 4; }
  .cart-table td.c-title { grid-column: 2 / 4; }
  .cart-table td[data-label]::before { content: attr(data-label) ': '; font-size: 13px; color: #7a8590; }
  .cart-table td:last-child { grid-column: 3; grid-row: 1; }
  .buy-row .btn { flex: 1; }
  .data-table th:nth-child(3), .data-table td:nth-child(3), .data-table th:nth-child(2), .data-table td:nth-child(2) { display: none; }
}
.newsletter-logo { background: var(--navy); }
