* { margin:0; padding:0; box-sizing:border-box; }
body { font-family: Arial, sans-serif; }
.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    background: #f8f8f8;
    border-bottom: 1px solid #ddd;
}
.main-nav a { margin-right: 1rem; text-decoration: none; color:#333; }
.social-icons a { margin-left: 0.5rem; color:#555; }
.social-icons a:hover { color:#000; }
main { padding: 2rem; min-height: 60vh; }
.site-footer { text-align:center; padding:1rem; background:#f8f8f8; border-top:1px solid #ddd; }

/* ... keep previous styles ... */

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}
.product-card {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    background: white;
}
.product-card .badge {
    position: absolute;
    top: 10px; left: 10px;
    padding: 4px 8px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 4px;
    z-index: 2;
}
.badge.new-arrival { background: #4CAF50; color: white; }
.badge.sale { background: #F44336; color: white; }
.badge.limited-edition { background: #FF9800; color: white; }

.product-card img {
    width: 100%;
    display: block;
    height: auto;
}
.product-info { padding: 1rem; }
.product-name { font-size: 1.1rem; margin-bottom: 0.5rem; }
.product-price { font-weight: bold; margin-bottom: 0.5rem; }
.color-swatches { display: flex; gap: 6px; margin-bottom: 0.5rem; }
.color-swatch {
    width: 20px; height: 20px;
    border-radius: 50%;
    border: 1px solid #ccc;
    cursor: pointer;
    transition: transform 0.2s;
}
.color-swatch.active { transform: scale(1.3); border-color: #333; }
.size-selector { margin-bottom: 0.5rem; }
.size-selector select, .size-selector .size-btns {
    width: 100%; padding: 6px;
}
.add-to-cart-btn {
    width: 100%; padding: 10px;
    background: #222; color: white; border: none;
    border-radius: 4px; cursor: pointer;
    font-weight: bold;
    transition: background 0.2s;
}
.add-to-cart-btn:hover { background: #444; }
.add-to-cart-btn:disabled { background: #999; cursor: not-allowed; }

/* Floating Cart Icon */
#cart-icon {
    position: fixed; bottom: 20px; right: 20px;
    width: 50px; height: 50px;
    background: #222; color: white;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 999;
}
#cart-icon .cart-count {
    position: absolute; top: -5px; right: -5px;
    background: red; color: white;
    width: 20px; height: 20px;
    border-radius: 50%;
    font-size: 0.7rem; display: flex; align-items: center; justify-content: center;
}

/* Cart Slide-out */
.cart-slideout {
    position: fixed; top: 0; right: -350px;
    width: 300px; height: 100vh;
    background: white; box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    z-index: 1000;
    display: flex; flex-direction: column;
}
.cart-slideout.open { right: 0; }
.cart-header {
    padding: 1rem; background: #f5f5f5;
    display: flex; justify-content: space-between;
    align-items: center;
}
.cart-items { flex: 1; overflow-y: auto; padding: 1rem; }
.cart-item {
    display: flex; gap: 1rem; margin-bottom: 1rem;
    border-bottom: 1px solid #eee; padding-bottom: 1rem;
}
.cart-item img { width: 60px; height: 80px; object-fit: cover; }
.cart-item-details { flex: 1; }
.cart-item-title { font-weight: bold; }
.cart-item-remove { color: red; cursor: pointer; background: none; border: none; }
.cart-footer {
    padding: 1rem; background: #f5f5f5;
    border-top: 1px solid #ddd;
}
.cart-total { font-weight: bold; margin-bottom: 0.5rem; }
#whatsapp-order-btn {
    width: 100%; padding: 12px;
    background: #25D366; color: white;
    border: none; border-radius: 4px; font-size: 1rem;
    cursor: pointer;
}

/* Hamburger Menu */
.header-actions { display: flex; align-items: center; gap: 1rem; }
.hamburger {
    background: none; border: none; cursor: pointer;
    display: flex; flex-direction: column; gap: 4px;
}
.hamburger span {
    display: block; width: 25px; height: 3px;
    background: #333; border-radius: 2px;
}
.hamburger-menu {
    position: fixed; top: 0; right: -300px;
    width: 250px; height: 100vh;
    background: white; box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    z-index: 1100;
    padding: 2rem 1rem;
}
.hamburger-menu.open { right: 0; }
.menu-content h3 { margin-bottom: 1rem; }



/* Product Detail */
.product-detail {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}
.product-gallery {
    flex: 1 1 400px;
}
.main-image img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 8px;
}
.thumbnail-strip {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}
.thumb {
    width: 60px;
    height: 80px;
    object-fit: cover;
    border: 2px solid transparent;
    border-radius: 4px;
    cursor: pointer;
}
.thumb.active {
    border-color: #333;
}
.product-info-detail {
    flex: 1 1 300px;
}
.product-info-detail h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}
.product-info-detail .product-price {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}
.product-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin: 1rem 0;
}
.add-to-cart-btn, .buy-now-btn, .share-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}
.buy-now-btn {
    background: #25D366;
    color: white;
}
.share-btn {
    background: #eee;
    color: #333;
}
.add-to-cart-btn:disabled, .buy-now-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.stock-status {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: #666;
}
.product-description {
    margin-top: 2rem;
    line-height: 1.6;
}
.related-products {
    margin-top: 3rem;
}
.related-products h2 {
    margin-bottom: 1rem;
}


img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s ease-in;
}
img[loading="lazy"].loaded {
    opacity: 1;
}



/* Search Bar */
.search-bar {
    position: relative;
    margin: 1rem 0 2rem;
    max-width: 400px;
}
.search-bar input {
    width: 100%;
    padding: 10px 15px 10px 40px;
    border: 1px solid #ddd;
    border-radius: 25px;
    font-size: 1rem;
    outline: none;
}
.search-bar input:focus {
    border-color: #888;
}
.search-bar .search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1rem;
    color: #888;
    pointer-events: none;
}

/* No results message */
.no-results {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    padding: 2rem;
    display: none;  /* hidden by default */
}
