/* temacenneti.com - Modern Marketplace CSS */

:root {
    --bg-dark: #0a0a0c;
    --bg-darker: #050506;
    --card-bg: #151518;
    --accent: #6c5ce7; /* Soft Purple */
    --accent-hover: #a29bfe;
    --text-main: #f5f5f7;
    --text-muted: #94a3b8;
    --success: #00b894;
    --primary-gradient: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%);
    --shadow-premium: 0 10px 30px -10px rgba(0,0,0,0.5);
    --border-subtle: 1px solid rgba(255,255,255,0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Scrollbar styling for premium feel */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-darker);
}
::-webkit-scrollbar-thumb {
    background: #2d3436;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
header {
    background: var(--bg-darker);
    padding: 80px 0;
    text-align: center;
    border-bottom: var(--border-subtle);
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
}

/* Search Bar */
.search-container {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.search-container input {
    width: 100%;
    padding: 18px 25px;
    background: var(--card-bg);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 15px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-premium);
}

.search-container input:focus {
    outline: none;
    border-color: var(--accent);
    background: #1a1a1f;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    padding: 60px 0;
}

/* Product Card */
.product-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: var(--border-subtle);
    position: relative;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -15px rgba(0,0,0,0.6);
}

.product-card .img-container {
    width: 100%;
    height: 180px;
    background: #1a1a1e;
    overflow: hidden;
}

.product-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover img {
    transform: scale(1.05);
}

.product-info {
    padding: 20px;
}

.product-category {
    font-size: 0.75rem;
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    display: block;
}

.product-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-main);
}

.product-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    height: 48px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Page Layout Utilities */
.flex-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: flex-start;
}

.detail-left, .detail-right {
    flex: 1;
    min-width: 320px;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    padding: 12px 24px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    display: inline-block;
    transition: opacity 0.3s;
    border: none;
    cursor: pointer;
    width: 100%;
    text-align: center;
}

.btn-primary:hover {
    opacity: 0.9;
}

/* Footer Section */
footer {
    background: var(--bg-darker);
    padding: 60px 0;
    text-align: center;
    border-top: var(--border-subtle);
}

footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* --- Responsive & Mobile Experience (2026 Standards) --- */

/* Utility: Category Pill Styling (Used in Home) */
.category-pill {
    text-decoration: none; 
    padding: 10px 20px; 
    border-radius: 30px; 
    border: 1px solid #333; 
    background: transparent; 
    color: white; 
    font-size: 0.85rem; 
    font-weight: 700;
    transition: all 0.3s ease;
}
.category-pill.active {
    background: var(--accent);
    border-color: var(--accent);
}

@media (max-width: 992px) {
    .container { max-width: 95%; }
}

@media (max-width: 768px) {
    /* Navigation Adjustments */
    nav .container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    nav div[style*="display: flex"] {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px !important;
    }
    
    /* Hero Adjustments */
    .hero h1 { font-size: 2.2rem; }
    .hero p { font-size: 1rem; padding: 0 10px; }
    
    /* Product Grid */
    .product-grid { 
        grid-template-columns: repeat(auto-fill, minmax(100%, 1fr)); 
        gap: 20px;
    }

    /* Product Detail Page (Flex Container) */
    main > div[style*="display: flex"] {
        flex-direction: column !important;
        gap: 40px !important;
    }
    
    /* Floating Widget Shrink */
    a[style*="position: fixed"] {
        width: 55px !important;
        height: 55px !important;
        bottom: 20px !important;
        right: 20px !important;
    }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.8rem; }
    .product-card .img-container { height: 220px; }
    .admin-nav { overflow-x: auto; white-space: nowrap; padding-bottom: 10px; }
}
