/* Page-specific styles (moved from inline <style> blocks) */

/* Auth & Admin Forms */
.auth-page { padding:20px; font-family: Arial, sans-serif; }
.auth-form { max-width:420px; margin:30px auto; background:#fff; padding:20px; border-radius:8px; box-shadow:0 6px 18px rgba(0,0,0,0.06); }
.auth-form input { width:100%; padding:10px; margin:8px 0; border:1px solid #ddd; border-radius:4px; }
.auth-form button { background:#0c2a3a; color:#fff; padding:10px 14px; border:none; border-radius:6px; cursor:pointer; }
.oauth { display:flex; gap:10px; margin-top:10px; }

/* Admin table styles */
.admin-table { width:100%; border-collapse:collapse; }
.admin-table th, .admin-table td { padding:8px; border:1px solid #ddd; text-align:left; }

/* Product Detail Page */
.product-detail-container { max-width:1200px; margin:30px auto; padding:0 20px; }
.breadcrumb { margin-bottom:30px; font-size:13px; color:#666; }
.breadcrumb a { color:#0c2a3a; text-decoration:none; }
.product-layout { display:grid; grid-template-columns:1fr 1fr; gap:40px; background:white; padding:40px; border-radius:8px; box-shadow:0 2px 8px rgba(0,0,0,0.1); }
.image-gallery { display:flex; flex-direction:column; gap:15px; }
.main-image { width:100%; height:500px; background-color:#f0f0f0; border-radius:8px; overflow:hidden; display:flex; align-items:center; justify-content:center; position:relative; }
.main-image img { width:100%; height:100%; object-fit:cover; }
.new-badge { position:absolute; top:15px; left:15px; background:linear-gradient(135deg,#b8860b 0%,#daa520 100%); color:white; padding:8px 15px; font-size:12px; font-weight:700; text-transform:uppercase; border-radius:4px; }
.thumbnail-gallery { display:grid; grid-template-columns:repeat(4,1fr); gap:10px; }
.thumbnail { width:100%; height:120px; border:2px solid #ddd; border-radius:4px; cursor:pointer; overflow:hidden; transition:all 0.3s ease; background-color:#f0f0f0; display:flex; align-items:center; justify-content:center; }
.thumbnail img { width:100%; height:100%; object-fit:cover; }
.thumbnail:hover, .thumbnail.active { border-color:#0c2a3a; box-shadow:0 2px 8px rgba(0,0,0,0.15); }
.product-info { display:flex; flex-direction:column; gap:20px; }
.product-header { border-bottom:1px solid #eee; padding-bottom:20px; }
.product-name { font-size:28px; font-weight:700; color:#000; margin-bottom:10px; line-height:1.3; }
.price-section { display:flex; align-items:center; gap:15px; margin-bottom:20px; padding:15px; background-color:#f9f9f9; border-radius:4px; }
.current-price { font-size:32px; font-weight:700; color:#000; }
.original-price { font-size:18px; color:#999; text-decoration:line-through; }
.discount-percentage { background-color:#4caf50; color:white; padding:8px 12px; border-radius:4px; font-weight:700; font-size:14px; }
.selection-section { display:flex; flex-direction:column; gap:20px; }
.size-options { display:flex; gap:10px; flex-wrap:wrap; }
.size-option { width:50px; height:50px; border:2px solid #ddd; border-radius:4px; display:flex; align-items:center; justify-content:center; cursor:pointer; font-weight:600; transition:all 0.3s ease; background-color:white; }
.size-option:hover { border-color:#0c2a3a; }
.size-option.selected { background-color:#0c2a3a; color:white; border-color:#0c2a3a; }
.color-option { width:50px; height:50px; border-radius:4px; border:2px solid #ddd; cursor:pointer; transition:all 0.3s ease; position:relative; }
.color-option:hover { border-color:#0c2a3a; transform:scale(1.05); }
.color-option.selected { border-color:#0c2a3a; box-shadow:0 0 0 2px white, 0 0 0 4px #0c2a3a; }
.action-buttons { display:flex; gap:15px; margin-top:20px; }
.add-to-cart-btn { flex:1; padding:15px; background-color:#0c2a3a; color:white; border:none; border-radius:4px; font-size:16px; font-weight:700; cursor:pointer; transition:all 0.3s ease; text-transform:uppercase; }
.add-to-cart-btn:hover { background-color:#0a1f2a; transform:translateY(-2px); box-shadow:0 4px 12px rgba(0,0,0,0.2); }
.go-to-cart-btn { flex:1; padding:15px; background-color:#4caf50; color:white; border:none; border-radius:4px; font-size:16px; font-weight:700; cursor:pointer; transition:all 0.3s ease; text-transform:uppercase; }
.go-to-cart-btn:hover { background-color:#45a049; }
.product-highlights { display:flex; flex-direction:column; gap:15px; padding:20px; background-color:#f9f9f9; border-radius:4px; }
.description-section { margin-top:40px; padding-top:40px; border-top:2px solid #eee; }
.section-title { font-size:18px; font-weight:700; color:#000; margin-bottom:15px; text-transform:uppercase; letter-spacing:1px; }
.description-text { color:#666; line-height:1.8; margin-bottom:20px; font-size:14px; }
.reviews-section { margin-top:40px; padding-top:40px; border-top:2px solid #eee; }
.related-products { margin-top:60px; padding-top:40px; border-top:2px solid #eee; }
.products-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:20px; margin-top:20px; }
.product-card { background:white; border:1px solid #eee; border-radius:4px; overflow:hidden; cursor:pointer; transition:all 0.3s ease; }
.product-card:hover { box-shadow:0 4px 12px rgba(0,0,0,0.1); transform:translateY(-3px); }
.product-card-image { width:100%; height:220px; background-color:#f0f0f0; overflow:hidden; display:flex; align-items:center; justify-content:center; }
.product-card-image img { width:100%; height:100%; object-fit:cover; }
.collapsible-section { background:white; border:1px solid #eee; border-radius:4px; margin-bottom:15px; }
.collapsible-header { padding:20px; cursor:pointer; display:flex; justify-content:space-between; align-items:center; font-weight:700; color:#333; transition:background-color 0.3s ease; }
.collapsible-content { padding:0 20px 20px 20px; display:none; }
.collapsible-content.active { display:block; }
.key-highlights { display:grid; grid-template-columns:repeat(2,1fr); gap:15px; }
.wash-care-list { list-style:none; display:flex; flex-direction:column; gap:10px; }
.wash-care-item { padding:10px 0; padding-left:25px; position:relative; color:#666; font-size:14px; }
.wash-care-item:before { content:"✓"; position:absolute; left:0; color:#0c2a3a; font-weight:700; }
.delivery-checker { display:flex; gap:10px; margin-bottom:20px; }
.delivery-input { flex:1; padding:10px 15px; border:1px solid #ddd; border-radius:4px; font-size:14px; }
.delivery-btn { padding:10px 20px; background-color:#0c2a3a; color:white; border:none; border-radius:4px; cursor:pointer; font-weight:700; }
.delivery-result { padding:10px 15px; background-color:#f0f8ff; border-left:4px solid #0c2a3a; border-radius:4px; color:#0c2a3a; font-size:14px; margin-top:10px; display:none; }
.delivery-result.show { display:block; }
.success-message { position:fixed; bottom:30px; right:30px; background-color:#4caf50; color:white; padding:15px 25px; border-radius:4px; box-shadow:0 4px 12px rgba(0,0,0,0.2); opacity:0; transition:opacity 0.3s ease; z-index:1000; }
.success-message.show { opacity:1; }

/* Cart Page */
.cart-container { max-width:1200px; margin:30px auto; padding:0 20px; }
.cart-title { font-size:32px; font-weight:700; color:#000; margin-bottom:30px; }
.cart-content { display:grid; grid-template-columns:2fr 1fr; gap:30px; }
.cart-item { display:flex; gap:12px; padding:12px 0; border-bottom:1px solid #eee; align-items:center; }
.cart-item img { width:120px; height:120px; object-fit:cover; border-radius:6px; }
.item-info { flex:1 }
.order-summary { background:white; padding:20px; border-radius:6px; box-shadow:0 6px 18px rgba(0,0,0,0.03); position:sticky; top:30px; height:fit-content; }
.order-summary h2 { font-size:18px; margin-bottom:20px; }
.cart-items { margin-bottom:20px; max-height:400px; overflow-y:auto; }
.cart-item { padding:12px 0; border-bottom:1px solid #eee; font-size:13px; }
.cart-item-image { width:60px; height:60px; }
.cart-item-image img { width:60px; height:60px; object-fit:cover; border-radius:4px; }
.cart-item-details { flex:1; }
.cart-item-name { font-weight:600; color:#0c2a3a; }
.cart-item-specs { font-size:12px; color:#666; }
.cart-item-price { color:#d4a574; font-weight:600; }
.cart-item-qty { font-size:12px; color:#999; }
.price-breakdown { border-top:2px solid #eee; padding-top:15px; margin-bottom:20px; }
.price-row { display:flex; justify-content:space-between; margin-bottom:10px; font-size:14px; }
.price-row.total { font-weight:700; font-size:16px; color:#0c2a3a; border-top:1px solid #eee; padding-top:10px; }
.checkout-btn { width:100%; background-color:#d4a574; color:white; padding:12px; border:none; border-radius:4px; font-weight:600; cursor:pointer; margin-bottom:10px; }
.checkout-btn:hover { background-color:#c49560; }
.continue-shopping-btn { display:block; width:100%; text-align:center; padding:10px; color:#0c2a3a; text-decoration:none; border:1px solid #d4a574; border-radius:4px; font-size:13px; }
.continue-shopping-btn:hover { background-color:#f9f9f9; }
.pincode-group { display:flex; gap:8px; }
.pincode-group input { flex:1; }
.location-btn { background-color:#d4a574; color:white; border:none; padding:8px 12px; border-radius:4px; cursor:pointer; font-size:12px; white-space:nowrap; }
.location-btn:hover { background-color:#c49560; }
.pincode-result { font-size:12px; margin-top:8px; padding:8px; border-radius:4px; display:none; }
.pincode-result.show { display:block; }
.pincode-result { color:#4caf50; background-color:#e8f5e9; border:1px solid #4caf50; padding:8px 10px; border-radius:4px; margin-top:6px; }
.pincode-result:contains("✗") { color:#d32f2f; background-color:#ffebee; border-color:#d32f2f; }

/* Checkout Page */
.checkout-container { max-width:1200px; margin:30px auto; padding:0 20px; display:grid; grid-template-columns:2fr 1fr; gap:30px; }
.shipping-method { display:flex; gap:12px; align-items:center; }
.checkout-form { background:white; padding:50px; border-radius:8px; box-shadow:0 2px 12px rgba(0,0,0,0.08); }
.checkout-form h2 { font-size:20px; font-weight:700; color:#0c2a3a; margin-bottom:25px; padding-bottom:15px; border-bottom:2px solid #f0f0f0; }
.form-section { margin-bottom:35px; }
.form-group { margin-bottom:20px; display:flex; flex-direction:column; }
.form-group label { font-size:14px; font-weight:600; color:#0c2a3a; margin-bottom:8px; text-transform:capitalize; }
.form-group input, .form-group select { padding:12px 14px; border:1px solid #e0e0e0; border-radius:6px; font-size:14px; font-family:inherit; transition:all 0.3s ease; }
.form-group input:focus, .form-group select:focus { outline:none; border-color:#d4a574; box-shadow:0 0 0 3px rgba(212,165,116,0.1); background-color:#fafafa; }
.form-group input::placeholder { color:#999; }
.form-group .error-message { font-size:12px; color:#d32f2f; margin-top:5px; display:none; }
.form-group .error-message.show { display:block; }
.two-col { display:grid; grid-template-columns:1fr 1fr; gap:20px; }
.form-group small { font-size:12px; color:#666; margin-top:6px; }
.pincode-group { display:flex; gap:10px; align-items:stretch; }
.pincode-group input { flex:1; padding:12px 14px; border:1px solid #e0e0e0; border-radius:6px; font-size:14px; transition:all 0.3s ease; }
.pincode-group input:focus { outline:none; border-color:#d4a574; box-shadow:0 0 0 3px rgba(212,165,116,0.1); }
.location-btn { background-color:#d4a574; color:white; border:none; padding:12px 16px; border-radius:6px; cursor:pointer; font-size:13px; font-weight:600; white-space:nowrap; transition:all 0.3s ease; }
.location-btn:hover { background-color:#c49560; transform:translateY(-1px); box-shadow:0 2px 8px rgba(212,165,116,0.3); }
.pincode-result { font-size:13px; margin-top:10px; padding:12px 14px; border-radius:6px; display:none; border-left:4px solid #4caf50; }
.pincode-result.show { display:block; }
.shipping-method { display:block; padding:15px; border:2px solid #f0f0f0; border-radius:6px; margin-bottom:12px; cursor:pointer; transition:all 0.3s ease; }
.shipping-method:hover { border-color:#d4a574; background-color:#fafafa; }
.shipping-method input[type="radio"] { cursor:pointer; margin-right:12px; transform:scale(1.1); accent-color:#d4a574; }
.shipping-label { font-weight:600; color:#0c2a3a; font-size:15px; }
.shipping-info { font-size:13px; color:#666; margin-top:6px; margin-left:28px; }
#upiField { margin-top:15px; padding:20px; background:#fafafa; border-radius:6px; border:1px solid #e0e0e0; }
#confirmPaymentBtn { width:100%; background-color:#4caf50; color:white; padding:12px; border:none; border-radius:6px; font-weight:600; cursor:pointer; margin-top:10px; transition:all 0.3s ease; font-size:14px; }
#confirmPaymentBtn:hover { background-color:#45a049; transform:translateY(-1px); box-shadow:0 2px 8px rgba(76,175,80,0.3); }
#confirmPaymentBtn:active { transform:translateY(0); }
#paymentStatus { margin-top:10px; padding:12px; border-radius:6px; display:none; text-align:center; font-size:13px; font-weight:600; border-left:4px solid currentColor; }

/* Order confirmation */
.confirmation-container { max-width:600px; margin:60px auto; padding:0 20px; background:white; border-radius:8px; box-shadow:0 2px 12px rgba(0,0,0,0.1); padding:60px 40px; text-align:center; }
.success-icon { width:100px; height:100px; background-color:#4caf50; border-radius:50%; display:flex; align-items:center; justify-content:center; margin:0 auto 30px; font-size:50px; color:white; }
h1 { font-size:32px; font-weight:700; color:#0c2a3a; margin-bottom:15px; }
.order-details { background-color:#f9f9f9; padding:25px; border-radius:4px; margin-bottom:30px; text-align:left; border:1px solid #eee; }

/* Responsive */
@media (max-width: 768px) {
  .product-layout { grid-template-columns:1fr; }
  .checkout-container { grid-template-columns:1fr; gap:20px; }
  .cart-content { grid-template-columns:1fr; }
  .thumbnail-gallery { grid-template-columns:repeat(3,1fr); }
  .key-highlights { grid-template-columns:1fr; }
  .two-col { grid-template-columns:1fr; gap:15px; }
  .checkout-form { padding:30px; }
}

/* Payment method and variant modal tweaks */
.payment-methods { display:flex; flex-direction:column; gap:10px; }
.shipping-method { display:block; padding:12px; border-radius:6px; }
.shipping-method input[type="radio"] { transform: scale(1.05); margin-right:10px; }

/* Variant modal fallbacks (for browsers without injected inline styles) */
#variantModal .variant-size, #variantModal .variant-color { cursor:pointer }
#variantModal .variant-color { width:36px; height:28px; border-radius:6px; display:inline-block; }
#variantModal .variant-size.selected { box-shadow: inset 0 0 0 2px #0c2a3a; background:#f0f8ff; }
#variantModal .variant-color.selected { outline: 3px solid rgba(12,42,58,0.8); }

/* Small toast */
#cartToast { transition: opacity 0.3s ease; }

/* Go to cart floating hint */
#goToCartHint { box-shadow: 0 6px 18px rgba(0,0,0,0.12); }

