/* assets/css/store.css */
body, html { 
    margin: 0; padding: 0; 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; 
    background-color: #f0f2f5; color: #1c1e21; 
    -webkit-tap-highlight-color: transparent;
    overflow-x: hidden;
}

/* Header UI Elements */
.fixed-header-container { 
    position: fixed; top: 0; width: 100%; 
    background: #ffffff; z-index: 1000; 
    box-shadow: 0 2px 4px rgba(0,0,0,0.08); 
}
header { 
    height: 60px; display: flex; 
    justify-content: space-between; align-items: center; 
    padding: 0 16px; box-sizing: border-box; 
}
.brand { font-weight: 800; font-size: 1.4rem; color: #d32f2f; letter-spacing: 0.5px; }
.cart-icon { position: relative; font-size: 1.5rem; cursor: pointer; color: #1c1e21; }
#cart-count-badge { 
    position: absolute; top: -4px; right: -8px; 
    background: #d32f2f; color: #ffffff; 
    font-size: 0.7rem; padding: 2px 6px; 
    border-radius: 10px; font-weight: bold; 
}

/* Category Filter Layout Row */
.filter-row { 
    display: flex; gap: 8px; padding: 10px 16px; 
    overflow-x: auto; background: #ffffff; 
    border-top: 1px solid #f0f2f5; white-space: nowrap; 
    -webkit-overflow-scrolling: touch; 
}
.filter-row::-webkit-scrollbar { display: none; }
.filter-tab { 
    background: #f0f2f5; color: #65676b; border: none; 
    padding: 8px 16px; font-weight: 600; font-size: 0.85rem; 
    border-radius: 20px; cursor: pointer; transition: all 0.2s ease; 
}
.filter-tab.active { background: #d32f2f; color: #ffffff; }

/* Responsive Media Feed Container */
.feed-container { 
    margin-top: 120px; padding: 12px; 
    display: flex; flex-direction: column; align-items: center; 
}
.product-card { 
    width: 100%; max-width: 500px; 
    background: #ffffff; margin-bottom: 16px; 
    border-radius: 12px; overflow: hidden; 
    box-shadow: 0 1px 3px rgba(0,0,0,0.1); box-sizing: border-box; 
}

/* Aspect-Ratio Guard (Strict 1080x1080 Matrix Setup) */
.image-wrapper { 
    width: 100%; position: relative; 
    padding-top: 100%; /* Forces a clean, uncropped square layout box */
    background-color: #ffffff; 
}
.product-img { 
    position: absolute; top: 0; left: 0; 
    width: 100%; height: 100%; 
    object-fit: cover; display: block; 
}

.card-content { padding: 14px; }
.product-meta h2 { margin: 0; font-size: 1.15rem; color: #1c1e21; text-transform: uppercase; }
.product-meta p { margin: 4px 0; color: #65676b; font-size: 0.85rem; font-weight: 500; }
.price-section { margin: 8px 0; font-weight: 700; font-size: 1.1rem; color: #d32f2f; }

/* Horizontal Size Run Pills Grid Matrix */
.size-pills { 
    display: flex; gap: 10px; margin-top: 12px; 
    overflow-x: auto; padding-bottom: 6px; 
    -webkit-overflow-scrolling: touch; 
}
.size-pills::-webkit-scrollbar { display: none; }
.pill-box { display: flex; flex-direction: column; align-items: center; min-width: 55px; cursor: pointer; }
.pill { 
    width: 100%; text-align: center; padding: 8px 0; 
    border-radius: 12px; font-size: 0.75rem; font-weight: 700; 
    border: 2px solid #e4e6eb; box-sizing: border-box; 
}
.in-stock { background: #ffffff; color: #1877f2; border-color: #e4e6eb; }
.out-stock { background: #f2f3f5; color: #bcc0c4; border-color: #f2f3f5; pointer-events: none; }
.pill-box.selected .pill { background: #1877f2; color: #ffffff; border-color: #1877f2; }
.pill-rate { font-size: 0.7rem; margin-top: 4px; color: #4a5568; font-weight: bold; }

/* Control Action Row Layout */
.actions { display: flex; gap: 20px; margin-top: 14px; border-top: 1px solid #e4e6eb; padding-top: 10px; }
.btn { background: none; border: none; font-size: 1.4rem; cursor: pointer; color: #4b5563; padding: 4px; }
.btn-like.active { color: #f02849; }

/* Add these parameters to assets/css/store.css if not already present */
.cart-header {
    background: #ffffff; height: 60px; display: flex; 
    align-items: center; padding: 0 16px; 
    box-shadow: 0 2px 4px rgba(0,0,0,0.05); 
    position: fixed; top: 0; width: 100%; 
    box-sizing: border-box; z-index: 1000; 
}
.cart-header a { 
    text-decoration: none; color: #d32f2f; 
    font-weight: 700; display: flex; 
    align-items: center; gap: 8px; font-size: 0.95rem;
}

.cart-container { 
    max-width: 600px; margin: 80px auto 140px; 
    padding: 12px; box-sizing: border-box; 
}
.cart-container h2 { 
    font-size: 1.3rem; margin-bottom: 16px; 
    color: #1a202c; display: flex; 
    justify-content: space-between; align-items: center; 
}

/* Card Manifest Unit Layout */
.cart-card { 
    background: #ffffff; border-radius: 12px; 
    display: flex; padding: 12px; margin-bottom: 12px; 
    box-shadow: 0 1px 3px rgba(0,0,0,0.1); 
    position: relative; box-sizing: border-box;
}
.item-img { 
    width: 80px; height: 80px; 
    object-fit: cover; border-radius: 8px; 
    margin-right: 14px; background: #f7fafc;
}
.item-details { 
    flex: 1; display: flex; 
    flex-direction: column; justify-content: center; 
}
.item-details h3 { 
    margin: 0; font-size: 1rem; 
    color: #1a202c; text-transform: uppercase; 
}
.item-details p { margin: 3px 0; color: #718096; font-size: 0.8rem; }
.lot-badge { 
    background: #feebc8; color: #c05621; 
    padding: 2px 6px; font-size: 0.7rem; 
    font-weight: 700; border-radius: 4px; 
    align-self: flex-start; margin-bottom: 4px; 
}
.item-price { font-weight: 700; color: #1a202c; font-size: 1.05rem; margin-top: 2px; }

/* Structural Record Purge Link */
.btn-remove { 
    position: absolute; top: 12px; right: 12px; 
    background: none; border: none; color: #a0aec0; 
    cursor: pointer; font-size: 1.1rem; padding: 4px;
}
.btn-remove:hover { color: #e53e3e; }

/* Fixed Footer Summary Action Bar */
.summary-bar { 
    position: fixed; bottom: 0; left: 0; width: 100%; 
    background: #ffffff; box-shadow: 0 -4px 10px rgba(0,0,0,0.06); 
    padding: 16px; box-sizing: border-box; 
    display: flex; flex-direction: column; gap: 10px; 
    z-index: 1000; border-radius: 16px 16px 0 0; 
}
.summary-row { display: flex; justify-content: space-between; font-size: 1rem; font-weight: 700; }
.btn-whatsapp { 
    background: #25d366; color: #ffffff; 
    text-decoration: none; text-align: center; 
    padding: 14px; border-radius: 10px; 
    font-weight: 700; font-size: 1.05rem; 
    display: flex; align-items: center; 
    justify-content: center; gap: 8px; 
    box-shadow: 0 4px 12px rgba(37,211,102,0.25); 
}
.btn-whatsapp:active { transform: scale(0.98); }

.empty-cart { text-align: center; padding: 60px 16px; color: #718096; }
.empty-cart i { font-size: 3rem; color: #cbd5e0; margin-bottom: 12px; }