/* DRYING MATE Store Styles */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', -apple-system, sans-serif; color: #1a1a1a; line-height: 1.6; background: #fff; }
body.no-scroll { overflow: hidden; }

/* Header */
header { background: #111; color: #fff; padding: 0; position: sticky; top: 0; z-index: 100; }
.header-inner { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; padding: 10px 24px; }
.logo-img { height: 36px; width: auto; vertical-align: middle; }
.logo a { color: #fff; text-decoration: none; }
nav { display: flex; align-items: center; gap: 8px; }
nav a { color: #ccc; text-decoration: none; margin-left: 28px; font-size: 0.95rem; transition: color 0.2s; }
nav a:hover { color: #fff; }

/* Cart Button */
.cart-btn { background: none; border: none; color: #fff; font-size: 1.2rem; cursor: pointer; position: relative; padding: 4px 8px; }
.cart-btn:hover { color: #0f3460; }
.cart-count { position: absolute; top: -4px; right: -4px; background: #e74c3c; color: #fff; font-size: 0.65rem; width: 18px; height: 18px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }

/* Cart Overlay */
.cart-overlay, .checkout-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 200; opacity: 0; visibility: hidden; transition: all 0.3s; }
.cart-overlay.open, .checkout-overlay[style*="block"] { opacity: 1; visibility: visible; }
.checkout-overlay { z-index: 300; }

/* Cart Panel */
.cart-panel { position: fixed; top: 0; right: -420px; width: 400px; height: 100vh; background: #fff; z-index: 201; transition: right 0.3s; display: flex; flex-direction: column; box-shadow: -2px 0 20px rgba(0,0,0,0.15); }
.cart-panel.open { right: 0; }
.cart-header { display: flex; justify-content: space-between; align-items: center; padding: 20px; border-bottom: 1px solid #eee; }
.cart-header h3 { font-size: 1.2rem; }
.cart-close { background: none; border: none; font-size: 1.8rem; cursor: pointer; color: #666; line-height: 1; }
.cart-close:hover { color: #111; }
.cart-items { flex: 1; overflow-y: auto; padding: 16px; }
.cart-empty { text-align: center; color: #999; padding: 40px 0; }
.cart-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid #f0f0f0; }
.cart-item-img { width: 60px; height: 60px; object-fit: cover; border-radius: 8px; }
.cart-item-info { flex: 1; }
.cart-item-name { font-size: 0.85rem; font-weight: 600; margin-bottom: 2px; }
.cart-item-price { font-size: 0.8rem; color: #c00; }
.cart-item-qty { display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; }
.cart-item-qty button { width: 24px; height: 24px; border: 1px solid #ddd; background: #f8f9fa; border-radius: 4px; cursor: pointer; font-size: 0.9rem; display: flex; align-items: center; justify-content: center; }
.cart-item-qty button:hover { background: #e0e0e0; }
.cart-item-qty span { min-width: 20px; text-align: center; font-size: 0.9rem; }
.cart-item-remove { background: none; border: none; cursor: pointer; font-size: 1rem; padding: 4px; }
.cart-footer { padding: 16px 20px; border-top: 1px solid #eee; }
.cart-total { display: flex; justify-content: space-between; align-items: center; font-size: 1.1rem; font-weight: 700; margin-bottom: 12px; }

/* Checkout Modal */
.checkout-modal { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); background: #fff; z-index: 301; width: 90%; max-width: 700px; max-height: 90vh; border-radius: 16px; overflow-y: auto; box-shadow: 0 10px 40px rgba(0,0,0,0.25); }
.checkout-header { display: flex; justify-content: space-between; align-items: center; padding: 24px 28px; border-bottom: 1px solid #eee; position: sticky; top: 0; background: #fff; z-index: 1; }
.checkout-header h2 { font-size: 1.4rem; }
.checkout-body { padding: 24px 28px; }
.checkout-section { margin-bottom: 28px; }
.checkout-section h3 { font-size: 1rem; color: #333; margin-bottom: 14px; padding-bottom: 8px; border-bottom: 1px solid #eee; }

/* Checkout Summary Items */
.checkout-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid #f5f5f5; }
.checkout-item-img { width: 48px; height: 48px; object-fit: cover; border-radius: 6px; }
.checkout-item > div { flex: 1; }
.checkout-item > div p { font-size: 0.85rem; margin-bottom: 2px; }
.checkout-item > span { font-weight: 600; color: #c00; font-size: 0.9rem; }
.checkout-total { margin-top: 12px; padding-top: 12px; border-top: 2px solid #111; }

/* Shipping Form */
.shipping-form, .card-form { display: grid; gap: 10px; }
.form-row { position: relative; }
.form-row input, .form-row select { width: 100%; padding: 12px 14px; border: 1px solid #ddd; border-radius: 8px; font-size: 0.9rem; transition: border-color 0.2s; }
.form-row input:focus, .form-row select:focus { border-color: #0f3460; outline: none; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.card-icons-inline { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); display: flex; gap: 4px; opacity: 0.6; }

/* Payment Tabs */
.payment-tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.payment-tab { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; border: 2px solid #ddd; background: #fff; border-radius: 10px; cursor: pointer; font-size: 0.95rem; font-weight: 600; transition: all 0.2s; }
.payment-tab img { height: 18px; width: auto; }
.payment-tab.active { border-color: #0f3460; background: #f0f4ff; }
.payment-tab:hover { border-color: #0f3460; }
.payment-section { display: none; }
.payment-section.active { display: block; }
.payment-info { color: #666; font-size: 0.85rem; margin-bottom: 14px; }
#paypal-button-container { min-height: 150px; }
.payment-fallback { text-align: center; padding: 30px 20px; background: #f8f9fa; border-radius: 8px; }
.payment-fallback .small { font-size: 0.8rem; color: #999; margin-top: 6px; }
.payment-secure-note { text-align: center; color: #999; font-size: 0.8rem; margin-top: 12px; }
.lock-icon { margin-right: 4px; }

/* Hero Section */
.hero { background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%); color: #fff; padding: 60px 24px; text-align: center; }
.hero h1 { font-size: 2.2rem; margin-bottom: 12px; }
.hero p { font-size: 1.1rem; opacity: 0.85; max-width: 700px; margin: 0 auto; }

/* Product */
.product-section { max-width: 1200px; margin: 0 auto; padding: 48px 24px; }
.product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }

/* Gallery */
.product-gallery { }
.gallery-main { border-radius: 12px; overflow: hidden; background: #f5f5f5; }
.gallery-main img { width: 100%; height: auto; display: block; object-fit: contain; max-height: 500px; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 12px; overflow-x: auto; }
.gallery-thumbs img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; cursor: pointer; border: 2px solid transparent; transition: border-color 0.2s; }
.gallery-thumbs img:hover, .gallery-thumbs img.active { border-color: #0f3460; }

/* Product Info */
.product-info h2 { font-size: 1.4rem; margin-bottom: 4px; line-height: 1.3; }
.product-info .subtitle { color: #666; font-size: 0.95rem; margin-bottom: 16px; }

.price-block { display: flex; align-items: center; gap: 12px; margin: 16px 0 20px; }
.price-sale { font-size: 1.6rem; font-weight: 700; color: #c00; }
.price-regular { font-size: 1rem; color: #999; text-decoration: line-through; }
.sale-badge { background: #c00; color: #fff; padding: 3px 10px; border-radius: 4px; font-size: 0.8rem; font-weight: 600; text-transform: uppercase; }

/* Variants */
.variants { margin: 20px 0; }
.variants h3 { font-size: 0.9rem; text-transform: uppercase; color: #666; margin-bottom: 10px; }
.variant-list { display: grid; gap: 6px; margin-bottom: 16px; }

.variant-radio { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: #f8f9fa; border-radius: 8px; font-size: 0.9rem; cursor: pointer; border: 2px solid transparent; transition: all 0.2s; }
.variant-radio:hover { border-color: #0f3460; background: #f0f4ff; }
.variant-radio input { display: none; }
.variant-radio input:checked ~ .variant-label { color: #0f3460; font-weight: 600; }
.variant-radio:has(input:checked) { border-color: #0f3460; background: #f0f4ff; }
.variant-color { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #ddd; flex-shrink: 0; }
.variant-color.black { background: #222; }
.variant-color.grey { background: #999; }
.variant-label { flex: 1; }
.variant-price { font-weight: 600; color: #c00; }

/* Quantity */
.qty-row { display: flex; align-items: center; gap: 8px; margin: 16px 0; }
.qty-label { font-size: 0.85rem; color: #666; }
.qty-btn { width: 36px; height: 36px; border: 1px solid #ddd; background: #fff; border-radius: 8px; cursor: pointer; font-size: 1.1rem; display: flex; align-items: center; justify-content: center; transition: all 0.2s; }
.qty-btn:hover { background: #f0f4ff; border-color: #0f3460; }
.qty-input { width: 56px; height: 36px; text-align: center; border: 1px solid #ddd; border-radius: 8px; font-size: 0.95rem; }

/* Specs */
.product-info .specs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 20px 0; }
.product-info .spec-item { background: #f8f9fa; padding: 12px; border-radius: 8px; }
.product-info .spec-item strong { display: block; font-size: 0.8rem; text-transform: uppercase; color: #666; }
.product-info .spec-item span { font-size: 0.95rem; }

.product-actions { margin-top: 20px; display: flex; gap: 12px; flex-wrap: wrap; }

/* Free shipping badge */
.shipping-free { margin-top: 16px; padding: 10px 14px; background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 8px; font-size: 0.85rem; color: #166534; display: flex; align-items: center; gap: 6px; }
.free-shipping-icon { font-size: 1.1rem; }

/* Buttons */
.btn { display: inline-block; padding: 14px 36px; border-radius: 8px; font-size: 1rem; font-weight: 600; cursor: pointer; border: none; text-decoration: none; transition: all 0.2s; }
.btn-primary { background: #0f3460; color: #fff; }
.btn-primary:hover { background: #16213e; transform: translateY(-1px); }
.btn-outline { border: 2px solid #0f3460; color: #0f3460; background: transparent; }
.btn-outline:hover { background: #0f3460; color: #fff; }
.btn-add-cart { background: #0f3460; color: #fff; padding: 14px 40px; }
.btn-add-cart:hover { background: #16213e; transform: translateY(-1px); }
.btn-buy-now { background: #e74c3c; color: #fff; padding: 14px 40px; }
.btn-buy-now:hover { background: #c0392b; transform: translateY(-1px); }
.btn-checkout { width: 100%; background: #0f3460; color: #fff; padding: 14px; font-size: 1rem; font-weight: 600; border-radius: 8px; cursor: pointer; border: none; transition: all 0.2s; }
.btn-checkout:hover { background: #16213e; }
.btn-block { width: 100%; }
button.btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* Toast */
.toast { position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%) translateY(100px); background: #111; color: #fff; padding: 14px 28px; border-radius: 10px; font-size: 0.95rem; font-weight: 600; z-index: 999; transition: transform 0.3s ease; white-space: nowrap; }
.toast.show { transform: translateX(-50%) translateY(0); }

/* Features */
.features { background: #f8f9fa; padding: 60px 24px; }
.features-inner { max-width: 1200px; margin: 0 auto; }
.features-inner h2 { text-align: center; font-size: 1.8rem; margin-bottom: 40px; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.feature-card { background: #fff; padding: 28px; border-radius: 12px; box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
.feature-card .icon { font-size: 2rem; margin-bottom: 12px; }
.feature-card h3 { margin-bottom: 8px; font-size: 1.1rem; }
.feature-card p { color: #555; font-size: 0.95rem; }

/* Pages */
.page-content { max-width: 800px; margin: 0 auto; padding: 48px 24px; }
.page-content h1 { font-size: 2rem; margin-bottom: 24px; }
.page-content h2 { font-size: 1.3rem; margin: 28px 0 12px; color: #0f3460; }
.page-content p { margin-bottom: 16px; color: #444; line-height: 1.8; }
.page-content ul { margin: 12px 0 20px 24px; }
.page-content li { margin-bottom: 8px; color: #444; }

/* Contact */
.contact-section { max-width: 800px; margin: 0 auto; padding: 48px 24px; }
.contact-section h1 { font-size: 2rem; margin-bottom: 24px; }
.contact-section p { margin-bottom: 16px; color: #444; }
.contact-section a { color: #0f3460; }
.contact-form { display: grid; gap: 16px; margin-top: 24px; }
.contact-form input, .contact-form textarea { padding: 12px 16px; border: 1px solid #ddd; border-radius: 8px; font-size: 0.95rem; font-family: inherit; }
.contact-form textarea { min-height: 120px; resize: vertical; }

/* Footer */
footer { background: #111; color: #888; text-align: center; padding: 28px 24px; font-size: 0.9rem; }
footer a { color: #aaa; text-decoration: none; }
footer a:hover { color: #fff; }
footer .footer-links { margin-bottom: 8px; }
footer .footer-links a { margin: 0 8px; }
.footer-payment-icons { margin-top: 12px; display: flex; justify-content: center; gap: 10px; align-items: center; }
.footer-payment-icons img { opacity: 0.6; }

/* Responsive */
@media (max-width: 768px) {
  .product-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.6rem; }
  .header-inner { flex-direction: column; gap: 8px; }
  nav a { margin: 0 12px; }
  .gallery-thumbs img { width: 56px; height: 56px; }
  .cart-panel { width: 90%; right: -100%; }
  .checkout-modal { width: 95%; max-height: 95vh; margin: 10px; }
  .form-row-3 { grid-template-columns: 1fr; }
  .payment-tabs { flex-direction: column; }
}
