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

body {
    font-family: "Macondo", cursive;
    background-color: black;
    color: white;
    line-height: 1.6;
    font-size: 1rem;
    position: relative;
    min-height: 100vh;
}

a {
    color: #e0e0e0;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #ffffff;
    text-decoration: underline;
}

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

/* Header */
header {
    padding: 20px 0;
    text-align: center;
}

.logo {
    margin: 0 auto 20px;
    max-width: 300px;
}

.logo img {
    width: 100%;
    height: auto;
}

.navbar {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav-link {
    font-size: 1.1rem;
    letter-spacing: 1px;
    padding: 5px 10px;
    border: 1px solid transparent;
}

.nav-link:hover {
    border-color: white;
    text-decoration: none;
}

/* Tooltip styles */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(40, 40, 40, 0.9);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease-in-out;
    pointer-events: none;
    z-index: 10;
    font-family: "Macondo", cursive;
    border: 1px solid #666;
    margin-bottom: 5px;
}

.nav-link:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Hero Section */
.hero {
    text-align: center;
    margin: 40px 0;
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-text {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
}

/* Two Column Layout */
.two-column {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin: 40px 0;
}

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

/* Home Page */
.intro-text {
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.featured-products {
    margin: 40px 0;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 20px;
    text-align: center;
}

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

.product-card {
    border: 1px solid #333;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.product-card:hover {
    border-color: white;
    transform: translateY(-5px);
}

.product-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 10px;
    background-color: #111;
}

.product-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.product-price {
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.btn {
    display: inline-block;
    padding: 8px 16px;
    background-color: transparent;
    color: white;
    border: 1px solid white;
    cursor: pointer;
    font-family: "Macondo", cursive;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: white;
    color: black;
    text-decoration: none;
}

.btn-primary {
    background-color: #333;
}

.recent-posts {
    margin: 40px 0;
}

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

.post-card {
    border: 1px solid #333;
    overflow: hidden;
}

.post-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background-color: #111;
}

.post-content {
    padding: 15px;
}

.post-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

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

.post-date {
    font-size: 0.9rem;
    color: #ccc;
}

/* About Page */
.about-content {
    max-width: 800px;
    margin: 0 auto;
}

/* Products Page */
.category-filter {
    margin-bottom: 30px;
    text-align: center;
}

.filter-btn {
    margin: 0 5px 10px;
}

.active-filter {
    background-color: white;
    color: black;
}

/* Product Detail Page */
.product-detail {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin: 40px 0;
}

.product-detail-gallery {
    flex: 1;
    min-width: 300px;
}

.product-detail-img {
    width: 100%;
    margin-bottom: 15px;
    position: relative;
}

.product-detail-img img.main-media,
.product-detail-img video.main-media {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    border: 1px solid #333;
    background-color: #111;
}

.product-detail-img video.main-media {
    display: block;
}

.product-thumbnails {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
    max-width: 100%;
    overflow-x: auto;
    padding-bottom: 5px;
}

.thumbnail {
    width: 80px;
    height: 80px;
    border: 1px solid #333;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.3s ease;
    background-color: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.thumbnail:hover, .thumbnail.active {
    opacity: 1;
    border-color: #ffc107;
    transform: scale(1.05);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-thumbnail {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #111;
}

.video-thumbnail svg {
    width: 30px;
    height: 30px;
    color: #ccc;
}

/* Gallery lightbox styles */
.gallery-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.gallery-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: -30px;
    right: 0;
    color: white;
    font-size: 24px;
    cursor: pointer;
    z-index: 1001;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
}

.lightbox-prev, .lightbox-next {
    color: white;
    font-size: 30px;
    cursor: pointer;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.5);
}

/* Product image upload preview */
.image-preview-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.image-preview-item {
    width: 120px;
    height: 120px;
    border: 1px solid #333;
    position: relative;
    background-color: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.image-preview-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.image-preview-remove {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 20px;
    height: 20px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
}

/* Sortable styling */
.sortable-ghost {
    opacity: 0.4;
    border: 2px dashed #ffc107;
}

.product-detail-info {
    flex: 1;
    min-width: 300px;
}

.product-detail-title {
    font-size: 2rem;
    margin-bottom: 20px;
}

.product-detail-price {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.product-detail-description {
    margin-bottom: 30px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.quantity-input {
    width: 60px;
    padding: 8px;
    text-align: center;
    margin: 0 10px;
    background-color: black;
    color: white;
    border: 1px solid #333;
}

.related-products {
    margin: 60px 0;
}

/* Cart Page */
.cart-items {
    margin-bottom: 30px;
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #333;
}

.cart-item-img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    margin-right: 20px;
    background-color: #111;
}

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

.cart-item-title {
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.cart-item-price {
    margin-bottom: 10px;
}

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

.cart-quantity {
    width: 50px;
    padding: 5px;
    text-align: center;
    margin: 0 10px;
    background-color: black;
    color: white;
    border: 1px solid #333;
}

.cart-summary {
    padding: 20px;
    border: 1px solid #333;
    max-width: 400px;
    margin-left: auto;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

/* Checkout Page */
.checkout-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: .5rem;
}

.form-control {
    width: 100%;
    padding: 10px;
    background-color: black;
    color: white;
    border: 1px solid #333;
    font-family: "Macondo", cursive;
}

.checkout-summary {
    margin-top: 40px;
    padding: 20px;
    border: 1px solid #333;
}

/* Blog Page */
.blog-header {
    text-align: center;
    margin-bottom: 40px;
}

.blog-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.blog-filters {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.pagination {
    display: flex;
    justify-content: center;
    list-style: none;
    margin-top: 40px;
}

.page-item {
    margin: 0 5px;
}

.page-link {
    padding: 5px 10px;
    border: 1px solid #333;
}

.page-item.active .page-link {
    background-color: white;
    color: black;
}

/* Blog Post Page */
.post-header {
    text-align: center;
    margin-bottom: 40px;
}

.post-header-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.post-meta {
    color: #ccc;
    margin-bottom: 20px;
}

.post-featured-img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    margin-bottom: 40px;
    background-color: #111;
}

.post-body {
    max-width: 800px;
    margin: 0 auto 60px;
    line-height: 1.8;
}

/* Contact Page */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form .btn {
    margin-top: 20px;
}

/* Footer */
footer {
    text-align: center;
    padding: 40px 0;
    margin-top: 60px;
    border-top: 1px solid #333;
}

.footer-nav {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.footer-nav-list {
    display: flex;
    list-style: none;
    gap: 20px;
}

.newsletter-form {
    max-width: 400px;
    margin: 0 auto 30px;
    display: flex;
}

.newsletter-input {
    flex: 1;
    padding: 10px;
    background-color: black;
    color: white;
    border: 1px solid #333;
    border-right: none;
    font-family: "Macondo", cursive;
}

.newsletter-btn {
    padding: 10px 20px;
    background-color: transparent;
    color: white;
    border: 1px solid #333;
    cursor: pointer;
    font-family: "Macondo", cursive;
    transition: all 0.3s ease;
}

.newsletter-btn:hover {
    background-color: white;
    color: black;
    border-color: white;
}

.copyright {
    color: #ccc;
    font-size: 0.9rem;
}

/* Flash Messages */
.flash-messages {
    list-style: none;
    margin-bottom: 20px;
}

.flash-message {
    padding: 10px 15px;
    margin-bottom: 10px;
    border-radius: 4px;
}

.flash-success {
    background-color: rgba(40, 167, 69, 0.1);
    border: 1px solid #28a745;
    color: #28a745;
}

.flash-danger {
    background-color: rgba(220, 53, 69, 0.1);
    border: 1px solid #dc3545;
    color: #dc3545;
}

.flash-warning {
    background-color: rgba(255, 193, 7, 0.1);
    border: 1px solid #ffc107;
    color: #ffc107;
}

.flash-info {
    background-color: rgba(23, 162, 184, 0.1);
    border: 1px solid #17a2b8;
    color: #17a2b8;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-list, .footer-nav-list {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .product-detail, .two-column {
        flex-direction: column;
    }
    
    .cart-item {
        flex-wrap: wrap;
    }
    
    .cart-item-img {
        margin-bottom: 10px;
    }
    
    .cart-summary {
        margin: 0 auto;
    }
}

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

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #333;
}

.admin-title {
    font-size: 2rem;
}

.admin-nav {
    display: flex;
    gap: 20px;
}

.admin-section {
    margin-bottom: 40px;
}

.admin-card {
    padding: 20px;
    border: 1px solid #333;
    margin-bottom: 20px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.admin-table th,
.admin-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #333;
}

.admin-table th {
    background-color: #111;
}

.admin-action-btn {
    padding: 5px 10px;
    margin-right: 5px;
    background-color: transparent;
    color: white;
    border: 1px solid white;
    cursor: pointer;
    font-family: "Macondo", cursive;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.admin-action-btn:hover {
    background-color: white;
    color: black;
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.admin-stat-card {
    padding: 20px;
    border: 1px solid #333;
    text-align: center;
}

.admin-stat-value {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.admin-stat-label {
    font-size: 1.1rem;
    color: #ccc;
}

.admin-chart {
    width: 100%;
    height: 300px;
    margin-bottom: 40px;
    border: 1px solid #333;
    padding: 20px;
}

/* CKEditor override */
.cke_chrome {
    border-color: #333 !important;
    background-color: #111 !important;
}

.cke_top, .cke_bottom {
    background-color: #111 !important;
    border-color: #333 !important;
}

/* Send Word by Raven button */
.raven-btn {
    background-color: transparent;
    border: 2px solid white;
    color: white;
    padding: 10px 20px;
    font-family: "Macondo", cursive;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
    cursor: pointer;
}

.raven-btn:hover {
    background-color: white;
    color: black;
    text-decoration: none;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    border: 1px dashed #333;
    margin: 20px 0;
}

.empty-state-message {
    font-size: 1.3rem;
    color: #ccc;
    margin-bottom: 20px;
}
.hero-section {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    height: 400px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logo {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 400px;
    z-index: 2;
}

.logo img {
    max-width: 300px;
}

.invert-logo {
    filter: invert(0);
}
