:root {
    --primary-color: #DBB846;
    --primary-dark: #c4a33b;
    --primary-light: #e8c965;
    --text-white: #ffffff;
    --text-light: #f8f9fa;
    --bg-dark: #1a1a1a;
    --bg-darker: #0f0f0f;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
    color: var(--text-white);
    min-height: 100vh;
}

/* Navigation */
.navbar {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%) !important;
    box-shadow: var(--shadow-lg);
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
    color: var(--text-white) !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.nav-link {
    color: var(--text-white) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    position: relative;
    transition: all 0.3s ease;
}

.nav-link:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background-color: var(--text-white);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover:after {
    width: 80%;
}

.nav-link:hover {
    transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
    position: relative;
    overflow: hidden;
}

.carousel-item {
    height: 500px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

.carousel-item img {
    object-fit: cover;
    height: 100%;
    width: 100%;
    opacity: 0.8;
}

.carousel-caption {
    background: rgba(0, 0, 0, 0.5);
    padding: 2rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.carousel-caption h2 {
    font-size: 3rem;
    font-weight: bold;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease;
}

.carousel-caption p {
    font-size: 1.3rem;
    margin-top: 1rem;
    animation: fadeInUp 1s ease 0.2s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border: none;
    color: var(--text-white);
    padding: 0.8rem 2rem;
    font-weight: bold;
    border-radius: 50px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover:before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(219, 184, 70, 0.4);
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
}

/* Section Styling */
.section {
    padding: 4rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
}

.section-title:after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    margin: 1rem auto 0;
    border-radius: 2px;
}

/* Product Cards */
.product-card {
    background: linear-gradient(135deg, rgba(219, 184, 70, 0.1) 0%, rgba(26, 26, 26, 0.8) 100%);
    border: 1px solid rgba(219, 184, 70, 0.2);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    height: 100%;
    position: relative;
}

.product-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(219, 184, 70, 0.2) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover:before {
    opacity: 1;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(219, 184, 70, 0.3);
    border-color: var(--primary-color);
}

.product-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image {
    transform: scale(1.1);
}

.product-card-body {
    padding: 1.5rem;
    position: relative;
}

.product-title {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.product-description {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.product-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-light);
    margin-bottom: 1rem;
}

.product-links {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.product-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(219, 184, 70, 0.2);
    color: var(--text-white);
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    border: 1px solid var(--primary-color);
}

.product-link:hover {
    background: var(--primary-color);
    transform: scale(1.05);
    color: var(--text-white);
    text-decoration: none;
}

.badge-new,
.badge-promo {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: bold;
    z-index: 1;
}

.badge-new {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.badge-promo {
    background: linear-gradient(135deg, #dc3545, #fd7e14);
}

/* Contact Section */
.contact-info {
    background: rgba(219, 184, 70, 0.1);
    border: 1px solid rgba(219, 184, 70, 0.2);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 1rem;
    width: 30px;
}

.contact-item span {
    font-size: 1.1rem;
}

.map-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    height: 400px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* About Section */
.about-content {
    background: rgba(219, 184, 70, 0.1);
    border: 1px solid rgba(219, 184, 70, 0.2);
    border-radius: 15px;
    padding: 2rem;
}

.shop-image {
    width: 100%;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 2rem;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.95) 0%, rgba(219, 184, 70, 0.1) 100%), url('/assets/images/common/background.jpg');
    background-size: cover;
    background-position: center;
    color: var(--text-white);
    padding: 2rem 0;
    margin-top: 4rem;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.3);
}

.footer a {
    color: var(--primary-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--text-white);
}

/* Admin Styles */
.admin-container {
    background: rgba(219, 184, 70, 0.05);
    border-radius: 15px;
    padding: 2rem;
    margin-top: 2rem;
}

.admin-table {
    background: rgba(26, 26, 26, 0.8);
    color: var(--text-white);
    border-radius: 10px;
    overflow: hidden;
}

.admin-table th {
    background: var(--primary-color);
    color: var(--text-white);
    font-weight: bold;
    padding: 1rem;
}

.admin-table td {
    padding: 1rem;
    border-bottom: 1px solid rgba(219, 184, 70, 0.1);
}

.admin-table tr:hover {
    background: rgba(219, 184, 70, 0.1);
}

/* Form Styles */
.form-control,
.form-select {
    background: rgba(26, 26, 26, 0.8);
    border: 1px solid rgba(219, 184, 70, 0.3);
    color: var(--text-white);
    border-radius: 8px;
    padding: 0.75rem;
}

.form-control:focus,
.form-select:focus {
    background: rgba(26, 26, 26, 0.9);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(219, 184, 70, 0.25);
    color: var(--text-white);
}

.form-label {
    color: var(--primary-light);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* Modal Styles */
.modal-content {
    background: var(--bg-dark);
    color: var(--text-white);
    border: 1px solid rgba(219, 184, 70, 0.3);
}

.modal-header {
    border-bottom: 1px solid rgba(219, 184, 70, 0.2);
}

.modal-footer {
    border-top: 1px solid rgba(219, 184, 70, 0.2);
}

/* Loading Animation */
.loading {
    text-align: center;
    padding: 3rem;
}

.spinner {
    border: 4px solid rgba(219, 184, 70, 0.2);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .carousel-caption h2 {
        font-size: 2rem;
    }

    .carousel-caption p {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .product-card {
        margin-bottom: 2rem;
    }
}

/* Fix for nav-link active state */
.nav-tabs .nav-link.active {
    color: var(--bg-dark) !important;
    background-color: var(--text-white) !important;
    border-color: var(--primary-color);
}

/* Fix for Summernote editor visibility */
.note-editable {
    background-color: var(--text-white) !important;
    color: var(--bg-dark) !important;
}