:root {
    --primary: #ff6b6b;
    --secondary: #4ecdc4;
    --accent: #45b7d1;
    --dark: #2d3436;
    --light: #f7f7f7;
    --shadow: 8px 8px 0px #000;
    --border: 3px solid #000;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
}

/* Header */
header {
    background: var(--primary);
    border-bottom: var(--border);
    box-shadow: var(--shadow);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 2rem;
    font-weight: 900;
    color: white;
    text-decoration: none;
    text-shadow: 3px 3px 0 #000;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border: 2px solid white;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    background: white;
    color: var(--primary);
}

/* Hero Section */
.hero {
    background: var(--secondary);
    border-bottom: var(--border);
    padding: 4rem 2rem;
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 4px 4px 0 #000;
    color: white;
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    color: white;
}

/* Filters */
.filters {
    background: white;
    border: var(--border);
    box-shadow: var(--shadow);
    padding: 2rem;
    margin: 2rem auto;
    max-width: 1200px;
    border-radius: 0;
}

.filter-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.search-box {
    flex: 1;
    min-width: 300px;
}

.search-box input {
    width: 100%;
    padding: 1rem;
    border: var(--border);
    font-size: 1rem;
    background: white;
}

.category-filter select {
    padding: 1rem;
    border: var(--border);
    background: white;
    font-size: 1rem;
    min-width: 200px;
}

/* Products Grid */
.products {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card {
    background: white;
    border: var(--border);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    overflow: hidden;
}

.product-card:hover {
    transform: translate(-4px, -4px);
    box-shadow: 12px 12px 0px #000;
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: var(--border);
}

.product-info {
    padding: 1.5rem;
}

.product-category {
    background: var(--accent);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 0;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 0.5rem;
    border: 2px solid #000;
}

.product-name {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

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

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--primary);
    color: white;
    text-decoration: none;
    font-weight: 700;
    border: var(--border);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
}

.btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px #000;
}

.btn-secondary {
    background: var(--secondary);
}

/* Product Detail */
.product-detail {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 2rem;
}

.product-gallery {
    display: grid;
    grid-template-columns: 1fr !important;
    gap: 1rem;
    margin-bottom: 2rem;
}

.main-image {
    grid-column: 1 / -1;
    border: var(--border);
    box-shadow: var(--shadow);
}

.thumbnail {
    border: var(--border);
    cursor: pointer;
    transition: all 0.3s ease;
}

.thumbnail:hover {
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0px #000;
}

.product-meta {
    display: flex;
    gap: 2rem;
    margin: 1rem 0;
    font-size: 0.9rem;
}

.meta-item {
    background: var(--light);
    padding: 0.5rem 1rem;
    border: 2px solid #000;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: var(--border);
    background: white;
    font-size: 1rem;
}

/* Payment Page */
.payment-container {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    background: white;
    border: var(--border);
    box-shadow: var(--shadow);
}

.qr-code {
    text-align: center;
    margin: 2rem 0;
}

.qr-code img {
    max-width: 300px;
    border: var(--border);
    box-shadow: var(--shadow);
}

.payment-details {
    background: var(--light);
    padding: 1.5rem;
    border: var(--border);
    margin: 1rem 0;
}

.payment-status {
    padding: 1rem;
    text-align: center;
    font-weight: 700;
    border: var(--border);
    margin: 1rem 0;
}

.status-pending {
    background: #ffeaa7;
    color: #e17055;
}

.status-success {
    background: #55efc4;
    color: #00b894;
}

/* Footer */
footer {
    background: var(--dark);
    color: white;
    text-align: center;
    padding: 2rem;
    border-top: var(--border);
    margin-top: 4rem;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        flex-direction: column;
        gap: 1rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .product-gallery {
        grid-template-columns: 1fr;
    }

    .filter-group {
        flex-direction: column;
        align-items: stretch;
    }

    .search-box {
        min-width: auto;
    }
}

/* Rich Text Content Styling */
.description-content {
    line-height: 1.8;
}

.description-content h1,
.description-content h2,
.description-content h3,
.description-content h4,
.description-content h5,
.description-content h6 {
    margin: 1.5rem 0 1rem 0;
    color: var(--dark);
    font-weight: bold;
}

.description-content h1 {
    font-size: 2rem;
}

.description-content h2 {
    font-size: 1.75rem;
}

.description-content h3 {
    font-size: 1.5rem;
}

.description-content h4 {
    font-size: 1.25rem;
}

.description-content h5 {
    font-size: 1.1rem;
}

.description-content h6 {
    font-size: 1rem;
}

.description-content strong {
    font-weight: bold;
    color: var(--dark);
}

.description-content em {
    font-style: italic;
}

.description-content u {
    text-decoration: underline;
}

.description-content s {
    text-decoration: line-through;
}

.description-content ul,
.description-content ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

.description-content li {
    margin: 0.5rem 0;
}

.description-content blockquote {
    border-left: 4px solid var(--primary);
    padding-left: 1rem;
    margin: 1rem 0;
    font-style: italic;
    color: #666;
}

.description-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.description-content table th,
.description-content table td {
    border: 2px solid #000;
    padding: 0.75rem;
    text-align: left;
}

.description-content table th {
    background: var(--primary);
    color: white;
    font-weight: bold;
}

.description-content a {
    color: var(--accent);
    text-decoration: underline;
}

.description-content a:hover {
    color: var(--primary);
}