/**
 * Theme Pack - Responsive CSS Rules
 * WoodMart-style theme with responsive grid system
 */

/* Responsive Breakpoints */
:root {
    --breakpoint-mobile: 768px;
    --breakpoint-tablet: 1280px;
    --breakpoint-desktop: 1280px;
}

/* Grid System - Desktop (≥1280px) */
@media (min-width: 1280px) {
    .theme-product-grid {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 24px;
    }
    
    .theme-hero-grid {
        display: grid;
        grid-template-columns: 7fr 5fr;
        gap: 24px;
    }
    
    .theme-footer-columns {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 32px;
    }
}

/* Grid System - Tablet (768px-1279px) */
@media (min-width: 768px) and (max-width: 1279px) {
    .theme-product-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    .theme-hero-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .theme-footer-columns {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
}

/* Grid System - Mobile (<768px) */
@media (max-width: 767px) {
    .theme-product-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .theme-hero-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .theme-footer-columns {
        display: grid;
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* Theme Widget Styles */
.theme-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    background-color: var(--color-bg-light);
    border-bottom: 1px solid var(--color-border);
}

.theme-header-bar .header-bar-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    color: var(--color-text);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: background-color 0.2s;
}

.theme-header-bar .header-bar-item:hover {
    background-color: var(--color-bg);
}

.theme-search-bar {
    padding: 16px;
    background-color: var(--color-bg);
}

.theme-search-bar .search-form {
    display: flex;
    gap: 8px;
    max-width: 600px;
    margin: 0 auto;
}

.theme-search-bar .search-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: var(--font-size-base);
}

.theme-search-bar .search-button {
    padding: 12px 24px;
    background-color: var(--color-primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background-color 0.2s;
}

.theme-search-bar .search-button:hover {
    background-color: var(--color-secondary);
}

.theme-hero-large {
    position: relative;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-hero-large .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
}

.theme-hero-large .hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
    padding: 48px;
}

.theme-hero-large .hero-title {
    font-size: 44px;
    line-height: 52px;
    font-weight: 700;
    margin-bottom: 16px;
}

.theme-hero-large .hero-subtitle {
    font-size: 18px;
    line-height: 24px;
    margin-bottom: 24px;
}

.theme-hero-large .hero-cta {
    display: inline-block;
    padding: 16px 32px;
    background-color: var(--color-primary);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: background-color 0.2s;
}

.theme-hero-large .hero-cta:hover {
    background-color: var(--color-secondary);
}

.theme-promo-card {
    background-color: var(--color-bg-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s;
}

.theme-promo-card:hover {
    box-shadow: var(--shadow-md);
}

.theme-promo-card .promo-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.theme-promo-card .promo-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.theme-promo-card .promo-content {
    padding: 20px;
}

.theme-promo-card .promo-badge {
    display: inline-block;
    padding: 4px 12px;
    background-color: var(--color-danger);
    color: white;
    border-radius: var(--radius-sm);
    font-size: var(--font-size-xs);
    font-weight: 600;
    margin-bottom: 12px;
}

.theme-promo-card .promo-title {
    font-size: var(--font-size-xl);
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--color-text);
}

.theme-promo-card .promo-subtitle {
    font-size: var(--font-size-base);
    color: var(--color-text-light);
    margin-bottom: 16px;
}

.theme-promo-card .promo-cta {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--color-primary);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 500;
    transition: background-color 0.2s;
}

.theme-promo-card .promo-cta:hover {
    background-color: var(--color-secondary);
}

.theme-countdown {
    display: flex;
    gap: 16px;
    justify-content: center;
    padding: 20px;
}

.theme-countdown .countdown-item {
    text-align: center;
    padding: 12px;
    background-color: var(--color-bg-light);
    border-radius: var(--radius-md);
    min-width: 60px;
}

.theme-countdown .countdown-value {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: var(--color-primary);
}

.theme-countdown .countdown-label {
    display: block;
    font-size: var(--font-size-xs);
    color: var(--color-text-light);
    margin-top: 4px;
}

.theme-badge-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.theme-badge-stack .badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: var(--font-size-xs);
    font-weight: 600;
}

.theme-badge-stack .badge-hot {
    background-color: var(--color-danger);
    color: white;
}

.theme-badge-stack .badge-new {
    background-color: var(--color-success);
    color: white;
}

.theme-badge-stack .badge-sale {
    background-color: var(--color-warning);
    color: white;
}

.theme-chip-product {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background-color: var(--color-bg-light);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: background-color 0.2s;
}

.theme-chip-product:hover {
    background-color: var(--color-bg);
}

.theme-chip-product .chip-image {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    overflow: hidden;
    flex-shrink: 0;
}

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

.theme-chip-product .chip-content {
    flex: 1;
}

.theme-chip-product .chip-title {
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: 4px;
}

.theme-chip-product .chip-price {
    font-size: var(--font-size-base);
    font-weight: 700;
    color: var(--color-primary);
}

/* Product Card Enhanced Styles */
.product-card {
    background-color: var(--color-bg-light);
    border-radius: var(--radius-lg);
    padding: 16px;
    border: 1px solid var(--color-border);
    transition: all 0.2s;
}

.product-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.product-card .product-image {
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 12px;
}

.product-card .product-title {
    font-size: var(--font-size-base);
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card .product-price {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--color-primary);
}

.product-card .product-price-old {
    font-size: var(--font-size-sm);
    color: var(--color-text-light);
    text-decoration: line-through;
    margin-right: 8px;
}

/* Responsive Typography */
@media (max-width: 767px) {
    .theme-hero-large .hero-title {
        font-size: 32px;
        line-height: 40px;
    }
    
    .theme-hero-large .hero-subtitle {
        font-size: 16px;
        line-height: 24px;
    }
}

/* Utility Classes */
.theme-container-boxed {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
}

@media (min-width: 768px) {
    .theme-container-boxed {
        padding: 0 24px;
    }
}

.theme-section-spacing {
    padding: 48px 0;
}

@media (max-width: 767px) {
    .theme-section-spacing {
        padding: 32px 0;
    }
}

