/* Norelia - Korean Cosmetics Shop - Custom Styles */

:root {
    --primary-color: #C59D5F;
    --light-pink: #FFE4E9;
    --gold-accent: #D4AF37;
    --text-dark: #333;
    --text-muted: #6c757d;
    /* Rose gold with metallic highlights, sampled from the logo lettering */
    --rose-gold-gradient: linear-gradient(110deg, #8a5648 0%, #c48b79 22%, #f0c4b2 40%, #b57a68 58%, #e3ab98 78%, #8a5648 100%);
    --rose-gold-solid: #b57a68;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-dark);
}

/* Brand Name */
.brand-logo {
    height: 48px;
    width: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.brand-name {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-color);
    letter-spacing: 1px;
}

/* Header brand: rose gold with highlights, matching the logo lettering */
.navbar .brand-name {
    background: var(--rose-gold-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--rose-gold-solid);
    filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.6));
}

/* Navbar */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-light .navbar-nav .nav-link {
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s;
}

.navbar-light .navbar-nav .nav-link:hover {
    color: var(--primary-color);
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #B38A4D;
    border-color: #B38A4D;
}

/* Hero Section */
.hero-carousel .carousel-item img {
    aspect-ratio: 3 / 2;
    object-fit: cover;
}
.hero {
    background: linear-gradient(135deg, var(--light-pink) 0%, #fff 100%);
}

/* Category Card */
.category-card {
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #e0e0e0;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.category-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

/* Product Card */
.product-card {
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #e0e0e0;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.product-card .card-img-top {
    height: 250px;
    object-fit: cover;
}

.product-card .card-title {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-dark);
    min-height: 40px;
}

.product-card .card-body {
    padding: 1rem;
}

.product-card .card-footer {
    padding: 0.75rem 1rem;
}

/* Product Detail Page */
.product-image-main img {
    max-height: 500px;
    object-fit: contain;
}

.thumbnail-image {
    cursor: pointer;
    transition: opacity 0.3s;
    border: 2px solid transparent;
}

.thumbnail-image:hover {
    opacity: 0.7;
    border-color: var(--primary-color);
}

/* Cart */
.cart-item {
    transition: background-color 0.3s;
}

.cart-item:hover {
    background-color: #f8f9fa;
}

/* Footer */
.footer {
    border-top: 1px solid #e0e0e0;
    color: var(--rose-gold-solid);
}

.footer h5,
.footer p,
.footer .brand-name {
    width: fit-content;
    max-width: 100%;
    font-weight: 600;
    background: var(--rose-gold-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--rose-gold-solid) !important;
}

.footer .text-center {
    display: flex;
    justify-content: center;
}

.footer p {
    font-weight: 500;
}

.footer i {
    -webkit-text-fill-color: var(--rose-gold-solid);
}

.footer a {
    color: var(--rose-gold-solid);
    transition: color 0.3s;
}

.footer a:hover {
    color: #8a5648;
}

/* Badges */
.badge {
    padding: 0.5em 0.75em;
}

/* Utilities */
.cursor-pointer {
    cursor: pointer;
}

.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.border-primary {
    border-color: var(--primary-color) !important;
}

/* Forms */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(197, 157, 95, 0.25);
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Auth pages (allauth) */
.auth-wrapper {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--light-pink) 0%, #fff 100%);
}

.auth-card {
    border: 1px solid #e0e0e0;
    border-radius: 12px;
}

.auth-title {
    color: var(--primary-color);
    font-weight: 600;
}

.auth-card a:not(.btn) {
    color: var(--primary-color);
}

.auth-card input:not([type=checkbox]):not([type=radio]):not([type=hidden]),
.auth-card select,
.auth-card textarea {
    display: block;
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
}

.auth-card input:focus,
.auth-card select:focus,
.auth-card textarea:focus {
    border-color: var(--primary-color);
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(197, 157, 95, 0.25);
}

.auth-card input[type=checkbox] {
    accent-color: var(--primary-color);
}

.auth-card .btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.auth-card .btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
    .brand-name {
        font-size: 1.5rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
}
