:root {
    --primary: #00bcd4;
    --primary-dark: #0097a7;
    --secondary: #1e3a8a;

    --dark: #0f172a;
    --dark-light: #1e293b;

    --text: #333;
    --muted: #666;

    --white: #fff;
    --light: #f5f7fa;
    --surface: #f8fafc;

    --border: #e2e8f0;
    --danger: #dc2626;
    --danger-dark: #991b1b;
    --success: #00b894;
    --warning: #f59e0b;

    --shadow-sm: 0 5px 15px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 15px 35px rgba(0, 0, 0, 0.12);

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 12px;

    --container: 1100px;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}


html {
    scroll-behavior: smooth;
}


body {
    min-height: 100vh;
    background: #f5f5f5;
    color: var(--text);
    line-height: 1.6;
}


img {
    display: block;
    max-width: 100%;
}


button,
input,
select,
textarea {
    font: inherit;
}


button {
    cursor: pointer;
}


a {
    color: inherit;
}


.btn {
    display: inline-block;
    padding: 14px 30px;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--primary);
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    transition:
        background 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease;
}


.btn:hover {
    background: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
}


/* Header */

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    padding: 18px 8%;
    background: var(--dark);
    color: var(--white);
    flex-wrap: wrap;
}


.logo h2 {
    color: var(--primary);
    font-size: 30px;
}


.logo a {
    color: var(--primary);
    text-decoration: none;
    font-size: 30px;
    font-weight: 700;
}


nav ul {
    display: flex;
    align-items: center;
    gap: 25px;
    list-style: none;
}


nav a {
    color: var(--white);
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
}


nav a:hover {
    color: var(--primary);
}


.icons {
    display: flex;
    align-items: center;
    gap: 18px;
}


.icons a {
    color: var(--white);
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s ease;
}


.icons a:hover {
    color: var(--primary);
}


/* Search */

.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
}


.search-box input {
    width: 220px;
    padding: 10px 12px;
    border: none;
    border-radius: var(--radius-sm);
    outline: none;
    background: var(--white);
    color: var(--text);
}


.search-box button {
    padding: 10px 18px;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--primary);
    color: var(--white);
    transition: background 0.3s ease;
}


.search-box button:hover {
    background: var(--primary-dark);
}


/* Hero */

.hero {
    padding: 90px 20px;
    background: linear-gradient(
        to right,
        var(--dark),
        var(--secondary)
    );
    color: var(--white);
    text-align: center;
}


.hero h1 {
    margin-bottom: 20px;
    font-size: 50px;
    line-height: 1.2;
}


.hero p {
    max-width: 700px;
    margin: 0 auto 30px;
    font-size: 20px;
}


/* Categories */

.categories {
    padding: 80px 8%;
    background: var(--white);
}


.categories h2,
.products h2 {
    margin-bottom: 40px;
    font-size: 36px;
    text-align: center;
}


.category-box {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
}


.category {
    width: 220px;
    padding: 35px;
    background: var(--surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    text-align: center;
    cursor: pointer;
    transition:
        transform 0.3s ease,
        background 0.3s ease,
        color 0.3s ease;
}


.category:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-8px);
}


/* Products */

.products {
    padding: 80px 8%;
    background: #f5f5f5;
}


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


.product-card {
    overflow: hidden;
    width: 100%;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}


.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}


.product-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}


.product-card h3 {
    margin: 15px 10px 8px;
}


.product-card p {
    color: var(--dark);
    font-size: 22px;
    font-weight: 700;
}


.product-card button {
    padding: 12px 25px;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--dark);
    color: var(--white);
    transition:
        background 0.3s ease,
        transform 0.3s ease;
}


.product-card button:hover {
    background: var(--primary);
    transform: translateY(-2px);
}


.add-to-cart {
    margin: 20px;
}


.wishlist-btn {
    width: calc(100% - 40px);
    margin: 10px 20px 0;
    padding: 12px;
    border: 2px solid #ff4d6d;
    border-radius: var(--radius-sm);
    background: var(--white);
    color: #ff4d6d;
    font-size: 16px;
    font-weight: 700;
    transition:
        background 0.3s ease,
        color 0.3s ease;
}


.wishlist-btn:hover {
    background: #ff4d6d;
    color: var(--white);
}


#noResults {
    grid-column: 1 / -1;
}


/* Newsletter */

.newsletter {
    padding: 70px 8%;
    background: var(--secondary);
    color: var(--white);
    text-align: center;
}


.newsletter h2 {
    margin-bottom: 25px;
    font-size: 34px;
}


.newsletter input {
    width: 320px;
    max-width: 90%;
    margin: 10px;
    padding: 14px;
    border: none;
    border-radius: var(--radius-sm);
    outline: none;
}


.newsletter button {
    padding: 14px 25px;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--primary);
    color: var(--white);
    transition: background 0.3s ease;
}


.newsletter button:hover {
    background: var(--primary-dark);
}


/* Footer */

footer {
    padding: 25px;
    background: var(--dark);
    color: var(--white);
    text-align: center;
}


/* Product Details */

.product-details {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    padding: 80px 8%;
    background: var(--white);
    flex-wrap: wrap;
}


.product-image img {
    width: 450px;
    max-width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}


.product-info {
    max-width: 500px;
}


.product-info h1 {
    margin-bottom: 15px;
    color: var(--dark);
    font-size: 40px;
}


.product-info h3 {
    margin-bottom: 15px;
    color: var(--warning);
}


.product-info h2 {
    margin-bottom: 20px;
    color: #0ea5e9;
    font-size: 35px;
}


.product-info p {
    margin-bottom: 25px;
    color: #555;
    font-size: 18px;
    line-height: 1.8;
}


.product-info button {
    margin: 10px 10px 10px 0;
    padding: 14px 30px;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--dark);
    color: var(--white);
    font-size: 16px;
    transition: background 0.3s ease;
}


.product-info button:hover {
    background: var(--primary);
}


/* Product Description */

.description {
    padding: 70px 8%;
    background: var(--surface);
}


.description h2 {
    margin-bottom: 25px;
    font-size: 34px;
    text-align: center;
}


.description p {
    max-width: 900px;
    margin: auto;
    color: #555;
    font-size: 18px;
    line-height: 1.8;
    text-align: center;
}


/* Cart */

.cart-page {
    width: 90%;
    max-width: 1000px;
    margin: 60px auto;
}


.cart-page h1 {
    margin-bottom: 40px;
    color: var(--dark);
    font-size: 40px;
    text-align: center;
}


.cart-item {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 30px;
    padding: 20px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}


.cart-item img {
    width: 220px;
    border-radius: var(--radius-md);
}


.cart-item h2 {
    margin-bottom: 10px;
}


.cart-item p {
    margin-bottom: 20px;
    color: var(--primary);
    font-size: 22px;
    font-weight: 700;
}


.cart-item button {
    padding: 12px 20px;
    border: none;
    border-radius: var(--radius-sm);
    background: #222;
    color: var(--white);
    transition: background 0.3s ease;
}


.cart-item button:hover {
    background: var(--primary);
}


.cart-page h2 {
    margin: 30px 0;
}


.cart-page .btn {
    background: var(--primary);
}


.cart-page .btn:hover {
    background: var(--primary-dark);
}


/* Quantity */

.quantity-box {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 15px 0;
}


.quantity-box button {
    width: 35px;
    height: 35px;
    padding: 0;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--dark);
    color: var(--white);
    font-size: 18px;
}


.quantity-box span {
    min-width: 25px;
    font-size: 20px;
    font-weight: 700;
    text-align: center;
}


.remove-btn,
.remove-wishlist {
    border: none;
    border-radius: var(--radius-sm);
    background: var(--danger);
    color: var(--white);
    cursor: pointer;
    transition: background 0.3s ease;
}


.remove-btn {
    margin-left: 10px;
    padding: 12px 22px;
}


.remove-wishlist {
    display: inline-block;
    margin: 10px;
    padding: 12px 22px;
}


.remove-btn:hover,
.remove-wishlist:hover {
    background: var(--danger-dark);
}


/* Cart Summary */

.cart-summary {
    width: 90%;
    max-width: 1000px;
    margin: 30px auto;
    padding: 25px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}


.cart-summary h2 {
    margin-bottom: 20px;
}


.cart-summary p,
.cart-summary h3 {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin: 10px 0;
}


.cart-summary h3 {
    color: var(--dark);
    font-size: 22px;
}


.checkout-btn {
    margin-top: 20px;
}


/* Checkout */

.checkout-container {
    width: 90%;
    max-width: 600px;
    margin: 60px auto;
    padding: 35px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}


.checkout-container h1 {
    margin-bottom: 30px;
    color: var(--dark);
    text-align: center;
}


.checkout-container form {
    display: flex;
    flex-direction: column;
}


.checkout-container input,
.checkout-container select {
    width: 100%;
    margin-bottom: 18px;
    padding: 14px;
    border: 1px solid #ccc;
    border-radius: var(--radius-sm);
    outline: none;
    font-size: 16px;
    transition:
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}


.checkout-container input:focus,
.checkout-container select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 188, 212, 0.12);
}


.checkout-container button {
    padding: 15px;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--dark);
    color: var(--white);
    font-size: 17px;
    transition: background 0.3s ease;
}


.checkout-container button:hover {
    background: var(--primary);
}


/* Wishlist */

.wishlist-page {
    width: 90%;
    max-width: 1100px;
    margin: 60px auto;
}


.wishlist-page h1 {
    margin-bottom: 40px;
    color: var(--dark);
    font-size: 40px;
    text-align: center;
}


#wishlist-items {
    display: grid;
    grid-template-columns: repeat(
        auto-fit,
        minmax(280px, 1fr)
    );
    gap: 25px;
}


.wishlist-card {
    overflow: hidden;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: transform 0.3s ease;
}


.wishlist-card:hover {
    transform: translateY(-8px);
}


.wishlist-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}


.wishlist-card h3 {
    margin: 15px 0 10px;
    color: var(--dark);
}


.wishlist-card p {
    margin-bottom: 20px;
    color: var(--primary);
    font-size: 22px;
    font-weight: 700;
}


.wishlist-card .btn {
    margin: 15px 10px;
}


#emptyWishlist {
    padding: 60px 20px;
    text-align: center;
}


#emptyWishlist h2 {
    margin-bottom: 25px;
    color: var(--dark);
    font-size: 32px;
}


/* Login */

.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    padding: 60px 20px;
    background: var(--light);
}


.login-box,
.login-form {
    width: 100%;
    max-width: 450px;
    padding: 40px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}


.login-box h1,
.login-form h1 {
    margin-bottom: 10px;
    color: #222;
    font-size: 36px;
    text-align: center;
}


.login-box > p,
.login-form > p {
    margin-bottom: 30px;
    color: var(--muted);
    text-align: center;
}


.input-box {
    margin-bottom: 20px;
}


.input-box label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-size: 16px;
    font-weight: 600;
}


.input-box input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    outline: none;
    font-size: 16px;
    transition:
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}


.input-box input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 188, 212, 0.12);
}


.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 25px;
    font-size: 14px;
}


.login-options a,
.register-text a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
}


.login-options a:hover,
.register-text a:hover {
    text-decoration: underline;
}


.login-form .btn,
.login-box .btn,
.register-container .btn {
    width: 100%;
    padding: 14px;
    border: none;
    background: var(--primary);
    font-size: 18px;
}


.login-form .btn:hover,
.login-box .btn:hover,
.register-container .btn:hover {
    background: var(--primary-dark);
}


.register-text {
    margin-top: 20px;
    color: #555;
    text-align: center;
}


/* Register */

.register-section {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    padding: 60px 20px;
    background: var(--light);
}


.register-container {
    width: 100%;
    max-width: 500px;
    padding: 40px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}


.register-container h1 {
    margin-bottom: 10px;
    color: #222;
    text-align: center;
}


.register-container > p {
    margin-bottom: 30px;
    color: var(--muted);
    text-align: center;
}


/* Profile */

.profile-section {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    padding: 60px 20px;
    background: var(--light);
}


.profile-card {
    width: 100%;
    max-width: 600px;
    padding: 40px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
}


.profile-card h1 {
    margin-bottom: 35px;
    color: var(--dark);
    font-size: 36px;
}


.profile-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}


.profile-item {
    padding: 20px;
    background: var(--surface);
    border: 1px solid #e5e7eb;
    border-radius: var(--radius-md);
    text-align: left;
}


.profile-item h3 {
    margin-bottom: 10px;
    color: var(--dark);
    font-size: 18px;
}


.profile-item p {
    color: #555;
    font-size: 17px;
    font-weight: 500;
}


.profile-card .btn {
    margin-top: 35px;
}


/* Orders */

.orders-section {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    padding: 60px 20px;
    background: var(--light);
}


.orders-container {
    width: 100%;
    max-width: 900px;
    padding: 40px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}


.orders-container h1 {
    margin-bottom: 15px;
    color: var(--dark);
    font-size: 36px;
    text-align: center;
}


.orders-container > p {
    margin-bottom: 30px;
    color: var(--muted);
    text-align: center;
}


#ordersList {
    display: flex;
    flex-direction: column;
    gap: 20px;
}


.order-card {
    padding: 20px;
    background: var(--surface);
    border: 1px solid #e5e7eb;
    border-radius: var(--radius-md);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
}


.order-card h3 {
    margin-bottom: 10px;
    color: var(--dark);
}


.order-card p {
    margin: 8px 0;
    color: #555;
    text-align: left;
}


#noOrders {
    padding: 30px;
    color: #777;
    font-size: 18px;
    text-align: center;
}


.orders-container .btn {
    display: block;
    width: 250px;
    margin: 35px auto 0;
    text-align: center;
}


/* Rating */

.rating-page {
    width: 90%;
    max-width: 700px;
    margin: 60px auto;
}


.rating-page > h1 {
    margin-bottom: 35px;
    color: var(--dark);
    text-align: center;
}


.rating-box {
    padding: 30px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
}


.rating-box img {
    width: 250px;
    max-width: 100%;
    margin: 20px auto;
    border-radius: var(--radius-md);
}


.rating-box h2 {
    margin-bottom: 10px;
    color: var(--dark);
}


.rating-box h3 {
    margin-bottom: 20px;
    color: #444;
}


.stars {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 25px;
}


.stars span {
    font-size: 35px;
    cursor: pointer;
    transition: transform 0.3s ease;
}


.stars span:hover {
    transform: scale(1.2);
}


.stars .active {
    color: #facc15;
}


.rating-box textarea {
    width: 100%;
    min-height: 130px;
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    outline: none;
    resize: vertical;
    font-size: 16px;
}


.rating-box textarea:focus {
    border-color: var(--primary);
}


.rating-box .btn {
    width: 100%;
}


/* Reviews */

.reviews-section {
    width: 90%;
    max-width: 900px;
    margin: 50px auto;
}


.reviews-section h2 {
    margin-bottom: 30px;
    color: var(--dark);
    text-align: center;
}


.review-card {
    margin-bottom: 20px;
    padding: 20px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}


.review-card h3 {
    margin-bottom: 10px;
    color: var(--dark);
}


.review-card .rating {
    margin-bottom: 10px;
    color: #facc15;
    font-size: 22px;
}


.review-card p {
    color: #555;
    line-height: 1.7;
}


/* Order Success */

.success-box {
    width: 90%;
    max-width: 450px;
    padding: 40px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
}


.success-box h1 {
    margin-bottom: 15px;
    color: var(--success);
}


.success-box p {
    margin-bottom: 25px;
    color: #555;
    font-size: 18px;
}


/* Responsive */

@media (max-width: 1000px) {

    .product-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    header {
        padding-right: 5%;
        padding-left: 5%;
    }

}


@media (max-width: 768px) {

    header {
        flex-direction: column;
        padding: 20px;
        text-align: center;
    }


    nav ul {
        flex-direction: column;
        gap: 15px;
    }


    .icons {
        justify-content: center;
        flex-wrap: wrap;
    }


    .search-box {
        width: 100%;
        margin: 5px 0;
    }


    .search-box input {
        width: 100%;
    }


    .hero {
        padding: 70px 20px;
    }


    .hero h1 {
        font-size: 36px;
    }


    .hero p {
        font-size: 18px;
    }


    .categories,
    .products {
        padding: 60px 5%;
    }


    .categories h2,
    .products h2 {
        font-size: 30px;
    }


    .category-box {
        flex-direction: column;
        align-items: center;
    }


    .category {
        width: min(100%, 350px);
    }


    .product-container {
        grid-template-columns: 1fr;
    }


    .product-details {
        flex-direction: column;
        padding: 60px 5%;
        text-align: center;
    }


    .product-info {
        width: 100%;
    }


    .product-info h1 {
        font-size: 32px;
    }


    .product-info button {
        margin: 8px 4px;
    }


    .cart-item {
        flex-direction: column;
        text-align: center;
    }


    .cart-item img {
        width: 100%;
        max-width: 280px;
    }


    .cart-summary {
        width: 90%;
    }


    .checkout-container {
        width: 95%;
        margin: 40px auto;
        padding: 25px;
    }


    .login-box,
    .login-form,
    .register-container,
    .profile-card,
    .orders-container {
        padding: 25px;
    }


    .login-box h1,
    .login-form h1,
    .profile-card h1,
    .orders-container h1 {
        font-size: 28px;
    }


    .login-options {
        flex-direction: column;
        align-items: flex-start;
    }


    .profile-card .btn,
    .orders-container .btn {
        width: 100%;
    }


    .wishlist-page {
        width: 95%;
    }


    #wishlist-items {
        grid-template-columns: 1fr;
    }


    .rating-page,
    .reviews-section {
        width: 95%;
    }


    .rating-box {
        padding: 20px;
    }


    .rating-box img {
        width: 180px;
    }


    .stars span {
        font-size: 28px;
    }


    .review-card {
        padding: 15px;
    }


    .newsletter {
        padding: 60px 20px;
    }


    footer {
        padding: 20px;
    }

}


@media (max-width: 480px) {

    .logo h2,
    .logo a {
        font-size: 26px;
    }


    .hero h1 {
        font-size: 30px;
    }


    .hero p {
        font-size: 16px;
    }


    .categories h2,
    .products h2 {
        font-size: 26px;
    }


    .product-card img {
        height: 200px;
    }


    .cart-page h1,
    .wishlist-page h1 {
        font-size: 30px;
    }


    .cart-summary p,
    .cart-summary h3 {
        font-size: 14px;
    }


    .success-box {
        padding: 30px 20px;
    }


    .success-box h1 {
        font-size: 26px;
    }

}