/* MyDucan WordPress Theme - Main Stylesheet */

/* Import the style.css variables and base styles */
@import url('../../../style.css');

/* Additional theme-specific styles */

/* Header Styles */
.site-header {
    background-color: var(--card);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-soft);
}

.header-top {
    padding: 1rem 0;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.site-branding img {
    max-height: 60px;
    width: auto;
}

.site-identity {
    display: flex;
    flex-direction: column;
}

.site-identity h1 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.site-identity h1 a {
    color: var(--primary);
    text-decoration: none;
}

.site-identity .site-description {
    margin: 0;
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

/* Main Navigation */
.main-navigation {
    display: flex;
    gap: 2rem;
    flex: 2;
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 2rem;
}

.main-navigation a {
    color: var(--foreground);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.main-navigation a:hover {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* Submenu */
.main-navigation ul ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    flex-direction: column;
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lift);
    padding: 0.5rem 0;
    min-width: 200px;
}

.main-navigation li:hover > ul {
    display: flex;
}

.main-navigation ul ul a {
    padding: 0.5rem 1rem;
    border: none;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.cart-link {
    position: relative;
    display: flex;
    align-items: center;
    padding: 0.5rem;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.cart-link:hover {
    background-color: var(--primary-soft);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--destructive);
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

.theme-toggle {
    padding: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--foreground);
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    color: var(--primary);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    gap: 4px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background-color: var(--foreground);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 3rem;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(212, 118, 26, 0.6), rgba(87, 51, 152, 0.6));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* Page Header */
.page-header {
    background-color: var(--secondary);
    padding: 3rem 0;
    margin-bottom: 2rem;
}

.page-header-content {
    text-align: center;
}

.page-title {
    margin-bottom: 1rem;
    color: var(--foreground);
}

.page-subtitle {
    color: var(--muted-foreground);
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

/* Breadcrumbs */
.breadcrumbs {
    display: flex;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--muted-foreground);
    flex-wrap: wrap;
}

.breadcrumbs a {
    color: var(--primary);
}

/* Vendor Card */
.vendor-card {
    overflow: hidden;
    height: 100%;
}

.vendor-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

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

.vendor-image .placeholder-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--secondary), var(--muted));
}

.badge-verified {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: var(--mint);
    color: var(--mint-foreground);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
}

.vendor-info {
    padding: 1.5rem;
}

.vendor-info h3 {
    margin-bottom: 0.5rem;
}

.vendor-info a {
    color: var(--foreground);
}

.rating-stars {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

.star {
    color: var(--accent);
    font-size: 1rem;
}

.star-half {
    opacity: 0.5;
}

.star-empty {
    opacity: 0.2;
}

.rating-count {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin-left: 0.5rem;
}

.vendor-category {
    display: block;
    margin-bottom: 1rem;
}

/* Product Card */
.product-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.product-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: var(--secondary);
}

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

.badge-sale {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: var(--destructive);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
}

.product-info {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-info h3 {
    margin-bottom: 0.5rem;
}

.product-info a {
    color: var(--foreground);
}

.product-rating {
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
    margin-top: auto;
}

.woocommerce-price-currency {
    font-size: 0.875rem;
    margin-left: 0.25rem;
}

/* Category Card */
.category-card {
    overflow: hidden;
}

.category-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: var(--secondary);
}

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

.category-info {
    padding: 1.5rem;
}

.category-info h3 {
    margin-bottom: 0.5rem;
}

.category-info a {
    color: var(--foreground);
}

/* Promotion Card */
.promotion-card {
    text-align: center;
}

.promotion-card img {
    width: 100%;
    height: auto;
}

/* Section Styles */
.section-title {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.featured-vendors-section,
.featured-products-section,
.categories-section,
.promotions-section {
    margin-bottom: 3rem;
}

.py-12 {
    padding: 3rem 0;
}

.bg-light {
    background-color: var(--secondary);
}

.bg-brand-gradient {
    background: var(--gradient-brand);
}

/* Footer Styles */
.site-footer {
    background-color: var(--card);
    border-top: 1px solid var(--border);
    margin-top: 4rem;
}

.footer-top {
    padding: 3rem 0;
}

.footer-widget {
    margin-bottom: 2rem;
}

.footer-widget h4 {
    margin-bottom: 1rem;
}

.footer-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-nav li {
    margin-bottom: 0.5rem;
}

.footer-nav a {
    color: var(--foreground);
    text-decoration: none;
}

.footer-nav a:hover {
    color: var(--primary);
}

.site-branding-footer {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.site-branding-footer img {
    max-height: 50px;
    width: auto;
}

/* Newsletter */
.footer-newsletter {
    background-color: var(--primary-soft);
    padding: 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    margin-bottom: 2rem;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-family: inherit;
}

.newsletter-form button {
    padding: 0.75rem 1.5rem;
}

/* Footer Bottom */
.footer-bottom {
    background-color: var(--secondary);
    padding: 2rem 0;
    border-top: 1px solid var(--border);
}

.footer-bottom {
    font-size: 0.875rem;
}

.footer-links ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--foreground);
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--muted);
    color: var(--foreground);
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background-color: var(--primary);
    color: var(--primary-foreground);
}

/* Pagination */
.pagination {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 2rem;
}

.pagination a,
.pagination span {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--foreground);
}

.pagination a:hover {
    background-color: var(--primary);
    color: var(--primary-foreground);
    border-color: var(--primary);
}

.pagination .current {
    background-color: var(--primary);
    color: var(--primary-foreground);
    border-color: var(--primary);
}

/* Content Styles */
.site-main {
    min-height: 400px;
}

.main-content {
    width: 100%;
}

/* Sidebar */
#secondary {
    width: 100%;
}

.widget-area .widget {
    background-color: var(--card);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    margin-bottom: 1.5rem;
}

.widget-title {
    margin-top: 0;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--primary);
}

/* Mobile Menu */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .main-navigation {
        position: fixed;
        top: 70px;
        left: -300px;
        width: 300px;
        height: calc(100vh - 70px);
        flex-direction: column;
        background-color: var(--card);
        transition: left 0.3s ease;
        z-index: 99;
        overflow-y: auto;
    }

    .main-navigation.active {
        left: 0;
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 0;
    }

    .main-navigation a {
        display: block;
        padding: 1rem;
        border: none;
        border-bottom: 1px solid var(--border);
    }

    .main-navigation ul ul {
        position: static;
        display: none;
        border: none;
        box-shadow: none;
        background-color: var(--secondary);
    }

    .main-navigation li:hover > ul {
        display: flex;
    }

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }

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

    .hero-subtitle {
        font-size: 1.125rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
    }

    .footer-links ul {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Dark Mode */
.dark {
    color-scheme: dark;
}

/* Utilities */
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }

.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }

.py-12 { padding: 3rem 0; }

.text-center { text-align: center; }
.text-muted { color: var(--muted-foreground); }
.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }

.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeInUp 0.3s ease-out;
}

/* Print Styles */
@media print {
    .site-header,
    .site-footer,
    .sidebar,
    .pagination {
        display: none;
    }

    body {
        background: white;
        color: black;
    }
}
