/* Warhammer 40K Action Figure Shop - Public Site Styles */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #d4d4d4;
    background: #0a0a0a;
    overflow-x: hidden;
}

html {
    /* overflow-x: hidden breaks position:sticky on iOS Safari */
}

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

/* Header */
.site-header {
    background: #1a1a1a;
    border-bottom: 2px solid #8B0000;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.8);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 30px;
}

.site-logo {
    display: flex;
    align-items: center;
}

.site-logo a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    gap: 4px;
}

.site-logo .logo-img {
    height: 50px;
    width: auto;
    filter: drop-shadow(0 0 8px rgba(139, 0, 0, 0.6));
}

.site-logo .logo-tagline {
    font-size: 0.65rem;
    font-weight: 700;
    color: #C9B037;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 0 4px rgba(201, 176, 55, 0.5);
}

.main-nav {
    display: flex;
    gap: 30px;
}

.main-nav a {
    color: #d4d4d4;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    transition: all 0.3s;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #8B0000;
    transition: width 0.3s;
}

.main-nav a:hover {
    color: #8B0000;
    text-shadow: 0 0 8px rgba(139, 0, 0, 0.8);
}

.main-nav a:hover::after {
    width: 100%;
}

/* Navigation Dropdown */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-trigger {
    cursor: pointer;
}

.nav-dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #1a1a1a;
    min-width: 200px;
    border: 1px solid #333;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    padding: 10px 0;
    margin-top: 10px;
}

.nav-dropdown-content::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 10px;
}

.nav-dropdown:hover .nav-dropdown-content {
    display: block;
}

.nav-dropdown-content a {
    display: block;
    padding: 10px 20px;
    color: #d4d4d4;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.nav-dropdown-content a::after {
    display: none;
}

.nav-dropdown-content a:hover {
    background: #8B0000;
    color: #fff;
}

/* Footer */
.site-footer {
    background: #0a0a0a;
    color: #888;
    padding: 40px 0;
    margin-top: 60px;
    text-align: center;
    border-top: 2px solid #8B0000;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.8);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a0000 50%, #8B0000 100%);
    color: #d4d4d4;
    padding: 100px 0;
    text-align: center;
    position: relative;
    border-bottom: 3px solid #C9B037;
    box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.8);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(139, 0, 0, 0.03) 2px,
        rgba(139, 0, 0, 0.03) 4px
    );
    pointer-events: none;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 900;
    color: #fff;
    text-shadow:
        0 0 10px rgba(139, 0, 0, 0.8),
        0 0 20px rgba(139, 0, 0, 0.6),
        2px 2px 4px rgba(0, 0, 0, 0.9);
    position: relative;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 30px;
    color: #C9B037;
    text-shadow: 0 0 8px rgba(201, 176, 55, 0.5);
    font-weight: 600;
    letter-spacing: 1px;
    position: relative;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 2px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.9rem;
    transition: all 0.3s;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(139, 0, 0, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s, height 0.4s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, #8B0000 0%, #5a0000 100%);
    color: #fff;
    border-color: #C9B037;
    box-shadow: 0 0 15px rgba(139, 0, 0, 0.5);
    position: relative;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow:
        0 0 25px rgba(139, 0, 0, 0.8),
        0 6px 20px rgba(0, 0, 0, 0.4);
    border-color: #fff;
}

.btn-secondary {
    background: #2a2a2a;
    color: #C9B037;
    border-color: #4a4a4a;
}

.btn-secondary:hover {
    background: #3a3a3a;
    border-color: #C9B037;
    box-shadow: 0 0 15px rgba(201, 176, 55, 0.3);
}

.btn-lg {
    padding: 15px 40px;
    font-size: 1rem;
}

/* Sections */
section {
    padding: 60px 0;
}

section h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-align: center;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 900;
    text-shadow: 0 0 10px rgba(139, 0, 0, 0.6);
    border-bottom: 3px solid #8B0000;
    padding-bottom: 15px;
    position: relative;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: #C9B037;
}

/* Categories */
.categories-section {
    background: #1a1a1a;
    border-top: 1px solid #2a2a2a;
    border-bottom: 1px solid #2a2a2a;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

@media (max-width: 1200px) {
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.faction-tags {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    max-width: 800px;
    margin: 0 auto;
}

@media (max-width: 992px) {
    .faction-tags {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .faction-tags {
        grid-template-columns: 1fr;
        max-width: 300px;
    }
}

.faction-tag {
    display: block;
    padding: 12px 24px;
    background: #0a0a0a;
    border: 2px solid #2a2a2a;
    border-radius: 4px;
    color: #C9B037;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    text-align: center;
    transition: all 0.3s;
}

.faction-tag:hover {
    border-color: #8B0000;
    color: #fff;
    background: #8B0000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 0, 0, 0.4);
}

.category-card {
    background: #0a0a0a;
    padding: 20px 10px;
    text-align: center;
    border-radius: 2px;
    text-decoration: none;
    color: #d4d4d4;
    transition: all 0.3s;
    border: 2px solid #2a2a2a;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(139, 0, 0, 0.1), transparent);
    transition: left 0.5s;
}

.category-card:hover::before {
    left: 100%;
}

.category-card:hover {
    border-color: #8B0000;
    transform: translateY(-5px);
    box-shadow:
        0 0 20px rgba(139, 0, 0, 0.4),
        0 10px 30px rgba(0, 0, 0, 0.6);
}

.category-card h3 {
    font-size: 0.9rem;
    color: #C9B037;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    text-shadow: 0 0 6px rgba(201, 176, 55, 0.4);
    word-break: break-word;
    hyphens: auto;
}

.category-icon {
    margin-bottom: 10px;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a1a1a;
    border-radius: 2px;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid #2a2a2a;
}

.category-icon img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    border-radius: 2px;
    object-fit: contain;
    filter: brightness(0.95) contrast(1.1);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.product-card {
    background: #1a1a1a;
    border-radius: 2px;
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
    border: 2px solid #2a2a2a;
    position: relative;
}

.product-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid #8B0000;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

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

.product-card:hover {
    transform: translateY(-5px);
    box-shadow:
        0 0 25px rgba(139, 0, 0, 0.5),
        0 12px 30px rgba(0, 0, 0, 0.8);
}

.product-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    filter: brightness(0.9) contrast(1.1);
    transition: filter 0.3s;
}

.product-card:hover img {
    filter: brightness(1) contrast(1.2);
}

.product-placeholder {
    width: 100%;
    height: 250px;
    background: #0a0a0a;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4a4a4a;
    font-size: 0.875rem;
    border: 1px solid #2a2a2a;
}

.product-card h3 {
    padding: 15px;
    font-size: 1.1rem;
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-card .price {
    padding: 0 15px 15px;
    font-size: 1.25rem;
    font-weight: bold;
    color: #C9B037;
    text-shadow: 0 0 6px rgba(201, 176, 55, 0.4);
}

.product-card .out-of-stock {
    padding: 0 15px 15px;
    color: #8B0000;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Products Page */
.products-page {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 40px;
    padding: 40px 0;
}

.products-sidebar h3 {
    font-size: 1.25rem;
    margin-bottom: 20px;
    color: #C9B037;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    border-bottom: 2px solid #8B0000;
    padding-bottom: 10px;
}

.category-list {
    list-style: none;
}

.category-list li {
    margin-bottom: 10px;
}

.category-list a {
    display: block;
    padding: 8px 12px;
    color: #d4d4d4;
    text-decoration: none;
    border-radius: 2px;
    transition: all 0.3s;
    border: 1px solid transparent;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.category-list a:hover,
.category-list a.active {
    background: #8B0000;
    color: #fff;
    border-color: #C9B037;
    box-shadow: 0 0 10px rgba(139, 0, 0, 0.5);
}

.products-header {
    margin-bottom: 30px;
}

.products-header h1 {
    color: #fff;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 900;
    text-shadow: 0 0 10px rgba(139, 0, 0, 0.6);
}

.products-header p {
    color: #888;
}

.sort-controls {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-bottom: 20px;
}

.sort-btn {
    background: #1a1a1a;
    color: #888;
    border: 1px solid #333;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sort-btn:hover {
    border-color: #8b0000;
    color: #fff;
}

.sort-btn.active {
    background: #8b0000;
    border-color: #8b0000;
    color: #fff;
}

.no-products {
    text-align: center;
    padding: 60px 20px;
    color: #555;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Product Detail */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    padding: 40px 0;
}

.product-images {
    position: sticky;
    top: 100px;
    align-self: start;
}

.main-image {
    margin-bottom: 20px;
    border-radius: 2px;
    overflow: hidden;
    border: 2px solid #2a2a2a;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a1a1a;
    cursor: zoom-in;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    filter: brightness(0.95) contrast(1.1);
}

.thumbnails-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.thumbnail-nav {
    background: rgba(139, 0, 0, 0.8);
    color: white;
    border: 1px solid #C9B037;
    width: 40px;
    height: 40px;
    border-radius: 2px;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s;
}

.thumbnail-nav:hover {
    background: rgba(139, 0, 0, 1);
    box-shadow: 0 0 15px rgba(139, 0, 0, 0.8);
}

.image-thumbnails {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    max-width: 400px;
}

.image-thumbnails::-webkit-scrollbar {
    display: none;
}

.thumbnail {
    width: 90px;
    min-width: 90px;
    height: 90px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid #2a2a2a;
    border-radius: 2px;
    transition: all 0.3s;
    background: #1a1a1a;
}

.thumbnail:hover,
.thumbnail.active {
    border-color: #8B0000;
    box-shadow: 0 0 12px rgba(139, 0, 0, 0.6);
}

.video-thumbnail {
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.video-thumbnail .play-icon {
    color: #C9B037;
    font-size: 24px;
    opacity: 0.9;
    pointer-events: none;
    filter: drop-shadow(0 0 6px rgba(201, 176, 55, 0.8));
}

.video-thumbnail:hover .play-icon {
    opacity: 1;
    transform: scale(1.2);
    transition: all 0.2s;
}

.product-placeholder-large {
    aspect-ratio: 1;
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4a4a4a;
    border-radius: 2px;
    border: 1px solid #2a2a2a;
}

.breadcrumb {
    margin-bottom: 20px;
    color: #888;
    font-size: 0.875rem;
}

.breadcrumb a {
    color: #C9B037;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: #8B0000;
    text-decoration: underline;
}

.product-info h1 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 900;
    text-shadow: 0 0 10px rgba(139, 0, 0, 0.6);
}

.product-meta {
    padding: 20px 0;
    border-top: 2px solid #8B0000;
    border-bottom: 2px solid #8B0000;
    margin-bottom: 30px;
    background: rgba(139, 0, 0, 0.05);
}

.product-meta .price {
    font-size: 2rem;
    font-weight: bold;
    color: #C9B037;
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(201, 176, 55, 0.5);
}

.product-meta .sku {
    color: #888;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-meta .product-spec {
    color: #aaa;
    font-size: 0.9rem;
    margin: 8px 0;
    line-height: 1.5;
}

.product-meta .product-spec strong {
    color: #C9B037;
    font-weight: 700;
    margin-right: 8px;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.product-meta .stock {
    margin-top: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.in-stock {
    color: #C9B037;
    text-shadow: 0 0 6px rgba(201, 176, 55, 0.4);
}

.out-of-stock {
    color: #8B0000;
    text-shadow: 0 0 6px rgba(139, 0, 0, 0.4);
}

.product-description {
    margin-bottom: 30px;
    line-height: 1.8;
    color: #aaa;
}

.product-tags {
    margin-bottom: 30px;
}

.tag {
    display: inline-block;
    padding: 5px 12px;
    background: #2a2a2a;
    color: #C9B037;
    border-radius: 2px;
    font-size: 0.875rem;
    margin-right: 8px;
    margin-bottom: 8px;
    border: 1px solid #3a3a3a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.tag-link {
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.tag-link:hover {
    background: #C9B037;
    color: #1a1a1a;
    border-color: #C9B037;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(201, 176, 55, 0.3);
}

/* Tag Cloud Page */
.tags-page {
    padding: 40px 0;
    max-width: 1000px;
    margin: 0 auto;
}

.tags-header {
    text-align: center;
    margin-bottom: 40px;
}

.tags-header h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 900;
}

.tags-header p {
    color: #888;
    font-size: 1.1rem;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    padding: 30px;
    background: #1a1a1a;
    border-radius: 4px;
    border: 1px solid #333;
}

.tag-cloud-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: #2a2a2a;
    color: #C9B037;
    border-radius: 3px;
    font-size: 0.95rem;
    border: 1px solid #3a3a3a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.tag-cloud-item:hover {
    background: #C9B037;
    color: #1a1a1a;
    border-color: #C9B037;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(201, 176, 55, 0.4);
}

.tag-cloud-item .tag-count {
    font-size: 0.8rem;
    color: #888;
    font-weight: 400;
}

.tag-cloud-item:hover .tag-count {
    color: #1a1a1a;
}

.no-tags {
    text-align: center;
    color: #888;
    padding: 40px;
}

/* Responsive tag cloud */
@media (max-width: 768px) {
    .tags-page {
        padding: 20px;
    }

    .tags-header h1 {
        font-size: 1.8rem;
        letter-spacing: 2px;
    }

    .tag-cloud {
        padding: 20px;
        gap: 8px;
    }

    .tag-cloud-item {
        padding: 8px 14px;
        font-size: 0.85rem;
    }
}

.product-actions {
    margin-top: 30px;
}

/* Blog */
.blog-page {
    padding: 40px 0;
}

.blog-page h1 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 900;
    text-shadow: 0 0 10px rgba(139, 0, 0, 0.6);
}

.blog-posts {
    max-width: 800px;
}

.blog-post-preview {
    padding: 30px 0;
    border-bottom: 1px solid #2a2a2a;
}

.blog-post-preview:last-child {
    border-bottom: none;
}

.blog-post-preview h2 {
    font-size: 1.75rem;
    margin-bottom: 10px;
    text-align: left;
    border: none;
    padding: 0;
}

.blog-post-preview h2::after {
    display: none;
}

.blog-post-preview h2 a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.blog-post-preview h2 a:hover {
    color: #8B0000;
    text-shadow: 0 0 8px rgba(139, 0, 0, 0.6);
}

.post-meta {
    color: #888;
    font-size: 0.875rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.post-excerpt {
    margin-bottom: 15px;
    line-height: 1.8;
    color: #aaa;
}

.post-tags {
    margin-bottom: 15px;
}

.read-more {
    color: #C9B037;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    transition: all 0.3s;
}

.read-more:hover {
    color: #8B0000;
    text-shadow: 0 0 8px rgba(139, 0, 0, 0.6);
}

.no-posts {
    text-align: center;
    padding: 60px 20px;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Blog Post */
.blog-post {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 0;
}

.post-header {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #8B0000;
}

.post-header h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 900;
    text-shadow: 0 0 10px rgba(139, 0, 0, 0.6);
}

.post-content {
    line-height: 1.8;
    margin-bottom: 40px;
    color: #aaa;
}

.post-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px 0;
    border-radius: 4px;
}

.post-content h2 {
    font-size: 1.75rem;
    margin-top: 40px;
    margin-bottom: 20px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-bottom: 2px solid #8B0000;
    padding-bottom: 10px;
}

.post-content h3 {
    font-size: 1.5rem;
    margin-top: 30px;
    margin-bottom: 15px;
    color: #C9B037;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.post-content p {
    margin-bottom: 20px;
}

.post-content ul,
.post-content ol {
    margin-bottom: 20px;
    padding-left: 30px;
}

.post-content li {
    margin-bottom: 10px;
}

.post-content code {
    background: #1a1a1a;
    padding: 2px 6px;
    border-radius: 2px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: #C9B037;
    border: 1px solid #2a2a2a;
}

.post-content pre {
    background: #1a1a1a;
    padding: 15px;
    border-radius: 2px;
    overflow-x: auto;
    margin-bottom: 20px;
    border: 1px solid #2a2a2a;
}

.post-footer {
    padding-top: 30px;
    border-top: 1px solid #2a2a2a;
}

/* Posts Grid (for homepage) */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.post-card {
    background: #1a1a1a;
    padding: 30px;
    border-radius: 2px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
    border: 2px solid #2a2a2a;
    transition: all 0.3s;
}

.post-card:hover {
    border-color: #8B0000;
    box-shadow: 0 0 20px rgba(139, 0, 0, 0.4);
}

.post-card h3 a {
    color: #fff;
    text-decoration: none;
    font-size: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    transition: color 0.3s;
}

.post-card h3 a:hover {
    color: #8B0000;
    text-shadow: 0 0 8px rgba(139, 0, 0, 0.6);
}

/* Related Products */
.related-products {
    margin-top: 60px;
    padding-top: 60px;
    border-top: 2px solid #8B0000;
}

/* Product Badges */
.product-image-container {
    position: relative;
}

.product-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 10;
}

.product-badges-detail {
    margin-bottom: 15px;
    display: flex;
    gap: 8px;
}

.badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 2px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid transparent;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

.badge-preorder {
    background: #2a2a2a;
    color: #C9B037;
    border-color: #C9B037;
    text-shadow: 0 0 6px rgba(201, 176, 55, 0.6);
}

.badge-sale {
    background: #8B0000;
    color: #fff;
    border-color: #C9B037;
    text-shadow: 0 0 6px rgba(139, 0, 0, 0.8);
}

.badge-new {
    background: #C9B037;
    color: #0a0a0a;
    border-color: #fff;
    text-shadow: none;
    font-weight: 900;
}

.badge-soldout {
    background: #4a4a4a;
    color: #fff;
    border-color: #888;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    font-weight: 700;
}

/* Group Badge */
.badge-group {
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    color: #9370DB;
    border: 1px solid #9370DB;
    font-size: 0.7rem;
    text-shadow: 0 0 4px rgba(147, 112, 219, 0.5);
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Group indicator position on product cards */
.product-group-indicator {
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: 10;
}

/* Grouped product card accent bar */
.product-card[data-group] {
    position: relative;
}

.product-card[data-group]::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #9370DB, rgba(147, 112, 219, 0.3));
    opacity: 0.7;
    z-index: 5;
}

.product-card[data-group]:hover::before {
    opacity: 1;
}

/* ===== Related Products Carousel (Product Detail Page) ===== */
.related-products-carousel {
    margin-top: 60px;
    padding: 40px;
    background: linear-gradient(135deg, #1a1a1a, #0f0f15);
    border: 2px solid #8B0000;
    border-radius: 2px;
}

.related-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.related-header h2 {
    font-size: 1.5rem;
    color: #C9B037;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    margin: 0;
}

.related-nav {
    display: flex;
    gap: 10px;
}

.related-nav-btn {
    width: 45px;
    height: 45px;
    background: rgba(139, 0, 0, 0.9);
    border: 2px solid #C9B037;
    border-radius: 2px;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.related-nav-btn:hover {
    background: rgba(139, 0, 0, 1);
    box-shadow: 0 0 15px rgba(139, 0, 0, 0.6);
}

.related-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.related-grid-container {
    overflow: hidden;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.related-card {
    background: #1a1a1a;
    border: 2px solid #2a2a2a;
    border-radius: 2px;
    overflow: hidden;
    transition: all 0.3s;
}

.related-card a {
    text-decoration: none;
    display: block;
}

.related-card:hover {
    border-color: #8B0000;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5),
                0 0 15px rgba(139, 0, 0, 0.3);
}

.related-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    background: #0a0a0a;
}

.related-card h3 {
    font-size: 0.85rem;
    color: #fff;
    margin: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.4;
}

.related-card .price {
    color: #C9B037;
    font-weight: 700;
    font-size: 1rem;
    margin: 0 12px 12px;
}

/* Mobile responsive for related products */
@media (max-width: 1024px) {
    .related-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .related-products-carousel {
        padding: 25px 15px;
        margin-top: 40px;
    }

    .related-header h2 {
        font-size: 1.2rem;
    }

    .related-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .related-card h3 {
        font-size: 0.8rem;
        margin: 10px;
    }

    .related-card .price {
        margin: 0 10px 10px;
    }

    .badge-group {
        font-size: 0.65rem;
        padding: 4px 8px;
    }

    .product-group-indicator {
        bottom: 8px;
        right: 8px;
    }
}

/* Sale Pricing */
.product-card .price .original-price,
.product-meta .price .original-price {
    text-decoration: line-through;
    color: #555;
    font-size: 0.9em;
    margin-right: 8px;
}

.product-card .price .sale-price,
.product-meta .price .sale-price {
    color: #8B0000;
    font-weight: bold;
    text-shadow: 0 0 8px rgba(139, 0, 0, 0.6);
}

.product-meta .price .savings {
    display: block;
    font-size: 0.875rem;
    color: #C9B037;
    font-weight: 700;
    margin-top: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Pre-order Status */
.pre-order-status {
    margin-top: 10px;
    font-weight: 700;
    color: #C9B037;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Filters */
.filters {
    margin-top: 15px;
}

.filter-checkbox {
    display: block;
    margin-bottom: 10px;
    font-size: 0.95rem;
    cursor: pointer;
    color: #aaa;
    transition: color 0.3s;
}

.filter-checkbox:hover {
    color: #C9B037;
}

.filter-checkbox input[type="checkbox"] {
    margin-right: 8px;
    cursor: pointer;
    accent-color: #8B0000;
}

/* Special Sections */
.new-arrivals,
.on-sale {
    background: #1a1a1a;
    border-top: 1px solid #2a2a2a;
    border-bottom: 1px solid #2a2a2a;
}

.new-arrivals h2 {
    color: #C9B037;
    text-shadow: 0 0 10px rgba(201, 176, 55, 0.6);
}

.on-sale h2 {
    color: #8B0000;
    text-shadow: 0 0 10px rgba(139, 0, 0, 0.6);
}

.new-arrivals .btn-secondary,
.on-sale .btn-secondary {
    display: block;
    text-align: center;
    margin: 30px auto 0;
    max-width: 300px;
}

/* Image Lightbox */
.image-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.98);
    z-index: 9999;
    cursor: zoom-out;
    animation: fadeIn 0.2s ease;
}

.image-lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

#lightbox-content {
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

#lightbox-content img,
#lightbox-content video {
    box-shadow: 0 0 60px rgba(139, 0, 0, 0.6);
    pointer-events: auto;
    border: 2px solid #8B0000;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #C9B037;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    line-height: 1;
    transition: all 0.3s;
    z-index: 10000;
    text-shadow: 0 0 10px rgba(201, 176, 55, 0.8);
}

.lightbox-close:hover {
    color: #8B0000;
    text-shadow: 0 0 20px rgba(139, 0, 0, 0.8);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(139, 0, 0, 0.8);
    color: #C9B037;
    border: 2px solid #C9B037;
    width: 60px;
    height: 60px;
    border-radius: 2px;
    cursor: pointer;
    font-size: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 10000;
}

.lightbox-nav:hover {
    background: rgba(139, 0, 0, 1);
    box-shadow: 0 0 20px rgba(139, 0, 0, 0.8);
}

.lightbox-nav-left {
    left: 30px;
}

.lightbox-nav-right {
    right: 30px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Search */
.search-container {
    flex: 1;
    max-width: 500px;
    margin: 0 30px;
    position: relative;
}

.search-form {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    width: 100%;
    padding: 10px 45px 10px 15px;
    border: 2px solid #2a2a2a;
    border-radius: 2px;
    font-size: 0.95rem;
    transition: all 0.3s;
    outline: none;
    background: #1a1a1a;
    color: #d4d4d4;
}

.search-input::placeholder {
    color: #555;
}

.search-input:focus {
    border-color: #8B0000;
    box-shadow: 0 0 15px rgba(139, 0, 0, 0.3);
    background: #0a0a0a;
}

.search-button {
    position: absolute;
    right: 5px;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: #C9B037;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 2px;
    transition: all 0.3s;
}

.search-button:hover {
    color: #8B0000;
    background: rgba(139, 0, 0, 0.2);
}

.search-button svg {
    display: block;
}

/* Autocomplete */
.autocomplete-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #1a1a1a;
    border: 2px solid #8B0000;
    border-radius: 2px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.8);
    margin-top: 5px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
}

.autocomplete-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.autocomplete-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    cursor: pointer;
    border-bottom: 1px solid #2a2a2a;
    transition: all 0.3s;
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item:hover,
.autocomplete-item.active {
    background: rgba(139, 0, 0, 0.2);
    border-left: 3px solid #8B0000;
}

.autocomplete-image {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 2px;
    margin-right: 12px;
    flex-shrink: 0;
    border: 1px solid #2a2a2a;
}

.autocomplete-info {
    flex: 1;
    min-width: 0;
}

.autocomplete-title {
    font-weight: 600;
    color: #fff;
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.autocomplete-title strong {
    color: #C9B037;
    font-weight: 700;
}

.autocomplete-secondary {
    font-size: 0.85rem;
    color: #888;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Search Results */
.search-query {
    color: #888;
    font-size: 1rem;
    margin-bottom: 5px;
}

.search-query strong {
    color: #C9B037;
}

.clear-search {
    display: inline-block;
    color: #C9B037;
    text-decoration: none;
    font-size: 0.9rem;
    margin-top: 10px;
    padding: 5px 15px;
    border: 2px solid #C9B037;
    border-radius: 2px;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

.clear-search:hover {
    background: #C9B037;
    color: #0a0a0a;
    box-shadow: 0 0 15px rgba(201, 176, 55, 0.5);
}

/* Responsive */
@media (max-width: 992px) {
    .products-page {
        grid-template-columns: 1fr;
    }

    .products-sidebar {
        border-bottom: 2px solid #8B0000;
        padding-bottom: 20px;
        margin-bottom: 20px;
    }

    .category-list {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .product-detail {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .product-images {
        position: static;
    }

    .header-content {
        flex-wrap: wrap;
        gap: 15px;
    }

    .search-container {
        order: 3;
        width: 100%;
        max-width: 100%;
        margin: 0;
    }

    .image-thumbnails {
        max-width: calc(100vw - 140px);
    }

    .thumbnails-container {
        gap: 5px;
    }

    .thumbnail-nav {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .hero h2 {
        font-size: 2rem;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 20px;
    }

    .main-nav {
        gap: 15px;
    }

    .main-nav a {
        font-size: 0.8rem;
    }

    .search-input {
        font-size: 0.9rem;
        padding: 8px 40px 8px 12px;
    }

    .autocomplete-image {
        width: 40px;
        height: 40px;
    }

    .autocomplete-item {
        padding: 10px 12px;
    }

    section h2 {
        font-size: 2rem;
    }

    .container {
        padding: 0 15px;
    }

    .product-detail {
        gap: 20px;
        padding: 20px 0;
    }

    .product-images {
        max-width: 100%;
    }

    .main-image {
        margin-bottom: 15px;
        width: 100%;
        max-width: 100%;
    }

    .image-thumbnails {
        max-width: calc(100vw - 120px);
    }

    .thumbnail {
        width: 70px;
        min-width: 70px;
        height: 70px;
    }

    .thumbnail-nav {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }

    .product-detail {
        padding: 15px 0;
        gap: 15px;
    }

    .main-image {
        margin-bottom: 10px;
    }

    .image-thumbnails {
        max-width: calc(100vw - 100px);
    }

    .thumbnail {
        width: 60px;
        min-width: 60px;
        height: 60px;
    }

    .thumbnail-nav {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }

    .thumbnails-container {
        gap: 3px;
    }

    .breadcrumb {
        font-size: 0.75rem;
    }

    .product-info h1 {
        font-size: 1.5rem;
    }
}

/* ===== Codex Styles ===== */

.codex-page {
    padding: 40px 0;
}

.codex-header {
    margin-bottom: 40px;
    text-align: center;
}

.codex-header h1 {
    font-size: 2.5rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 900;
    text-shadow: 0 0 10px rgba(139, 0, 0, 0.6);
    margin-bottom: 15px;
}

.codex-intro {
    color: #888;
    font-size: 1.1rem;
}

.codex-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.codex-card {
    background: #1a1a1a;
    padding: 25px;
    border-radius: 2px;
    text-decoration: none;
    color: inherit;
    border: 2px solid #2a2a2a;
    transition: all 0.3s;
    display: block;
}

.codex-card:hover {
    border-color: #8B0000;
    transform: translateY(-3px);
    box-shadow: 0 0 20px rgba(139, 0, 0, 0.4);
}

.codex-card h3 {
    color: #C9B037;
    font-size: 1.25rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.codex-excerpt {
    color: #aaa;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.codex-aliases {
    font-size: 0.8rem;
}

.alias-label {
    color: #666;
    margin-right: 8px;
}

.alias {
    display: inline-block;
    background: #2a2a2a;
    padding: 3px 8px;
    border-radius: 2px;
    color: #888;
    margin-right: 5px;
    margin-bottom: 5px;
}

.no-entries {
    text-align: center;
    padding: 60px 20px;
    color: #555;
}

/* Codex Entry Page */
.codex-entry-page {
    padding: 40px 0;
}

.codex-entry-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 40px;
}

.codex-sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
}

.codex-sidebar h3 {
    color: #C9B037;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #8B0000;
}

.codex-nav-list {
    list-style: none;
    max-height: 60vh;
    overflow-y: auto;
}

.codex-nav-list li {
    margin-bottom: 5px;
}

.codex-nav-list a {
    display: block;
    padding: 8px 12px;
    color: #aaa;
    text-decoration: none;
    font-size: 0.9rem;
    border-radius: 2px;
    transition: all 0.3s;
}

.codex-nav-list a:hover,
.codex-nav-list a.active {
    background: #8B0000;
    color: #fff;
}

.codex-entry-content {
    background: #1a1a1a;
    padding: 40px;
    border-radius: 2px;
    border: 2px solid #2a2a2a;
}

.entry-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #8B0000;
}

.entry-header h1 {
    font-size: 2rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.entry-aliases {
    margin-top: 10px;
}

.entry-body {
    line-height: 1.8;
    color: #aaa;
}

.entry-body p {
    margin-bottom: 20px;
}

.entry-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #2a2a2a;
}

/* Codex Term Links */
.codex-term {
    color: #C9B037;
    text-decoration: none;
    border-bottom: 1px dotted #C9B037;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.codex-term:hover {
    color: #fff;
    border-bottom-color: #fff;
    text-shadow: 0 0 8px rgba(201, 176, 55, 0.6);
}

/* Codex Tooltip */
.codex-tooltip {
    position: fixed;
    background: #1a1a1a;
    border: 2px solid #8B0000;
    border-radius: 2px;
    padding: 15px 20px;
    max-width: 350px;
    width: max-content;
    z-index: 10000;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.8);
    animation: tooltipFadeIn 0.2s ease;
    pointer-events: auto;
}

.codex-tooltip::before {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border: 8px solid transparent;
}

.codex-tooltip.tooltip-above::before {
    bottom: -16px;
    left: 20px;
    border-top-color: #8B0000;
}

.codex-tooltip.tooltip-below::before {
    top: -16px;
    left: 20px;
    border-bottom-color: #8B0000;
}

.codex-tooltip-title {
    color: #C9B037;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.codex-tooltip-content {
    color: #aaa;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 12px;
}

.codex-tooltip-link {
    display: inline-block;
    color: #8B0000;
    font-size: 0.85rem;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s;
}

.codex-tooltip-link:hover {
    color: #C9B037;
}

.codex-tooltip-close {
    position: absolute;
    top: 8px;
    right: 10px;
    background: none;
    border: none;
    color: #666;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    display: none;
}

/* Show close button on mobile */
@media (max-width: 768px) {
    .codex-tooltip-close {
        display: block;
    }
}

@keyframes tooltipFadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Codex */
@media (max-width: 992px) {
    .codex-entry-layout {
        grid-template-columns: 1fr;
    }

    .codex-sidebar {
        position: static;
        border-bottom: 2px solid #8B0000;
        padding-bottom: 20px;
        margin-bottom: 20px;
    }

    .codex-nav-list {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        max-height: none;
    }

    .codex-nav-list li {
        margin-bottom: 0;
    }
}

@media (max-width: 768px) {
    .codex-entry-content {
        padding: 25px;
    }

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

    .codex-tooltip {
        max-width: calc(100vw - 40px);
        left: 20px !important;
        right: 20px !important;
    }
}

/* ===================================
   Shopping Cart / List Styles
   =================================== */

/* Cart Icon in Header */
.cart-icon-container {
    position: relative;
}

.cart-icon {
    color: #d4d4d4;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: color 0.3s;
}

.cart-icon:hover {
    color: #8B0000;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #8B0000;
    color: #fff;
    font-size: 0.7rem;
    font-weight: bold;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* Product Actions (Quantity + Add to Cart) */
.product-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 25px 0;
    padding: 20px 0;
    border-top: 1px solid #333;
    border-bottom: 1px solid #333;
}

.quantity-selector {
    display: flex;
    align-items: center;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 4px;
    overflow: hidden;
}

.qty-btn {
    background: #2a2a2a;
    border: none;
    color: #d4d4d4;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s;
}

.qty-btn:hover {
    background: #8B0000;
    color: #fff;
}

.quantity-selector input {
    width: 50px;
    height: 40px;
    text-align: center;
    border: none;
    background: #1a1a1a;
    color: #d4d4d4;
    font-size: 1rem;
    -moz-appearance: textfield;
}

.quantity-selector input::-webkit-outer-spin-button,
.quantity-selector input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

#add-to-cart {
    flex: 1;
    max-width: 250px;
}

#add-to-cart:disabled {
    background: #444;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Cart Toast Notification */
.cart-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #8B0000;
    color: #fff;
    padding: 15px 25px;
    border-radius: 8px;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
}

.cart-toast.show {
    transform: translateY(0);
    opacity: 1;
}

/* Cart Page */
.cart-page {
    padding: 40px 0;
}

.cart-page h1 {
    color: #C9B037;
    font-size: 2rem;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.cart-empty {
    text-align: center;
    padding: 60px 20px;
    color: #888;
}

.cart-empty p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #1a1a1a;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #333;
}

.cart-item-image {
    width: 100px;
    height: 100px;
    object-fit: contain;
    background: #0a0a0a;
    border-radius: 4px;
}

.cart-item-info {
    flex: 1;
}

.cart-item-title {
    color: #C9B037;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
    text-decoration: none;
}

.cart-item-title:hover {
    color: #d4c054;
}

.cart-item-price {
    color: #8B0000;
    font-size: 1rem;
    font-weight: 700;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
}

.cart-item-remove {
    background: transparent;
    border: 1px solid #8B0000;
    color: #8B0000;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.cart-item-remove:hover {
    background: #8B0000;
    color: #fff;
}

.cart-summary {
    background: #1a1a1a;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #333;
    margin-top: 20px;
}

.cart-total {
    font-size: 1.5rem;
    font-weight: 700;
    color: #C9B037;
    margin-bottom: 20px;
}

#send-list-btn {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
}

/* Contact Modal */
.contact-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.contact-modal.active {
    display: flex;
}

.modal-content {
    background: #1a1a1a;
    padding: 40px;
    border-radius: 12px;
    border: 1px solid #333;
    max-width: 500px;
    width: 90%;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    color: #888;
    font-size: 1.5rem;
    cursor: pointer;
}

.modal-close:hover {
    color: #d4d4d4;
}

.modal-content h2 {
    color: #C9B037;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.modal-content > p {
    color: #888;
    margin-bottom: 25px;
}

.contact-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 20px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s;
}

.contact-btn svg {
    width: 24px;
    height: 24px;
}

.contact-btn.email-btn {
    background: #EA4335;
}

.contact-btn.email-btn:hover {
    background: #d33426;
}

.contact-btn.telegram-btn {
    background: #0088cc;
}

.contact-btn.telegram-btn:hover {
    background: #0077b3;
}

.contact-btn.line-btn {
    background: #00B900;
}

.contact-btn.line-btn:hover {
    background: #00a000;
}

.contact-btn.copy-btn {
    background: #666;
}

.contact-btn.copy-btn:hover {
    background: #555;
}

/* Preview Panel */
.preview-panel {
    margin-top: 10px;
}

.preview-panel label {
    display: block;
    color: #d4d4d4;
    margin-bottom: 10px;
    font-weight: 500;
}

.preview-panel pre {
    background: #0a0a0a;
    border: 1px solid #333;
    border-radius: 4px;
    padding: 15px;
    color: #d4d4d4;
    font-size: 0.85rem;
    line-height: 1.5;
    white-space: pre-wrap;
    word-wrap: break-word;
    word-break: break-word;
    max-height: 300px;
    overflow-y: auto;
    overflow-x: hidden;
    margin-bottom: 15px;
    max-width: 100%;
}

/* Email Form */
.email-form {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #333;
}

.email-form .form-group {
    margin-bottom: 15px;
}

.email-form label {
    display: block;
    color: #d4d4d4;
    margin-bottom: 5px;
    font-weight: 500;
}

.email-form input,
.email-form textarea {
    width: 100%;
    padding: 12px;
    background: #0a0a0a;
    border: 1px solid #333;
    border-radius: 4px;
    color: #d4d4d4;
    font-size: 1rem;
}

.email-form input:focus,
.email-form textarea:focus {
    outline: none;
    border-color: #8B0000;
}

.email-form textarea {
    min-height: 100px;
    resize: vertical;
}

.email-form .btn {
    width: 100%;
    margin-top: 10px;
}

/* Cart Page Mobile */
@media (max-width: 768px) {
    .product-actions {
        flex-direction: row;
        align-items: center;
        flex-wrap: nowrap;
        gap: 10px;
    }

    .product-actions .quantity-selector {
        flex-shrink: 0;
    }

    .product-actions .qty-btn {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .product-actions .quantity-selector input {
        width: 40px;
        height: 36px;
        font-size: 0.9rem;
    }

    #add-to-cart {
        flex: 1;
        max-width: none;
        padding: 10px 15px;
        font-size: 0.9rem;
    }

    .cart-item {
        flex-wrap: wrap;
    }

    .cart-item-image {
        width: 80px;
        height: 80px;
    }

    .cart-item-quantity {
        width: 100%;
        margin-top: 10px;
        justify-content: space-between;
    }

    .cart-toast {
        left: 20px;
        right: 20px;
        bottom: 20px;
    }
}

/* ===== Promotions ===== */
.promotions-page h1 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #C9B037;
    text-shadow: 0 0 10px rgba(201, 176, 55, 0.4);
}

.promotions-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.promotion-preview {
    background: #1a1a1a;
    border: 2px solid #2a2a2a;
    border-radius: 2px;
    overflow: hidden;
    display: flex;
    gap: 20px;
    transition: all 0.3s;
}

.promotion-preview:hover {
    border-color: #8B0000;
    box-shadow: 0 0 20px rgba(139, 0, 0, 0.4);
}

.promotion-banner-link {
    flex-shrink: 0;
    width: 300px;
}

.promotion-banner-thumb {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.promotion-info {
    padding: 20px;
    flex: 1;
}

.promotion-preview h2 {
    margin: 0 0 10px;
    font-size: 1.5rem;
}

.promotion-preview h2 a {
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.promotion-preview h2 a:hover {
    color: #C9B037;
}

.promo-meta {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.promo-excerpt {
    color: #aaa;
    margin-bottom: 15px;
}

.promo-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 2px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-right: 10px;
}

.promo-badge.active {
    background: #8B0000;
    color: #fff;
}

.no-promotions {
    color: #666;
    text-align: center;
    padding: 60px 20px;
}

/* Promotion Detail */
.promotion-detail {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 0;
}

.promotion-banner {
    margin-bottom: 30px;
    border-radius: 2px;
    overflow: hidden;
}

.promotion-banner img {
    width: 100%;
    height: auto;
    display: block;
}

.promotion-header {
    margin-bottom: 30px;
}

.promotion-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.promotion-content {
    line-height: 1.8;
    margin-bottom: 40px;
    color: #aaa;
}

.promotion-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px 0;
    border-radius: 4px;
}

.promotion-content h2 {
    font-size: 1.75rem;
    margin-top: 40px;
    margin-bottom: 20px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-bottom: 2px solid #8B0000;
    padding-bottom: 10px;
}

.promotion-content h3 {
    font-size: 1.5rem;
    margin-top: 30px;
    margin-bottom: 15px;
    color: #C9B037;
}

.promotion-content p {
    margin-bottom: 20px;
}

.promotion-products {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 2px solid #2a2a2a;
}

.promotion-products h2 {
    font-size: 1.75rem;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #C9B037;
}

.promotion-footer {
    padding-top: 30px;
    border-top: 1px solid #2a2a2a;
    margin-top: 40px;
}

/* Homepage Promotion Banner */
.promo-banner-section {
    margin-bottom: 40px;
}

.promo-banner-link {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    border: 2px solid #8B0000;
    transition: all 0.3s;
}

.promo-banner-link:hover {
    box-shadow: 0 0 30px rgba(139, 0, 0, 0.6);
}

.promo-banner-link img {
    width: 100%;
    height: auto;
    display: block;
}

.promo-banner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 30px;
    color: #fff;
}

.promo-banner-overlay h3 {
    font-size: 1.5rem;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.promo-banner-overlay p {
    margin: 10px 0 0;
    color: #C9B037;
    font-size: 0.9rem;
}

/* Responsive promotions */
@media (max-width: 768px) {
    .promotion-preview {
        flex-direction: column;
    }

    .promotion-banner-link {
        width: 100%;
    }

    .promotion-banner-thumb {
        height: 200px;
    }

    .promotion-header h1 {
        font-size: 1.75rem;
    }
}

/* ===================================
   Mobile Navigation
   =================================== */

/* Hamburger Button - Hidden on desktop */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    padding: 8px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background: #d4d4d4;
    margin: 3px 0;
    transition: all 0.3s ease;
}

.hamburger-btn:hover .hamburger-line {
    background: #C9B037;
}

/* Hamburger animation when open */
.hamburger-btn.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Search Button - Hidden on desktop */
.mobile-search-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    color: #d4d4d4;
    cursor: pointer;
    transition: color 0.3s;
}

.mobile-search-btn:hover {
    color: #C9B037;
}

/* Mobile Search Container - Hidden by default */
.mobile-search-container {
    display: none;
    padding: 15px 0 5px;
    border-top: 1px solid #2a2a2a;
    margin-top: 15px;
}

.mobile-search-container.active {
    display: block;
}

.mobile-search-container .search-form {
    position: relative;
}

.mobile-search-container .search-input {
    width: 100%;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

/* Mobile Menu Slide-out */
.mobile-menu {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100%;
    background: #1a1a1a;
    z-index: 999;
    overflow-y: auto;
    transition: left 0.3s ease;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.5);
}

.mobile-menu.active {
    left: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 2px solid #8B0000;
    background: #0a0a0a;
}

.mobile-menu-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #C9B037;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.mobile-menu-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    color: #888;
    cursor: pointer;
    transition: color 0.3s;
}

.mobile-menu-close:hover {
    color: #8B0000;
}

.mobile-menu-links {
    padding: 10px 0;
}

.mobile-menu-links > a {
    display: block;
    padding: 15px 20px;
    color: #d4d4d4;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid #2a2a2a;
    transition: all 0.3s;
}

.mobile-menu-links > a:hover {
    background: rgba(139, 0, 0, 0.2);
    color: #fff;
    padding-left: 25px;
}

/* Mobile Menu Categories Section */
.mobile-menu-section {
    padding: 10px 0;
    border-bottom: 1px solid #2a2a2a;
}

.mobile-menu-section-title {
    display: block;
    padding: 10px 20px;
    color: #C9B037;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.mobile-menu-category {
    display: block;
    padding: 12px 20px 12px 35px;
    color: #aaa;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.mobile-menu-category:hover {
    background: rgba(139, 0, 0, 0.15);
    color: #fff;
    padding-left: 40px;
}

/* Mobile Menu Cart Link */
.mobile-menu-cart {
    display: flex !important;
    align-items: center;
    gap: 10px;
    background: rgba(139, 0, 0, 0.1);
    margin: 10px;
    border-radius: 4px;
    border: 1px solid #8B0000 !important;
}

.mobile-menu-cart:hover {
    background: #8B0000 !important;
}

.mobile-menu-cart svg {
    flex-shrink: 0;
}

/* Body scroll lock when menu is open */
body.menu-open {
    overflow: hidden;
}

/* ===================================
   Mobile Responsive Overrides
   =================================== */

@media (max-width: 992px) {
    /* Show hamburger and mobile search button */
    .hamburger-btn {
        display: flex;
    }

    .mobile-search-btn {
        display: flex;
    }

    /* Hide desktop navigation, search, and header-right wrapper */
    .main-nav {
        display: none;
    }

    .search-container {
        display: none;
    }

    .header-right {
        display: none;
    }

    /* Reorganize header - override the wrap behavior */
    .header-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
        flex-wrap: nowrap;
    }

    .site-header {
        padding: 12px 0;
    }

    /* Logo adjustments */
    .site-logo {
        flex: 1;
        display: flex;
        justify-content: center;
    }

    .site-logo .logo-img {
        height: 40px;
    }

    .site-logo .logo-tagline {
        display: none;
    }

    /* Cart icon stays visible */
    .cart-icon-container {
        order: 4;
    }
}

@media (max-width: 768px) {
    /* Hero section mobile */
    .hero {
        padding: 60px 0;
    }

    .hero h2 {
        font-size: 1.5rem;
        letter-spacing: 1px;
    }

    .hero p {
        font-size: 1rem;
    }
}
