* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

body {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), 
                url("https://i.pinimg.com/736x/3e/df/f2/3edff2da9d175f075fd64f96444729a7.jpg") no-repeat center center/cover;
    min-height: 100vh;
    color: white;
    background-attachment: fixed;
}

header {
    width: 100%;
    padding: 30px 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.7); 
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    color: #fff;
    font-size: 34px;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: -1px;
}

.logo span {
    color: #d46b38;
}

nav ul {
    display: flex;
    list-style: none;
    align-items: center;
}

nav ul li a {
    margin-left: 35px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    text-decoration: none;
    transition: 0.3s ease;
    font-weight: 600;
}

nav ul li a:hover {
    color: #d46b38;
}

.store-container {
    max-width: 1200px;
    margin: 60px auto;
    padding: 20px;
}

.title {
    text-align: center;
    font-size: clamp(32px, 5vw, 42px);
    margin-bottom: 50px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 30px;
}

.product {
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(10px);
    padding: 25px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.product:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.12);
    border-color: #d46b38;
}

.product img {
    width: 70%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 15px;
    display: block;
    margin: 0 auto 15px auto;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.product h3 {
    font-size: 22px;
    margin-bottom: 8px;
    color: #fff;
}

.product p {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 10px;
    min-height: 40px;
}

.stars {
    margin: 8px 0;
    color: #ffcc00;
    font-size: 14px;
}

.price {
    display: block;
    margin: 15px 0;
    font-size: 24px;
    font-weight: 800;
    color: #fff;
}

.product button {
    width: 100%;
    padding: 14px;
    background: #d46b38;
    border: none;
    color: white;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    transition: 0.3s;
    text-transform: uppercase;
    font-size: 14px;
}

.product button:hover {
    background: #f07e46;
    box-shadow: 0 5px 15px rgba(212, 107, 56, 0.3);
}

.cart-icon {
    position: fixed;
    right: 30px;
    bottom: 30px;
    background: #d46b38;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 24px;
    color: white;
    z-index: 1100;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    transition: 0.3s;
}

.cart-icon:hover {
    transform: scale(1.1);
}

.cart-icon span {
    position: absolute;
    top: 0;
    right: 0;
    background: #ff3b3b;
    width: 22px;
    height: 22px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
    border: 2px solid #121212;
}

#cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: none;
    z-index: 1080;
    backdrop-filter: blur(4px);
}

.cart {
    position: fixed;
    top: 0;
    right: -100%;
    width: 400px;
    max-width: 100%;
    height: 100%;
    background: rgba(15, 15, 15, 0.98);
    backdrop-filter: blur(20px);
    padding: 30px;
    transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 1px solid rgba(255,255,255,0.1);
    z-index: 1090;
    display: flex;
    flex-direction: column;
}

.cart.active {
    right: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 22px;
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 15px;
}

.close-cart {
    background: transparent;
    border: none;
    color: white;
    font-size: 32px;
    cursor: pointer;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
}

.cart-item {
    background: rgba(255,255,255,0.05);
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 15px;
    border: 1px solid rgba(255,255,255,0.1);
}

.qty-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
}

.qty-controls button {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: none;
    background: rgba(255,255,255,0.15);
    color: white;
    cursor: pointer;
    font-size: 18px;
    transition: 0.2s;
}

.qty-controls button:hover {
    background: #d46b38;
}

.cart-footer {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
}

.cart-total {
    font-size: 20px;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.buy-btn {
    width: 100%;
    padding: 15px;
    background: #d46b38;
    border: none;
    color: white;
    border-radius: 12px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    transition: 0.3s;
}

.buy-btn:hover {
    background: #f07e46;
}

.qty-controls .remove-item-btn {
    background: rgba(255, 59, 59, 0.1);
    color: #ff3b3b;
    border: 1px solid rgba(255, 59, 59, 0.2);
    width: 35px;
    height: 35px;
    border-radius: 8px;
    margin-left: auto;
}

.qty-controls .remove-item-btn:hover {
    background: #ff3b3b;
    color: white;
}

.loader {
    border: 5px solid rgba(255, 255, 255, 0.1);
    border-left-color: #d46b38;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 992px) {
    header {
        padding: 20px 40px;
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 20px;
        gap: 20px;
    }
    nav ul li a {
        margin: 0 15px;
        font-size: 16px;
    }
    .logo { font-size: 28px; }
    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 20px;
    }
    .cart { width: 100%; }
}

@media (max-width: 480px) {
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    nav ul li a {
        margin: 0 8px;
        font-size: 14px;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .product img {
        width: 60%;
    }
}