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

body {
    font-family: 'Playfair Display', serif;
    color: #ffffff;
    line-height: 1.6;
    background: linear-gradient(135deg, #050505 0%, #141414 45%, #2d1b00 100%);
}

/* GLOBAL LINKS */
a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

/* HEADER + NAV */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(12px);
    z-index: 100;
    border-bottom: 1px solid rgba(212, 175, 55, 0.25);
}

.nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: linear-gradient(45deg, #D4AF37, #fff7b0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav ul {
    display: flex;
    gap: 1.5rem;
    font-family: 'Roboto', sans-serif;
    font-size: 0.9rem;
    text-transform: uppercase;
    color: #dddddd;
}

.nav a {
    position: relative;
    padding-bottom: 4px;
}

.nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #D4AF37, #B8860B);
    transition: width 0.3s;
}

.nav a:hover::after {
    width: 100%;
}

/* HERO */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 140px 1.5rem 80px;
    background:
        radial-gradient(circle at top left, rgba(212,175,55,0.15), transparent 55%),
        radial-gradient(circle at bottom right, rgba(255,255,255,0.08), transparent 60%),
        linear-gradient(135deg, #050505 0%, #141414 45%, #2d1b00 100%);
}

.hero-content h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #D4AF37, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-family: 'Roboto', sans-serif;
    color: #d0d0d0;
    max-width: 460px;
    margin: 0 auto 2rem;
}

/* CTA BUTTON */
.cta {
    background: linear-gradient(45deg, #D4AF37, #B8860B);
    border: none;
    color: #000;
    padding: 0.9rem 2.2rem;
    font-size: 1rem;
    border-radius: 999px;
    cursor: pointer;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 600;
    box-shadow: 0 12px 30px rgba(212, 175, 55, 0.5);
    transition: transform 0.25s, box-shadow 0.25s;
}

.cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(212, 175, 55, 0.7);
}

/* PRODUCTS SECTION */
.products {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 1.5rem 80px;
}

.products h2 {
    margin-top: 40px;
    font-size: 1.8rem;
    color: #D4AF37;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-align: center;
}

.product-grid {
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.8rem;
}

/* GOLD LINE CARD */
.product-card {
    background: rgba(20, 20, 20, 0.8);
    border-radius: 20px;
    padding: 1.4rem;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(16px);
    border: 1px solid rgba(212, 175, 55, 0.25);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.7);
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 20px;
    padding: 1px;
    background: linear-gradient(135deg, #D4AF37, #5f3b00);
    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.7;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 26px 60px rgba(0, 0, 0, 0.9);
}

.product-card img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 1rem;
}

.product-card h3 {
    color: #f7e7c6;
    margin-bottom: 0.3rem;
    font-size: 1.1rem;
}

.product-card p {
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.8rem;
}

.add-cart {
    width: 100%;
    border-radius: 999px;
    border: none;
    padding: 0.6rem 0.9rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: transparent;
    color: #D4AF37;
    border: 1px solid rgba(212, 175, 55, 0.6);
    cursor: pointer;
    transition: background 0.25s, color 0.25s, transform 0.2s;
}

.add-cart:hover {
    background: linear-gradient(45deg, #D4AF37, #B8860B);
    color: #000;
    transform: translateY(-2px);
}

/* FOOTER */
.footer {
    text-align: center;
    padding: 1.5rem;
    font-family: 'Roboto', sans-serif;
    font-size: 0.85rem;
    color: #b3b3b3;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    background: rgba(5, 5, 5, 0.96);
}

/* LOGIN / ADMIN SHARED BACKGROUND */
.login-body,
.admin-body {
    background:
        radial-gradient(circle at top left, rgba(212,175,55,0.2), transparent 55%),
        radial-gradient(circle at bottom right, rgba(255,255,255,0.08), transparent 60%),
        linear-gradient(135deg, #050505 0%, #141414 45%, #2d1b00 100%);
    min-height: 100vh;
    font-family: 'Roboto', sans-serif;
}

/* LOGIN PAGE */
.login-container {
    max-width: 420px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.login-card {
    width: 100%;
    background: rgba(15, 15, 15, 0.85);
    border-radius: 24px;
    padding: 2.4rem 2rem;
    text-align: center;
    backdrop-filter: blur(18px);
    border: 1px solid rgba(212, 175, 55, 0.4);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.9);
}

.login-title {
    font-size: 2rem;
    margin-bottom: 0.4rem;
    background: linear-gradient(45deg, #D4AF37, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.login-subtitle {
    color: #c9c9c9;
    font-size: 0.9rem;
    margin-bottom: 1.8rem;
}

.login-form .input-group {
    margin-bottom: 1.3rem;
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #D4AF37;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.input-group input {
    width: 100%;
    padding: 0.8rem 0.9rem;
    border-radius: 12px;
    border: 1px solid rgba(212, 175, 55, 0.4);
    background: rgba(5, 5, 5, 0.85);
    color: #ffffff;
    font-size: 0.95rem;
}

.input-group input:focus {
    outline: none;
    border-color: #D4AF37;
    box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.5);
}

.login-btn {
    margin-top: 0.4rem;
    width: 100%;
    border: none;
    border-radius: 999px;
    padding: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    cursor: pointer;
    background: linear-gradient(45deg, #D4AF37, #B8860B);
    color: #000;
    box-shadow: 0 16px 35px rgba(212, 175, 55, 0.55);
    transition: transform 0.22s, box-shadow 0.22s;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 45px rgba(212, 175, 55, 0.8);
}

/* MESSAGES */
.error,
.success {
    padding: 0.8rem 1rem;
    border-radius: 10px;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.error {
    background: rgba(220, 53, 69, 0.15);
    border: 1px solid #dc3545;
    color: #ff8080;
}

.success {
    background: rgba(40, 167, 69, 0.18);
    border: 1px solid #28a745;
    color: #63e6be;
}

/* ADMIN PANEL */
.admin-header {
    background: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(12px);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(212, 175, 55, 0.25);
}

.admin-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 90px 1.5rem 40px;
}

.admin-section {
    background: rgba(15, 15, 15, 0.85);
    border-radius: 20px;
    padding: 1.8rem 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(212, 175, 55, 0.35);
    backdrop-filter: blur(16px);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.85);
}

.admin-section h2 {
    color: #D4AF37;
    margin-bottom: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 1rem;
}

.admin-form .input-group {
    margin-bottom: 1rem;
}

.admin-btn {
    width: 100%;
    border-radius: 999px;
    border: none;
    padding: 0.8rem;
    background: linear-gradient(45deg, #D4AF37, #B8860B);
    color: #000;
    text-transform: uppercase;
    font-weight: 600;
    cursor: pointer;
}

.products-list {
    display: grid;
    gap: 0.9rem;
}

.product-item {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.8rem 0.9rem;
    background: rgba(5, 5, 5, 0.7);
    border-radius: 14px;
}

.product-item img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 10px;
}

.product-info h4 {
    color: #f7e7c6;
    font-size: 0.95rem;
}

.product-info p {
    font-size: 0.9rem;
    color: #ffffff;
}

.delete-btn {
    margin-left: auto;
    font-size: 0.8rem;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    border: 1px solid #dc3545;
    color: #ff8080;
    background: transparent;
    text-decoration: none;
    cursor: pointer;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .nav ul {
        gap: 1rem;
        font-size: 0.8rem;
    }

    .hero-content h1 {
        font-size: 2.1rem;
    }

    .product-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .delete-btn {
        margin-left: 0;
        margin-top: 0.4rem;
    }
}