/*
  SMW Elegant Marketplace Styles - v2.0
  A modular, scalable, and maintainable stylesheet.
  Designed for readability, performance, and future extensibility.
*/

:root {
    --primary-dark: #1a1a2e;
    --secondary-dark: #16213e;
    --accent-gold: #e6b325;
    --light-bg: #f8f9fa;
    --light-text: #f5f5f5;
    --dark-text: #333;
    --card-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    --hover-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
    --transition-fast: 0.3s ease;
    --transition-slow: 0.4s ease;
}

/* Base Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: #f9f9f9;
    color: var(--dark-text);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
    padding-top: 0; /* Offset for fixed navbar */
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

button {
    cursor: pointer;
    background: transparent;
    border: none;
    outline: none;
}

/* ===============
   Navbar Section
   =============== */

.elegant-nav {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    padding: 15px 5%;
    background-color: var(--primary-dark);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(8px);
    transition: background-color var(--transition-fast);
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-gold);
    transition: color var(--transition-fast);
}

.nav-links {
    display: flex;
    gap: 2.5em;
}

.nav-link {
    position: relative;
    padding-bottom: 5px;
    color: var(--light-text);
    font-weight: 500;
    transition: color var(--transition-fast);
}

.nav-link:hover {
    color: var(--accent-gold);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gold);
    transition: width var(--transition-fast);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5em;
}

.search-bar {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 8px 15px;
    transition: background-color var(--transition-fast);
}

.search-bar input {
    width: 150px;
    border: none;
    outline: none;
    background: transparent;
    color: white;
    padding: 5px;
    font-size: 1rem;
}

.search-bar::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.btn-icon {
    font-size: 1.1rem;
    color: var(--light-text);
    transition: color var(--transition-fast);
}

.btn-icon:hover {
    color: var(--accent-gold);
}

/* ==============
   Hero Carousel
   ============== */

.carousel-inner {
    border-radius: 0 0 12px 12px;
    overflow: hidden;
}

.carousel-item img {
    height: 550px;
    object-fit: cover;
    filter: brightness(0.7);
}

.carousel-caption {
    bottom: 50%;
    transform: translateY(50%);
    text-align: left;
    max-width: 600px;
    left: 10%;
    right: auto;
}

.carousel-caption h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--accent-gold);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.carousel-caption p {
    font-size: 1.2rem;
    margin-bottom: 25px;
    color: var(--light-text);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.btn-gold {
    background: var(--accent-gold);
    color: var(--primary-dark);
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all var(--transition-fast);
}

.btn-gold:hover {
    background: #d4a01f;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* =============
   Sections
   ============= */

.section-title {
    position: relative;
    margin-bottom: 4rem;
    text-align: center;
    font-weight: 700;
    color: var(--primary-dark);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent-gold);
    border-radius: 2px;
}

.featured-section,
.confidence-section,
.services-section {
    padding: 5rem 0;
    background: linear-gradient(to bottom, #f9f9f9, #f0f0f0);
}

.confidence-section {
    background: white;
}

/* =============
   Product Card
   ============= */

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    transition: transform var(--transition-slow), box-shadow var(--transition-slow);
    box-shadow: var(--card-shadow);
    margin-bottom: 25px;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--hover-shadow);
}

.card-img-container {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f8f8f8;
    position: relative;
    transition: transform var(--transition-slow);
}

.card-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.product-card:hover .card-img-container img {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent-gold);
    color: var(--primary-dark);
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 30px;
    font-size: 0.8rem;
    z-index: 2;
}

.card-body {
    padding: 20px;
}

.product-title {
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 8px;
    font-size: 1.1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-condition {
    color: #777;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.product-price {
    font-weight: 700;
    color: var(--primary-dark);
    font-size: 1.2rem;
    margin-top: 15px;
}

.rating {
    color: #ffc107;
    margin-bottom: 10px;
}

/* =============
   Feature Cards
   ============= */

.feature-card {
    text-align: center;
    padding: 30px;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    border-radius: 12px;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow);
}

.feature-icon {
    font-size: 3.5rem;
    color: var(--accent-gold);
    margin-bottom: 20px;
}

.feature-title {
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 15px;
}

/* =============
   Footer
   ============= */

.classic-footer {
    background-color: var(--primary-dark); /* Using your defined theme variable */
    color: #f8f8f8;
}

.footer-title {
    font-weight: 600;
    color: var(--accent-gold);
    position: relative;
    padding-bottom: 8px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 2px;
    background-color: var(--accent-gold);
}

.footer-link {
    color: #cccccc;
    display: block;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--accent-gold);
    padding-left: 5px;
    text-decoration: none;
}

.social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: transparent;
    border: 2px solid var(--accent-gold);
    color: var(--accent-gold);
    transition: all 0.3s ease;
    font-size: 1rem;
}

.social-icon:hover {
    background-color: var(--accent-gold);
    color: var(--primary-dark);
    transform: scale(1.1);
    text-decoration: none;
}

.border-gold {
    border-color: var(--accent-gold) !important;
}

/* Copyright Text */
.classic-footer p {
    color: var(--primary-dark);
}
.copyright {
    text-align: center;
    padding-top: 30px;
    margin-top: 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #aaa;
    font-size: 0.9rem;
}

/* =============
   Responsive
   ============= */

@media (max-width: 992px) {
    .elegant-nav {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .carousel-caption h2 {
        font-size: 2rem;
    }

    body {

    }
}

@media (max-width: 768px) {
    .nav-actions {
        width: 100%;
        justify-content: center;
    }

    .carousel-caption {
        bottom: 10%;
        max-width: 90%;
        padding: 15px;
        left: 5%;
        transform: translateY(10%);
    }

    .carousel-caption h2 {
        font-size: 1.5rem;
    }
}