﻿/* ===== RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== BODY ===== */
body {
    font-family: Arial, sans-serif;
    background: #f5f5f5;
    color: #111;
    transition: 0.3s;
}

/* ===== NAVBAR ===== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 80px;
    background: #fff;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-weight: 900;
    font-size: 24px;
    letter-spacing: 2px;
}

/* ===== MENU ===== */
.menu a {
    margin-left: 25px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: 0.3s;
}

    /* hover + active */
    .menu a:hover,
    .menu a.active {
        color: #e63946;
    }

    /* underline animation */
    .menu a::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: -6px;
        width: 0%;
        height: 2px;
        background: #e63946;
        transition: 0.3s;
    }

    .menu a:hover::after,
    .menu a.active::after {
        width: 100%;
    }

/* ===== DARK BUTTON ===== */
.dark-toggle {
    padding: 6px 10px;
    border: none;
    background: #111;
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
}

/* ===== HERO ===== */
.hero-pro {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 90vh;
    padding: 0 80px;
    background: linear-gradient(135deg, #111, #1a1a1a);
    color: #fff;
}

.hero-content {
    max-width: 500px;
}

    .hero-content .sub {
        color: #f1c40f;
    }

    .hero-content h1 {
        font-size: 80px;
        font-weight: 900;
        letter-spacing: 3px;
    }

    .hero-content .desc {
        margin-top: 10px;
        color: #ccc;
    }

/* BUTTON */
.hero-buttons {
    margin-top: 25px;
}

.btn-main {
    background: #f1c40f;
    color: #111;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

    .btn-main:hover {
        transform: scale(1.08);
    }

.btn-outline {
    border: 2px solid #fff;
    padding: 10px 20px;
    border-radius: 25px;
    color: #fff;
    text-decoration: none;
    margin-left: 10px;
}

/* HERO IMAGE */
.hero-image img {
    width: 500px;
    transform: rotate(-15deg);
    filter: drop-shadow(0 30px 60px rgba(0,0,0,0.7));
    transition: 0.5s;
}

    .hero-image img:hover {
        transform: rotate(-10deg) scale(1.1);
    }

/* ===== CONTENT ===== */
.main-content {
    max-width: 1200px;
    margin: auto;
    padding: 60px 20px;
}

/* ===== TITLE ===== */
.section-title {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 25px;
    position: relative;
}

    .section-title::after {
        content: "";
        width: 70px;
        height: 4px;
        background: #e63946;
        position: absolute;
        left: 0;
        bottom: -10px;
    }

/* ===== GRID ===== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

/* ===== CARD ===== */
.product-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    transition: 0.3s;
}

    .product-card a {
        text-decoration: none;
        color: inherit;
    }

/* IMAGE */
.product-img {
    height: 260px;
    overflow: hidden;
}

    .product-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: 0.5s;
    }

/* INFO */
.product-info {
    padding: 15px;
}

    .product-info h4 {
        font-size: 18px;
        font-weight: 700;
    }

    .product-info p {
        color: #777;
    }

    .product-info strong {
        color: #e63946;
    }

/* ACTION */
.product-actions {
    display: flex;
    justify-content: space-between;
    padding: 10px 15px;
}

    .product-actions a {
        font-size: 13px;
        padding: 5px 10px;
        border-radius: 20px;
    }

        .product-actions a:first-child {
            background: #edf2ff;
            color: #4361ee;
        }

        .product-actions a:last-child {
            background: #ffe5e5;
            color: #e63946;
        }

/* HOVER */
.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

    .product-card:hover img {
        transform: scale(1.1);
    }

/* ===== PRODUCT DETAIL ===== */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 50px;
}

.main-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 20px;
}

/* THUMBS */
.thumbs {
    display: flex;
    gap: 10px;
}

    .thumbs img {
        width: 80px;
        height: 80px;
        object-fit: cover;
        border-radius: 10px;
        cursor: pointer;
    }

/* SIZE */
.size-grid {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

    .size-grid button {
        padding: 8px 14px;
        border: 1px solid #ddd;
        background: #fff;
        border-radius: 8px;
        cursor: pointer;
    }

/* BUTTON */
.actions {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}

.btn-buy {
    background: #111;
    color: #fff;
    padding: 12px 25px;
    border-radius: 25px;
    border: none;
}

.btn-fav {
    background: #ffe5e5;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
}

/* ===== FOOTER ===== */
.footer {
    margin-top: 60px;
    padding: 30px;
    background: #111;
    color: #aaa;
    text-align: center;
}

/* ===== DARK MODE ===== */
body.dark {
    background: #0f0f0f;
    color: #eee;
}

    body.dark .navbar {
        background: #111;
    }

    body.dark .product-card {
        background: #1a1a1a;
    }

    body.dark .footer {
        background: #000;
    }

    body.dark .menu a {
        color: #ccc;
    }

        body.dark .menu a:hover,
        body.dark .menu a.active {
            color: #ff4d4d;
        }

        body.dark .menu a::after {
            background: #ff4d4d;
        }

/* ===== FORM BOX ===== */
.form-box {
    max-width: 600px;
    margin: 40px auto;
    padding: 30px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* GROUP */
.form-group {
    margin-bottom: 20px;
}

/* INPUT */
.form-control {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ddd;
    margin-top: 5px;
}

/* LABEL */
.form-group label {
    font-weight: 600;
}

/* IMAGE PREVIEW */
.img-preview {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    margin-top: 10px;
}

/* HIDDEN */
.hidden {
    display: none;
}

/* BUTTON */
.form-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

.btn-save {
    background: #e63946;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
}

    .btn-save:hover {
        background: #c1121f;
    }

.btn-back {
    background: #ddd;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    color: #111;
}

    .btn-back:hover {
        background: #bbb;
    }

/* DARK MODE */
body.dark .form-box {
    background: #1a1a1a;
}

body.dark .form-control {
    background: #111;
    color: #fff;
    border: 1px solid #333;
}

/* ===== TOOLBAR SHOP ===== */
.shop-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

/* ===== SEARCH BOX ===== */
.search-box {
    display: flex;
    background: #fff;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

    .search-box input {
        border: none;
        padding: 12px 15px;
        width: 220px;
        outline: none;
    }

    .search-box select {
        border: none;
        padding: 12px;
        background: #f5f5f5;
        outline: none;
    }

    .search-box button {
        background: #e63946;
        color: #fff;
        border: none;
        padding: 0 20px;
        cursor: pointer;
        transition: 0.3s;
    }

        .search-box button:hover {
            background: #c1121f;
        }

/* ===== ADD BUTTON PRO ===== */
.btn-add-pro {
    background: linear-gradient(135deg, #111, #333);
    color: #fff;
    padding: 12px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

    .btn-add-pro:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    }

/* ===== DARK MODE FIX ===== */
body.dark .search-box {
    background: #1a1a1a;
}

    body.dark .search-box input {
        background: transparent;
        color: #fff;
    }

    body.dark .search-box select {
        background: #111;
        color: #fff;
    }

/* ===== SHOP HEADER ===== */
.shop-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    gap: 20px;
    flex-wrap: wrap;
}

/* RIGHT GROUP */
.shop-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* ===== SEARCH ===== */
.search-box {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

    .search-box input {
        border: none;
        padding: 12px 15px;
        width: 220px;
        outline: none;
    }

    .search-box select {
        border: none;
        padding: 12px;
        background: #f1f1f1;
        outline: none;
    }

    .search-box button {
        background: #e63946;
        color: #fff;
        border: none;
        padding: 0 20px;
        cursor: pointer;
        transition: 0.3s;
    }

        .search-box button:hover {
            background: #c1121f;
        }

/* ===== ADD BUTTON ===== */
.btn-add-pro {
    background: linear-gradient(135deg, #111, #333);
    color: #fff;
    padding: 12px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
    transition: 0.3s;
}

    .btn-add-pro:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .shop-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .shop-right {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .search-box {
        width: 100%;
    }

        .search-box input {
            width: 100%;
        }

    .btn-add-pro {
        width: 100%;
        text-align: center;
    }
}