/* ==========================================================================
   EdTech Ecommerce — base design system
   Amazon.in-inspired: dark navy header, orange CTAs, dense product grids.
   ========================================================================== */
:root {
	--edtech-navy: #131921;
	--edtech-navy-light: #232f3e;
	--edtech-orange: #febd69;
	--edtech-orange-dark: #f3a847;
	--edtech-link: #007185;
	--edtech-price: #b12704;
	--edtech-success: #067d62;
	--edtech-border: #d5d9d9;
	--edtech-bg: #eaeded;
	--edtech-radius: 4px;
}

* { box-sizing: border-box; }
.edtech-btn { display: inline-block; padding: 10px 18px; border-radius: var(--edtech-radius); border: 1px solid transparent; font-weight: 600; font-size: 14px; cursor: pointer; text-decoration: none; text-align: center; transition: filter .15s ease; }
.edtech-btn:hover { filter: brightness(0.95); }
.edtech-btn-primary { background: var(--edtech-orange); border-color: #a88734 #9c7e31 #846a29; color: #111; }
.edtech-btn-secondary { background: #f0f2f2; border-color: #d5d9d9; color: #111; }
.edtech-btn-block { width: 100%; }
.edtech-btn:disabled, .edtech-add-to-cart-btn:disabled { opacity: .5; cursor: not-allowed; }

.edtech-page-title { font-size: 26px; margin: 20px 0; }

/* ---------------- Header / Search bar ---------------- */
.edtech-site-header { background: var(--edtech-navy); color: #fff; }
.edtech-header-row { display: flex; align-items: center; gap: 16px; padding: 10px 20px; max-width: 1400px; margin: 0 auto; }
.edtech-logo { color: #fff; font-size: 22px; font-weight: 700; text-decoration: none; flex-shrink: 0; }
.edtech-search-wrap { flex: 1; position: relative; }
#edtech-search-form { display: flex; border-radius: var(--edtech-radius); overflow: visible; }
#edtech-search-category { border: none; background: #f3f3f3; padding: 0 10px; font-size: 13px; border-right: 1px solid #ccc; max-width: 140px; }
#edtech-search-input { flex: 1; border: none; padding: 10px 12px; font-size: 14px; outline: none; }
#edtech-search-type { border: none; background: #f3f3f3; padding: 0 8px; font-size: 12px; border-left: 1px solid #ccc; }
.edtech-search-submit { background: var(--edtech-orange); border: none; padding: 0 16px; cursor: pointer; font-size: 16px; }
#edtech-search-suggestions { position: absolute; top: 100%; left: 0; right: 0; background: #fff; color: #111; border: 1px solid var(--edtech-border); border-radius: 0 0 var(--edtech-radius) var(--edtech-radius); z-index: 999; max-height: 420px; overflow-y: auto; box-shadow: 0 4px 10px rgba(0,0,0,.15); display: none; }
.edtech-suggestion-item { display: flex; align-items: center; gap: 10px; padding: 8px 12px; text-decoration: none; color: #111; border-bottom: 1px solid #f1f1f1; }
.edtech-suggestion-item:hover { background: #f5f5f5; }
.edtech-suggestion-thumb { width: 32px; height: 32px; object-fit: cover; border-radius: 3px; }
.edtech-suggestion-price { display: block; color: var(--edtech-price); font-size: 12px; }
.edtech-suggestion-empty { padding: 12px; color: #666; }
.edtech-header-actions { display: flex; align-items: center; gap: 20px; flex-shrink: 0; }
.edtech-header-actions a { color: #fff; text-decoration: none; font-size: 13px; position: relative; }
.edtech-cart-link { display: flex; align-items: center; gap: 6px; }
.edtech-cart-count { background: var(--edtech-orange); color: #111; border-radius: 50%; padding: 1px 6px; font-size: 12px; font-weight: 700; }
.edtech-cart-count.edtech-bump { animation: edtech-bump .35s ease; }
@keyframes edtech-bump { 0% { transform: scale(1);} 50% { transform: scale(1.35);} 100% { transform: scale(1);} }
.edtech-subnav { background: var(--edtech-navy-light); padding: 8px 20px; display: flex; gap: 18px; overflow-x: auto; }
.edtech-subnav a { color: #fff; text-decoration: none; font-size: 13px; white-space: nowrap; }
.edtech-subnav a:hover { text-decoration: underline; }

#edtech-global-flash, .edtech-flash { padding: 10px 16px; border-radius: var(--edtech-radius); margin: 10px auto; max-width: 1400px; font-size: 14px; }
.edtech-flash-success { background: #d1e7dd; color: #0f5132; }
.edtech-flash-error { background: #f8d7da; color: #842029; }
#edtech-global-flash { position: fixed; top: 10px; right: 10px; z-index: 9999; display: none; box-shadow: 0 2px 8px rgba(0,0,0,.2); }

/* ---------------- Layout shell ---------------- */
.edtech-container { max-width: 1400px; margin: 0 auto; padding: 0 20px; }

/* ---------------- Homepage ---------------- */
.edtech-hero-banner { background: linear-gradient(120deg, var(--edtech-navy) 0%, #2a3f5f 100%); color: #fff; padding: 50px 20px; text-align: center; }
.edtech-hero-banner h1 { font-size: 34px; margin-bottom: 10px; }
.edtech-hero-banner p { font-size: 16px; opacity: .85; margin-bottom: 20px; }

.edtech-home-section { max-width: 1400px; margin: 34px auto; padding: 0 20px; }
.edtech-home-section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; flex-wrap: wrap; gap: 10px; }
.edtech-home-section-header h2 { font-size: 22px; margin: 0; }
.edtech-section-sort { padding: 6px 10px; border: 1px solid var(--edtech-border); border-radius: var(--edtech-radius); font-size: 13px; }

.edtech-category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
.edtech-category-card { text-align: center; text-decoration: none; color: #111; background: #fff; border: 1px solid var(--edtech-border); border-radius: var(--edtech-radius); padding: 14px; transition: box-shadow .15s ease; }
.edtech-category-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.edtech-category-card img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: var(--edtech-radius); margin-bottom: 8px; background: #f2f2f2; }

/* ---------------- Product Grid / Cards ---------------- */
.edtech-product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; min-height: 120px; }
.edtech-product-grid.is-loading { opacity: .4; pointer-events: none; }
.edtech-product-card { background: #fff; border: 1px solid var(--edtech-border); border-radius: var(--edtech-radius); padding: 14px; display: flex; flex-direction: column; }
.edtech-product-card-link { text-decoration: none; color: inherit; flex: 1; }
.edtech-product-card-img-wrap { position: relative; margin-bottom: 10px; }
.edtech-product-card-img-wrap img { width: 100%; aspect-ratio: 1/1; object-fit: contain; background: #fff; }
.edtech-out-of-stock-badge { position: absolute; top: 6px; left: 6px; background: #b12704; color: #fff; font-size: 11px; padding: 2px 8px; border-radius: 10px; }
.edtech-product-card-title { font-size: 14px; font-weight: 500; margin: 0 0 6px; line-height: 1.4; height: 2.8em; overflow: hidden; }
.edtech-product-card-rating { font-size: 12px; color: #666; margin-bottom: 6px; }
.edtech-stars-mini { color: var(--edtech-orange-dark); letter-spacing: 1px; }
.edtech-product-card-price { margin-bottom: 10px; }
.edtech-price-sale { font-size: 17px; font-weight: 700; color: #111; }
.edtech-price-strike { text-decoration: line-through; color: #666; font-size: 13px; margin-left: 4px; }
.edtech-price-off { color: var(--edtech-success); font-size: 13px; margin-left: 4px; }
.edtech-price-regular { font-size: 17px; font-weight: 700; }

/* ---------------- Shop / Archive page ---------------- */
.edtech-shop-layout { display: grid; grid-template-columns: 240px 1fr; gap: 24px; align-items: start; }
.edtech-shop-filters { background: #fff; border: 1px solid var(--edtech-border); border-radius: var(--edtech-radius); padding: 16px; position: sticky; top: 10px; }
.edtech-shop-filters h3 { font-size: 14px; margin: 16px 0 8px; }
.edtech-shop-filters h3:first-child { margin-top: 0; }
.edtech-filter-category-list, .edtech-filter-rating-list, .edtech-filter-subcategory-list { list-style: none; padding: 0; margin: 0; font-size: 13px; }
.edtech-filter-category-list li, .edtech-filter-rating-list li { margin-bottom: 6px; }
.edtech-filter-subcategory-list { padding-left: 18px; margin-top: 4px; }
.edtech-filter-count { color: #999; }
.edtech-filter-price { display: flex; align-items: center; gap: 6px; }
.edtech-filter-price input { width: 70px; padding: 6px; border: 1px solid var(--edtech-border); border-radius: var(--edtech-radius); }
.edtech-shop-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.edtech-result-count { color: #565959; font-size: 13px; }
.edtech-sort-select { padding: 6px 10px; border: 1px solid var(--edtech-border); border-radius: var(--edtech-radius); }
.edtech-shop-pagination { display: flex; gap: 6px; justify-content: center; margin-top: 24px; }
.edtech-page-btn { padding: 6px 12px; border: 1px solid var(--edtech-border); background: #fff; border-radius: var(--edtech-radius); cursor: pointer; }
.edtech-page-btn.active { background: var(--edtech-navy); color: #fff; }

/* ---------------- Product detail page ---------------- */
.edtech-pdp-layout { display: grid; grid-template-columns: 90px 1fr 340px; gap: 24px; margin: 24px 0; }
.edtech-pdp-thumbs { display: flex; flex-direction: column; gap: 8px; }
.edtech-gallery-thumb { width: 70px; height: 70px; object-fit: cover; border: 2px solid var(--edtech-border); border-radius: var(--edtech-radius); cursor: pointer; }
.edtech-gallery-thumb.active { border-color: var(--edtech-orange-dark); }
#edtech-main-product-image { width: 100%; max-width: 480px; aspect-ratio: 1/1; object-fit: contain; }
.edtech-pdp-title { font-size: 22px; margin-bottom: 6px; }
.edtech-pdp-price-row { display: flex; align-items: baseline; gap: 10px; margin: 14px 0; }
.edtech-pdp-price { font-size: 28px; font-weight: 700; }
.edtech-variant-group { margin-bottom: 14px; }
.edtech-variant-group h4 { font-size: 13px; margin-bottom: 6px; }
.edtech-variant-size, .edtech-variant-color { display: inline-block; padding: 6px 14px; border: 1px solid var(--edtech-border); border-radius: var(--edtech-radius); margin: 0 6px 6px 0; cursor: pointer; background: #fff; }
.edtech-variant-size.selected, .edtech-variant-color.selected { border-color: var(--edtech-navy); background: var(--edtech-navy); color: #fff; }
.edtech-pdp-qty-stepper { display: inline-flex; align-items: center; border: 1px solid var(--edtech-border); border-radius: var(--edtech-radius); margin: 10px 0; }
.edtech-pdp-qty-stepper button { width: 32px; height: 34px; border: none; background: #f0f2f2; cursor: pointer; font-size: 16px; }
.edtech-pdp-qty-input { width: 50px; text-align: center; border: none; border-left: 1px solid var(--edtech-border); border-right: 1px solid var(--edtech-border); height: 34px; }
.edtech-pdp-actions { display: flex; gap: 10px; margin-top: 14px; }
.edtech-pdp-actions .edtech-btn { flex: 1; }
.edtech-buy-now-btn { background: var(--edtech-success); color: #fff; }
.edtech-pdp-buybox { border: 1px solid var(--edtech-border); border-radius: var(--edtech-radius); padding: 16px; align-self: start; }
.edtech-stock-in { color: var(--edtech-success); font-weight: 600; }
.edtech-stock-out { color: var(--edtech-price); font-weight: 600; }

.edtech-tabs { margin: 30px 0; }
.edtech-tab-btn { padding: 10px 18px; border: none; background: none; border-bottom: 3px solid transparent; font-size: 14px; cursor: pointer; }
.edtech-tab-btn.active { border-bottom-color: var(--edtech-navy); font-weight: 700; }
.edtech-tab-panel { display: none; padding: 18px 0; }
.edtech-tab-panel.active { display: block; }

.edtech-star-input i { font-style: normal; font-size: 22px; cursor: pointer; color: #ccc; }
.edtech-star-input i.filled { color: var(--edtech-orange-dark); }
.edtech-review-row { border-bottom: 1px solid var(--edtech-border); padding: 14px 0; }
.edtech-review-row .edtech-review-author { font-weight: 600; }
.edtech-review-row .edtech-review-date { color: #999; font-size: 12px; }

/* ---------------- Cart page ---------------- */
.edtech-cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 20px; align-items: start; }
.edtech-cart-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--edtech-border); }
.edtech-cart-table th, .edtech-cart-table td { padding: 14px; border-bottom: 1px solid var(--edtech-border); text-align: left; vertical-align: middle; }
.edtech-cart-product { display: flex; gap: 12px; align-items: center; }
.edtech-cart-thumb { width: 60px; height: 60px; object-fit: cover; border-radius: var(--edtech-radius); }
.edtech-cart-product-title { color: #111; text-decoration: none; font-weight: 600; }
.edtech-cart-variant { font-size: 12px; color: #666; }
.edtech-low-stock-note { font-size: 12px; color: var(--edtech-price); }
.edtech-qty-stepper { display: inline-flex; align-items: center; border: 1px solid var(--edtech-border); border-radius: var(--edtech-radius); }
.edtech-qty-btn { width: 28px; height: 28px; border: none; background: #f0f2f2; cursor: pointer; }
.edtech-qty-input { width: 42px; text-align: center; border: none; }
.edtech-remove-item { background: none; border: none; color: var(--edtech-link); cursor: pointer; text-decoration: underline; font-size: 13px; }
.edtech-cart-summary, .edtech-checkout-summary { background: #fff; border: 1px solid var(--edtech-border); border-radius: var(--edtech-radius); padding: 18px; }
.edtech-coupon-box { display: flex; gap: 8px; margin: 12px 0; }
.edtech-coupon-box input { flex: 1; padding: 8px; border: 1px solid var(--edtech-border); border-radius: var(--edtech-radius); }
.edtech-summary-table { width: 100%; margin: 10px 0; font-size: 14px; }
.edtech-summary-table td { padding: 6px 0; }
.edtech-summary-table td:last-child { text-align: right; }
.edtech-discount-value { color: var(--edtech-success); }
.edtech-free-tag { color: var(--edtech-success); font-weight: 700; }
.edtech-summary-total-row { display: flex; justify-content: space-between; font-size: 17px; border-top: 1px dashed var(--edtech-border); padding-top: 10px; margin-top: 10px; }
.edtech-free-ship-note { font-size: 12px; color: #666; margin: 8px 0 16px; }
.edtech-empty-cart { text-align: center; padding: 60px 20px; }

/* ---------------- Checkout page ---------------- */
.edtech-checkout-layout { display: grid; grid-template-columns: 1fr 340px; gap: 20px; align-items: start; }
.edtech-checkout-section { background: #fff; border: 1px solid var(--edtech-border); border-radius: var(--edtech-radius); padding: 20px; margin-bottom: 18px; }
.edtech-step-num { display: inline-flex; width: 24px; height: 24px; border-radius: 50%; background: var(--edtech-navy); color: #fff; align-items: center; justify-content: center; font-size: 13px; margin-right: 8px; }
.edtech-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.edtech-field-full { grid-column: 1 / -1; }
.edtech-form-field label { display: block; font-size: 13px; margin-bottom: 5px; font-weight: 600; }
.edtech-form-field input, .edtech-form-field select, .edtech-form-field textarea { width: 100%; padding: 9px 10px; border: 1px solid var(--edtech-border); border-radius: var(--edtech-radius); font-size: 14px; }
.edtech-form-field.edtech-inline { display: flex; justify-content: space-between; align-items: center; grid-column: 1/-1; }
.edtech-payment-options { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.edtech-payment-option { border: 1px solid var(--edtech-border); border-radius: var(--edtech-radius); padding: 12px; cursor: pointer; }
.edtech-card-fields { margin-top: 14px; }
.edtech-checkout-items-table { width: 100%; margin-bottom: 12px; }
.edtech-co-thumb { position: relative; width: 46px; }
.edtech-co-thumb img { width: 40px; height: 40px; object-fit: cover; border-radius: 3px; }
.edtech-co-qty-badge { position: absolute; top: -6px; right: -6px; background: #666; color: #fff; font-size: 10px; border-radius: 50%; padding: 1px 5px; }
.edtech-co-price { text-align: right; font-size: 13px; }
.edtech-note { font-size: 12px; color: #666; }

/* ---------------- Account / Orders / Confirmation ---------------- */
.edtech-auth-tabs { display: flex; gap: 20px; border-bottom: 1px solid var(--edtech-border); margin-bottom: 20px; }
.edtech-auth-tab { padding: 10px 4px; text-decoration: none; color: #666; border-bottom: 3px solid transparent; }
.edtech-auth-tab.active { color: #111; border-color: var(--edtech-navy); font-weight: 700; }
.edtech-auth-form { max-width: 420px; margin: 0 auto; background: #fff; border: 1px solid var(--edtech-border); border-radius: var(--edtech-radius); padding: 24px; }
.edtech-auth-form .edtech-form-field { margin-bottom: 14px; }
.edtech-hint { color: #888; font-size: 12px; }
.edtech-account-profile-card { background: #fff; border: 1px solid var(--edtech-border); border-radius: var(--edtech-radius); padding: 16px; margin-bottom: 20px; display: flex; justify-content: space-between; align-items: center; }
.edtech-orders-table, .edtech-cart-table { width: 100%; border-collapse: collapse; background: #fff; }
.edtech-orders-table th, .edtech-orders-table td { padding: 12px; border-bottom: 1px solid var(--edtech-border); text-align: left; }
.edtech-order-confirmation { max-width: 800px; margin: 30px auto; }
.edtech-confirmation-header { text-align: center; margin-bottom: 24px; }
.edtech-checkmark { display: inline-block; width: 60px; height: 60px; line-height: 60px; border-radius: 50%; background: var(--edtech-success); color: #fff; font-size: 28px; margin-bottom: 10px; }
.edtech-order-number { font-size: 15px; }

@media (max-width: 900px) {
	.edtech-shop-layout, .edtech-cart-layout, .edtech-checkout-layout, .edtech-pdp-layout { grid-template-columns: 1fr; }
	.edtech-pdp-thumbs { flex-direction: row; overflow-x: auto; }
	.edtech-form-grid { grid-template-columns: 1fr; }
}
