/* ===== CSS Variables & Reset ===== */
:root {
    --primary-color: #1a1a2e;
    --secondary-color: #16213e;
    --accent-color: #0f3460;
    --gold-color: #e6b325;
    --gold-light: #f4c542;
    --text-light: #f5f5f5;
    --text-dark: #333;
    --text-muted: #6c757d;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --border-color: #dee2e6;
    --gradient-primary: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    --gradient-secondary: linear-gradient(135deg, #0f3460 0%, #16213e 100%);
    --gradient-gold: linear-gradient(135deg, #e6b325 0%, #d4af37 100%);
    --gradient-gold-hover: linear-gradient(135deg, #f4c542 0%, #e6b325 100%);
    --shadow-primary: 0 10px 30px rgba(0, 0, 0, 0.3);
    --shadow-secondary: 0 5px 15px rgba(0, 0, 0, 0.2);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.4);
    --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.1);
    --border-radius: 10px;
    --border-radius-lg: 20px;
    --border-radius-xl: 30px;
    --transition: all 0.3s ease;
    --transition-slow: all 0.5s ease;
    --transition-fast: all 0.15s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--light-color);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 2rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-bottom: 1rem;
}

.lead {
    font-size: 1.25rem;
    font-weight: 300;
}

.text-gradient {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text {
    background: linear-gradient(45deg, #fff, var(--gold-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== Layout & Containers ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.container-fluid {
    width: 100%;
    padding: 0 15px;
}

/* ===== Navigation ===== */
.navbar-premium {
    background: var(--gradient-primary) !important;
    box-shadow: var(--shadow-primary);
    padding: 15px 0;
    transition: var(--transition);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.navbar-premium.scrolled {
    padding: 10px 0;
    backdrop-filter: blur(10px);
}

.navbar-premium .navbar-brand {
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: var(--transition);
}

.navbar-premium .navbar-brand:hover {
    transform: scale(1.05);
}

.navbar-premium .nav-link {
    color: var(--text-light) !important;
    font-weight: 500;
    margin: 0 8px;
    padding: 8px 16px !important;
    border-radius: 25px;
    transition: var(--transition);
    position: relative;
}

.navbar-premium .nav-link:hover,
.navbar-premium .nav-link.active {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.navbar-premium .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-gold);
    transition: var(--transition);
    transform: translateX(-50%);
}

.navbar-premium .nav-link:hover::after,
.navbar-premium .nav-link.active::after {
    width: 80%;
}

.navbar-premium .cart-badge {
    background: var(--gradient-gold);
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 0.7rem;
    font-weight: 600;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar-toggler {
    border: none;
    padding: 4px 8px;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: none;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== Hero Section ===== */
.hero-premium {
    background: var(--gradient-primary);
    color: var(--text-light);
    /*padding: 150px 0 100px;*/
    position: relative;
    overflow: hidden;
    min-height: 65vh;
    display: flex;
    align-items: center;
}

.hero-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/assets/images/hero-pattern.png') center/cover;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-premium h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #fff, var(--gold-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: slideInLeft 1s ease-out;
}

.hero-premium .lead {
    font-size: 1.3rem;
    margin-bottom: 30px;
    opacity: 0.9;
    animation: slideInLeft 1s ease-out 0.2s both;
}

.hero-buttons {
    animation: slideInLeft 1s ease-out 0.4s both;
}

.hero-image {
    position: relative;
    animation: slideInRight 1s ease-out;
}

.hero-image img {
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-hover);
    transition: var(--transition);
}

.hero-image img:hover {
    transform: scale(1.02);
}

/* ===== Buttons ===== */
.btn-premium {
    background: var(--gradient-gold);
    border: none;
    color: var(--primary-color);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(230, 179, 37, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-premium::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: var(--transition-slow);
}

.btn-premium:hover::before {
    left: 100%;
}

.btn-premium:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(230, 179, 37, 0.4);
    color: var(--primary-color);
}

.btn-premium:active {
    transform: translateY(-1px);
}

.btn-outline-premium {
    border: 2px solid var(--gold-color);
    color: var(--gold-color);
    background: transparent;
    border-radius: 50px;
    padding: 10px 25px;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-outline-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--gradient-gold);
    transition: var(--transition);
    z-index: -1;
}

.btn-outline-premium:hover::before {
    width: 100%;
}

.btn-outline-premium:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
    border-color: transparent;
}

.btn-lg {
    padding: 15px 40px;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.875rem;
}

/* ===== Product Cards ===== */
.product-card-premium {
    background: white;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-primary);
    border: none;
    position: relative;
    height: 100%;
}

.product-card-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-gold);
    z-index: 1;
}

.product-card-premium:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.product-card-premium .card-img-top {
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
    width: 100%;
}

.product-card-premium:hover .card-img-top {
    transform: scale(1.05);
}

.product-card-premium .card-body {
    padding: 25px;
    display: flex;
    flex-direction: column;
    height: calc(100% - 250px);
}

.product-card-premium .card-title {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
    line-height: 1.3;
}

.product-card-premium .card-text {
    color: var(--text-muted);
    margin-bottom: 15px;
    flex-grow: 1;
}

.product-card-premium .price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.product-card-premium .btn-group {
    margin-top: auto;
}

/* ===== Features Section ===== */
.features-premium {
    padding: 80px 0;
    background: white;
    position: relative;
}

.feature-card {
    text-align: center;
    padding: 40px 20px;
    border-radius: var(--border-radius-lg);
    transition: var(--transition);
    background: white;
    box-shadow: var(--shadow-primary);
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-gold);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.feature-card i {
    font-size: 3rem;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    display: inline-block;
}

.feature-card h4 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--text-muted);
    margin-bottom: 0;
}

/* ===== Section Headers ===== */
.section-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-gold);
    border-radius: 2px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== Stats Section ===== */
.stats-section {
    background: var(--gradient-primary);
    color: var(--text-light);
    padding: 80px 0;
    position: relative;
}

.stat-item {
    text-align: center;
    padding: 20px;
}

.stat-item h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(45deg, #fff, var(--gold-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-item p {
    font-size: 1.1rem;
    margin-bottom: 0;
    opacity: 0.9;
}

/* ===== Category Cards ===== */
.category-card {
    transition: var(--transition);
    height: 100%;
    text-align: center;
    padding: 30px 20px;
    border-radius: var(--border-radius-lg);
    background: white;
    box-shadow: var(--shadow-primary);
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-gold);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.category-icon {
    margin-bottom: 20px;
}

.category-icon i {
    font-size: 3rem;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.category-card h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.category-card p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* ===== Testimonials ===== */
.testimonial-card {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-primary);
    height: 100%;
    position: relative;
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 4rem;
    color: var(--gold-color);
    opacity: 0.3;
    font-family: serif;
}

.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    color: white;
    font-weight: 600;
}

.testimonial-card h5 {
    margin-bottom: 5px;
}

.testimonial-card .text-muted {
    font-size: 0.875rem;
}

.text-warning {
    color: var(--gold-color) !important;
}

/* ===== Newsletter ===== */
.newsletter-section {
    background: white;
    padding: 80px 0;
}

.newsletter-form .input-group {
    max-width: 500px;
    margin: 0 auto;
}

.form-control-premium {
    border: 2px solid var(--border-color);
    border-radius: 50px;
    padding: 12px 20px;
    transition: var(--transition);
    font-size: 1rem;
}

.form-control-premium:focus {
    border-color: var(--gold-color);
    box-shadow: 0 0 0 0.2rem rgba(230, 179, 37, 0.25);
    outline: none;
}

/* ===== Trust Badges ===== */
.trust-badges {
    background: var(--light-color);
    padding: 40px 0;
}

.trust-badge {
    text-align: center;
    padding: 20px;
    transition: var(--transition);
}

.trust-badge:hover {
    transform: translateY(-3px);
}

.trust-badge i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    display: block;
}

.trust-badge h6 {
    margin-bottom: 5px;
    color: var(--primary-color);
}

.trust-badge small {
    color: var(--text-muted);
}

/* ===== Footer ===== */
.footer-premium {
    background: var(--gradient-primary);
    color: var(--text-light);
    padding: 60px 0 20px;
    margin-top: 50px;
}

.footer-premium h5 {
    color: var(--gold-color);
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-premium a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

.footer-premium a:hover {
    color: var(--gold-color);
}

.footer-premium .social-links {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.footer-premium .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
}

.footer-premium .social-links a:hover {
    background: var(--gold-color);
    transform: translateY(-3px);
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-top: 40px;
}

/* ===== Badges ===== */
.badge {
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
}

.badge-premium {
    background: var(--gradient-gold);
    color: var(--primary-color);
    padding: 8px 15px;
    border-radius: 15px;
    font-weight: 600;
}

/* ===== Loading Spinner ===== */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--gold-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== Notifications ===== */
.alert-premium {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 9999;
    min-width: 300px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-hover);
    border: none;
    transform: translateX(400px);
    transition: var(--transition);
}

.alert-premium.show {
    transform: translateX(0);
}

/* ===== Animations ===== */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

.fade-in-up {
    animation: slideInUp 0.6s ease-out both;
}

/* ===== Scroll to Top ===== */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    display: none;
}

.scroll-to-top .btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-primary);
}

/* ===== Form Styles ===== */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.form-control {
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 12px 15px;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--gold-color);
    box-shadow: 0 0 0 0.2rem rgba(230, 179, 37, 0.25);
}

/* ===== Table Styles ===== */
.table-premium {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-primary);
}

.table-premium thead th {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 15px;
    font-weight: 600;
}

.table-premium tbody td {
    padding: 15px;
    vertical-align: middle;
    border-color: var(--border-color);
}

/* ===== Pagination ===== */
.pagination-premium .page-link {
    border: none;
    color: var(--primary-color);
    padding: 10px 18px;
    margin: 0 5px;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.pagination-premium .page-link:hover {
    background: var(--gradient-gold);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.pagination-premium .page-item.active .page-link {
    background: var(--gradient-gold);
    border: none;
    color: var(--primary-color);
}

/* ===== Utility Classes ===== */
.text-gold {
    color: var(--gold-color) !important;
}

.bg-gradient-primary {
    background: var(--gradient-primary) !important;
}

.bg-gradient-gold {
    background: var(--gradient-gold) !important;
}

.shadow-premium {
    box-shadow: var(--shadow-primary) !important;
}

.rounded-premium {
    border-radius: var(--border-radius) !important;
}

.rounded-lg-premium {
    border-radius: var(--border-radius-lg) !important;
}

/* ===== Responsive Design ===== */
@media (max-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

@media (max-width: 992px) {
    .container {
        max-width: 960px;
    }
    
    h1 {
        font-size: 3rem;
    }
    
    h2 {
        font-size: 2.25rem;
    }
    
    .hero-premium {
        padding: 120px 0 80px;
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 720px;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    h3 {
        font-size: 1.75rem;
    }
    
    .hero-premium {
        padding: 100px 0 60px;
        text-align: center;
    }
    
    .hero-premium h1 {
        font-size: 2.5rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .navbar-premium .nav-link {
        margin: 5px 0;
        text-align: center;
    }
    
    .product-card-premium .card-img-top {
        height: 200px;
    }
}

@media (max-width: 576px) {
    .container {
        max-width: 540px;
        padding: 0 15px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .hero-premium {
        padding: 80px 0 40px;
    }
    
    .btn-premium,
    .btn-outline-premium {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
}

/* ===== Print Styles ===== */
@media print {
    .navbar-premium,
    .footer-premium,
    .btn {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .container {
        max-width: 100% !important;
    }
}

/* ===== Accessibility ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ===== Dark Mode Support ===== */
@media (prefers-color-scheme: dark) {
    :root {
        --text-dark: #f8f9fa;
        --light-color: #1a1a2e;
        --border-color: #2d3748;
    }
    
    body {
        background-color: var(--light-color);
        color: var(--text-dark);
    }
    
    .product-card-premium,
    .feature-card,
    .testimonial-card {
        background: var(--secondary-color);
        color: var(--text-light);
    }
    
    .product-card-premium .card-title,
    .feature-card h4 {
        color: var(--text-light);
    }
    
    .product-card-premium .card-text,
    .feature-card p {
        color: rgba(255, 255, 255, 0.8);
    }
}

/* ===== High Contrast Mode ===== */
@media (prefers-contrast: high) {
    :root {
        --gold-color: #000000;
        --primary-color: #000000;
        --text-light: #000000;
        --text-dark: #000000;
    }
    
    .btn-premium,
    .btn-outline-premium {
        border: 2px solid #000000;
    }
}

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-color);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-gold);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold-light);
}