* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f8f6fc;
    color: #2d2a3e;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    background: #ffffff;
    color: #3d3a5e;
    padding: 16px 0;
    box-shadow: 0 2px 16px rgba(180, 160, 220, 0.12);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
}

.logo i {
    color: #b8a0d8;
}
.logo span {
    color: #b8a0d8;
}

.nav-links {
    display: flex;
    gap: 28px;
    font-weight: 500;
    flex-wrap: wrap;
}

.nav-links a {
    transition: 0.2s;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
}

.nav-links a:hover {
    border-bottom-color: #c8b8e8;
    color: #9a82c8;
}

.nav-actions {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.btn-outline {
    background: transparent;
    border: 1.5px solid #c8b8e8;
    color: #8a72b8;
    padding: 6px 16px;
    border-radius: 30px;
    font-weight: 600;
    transition: 0.2s;
    cursor: pointer;
}

.btn-outline:hover {
    background: #c8b8e8;
    color: #ffffff;
}

.btn-solid {
    background: #c8b8e8;
    border: none;
    color: #ffffff;
    padding: 6px 20px;
    border-radius: 30px;
    font-weight: 600;
    transition: 0.2s;
    cursor: pointer;
}

.btn-solid:hover {
    background: #b8a8d8;
    transform: scale(1.02);
}

.btn-primary {
    background: #a890c8;
    color: #ffffff;
    padding: 12px 34px;
    border-radius: 40px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: 0.2s;
    font-size: 1rem;
}

.btn-primary:hover {
    background: #9880b8;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    border: 2px solid #a890c8;
    color: #8a72b8;
    padding: 10px 34px;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.btn-secondary:hover {
    background: #a890c8;
    color: #ffffff;
}

.btn-success {
    background: #b8a8d8;
    color: #ffffff;
    padding: 10px 24px;
    border-radius: 40px;
    border: none;
    cursor: pointer;
    transition: 0.2s;
}

.btn-success:hover {
    background: #a898c8;
}

.btn-danger {
    background: #d8a8b8;
    color: #ffffff;
    padding: 8px 18px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    transition: 0.2s;
}

.btn-danger:hover {
    background: #c898a8;
}

.btn-warning {
    background: #d8c8e8;
    color: #4a3a5e;
    padding: 8px 18px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    transition: 0.2s;
}

.btn-warning:hover {
    background: #c8b8d8;
}

.btn-sm {
    padding: 6px 16px;
    font-size: 0.85rem;
}

.user-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(168, 144, 200, 0.10);
    padding: 6px 16px 6px 12px;
    border-radius: 40px;
}

.user-badge i {
    font-size: 1.4rem;
    color: #b8a0d8;
}

.user-badge .points {
    background: #c8b8e8;
    color: #ffffff;
    padding: 2px 12px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.8rem;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, #f8f6fc 0%, #f8f6fc 100%);
    padding: 60px 0 50px;
    border-bottom: 4px solid #d8c8e8;
}

.hero .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
}

.hero-text {
    flex: 1 1 400px;
}

.hero-text h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
}

.hero-text h1 span {
    color: #b8a0d8;
}

.hero-text p {
    font-size: 1.2rem;
    color: #6a5a7e;
    margin-bottom: 24px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-image {
    flex: 1 1 300px;
    text-align: center;
}

.hero-image i {
    font-size: 12rem;
    color: #c8b8e8;
    opacity: 0.4;
}

/* Section */
.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 40px 0 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #3d3a5e;
}

.section-title i {
    color: #b8a0d8;
}

/* Category */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.category-card {
    background: #ffffff;
    padding: 20px 10px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(180, 160, 220, 0.06);
    transition: 0.25s;
    border: 1px solid #f0ecf8;
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(180, 160, 220, 0.12);
    border-color: #d8c8e8;
}

.category-card i {
    font-size: 2.8rem;
    color: #b8a8d8;
    margin-bottom: 8px;
}

.category-card span {
    display: block;
    font-weight: 600;
}

/* Product */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 28px;
    margin: 20px 0 40px;
}

.product-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 16px;
    box-shadow: 0 6px 16px rgba(180, 160, 220, 0.05);
    transition: 0.25s;
    border: 1px solid #f0ecf8;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 34px rgba(180, 160, 220, 0.10);
    border-color: #d8c8e8;
}

.product-img {
    background: #f5f0fa;
    border-radius: 16px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: #b8a8d8;
    margin-bottom: 12px;
}

.product-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.product-card .price {
    font-weight: 600;
    color: #3d3a5e;
    font-size: 1.2rem;
}

.product-card .price small {
    font-weight: 400;
    color: #9a8ab8;
    font-size: 0.8rem;
    text-decoration: line-through;
    margin-left: 8px;
}

.product-card .badge {
    background: #d8c8e8;
    color: #3d3a5e;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 30px;
    align-self: flex-start;
    margin-top: 6px;
}

.product-card .badge-sold {
    background: #d8a8b8;
    color: #ffffff;
}

.product-card .badge-pending {
    background: #d8c8a8;
    color: #3d3a5e;
}

.product-card .btn-add {
    margin-top: 14px;
    background: #a890c8;
    color: #ffffff;
    border: none;
    padding: 8px 0;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    width: 100%;
}

.product-card .btn-add:hover {
    background: #9880b8;
}

.product-card .actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}

/* Promo */
.promo-banner {
    background: #f5f0fa;
    color: #3d3a5e;
    padding: 30px;
    border-radius: 40px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    margin: 40px 0;
    border: 1px solid #e8e0f0;
}

.promo-banner h3 {
    font-size: 1.6rem;
    font-weight: 700;
}

.promo-banner h3 i {
    color: #b8a0d8;
}

.promo-banner .promo-code {
    background: #d8c8e8;
    color: #3d3a5e;
    padding: 10px 30px;
    border-radius: 60px;
    font-weight: 700;
    letter-spacing: 2px;
}

/* Form */
.auth-card {
    max-width: 480px;
    margin: 20px auto;
    background: #ffffff;
    padding: 40px 36px;
    border-radius: 32px;
    box-shadow: 0 12px 40px rgba(180, 160, 220, 0.08);
    border: 1px solid #f0ecf8;
}

.auth-card h2 {
    text-align: center;
    margin-bottom: 8px;
    color: #3d3a5e;
}

.auth-card .sub {
    text-align: center;
    color: #8a7a9e;
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1.5px solid #e8e0f0;
    font-size: 1rem;
    background: #faf8fc;
    transition: 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #c8b8e8;
    outline: none;
    box-shadow: 0 0 0 3px rgba(200, 184, 232, 0.20);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Cart */
.cart-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #ffffff;
    padding: 16px 20px;
    border-radius: 20px;
    border: 1px solid #f0ecf8;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.cart-item .item-info {
    flex: 2;
    min-width: 160px;
}

.cart-item .item-qty {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-item .item-qty button {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #e8e0f0;
    background: #ffffff;
    font-weight: 700;
    cursor: pointer;
}

.cart-item .item-qty button:hover {
    background: #a890c8;
    color: #ffffff;
}

.cart-item .item-price {
    font-weight: 700;
    font-size: 1.1rem;
    min-width: 80px;
}

.cart-summary {
    background: #ffffff;
    padding: 24px 28px;
    border-radius: 24px;
    border: 1px solid #f0ecf8;
    margin-top: 20px;
}

.cart-summary .row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f5f0fa;
}

.cart-summary .row:last-child {
    border-bottom: none;
    font-weight: 700;
    font-size: 1.2rem;
}

/* Profile */
.profile-card {
    background: #ffffff;
    border-radius: 28px;
    padding: 30px;
    border: 1px solid #f0ecf8;
}

.profile-card .avatar {
    font-size: 4rem;
    color: #b8a8d8;
    background: #f5f0fa;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Place */
.place-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 24px;
    margin: 20px 0 40px;
}

.place-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 20px;
    border: 1px solid #f0ecf8;
    transition: 0.2s;
}

.place-card:hover {
    border-color: #d8c8e8;
}

.place-card i {
    font-size: 2.2rem;
    color: #b8a8d8;
    margin-right: 6px;
}

.place-card .gps {
    font-size: 0.85rem;
    color: #8a7a9e;
}

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-box {
    background: #ffffff;
    padding: 20px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid #f0ecf8;
}

.stat-box .num {
    font-size: 2rem;
    font-weight: 700;
    color: #3d3a5e;
}

/* Review */
.review-item {
    background: #ffffff;
    padding: 16px 20px;
    border-radius: 20px;
    border: 1px solid #f0ecf8;
    margin-bottom: 12px;
}

.review-item .stars {
    color: #d8c8e8;
    letter-spacing: 2px;
}

.review-item .review-meta {
    color: #8a7a9e;
    font-size: 0.85rem;
}

/* Admin */
.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.admin-card {
    background: #ffffff;
    padding: 24px;
    border-radius: 20px;
    border: 1px solid #f0ecf8;
    text-align: center;
    transition: 0.2s;
    cursor: pointer;
}

.admin-card:hover {
    border-color: #d8c8e8;
    transform: translateY(-4px);
}

.admin-card i {
    font-size: 2.5rem;
    color: #b8a8d8;
}

.admin-card h4 {
    margin-top: 8px;
}

/* Table */
.table-responsive {
    overflow-x: auto;
}

table {
    width: 100%;
    background: #ffffff;
    border-radius: 16px;
    border-collapse: collapse;
    overflow: hidden;
}

table th {
    background: #a890c8;
    color: #ffffff;
    padding: 12px 16px;
    text-align: left;
}

table td {
    padding: 12px 16px;
    border-bottom: 1px solid #f0ecf8;
}

table tr:hover {
    background: #faf8fc;
}

/* Alert */
.alert {
    padding: 12px 20px;
    border-radius: 12px;
    margin-bottom: 16px;
}

.alert-success {
    background: #e8f0e8;
    color: #3a5a3a;
    border: 1px solid #d0e0d0;
}

.alert-danger {
    background: #f8e8ec;
    color: #7a3a4a;
    border: 1px solid #f0d0d8;
}

.alert-warning {
    background: #f8f0e0;
    color: #7a6a3a;
    border: 1px solid #f0e0c8;
}

/* Footer */
.footer {
    background: #f5f0fa;
    color: #5a4a7a;
    padding: 40px 0 20px;
    margin-top: 40px;
    border-top: 1px solid #e8e0f0;
}

.footer .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
}

.footer h4 {
    color: #b8a0d8;
    margin-bottom: 12px;
}

.footer ul {
    list-style: none;
}

.footer ul li {
    margin-bottom: 6px;
}

.footer ul li a:hover {
    color: #b8a0d8;
}

.footer .social-icons {
    display: flex;
    gap: 16px;
    font-size: 1.6rem;
}

.footer .social-icons a:hover {
    color: #b8a0d8;
}

.footer-bottom {
    border-top: 1px solid #e0d8e8;
    padding-top: 20px;
    margin-top: 30px;
    text-align: center;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        gap: 16px;
    }
    .nav-links {
        justify-content: center;
        gap: 12px;
    }
    .hero-text h1 {
        font-size: 2.4rem;
    }
    .hero-image i {
        font-size: 8rem;
    }
    .promo-banner {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    .auth-card {
        padding: 24px 20px;
    }
    .cart-item {
        flex-direction: column;
        align-items: stretch;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .nav-actions {
        justify-content: center;
    }
}