/* ================================================================
   ShopKart Storefront — style.css
   Based on provided frontend design (blue #2874f0, orange #ff6b00)
   ================================================================ */

/* RESET */
*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth}
body{font-family:Arial,Helvetica,sans-serif;background:#f5f6f8;color:#222;line-height:1.5}
a{text-decoration:none;color:inherit}
img{display:block;max-width:100%}
button,input,select,textarea{font-family:inherit}
ul{list-style:none}

/* CONTAINER */
.container{width:100%;max-width:1400px;margin:0 auto;padding:0 20px}

/* ── HEADER ─────────────────────────────────────────────── */
.header{background:#fff;border-bottom:1px solid #e5e5e5;position:sticky;top:0;z-index:1000}
.header-main{min-height:72px;display:flex;align-items:center;gap:25px}
.logo{font-size:25px;font-weight:800;color:#2874f0;white-space:nowrap}
.logo span{color:#ff6b00}

.search-box{flex:1;max-width:650px;position:relative}
.search-box input{width:100%;height:44px;border:1px solid #d8d8d8;border-radius:5px;padding:0 45px 0 15px;outline:none;font-size:14px;background:#f8f9fa}
.search-box input:focus{border-color:#2874f0;background:#fff}
.search-icon{position:absolute;right:15px;top:50%;transform:translateY(-50%);font-size:18px;color:#666;cursor:pointer;background:none;border:none}

.header-links{margin-left:auto;display:flex;align-items:center;gap:22px;font-size:14px;font-weight:600;white-space:nowrap}
.header-link{transition:color .2s}
.header-link:hover{color:#2874f0}
.cart-link{position:relative}
.cart-count{position:absolute;top:-12px;right:-12px;min-width:18px;height:18px;padding:0 4px;border-radius:20px;background:#ff4d4d;color:#fff;font-size:10px;display:flex;align-items:center;justify-content:center;line-height:1}

/* USER DROPDOWN */
.user-dropdown{position:relative}
.user-dropdown-menu{display:none;position:absolute;top:calc(100% + 8px);right:0;min-width:180px;background:#fff;border:1px solid #e2e5e8;border-radius:6px;box-shadow:0 6px 18px rgba(0,0,0,.1);z-index:200}
.user-dropdown:hover .user-dropdown-menu{display:block}
.user-dropdown-menu a{display:block;padding:10px 16px;font-size:13px;color:#333}
.user-dropdown-menu a:hover{background:#f5f6f8;color:#2874f0}
.user-dropdown-menu hr{border:none;border-top:1px solid #eee;margin:4px 0}

/* ── CATEGORY NAV ───────────────────────────────────────── */
.category-nav{background:#fff;border-bottom:1px solid #e8e8e8}
.category-list{display:flex;align-items:center;gap:30px;min-height:46px;overflow-x:auto;scrollbar-width:none}
.category-list::-webkit-scrollbar{display:none}
.category-list a{font-size:13px;font-weight:600;color:#444;white-space:nowrap;padding:14px 0;border-bottom:2px solid transparent;transition:color .2s,border-color .2s}
.category-list a:hover,.category-list a.active{color:#2874f0;border-bottom-color:#2874f0}

/* ── HERO BANNER ────────────────────────────────────────── */
.hero-banner{background:linear-gradient(135deg,#1a4fa0 0%,#2874f0 50%,#ff6b00 100%);color:#fff;padding:50px 0;margin-top:0}
.hero-inner{display:flex;align-items:center;justify-content:space-between;gap:30px}
.hero-text h1{font-size:36px;font-weight:800;line-height:1.2;margin-bottom:14px}
.hero-text p{font-size:16px;opacity:.9;margin-bottom:24px}
.hero-btn{display:inline-flex;align-items:center;gap:8px;padding:13px 28px;background:#ff6b00;color:#fff;border-radius:5px;font-size:15px;font-weight:700;transition:background .2s}
.hero-btn:hover{background:#e05e00}
.hero-stats{display:flex;gap:30px;margin-top:28px}
.hero-stat strong{display:block;font-size:24px;font-weight:800}
.hero-stat span{font-size:12px;opacity:.8}
.hero-right{font-size:120px;text-align:center;opacity:.15}

/* ── PRODUCT SECTIONS ───────────────────────────────────── */
.product-section{margin-top:24px}
.section-header{background:#fff;padding:18px 20px;border-bottom:1px solid #eee;display:flex;justify-content:space-between;align-items:center;gap:15px;border-radius:8px 8px 0 0}
.section-title{font-size:21px;font-weight:700}
.view-more{display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:8px 16px;background:#2874f0;color:#fff;border-radius:4px;font-size:13px;font-weight:700;white-space:nowrap;transition:background .2s}
.view-more:hover{background:#1859c9}

/* ── PRODUCT GRID ───────────────────────────────────────── */
.product-grid{background:#fff;padding:18px 15px 20px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;border-radius:0 0 8px 8px}
.product-card{min-width:0;border:1px solid #eee;border-radius:7px;overflow:hidden;background:#fff;transition:transform .2s,box-shadow .2s}
.product-card:hover{transform:translateY(-3px);box-shadow:0 7px 20px rgba(0,0,0,.08)}
.product-image{width:100%;aspect-ratio:1/1;background:#f7f8fa;display:flex;align-items:center;justify-content:center;padding:15px}

/* ── HOME PAGE grid overrides (scoped — no other page affected) ─ */
.home-section .section-header{border-radius:8px}
.home-grid{background:transparent;padding:0;border-radius:0;gap:16px;margin-top:10px}
.home-grid .product-card{border:none;box-shadow:0 1px 8px rgba(0,0,0,.08)}
.home-grid .product-image{padding:5px}
.home-grid .product-actions form{flex:1}
.home-grid .product-actions button{width:100%}
.product-image img{width:100%;height:100%;object-fit:contain}
.product-info{padding:13px}
.product-title{font-size:14px;line-height:1.4;height:40px;overflow:hidden;margin-bottom:9px;color:#333}
.rating{display:inline-flex;align-items:center;gap:4px;background:#0f9d58;color:#fff;padding:3px 6px;border-radius:3px;font-size:11px;font-weight:700;margin-bottom:8px}
.price-row{display:flex;align-items:center;flex-wrap:wrap;gap:7px}
.price{font-size:17px;font-weight:800;color:#222}
.old-price{font-size:12px;color:#888;text-decoration:line-through}
.discount{font-size:12px;color:#138808;font-weight:700}

/* Product card action buttons */
.product-actions{padding:0 13px 13px;display:flex;gap:8px}
.btn-add-cart{flex:1;height:38px;padding:0 10px;white-space:nowrap;background:#2874f0;color:#fff;border:none;border-radius:4px;font-size:12px;font-weight:700;cursor:pointer;transition:background .2s}
.btn-add-cart:hover{background:#1859c9}
.btn-buy-now{flex:1;height:38px;padding:0 10px;white-space:nowrap;background:#ff6b00;color:#fff;border:none;border-radius:4px;font-size:12px;font-weight:700;cursor:pointer;transition:background .2s}
.btn-buy-now:hover{background:#e05e00}

/* ── FEATURES ROW ───────────────────────────────────────── */
.features{margin-top:25px;background:#fff;border-radius:8px;padding:22px;display:grid;grid-template-columns:repeat(4,1fr);gap:20px}
.feature{display:flex;gap:12px;align-items:center}
.feature-icon{width:42px;height:42px;border-radius:50%;background:#edf4ff;display:flex;align-items:center;justify-content:center;color:#2874f0;font-size:18px;flex-shrink:0}
.feature h3{font-size:14px;margin-bottom:2px}
.feature p{font-size:11px;color:#777}

/* ── FOOTER ─────────────────────────────────────────────── */
.footer{margin-top:35px;background:#172337;color:#fff}
.footer-main{padding:40px 20px;display:grid;grid-template-columns:2fr repeat(3,1fr);gap:35px}
.footer h3{font-size:15px;margin-bottom:15px}
.footer p{color:#bbb;font-size:13px;line-height:1.7}
.footer ul li{margin-bottom:8px}
.footer li a{color:#bbb;font-size:13px}
.footer li a:hover{color:#fff}
.footer-bottom{border-top:1px solid rgba(255,255,255,.1);padding:15px 20px;text-align:center;color:#aaa;font-size:12px}

/* ── BREADCRUMB ─────────────────────────────────────────── */
.breadcrumb{padding:12px 0;font-size:13px;color:#888;display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.breadcrumb a{color:#2874f0}
.breadcrumb a:hover{text-decoration:underline}
.breadcrumb span{color:#555}

/* ── PAGE HEADER ────────────────────────────────────────── */
.page-header{background:#fff;padding:20px;border-radius:8px;margin-bottom:20px;display:flex;justify-content:space-between;align-items:center;gap:15px;flex-wrap:wrap}
.page-header h1{font-size:22px;font-weight:700}
.page-header p{color:#777;font-size:13px;margin-top:4px}

/* ── CATEGORY PAGE ──────────────────────────────────────── */
.cat-layout{display:grid;grid-template-columns:240px 1fr;gap:20px;margin-top:20px}
.filter-sidebar{background:#fff;border-radius:8px;padding:18px;height:fit-content;position:sticky;top:90px}
.filter-section{margin-bottom:22px}
.filter-section h3{font-size:14px;font-weight:700;margin-bottom:12px;padding-bottom:8px;border-bottom:1px solid #eee}
.filter-section label{display:flex;align-items:center;gap:8px;font-size:13px;color:#444;margin-bottom:8px;cursor:pointer}
.filter-section input[type=checkbox]{width:16px;height:16px;cursor:pointer;accent-color:#2874f0}
.filter-section select{width:100%;height:38px;border:1px solid #d8d8d8;border-radius:4px;padding:0 10px;font-size:13px;outline:none}
.filter-section select:focus{border-color:#2874f0}
.filter-apply-btn{width:100%;height:40px;background:#2874f0;color:#fff;border:none;border-radius:4px;font-size:13px;font-weight:700;cursor:pointer}
.filter-apply-btn:hover{background:#1859c9}

.cat-main-content{}
.sort-bar{background:#fff;padding:12px 16px;border-radius:8px;margin-bottom:16px;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.sort-bar p{font-size:13px;color:#666}
.sort-bar select{height:36px;border:1px solid #d8d8d8;border-radius:4px;padding:0 10px;font-size:13px;outline:none}

/* sub-category pills */
.subcat-pills{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:16px}
.subcat-pill{padding:6px 14px;border:1px solid #ddd;border-radius:20px;font-size:12px;color:#444;background:#fff;cursor:pointer;transition:all .2s}
.subcat-pill:hover,.subcat-pill.active{background:#2874f0;border-color:#2874f0;color:#fff}

.cat-product-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px}

/* ── PRODUCT DETAIL ─────────────────────────────────────── */
.product-detail-layout{display:grid;grid-template-columns:1fr 1fr;gap:30px;background:#fff;border-radius:8px;padding:25px;margin-top:20px}
.product-gallery-main{aspect-ratio:1/1;background:#f7f8fa;border-radius:8px;display:flex;align-items:center;justify-content:center;padding:20px;margin-bottom:12px;overflow:hidden;cursor:zoom-in}
.product-gallery-main img{width:100%;height:100%;object-fit:contain;transition:transform .3s}
.product-gallery-main:hover img{transform:scale(1.05)}
.product-gallery-thumbs{display:flex;gap:8px;flex-wrap:wrap}
.product-thumb{width:72px;height:72px;border:2px solid #eee;border-radius:6px;background:#f7f8fa;padding:4px;cursor:pointer;overflow:hidden;display:flex;align-items:center;justify-content:center}
.product-thumb.active,.product-thumb:hover{border-color:#2874f0}
.product-thumb img{width:100%;height:100%;object-fit:contain}

.product-detail-info{}
.product-detail-info h1{font-size:22px;font-weight:700;line-height:1.3;margin-bottom:10px}
.product-meta{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:16px}
.rating-badge{display:inline-flex;align-items:center;gap:4px;background:#0f9d58;color:#fff;padding:4px 8px;border-radius:3px;font-size:12px;font-weight:700}
.review-count{font-size:13px;color:#666}
.product-price-block{margin-bottom:18px}
.product-price-block .price{font-size:28px;font-weight:800}
.product-price-block .old-price{font-size:16px;margin-left:10px}
.product-price-block .discount{font-size:14px}

.product-meta-info{background:#f8f9fa;border-radius:6px;padding:14px;margin-bottom:18px}
.product-meta-row{display:flex;gap:8px;font-size:13px;margin-bottom:6px;align-items:center}
.product-meta-row:last-child{margin-bottom:0}
.meta-label{color:#888;min-width:120px}
.meta-value{font-weight:600;color:#333}
.meta-value.in-stock{color:#0f9d58}
.meta-value.out-stock{color:#ff4d4d}

.qty-selector{display:flex;align-items:center;gap:10px;margin-bottom:18px}
.qty-label{font-size:13px;color:#666;min-width:60px}
.qty-input-group{display:flex;align-items:center;border:1px solid #ddd;border-radius:4px;overflow:hidden}
.qty-btn{width:36px;height:38px;background:#f5f6f8;border:none;font-size:18px;cursor:pointer;color:#555;transition:background .2s}
.qty-btn:hover{background:#e8e8e8}
.qty-input{width:50px;height:38px;border:none;border-left:1px solid #ddd;border-right:1px solid #ddd;text-align:center;font-size:15px;font-weight:700;outline:none}

.product-detail-btns{display:flex;gap:12px;margin-bottom:20px}
.btn-large{flex:1;height:52px;padding:0 18px;white-space:nowrap;border:none;border-radius:5px;font-size:15px;font-weight:700;cursor:pointer;transition:background .2s}
.btn-add-cart-large{background:#fff;color:#2874f0;border:2px solid #2874f0}
.btn-add-cart-large:hover{background:#edf4ff}
.btn-buy-now-large{background:#ff6b00;color:#fff}
.btn-buy-now-large:hover{background:#e05e00}

.product-description{margin-top:20px}
.product-description h3{font-size:16px;font-weight:700;margin-bottom:10px;padding-bottom:8px;border-bottom:1px solid #eee}
.product-description p{font-size:14px;color:#555;line-height:1.8}

/* Reviews */
.reviews-section{margin-top:30px}
.review-card{background:#fff;border:1px solid #eee;border-radius:7px;padding:16px;margin-bottom:14px}
.review-header{display:flex;align-items:center;gap:10px;margin-bottom:8px}
.reviewer-name{font-size:14px;font-weight:700}
.review-date{font-size:11px;color:#aaa;margin-left:auto}
.review-body{font-size:13px;color:#555;line-height:1.7}

/* Review form */
.review-form{background:#fff;border:1px solid #eee;border-radius:8px;padding:20px;margin-top:20px}
.review-form h3{font-size:16px;font-weight:700;margin-bottom:16px}
.star-input{display:flex;flex-direction:row-reverse;gap:4px;margin-bottom:14px}
.star-input input{display:none}
.star-input label{font-size:28px;color:#ddd;cursor:pointer;transition:color .15s}
.star-input input:checked ~ label,.star-input label:hover,.star-input label:hover ~ label{color:#ffc107}

/* ── CART PAGE ───────────────────────────────────────────── */
.cart-layout{display:grid;grid-template-columns:1fr 350px;gap:20px;margin-top:20px;align-items:start}
.cart-items-panel{background:#fff;border-radius:8px;overflow:hidden}
.cart-item{display:flex;gap:14px;padding:16px;border-bottom:1px solid #eee;align-items:center}
.cart-item:last-child{border-bottom:0}
.cart-item-img{width:80px;height:80px;flex-shrink:0;background:#f7f8fa;border-radius:6px;display:flex;align-items:center;justify-content:center;overflow:hidden}
.cart-item-img img{width:100%;height:100%;object-fit:contain}
.cart-item-info{flex:1;min-width:0}
.cart-item-name{font-size:14px;font-weight:600;margin-bottom:4px}
.cart-item-meta{font-size:12px;color:#888;margin-bottom:8px}
.cart-item-price{font-size:15px;font-weight:700}
.cart-item-actions{display:flex;align-items:center;gap:10px;margin-top:8px}
.cart-remove{color:#ff4d4d;font-size:12px;cursor:pointer;border:none;background:none;padding:0}

.cart-summary-panel{background:#fff;border-radius:8px;padding:20px;position:sticky;top:90px}
.cart-summary-panel h3{font-size:16px;font-weight:700;padding-bottom:12px;border-bottom:1px solid #eee;margin-bottom:14px}
.summary-row{display:flex;justify-content:space-between;font-size:14px;margin-bottom:10px}
.summary-row.total{font-size:16px;font-weight:700;padding-top:10px;border-top:1px solid #eee;margin-top:10px}
.coupon-form{display:flex;gap:8px;margin:14px 0}
.coupon-form input{flex:1;height:40px;border:1px solid #ddd;border-radius:4px;padding:0 12px;font-size:13px;outline:none}
.coupon-form input:focus{border-color:#2874f0}
.coupon-btn{height:40px;padding:0 16px;background:#2874f0;color:#fff;border:none;border-radius:4px;font-size:13px;font-weight:700;cursor:pointer}
.coupon-btn:hover{background:#1859c9}
.coupon-success{color:#0f9d58;font-size:12px;font-weight:700;margin-bottom:10px}
.coupon-error{color:#ff4d4d;font-size:12px;margin-bottom:10px}
.checkout-btn{width:100%;height:48px;background:#ff6b00;color:#fff;border:none;border-radius:5px;font-size:16px;font-weight:700;cursor:pointer;margin-top:14px;transition:background .2s}
.checkout-btn:hover{background:#e05e00}

/* ── CHECKOUT ───────────────────────────────────────────── */
.checkout-layout{display:grid;grid-template-columns:1fr 380px;gap:20px;margin-top:20px;align-items:start}
.checkout-form{background:#fff;border-radius:8px;padding:24px}
.checkout-form h2{font-size:18px;font-weight:700;margin-bottom:20px}
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:15px}
.form-group{margin-bottom:16px}
.form-group label{display:block;font-size:13px;font-weight:600;color:#444;margin-bottom:6px}
.form-group input,.form-group select,.form-group textarea{width:100%;height:42px;border:1px solid #d8d8d8;border-radius:4px;padding:0 12px;font-size:14px;outline:none;background:#fff;transition:border-color .2s}
.form-group textarea{height:80px;padding:10px 12px;resize:vertical}
.form-group input:focus,.form-group select:focus,.form-group textarea:focus{border-color:#2874f0}
.form-error{color:#ff4d4d;font-size:12px;margin-top:4px}
.form-section-title{font-size:15px;font-weight:700;color:#333;margin-bottom:14px;padding-bottom:8px;border-bottom:1px solid #eee}

.payment-methods{margin-top:20px}
.payment-option{border:2px solid #eee;border-radius:6px;padding:14px 16px;margin-bottom:10px;cursor:pointer;transition:border-color .2s}
.payment-option.selected,.payment-option:hover{border-color:#2874f0}
.payment-option label{display:flex;align-items:center;gap:10px;cursor:pointer;font-size:14px;font-weight:600}
.payment-option input[type=radio]{width:18px;height:18px;accent-color:#2874f0}
.payment-option .payment-desc{font-size:12px;color:#888;margin-top:4px;margin-left:28px}
.payment-option.disabled{opacity:.5;pointer-events:none}

.order-summary-panel{background:#fff;border-radius:8px;padding:20px;position:sticky;top:90px}
.order-summary-item{display:flex;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid #f0f0f0;font-size:13px}
.order-summary-item:last-child{border-bottom:0}
.osi-img{width:50px;height:50px;border-radius:4px;background:#f5f6f8;overflow:hidden;flex-shrink:0;display:flex;align-items:center;justify-content:center}
.osi-img img{width:100%;height:100%;object-fit:contain}
.osi-info{flex:1;min-width:0}
.osi-name{font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.osi-qty{color:#888;font-size:11px}
.osi-price{font-weight:700;white-space:nowrap}

.place-order-btn{width:100%;height:50px;background:#ff6b00;color:#fff;border:none;border-radius:5px;font-size:16px;font-weight:700;cursor:pointer;margin-top:16px;transition:background .2s}
.place-order-btn:hover{background:#e05e00}

/* ── PAYMENT PAGE ───────────────────────────────────────── */
.payment-page{max-width:560px;margin:40px auto}
.payment-box{background:#fff;border-radius:10px;padding:30px;text-align:center}
.payment-box h2{font-size:22px;font-weight:700;margin-bottom:6px}
.payment-box .amount{font-size:32px;font-weight:800;color:#2874f0;margin:16px 0}
.upi-id-row{background:#f5f6f8;border-radius:6px;padding:12px 16px;display:flex;align-items:center;justify-content:space-between;gap:10px;margin:16px 0}
.upi-id-row span{font-size:15px;font-weight:700;color:#333;word-break:break-all}
.copy-btn{background:#2874f0;color:#fff;border:none;border-radius:4px;padding:6px 14px;font-size:12px;font-weight:700;cursor:pointer;white-space:nowrap}
.copy-btn:hover{background:#1859c9}
#qrcode-canvas{display:block;margin:20px auto;border:4px solid #eee;border-radius:8px}
.payment-steps{text-align:left;background:#fffbf0;border:1px solid #ffe4a0;border-radius:6px;padding:16px;margin:20px 0}
.payment-steps h4{font-size:13px;font-weight:700;margin-bottom:8px;color:#b87a00}
.payment-steps ol{padding-left:18px;font-size:13px;color:#555;line-height:2}
.proof-upload-form{margin-top:20px;text-align:left}
.proof-upload-form label{font-size:13px;font-weight:600;display:block;margin-bottom:8px}
.proof-file-input{width:100%;border:2px dashed #ddd;border-radius:6px;padding:20px;text-align:center;font-size:13px;color:#888;cursor:pointer;transition:border-color .2s}
.proof-file-input:hover{border-color:#2874f0}
.submit-proof-btn{width:100%;height:46px;background:#0f9d58;color:#fff;border:none;border-radius:5px;font-size:15px;font-weight:700;cursor:pointer;margin-top:14px}
.submit-proof-btn:hover{background:#0a8047}

/* ── ORDER SUCCESS ───────────────────────────────────────── */
.order-success{max-width:560px;margin:50px auto;text-align:center}
.success-icon{font-size:72px;margin-bottom:20px}
.order-success h1{font-size:26px;font-weight:700;margin-bottom:10px}
.order-success p{font-size:15px;color:#555;margin-bottom:8px}
.order-number-badge{display:inline-block;background:#edf4ff;color:#2874f0;padding:8px 20px;border-radius:20px;font-size:16px;font-weight:800;margin:16px 0}
.success-actions{display:flex;gap:12px;justify-content:center;margin-top:28px;flex-wrap:wrap}

/* ── ORDERS LIST ─────────────────────────────────────────── */
.orders-list{margin-top:20px}
.order-card{background:#fff;border-radius:8px;border:1px solid #eee;padding:18px;margin-bottom:14px;transition:box-shadow .2s}
.order-card:hover{box-shadow:0 4px 12px rgba(0,0,0,.08)}
.order-card-header{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:8px;margin-bottom:12px;padding-bottom:12px;border-bottom:1px solid #f0f0f0}
.order-card-meta{font-size:13px;color:#666}
.order-card-meta strong{color:#222;font-size:15px}
.order-status-badge{padding:4px 10px;border-radius:3px;font-size:11px;font-weight:700}
.status-pending{background:#fff4dd;color:#b76b00}
.status-confirmed{background:#edf4ff;color:#2874f0}
.status-processing{background:#fff4dd;color:#b76b00}
.status-shipped{background:#edf4ff;color:#2874f0}
.status-delivered{background:#eaf8f0;color:#0f9d58}
.status-cancelled{background:#fff0f0;color:#e33f3f}
.status-returned{background:#f5f0ff;color:#7b42d8}
.status-refunded{background:#f5f0ff;color:#7b42d8}
.order-items-preview{font-size:13px;color:#555}

/* ── ACCOUNT ─────────────────────────────────────────────── */
.account-layout{display:grid;grid-template-columns:240px 1fr;gap:20px;margin-top:20px;align-items:start}
.account-sidebar{background:#fff;border-radius:8px;overflow:hidden}
.account-nav-item{display:flex;align-items:center;gap:12px;padding:14px 18px;font-size:14px;font-weight:600;color:#444;border-left:3px solid transparent;transition:all .2s}
.account-nav-item:hover,.account-nav-item.active{color:#2874f0;background:#edf4ff;border-left-color:#2874f0}
.account-content{background:#fff;border-radius:8px;padding:24px}
.account-content h2{font-size:18px;font-weight:700;margin-bottom:20px;padding-bottom:12px;border-bottom:1px solid #eee}

/* ── AUTH PAGES ─────────────────────────────────────────── */
.auth-page{min-height:80vh;display:flex;align-items:center;justify-content:center;padding:40px 20px}
.auth-box{width:100%;max-width:440px;background:#fff;border-radius:10px;padding:36px;box-shadow:0 4px 20px rgba(0,0,0,.08)}
.auth-logo{text-align:center;margin-bottom:24px;font-size:28px;font-weight:800;color:#2874f0}
.auth-logo span{color:#ff6b00}
.auth-box h2{font-size:22px;font-weight:700;text-align:center;margin-bottom:6px}
.auth-box p{text-align:center;color:#777;font-size:14px;margin-bottom:24px}
.auth-submit{width:100%;height:46px;background:#2874f0;color:#fff;border:none;border-radius:5px;font-size:16px;font-weight:700;cursor:pointer;margin-top:8px;transition:background .2s}
.auth-submit:hover{background:#1859c9}
.auth-links{text-align:center;margin-top:20px;font-size:13px;color:#666}
.auth-links a{color:#2874f0;font-weight:600}

/* ── ALERTS / FLASH ─────────────────────────────────────── */
.alert{padding:12px 16px;border-radius:6px;font-size:14px;margin-bottom:14px;display:flex;align-items:flex-start;gap:10px}
.alert-success{background:#eaf8f0;color:#0f7f47;border:1px solid #b6ecd0}
.alert-error{background:#fff0f0;color:#c0392b;border:1px solid #ffc8c8}
.alert-info{background:#edf4ff;color:#1a5fb4;border:1px solid #b6d4ff}
.alert-warning{background:#fffbf0;color:#856404;border:1px solid #ffe4a0}

/* ── PAGINATION ─────────────────────────────────────────── */
.pagination{display:flex;justify-content:center;align-items:center;gap:6px;margin-top:24px;flex-wrap:wrap}
.page-link{display:inline-flex;align-items:center;justify-content:center;min-width:36px;height:36px;padding:0 12px;border:1px solid #ddd;border-radius:4px;font-size:13px;color:#444;background:#fff;transition:all .2s}
.page-link:hover,.page-link.active{background:#2874f0;border-color:#2874f0;color:#fff}
.page-link.disabled{opacity:.4;pointer-events:none}

/* ── EMPTY STATE ─────────────────────────────────────────── */
.empty-state{text-align:center;padding:60px 20px}
.empty-state .icon{font-size:64px;margin-bottom:16px}
.empty-state h3{font-size:20px;font-weight:700;margin-bottom:8px}
.empty-state p{color:#888;font-size:14px;margin-bottom:24px}

/* ── SEARCH RESULTS ─────────────────────────────────────── */
.search-header{background:#fff;padding:16px 20px;border-radius:8px;margin-bottom:16px;font-size:14px;color:#555}
.search-header strong{color:#222}

/* ── BUTTONS (general) ──────────────────────────────────── */
.btn{display:inline-flex;align-items:center;justify-content:center;height:42px;padding:0 20px;border-radius:4px;font-size:14px;font-weight:700;cursor:pointer;border:none;transition:background .2s,color .2s}
.btn-primary{background:#2874f0;color:#fff}
.btn-primary:hover{background:#1859c9}
.btn-secondary{background:#fff;color:#2874f0;border:2px solid #2874f0}
.btn-secondary:hover{background:#edf4ff}
.btn-danger{background:#ff4d4d;color:#fff}
.btn-danger:hover{background:#d93636}
.btn-sm{height:34px;padding:0 14px;font-size:12px}

/* ── STATIC PAGES ─────────────────────────────────────────── */
.static-content{background:#fff;border-radius:8px;padding:30px;margin-top:20px;line-height:1.8;font-size:14px;color:#444}
.static-content h2{font-size:20px;font-weight:700;margin:24px 0 10px;color:#222}
.static-content h3{font-size:16px;font-weight:700;margin:18px 0 8px;color:#333}
.static-content p{margin-bottom:14px}
.static-content ul,.static-content ol{padding-left:22px;margin-bottom:14px}
.static-content li{margin-bottom:6px}

/* ── ADDRESS CARDS ───────────────────────────────────────── */
.address-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}
.address-card{border:2px solid #eee;border-radius:8px;padding:16px;position:relative;transition:border-color .2s}
.address-card.default{border-color:#2874f0}
.address-card .default-badge{position:absolute;top:-10px;right:10px;background:#2874f0;color:#fff;font-size:10px;font-weight:800;padding:3px 8px;border-radius:10px}
.address-card h4{font-size:14px;font-weight:700;margin-bottom:6px}
.address-card p{font-size:12px;color:#666;line-height:1.6}
.address-card-actions{display:flex;gap:8px;margin-top:10px}

/* ── ORDER DETAIL ─────────────────────────────────────────── */
.order-detail-grid{display:grid;grid-template-columns:1fr 320px;gap:20px;margin-top:20px;align-items:start}
.order-items-table{width:100%;border-collapse:collapse;font-size:13px}
.order-items-table th{padding:10px 14px;background:#f8f9fa;text-align:left;font-size:11px;color:#777;text-transform:uppercase;letter-spacing:.3px}
.order-items-table td{padding:12px 14px;border-bottom:1px solid #f0f0f0;vertical-align:middle}

/* ── TRACKING ─────────────────────────────────────────────── */
.tracking-steps{padding:20px 0}
.tracking-step{display:flex;gap:14px;align-items:flex-start;padding-bottom:24px;position:relative}
.tracking-step:not(:last-child):before{content:'';position:absolute;left:14px;top:30px;width:2px;height:calc(100% - 14px);background:#e0e0e0}
.tracking-step.done:not(:last-child):before{background:#0f9d58}
.step-icon{width:30px;height:30px;border-radius:50%;background:#e0e0e0;display:flex;align-items:center;justify-content:center;font-size:14px;flex-shrink:0;z-index:1}
.tracking-step.done .step-icon{background:#0f9d58;color:#fff}
.tracking-step.active .step-icon{background:#2874f0;color:#fff}
.step-content h4{font-size:13px;font-weight:700}
.step-content p{font-size:11px;color:#aaa;margin-top:2px}

/* ── TABLES ───────────────────────────────────────────────── */
.data-table{width:100%;border-collapse:collapse;font-size:13px}
.data-table th{padding:12px 16px;background:#f8f9fa;text-align:left;font-size:11px;color:#777;text-transform:uppercase;letter-spacing:.3px;font-weight:700;white-space:nowrap}
.data-table td{padding:12px 16px;border-bottom:1px solid #f0f0f0;vertical-align:middle}
.data-table tr:last-child td{border-bottom:0}
.data-table tr:hover td{background:#fafcff}
.table-wrap{overflow-x:auto}

/* ── CONTACT PAGE ─────────────────────────────────────────── */
.contact-grid{display:grid;grid-template-columns:1fr;gap:24px;margin-top:20px}
.contact-info{background:#fff;border-radius:8px;padding:24px}
.contact-info-item{display:flex;gap:12px;margin-bottom:20px}
.contact-icon{width:40px;height:40px;background:#edf4ff;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#2874f0;font-size:16px;flex-shrink:0}

/* ================================================================
   RESPONSIVE
   ================================================================ */

/* Tablet 1100px */
@media(max-width:1100px){
  .product-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
  .cat-product-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .features{grid-template-columns:repeat(2,1fr)}
  .footer-main{grid-template-columns:repeat(2,1fr);gap:25px}
  .product-detail-layout{grid-template-columns:1fr;gap:20px}
}

/* Tablet 900px */
@media(max-width:900px){
  .cat-layout{grid-template-columns:1fr}
  .filter-sidebar{position:static;display:none}
  .filter-sidebar.open{display:block}
  .cart-layout{grid-template-columns:1fr}
  .checkout-layout{grid-template-columns:1fr}
  .account-layout{grid-template-columns:1fr}
  .order-detail-grid{grid-template-columns:1fr}
  .contact-grid{grid-template-columns:1fr}
  .address-grid{grid-template-columns:1fr}
  .form-row{grid-template-columns:1fr}
}

/* Mobile 800px */
@media(max-width:800px){
  .container{padding:0 12px}
  .header{position:relative}
  .header-main{min-height:auto;padding:12px 0;display:grid;grid-template-columns:1fr auto;gap:12px}
  .logo{font-size:22px}
  .header-links{gap:15px;font-size:13px}
  .search-box{grid-column:1 / -1;grid-row:2;max-width:none}
  .category-list{gap:22px;min-height:42px}
  .category-list a{padding:12px 0;font-size:12px}
  .product-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:12px}
  .home-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .cat-product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .hero-text h1{font-size:26px}
  .hero-stats{gap:18px}
  .hero-right{display:none}
  .features{padding:18px;gap:15px}
  .footer-main{padding:25px 12px;gap:20px}
}

/* Mobile 560px */
@media(max-width:560px){
  body{font-size:13px}
  .header-main{padding:10px 0}
  .header-links{gap:10px}
  .header-link.hide-mobile{display:none}
  .product-section{margin-top:15px}
  .section-header{padding:12px}
  .section-title{font-size:16px}
  .view-more{min-height:32px;padding:7px 11px;font-size:11px}
  .product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;padding:9px}
  .home-grid .product-card:nth-child(n+3){display:none}
  .product-actions{padding:0 8px 10px;gap:6px}
  .btn-add-cart{font-size:11px;padding:0 5px;height:34px}
  .btn-buy-now{font-size:11px;padding:0 5px;height:34px}
  .product-info{padding:10px}
  .product-title{font-size:12px;height:36px;margin-bottom:6px}
  .price{font-size:15px}
  .old-price{font-size:10px}
  .discount{font-size:10px}
  .features{grid-template-columns:1fr;padding:16px}
  .footer-main{grid-template-columns:1fr 1fr}
  .footer-main > div:first-child{grid-column:1 / -1}
  .footer h3{font-size:13px;margin-bottom:10px}
  .footer p,.footer li a{font-size:11px}
  .cart-layout{margin-top:12px}
  .auth-box{padding:24px 18px}
  .hero-text h1{font-size:22px}
  .hero-btn{padding:11px 20px;font-size:14px}
  .hero-banner{padding:35px 0}
  .product-detail-layout{padding:16px}
  .product-detail-info h1{font-size:18px}
  .product-price-block .price{font-size:22px}
  .product-detail-btns{flex-direction:column}
}

/* Very small 380px */
@media(max-width:380px){
  .logo{font-size:20px}
  .header-links{font-size:11px}
  .product-grid{gap:7px;padding:7px}
  .product-info{padding:8px}
  .product-title{font-size:11px}
  .price{font-size:14px}
  .product-actions{padding:0 6px 8px;gap:5px}
  .btn-add-cart{font-size:10px;padding:0 4px;height:32px}
  .btn-buy-now{font-size:10px;padding:0 4px;height:32px}
}
