/* style.css - Swathi Textiles - modern & responsive */
/* ---------- Reset ---------- */
*{box-sizing:border-box;margin:0;padding:0;font-family: "Poppins", sans-serif}

/* ---------- Layout ---------- */
body{background:#f9fafb;color:#222;line-height:1.5}
a{color:inherit;text-decoration:none}

/* Header */
.site-header{background:#fff;display:flex;align-items:center;justify-content:space-between;padding:12px 18px;box-shadow:0 2px 6px rgba(0,0,0,0.06);position:sticky;top:0;z-index:1000}
.site-header .brand{font-size:20px;color:#e91e63;font-weight:600}
.top-nav a{margin-left:14px}
.badge{background:#e91e63;color:#fff;padding:2px 8px;border-radius:12px;font-size:12px;margin-left:6px}

/* Search */
.search-wrap{display:flex;gap:6px;align-items:center}
.search-wrap input{padding:8px 10px;border-radius:8px;border:1px solid #ddd;width:220px}
.search-wrap button{padding:8px 10px;border-radius:8px;border:none;background:#e91e63;color:#fff;cursor:pointer}

/* Container */
.container{max-width:1200px;margin:18px auto;padding:0 14px}

/* Hero */
.hero{display:flex;align-items:center;justify-content:space-between;background:#eef6ff;padding:18px;border-radius:12px;gap:12px}
.hero-left h1{font-size:28px;color:#0b3b83}
.hero-left p{color:#444;margin:8px 0}
.cta{display:inline-block;background:#e91e63;color:white;padding:8px 14px;border-radius:8px}

/* Category Grid */
.category-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:14px;margin-top:14px}
.category-card{display:block;background:#fff;border-radius:10px;box-shadow:0 2px 8px rgba(0,0,0,0.06);padding:8px;text-align:center}
.category-card img{width:100%;height:120px;object-fit:cover;border-radius:8px}

/* Products */
.products-container{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:18px;margin-top:12px}
.product-card{background:#fff;border-radius:12px;overflow:hidden;box-shadow:0 4px 14px rgba(0,0,0,0.06);transition:transform .18s}
.product-card:hover{transform:translateY(-6px)}
.product-card img{width:100%;height:220px;object-fit:cover}
.product-card .info{padding:12px;text-align:center}
.product-card .info h3{font-size:16px;margin-bottom:6px}
.product-card .info p{color:#555}
.product-card .info button{background:#e91e63;color:#fff;padding:8px 12px;border-radius:8px;border:none;cursor:pointer;margin-top:8px}

/* Two-column product page */
.product-page{display:flex;flex-direction:column;gap:14px;padding:10px 0}
.product-main{display:flex;gap:20px;align-items:flex-start}
.product-left img{width:420px;max-width:100%;border-radius:10px;object-fit:cover}
.product-right{flex:1}
.product-right .price{font-size:20px;color:#e91e63;margin:8px 0}
.action-row button{margin-right:10px;padding:10px 14px;border-radius:8px;border:none;background:#e91e63;color:#fff;cursor:pointer}

/* Similar products row (horizontal scroll) */
.similar-section{margin-top:20px}
.similar-row{display:flex;gap:12px;overflow-x:auto;padding:10px 4px}
.similar-item{flex:0 0 140px;background:#fff;border-radius:10px;box-shadow:0 2px 8px rgba(0,0,0,0.06);padding:8px;text-align:center;cursor:pointer}
.similar-item img{width:100%;height:110px;object-fit:cover;border-radius:8px}

/* Cart & Checkout */
.cart-container{background:#fff;border-radius:12px;padding:14px;box-shadow:0 2px 8px rgba(0,0,0,0.06)}
table{width:100%;border-collapse:collapse}
th,td{padding:10px;text-align:center;border-bottom:1px solid #f0f0f0}
td img{width:70px;height:70px;object-fit:cover;border-radius:8px}
.qty-btn{padding:4px 8px;border-radius:6px;border:none;background:#007bff;color:#fff;cursor:pointer}
.remove-btn{padding:6px 8px;border-radius:6px;border:none;background:#ff4b4b;color:#fff}

/* Summary & checkout form */
.checkout-grid{display:grid;grid-template-columns:1fr 320px;gap:18px;margin-top:14px}
.order-form input, .order-form textarea{width:100%;padding:10px;border-radius:8px;border:1px solid #ddd;margin-bottom:10px}
.confirm-btn{display:block;width:100%;padding:12px;background:#e91e63;color:#fff;border:none;border-radius:8px;cursor:pointer}
.order-summary img{width:50px;height:50px;object-fit:cover;border-radius:6px;margin-right:8px}

/* Orders list */
.orders-list{max-width:900px;margin:20px auto}
.order-card{background:#fff;padding:12px;border-radius:8px;box-shadow:0 2px 8px rgba(0,0,0,0.06);margin-bottom:14px}
.order-item{display:flex;align-items:center;margin:8px 0}
.order-item img{width:60px;height:60px;object-fit:cover;border-radius:8px;margin-right:10px}

/* Footer & small utilities */
footer{margin-top:24px;text-align:center;padding:14px;color:#666}

/* Center card for thankyou */
.center-card{display:flex;min-height:80vh;align-items:center;justify-content:center}
.card{background:#fff;padding:28px;border-radius:12px;box-shadow:0 8px 20px rgba(0,0,0,0.08);text-align:center}
.checkmark{width:70px;height:70px;border-radius:50%;background:#4CAF50;color:#fff;display:flex;align-items:center;justify-content:center;margin:0 auto 12px;font-size:32px}
.btn{display:inline-block;padding:8px 14px;background:#007bff;color:#fff;border-radius:8px;margin:6px 6px;text-decoration:none}

/* Responsive */
@media (max-width:900px){
  .checkout-grid{grid-template-columns:1fr}
  .product-main{flex-direction:column}
  .product-left img{max-width:100%}
  .search-wrap input{width:120px}
}
@media (max-width:520px){
  .search-wrap input{width:90px}
  .category-card img{height:90px}
  .product-card img{height:180px}
}
