/* Chillicothe Market Homepage - Complete Reset and Improved Design */
/* Color Palette: #BF5700 (Orange), #333F48 (Dark), #28a745 (Success Green) */

/* === AGGRESSIVE RESET FOR HOMEPAGE === */
.cms-home .page-wrapper,
.cms-home .page-main,
.cms-home .columns,
.cms-home .column.main,
.cms-home .widget {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Force container to full width */
.cms-home .container {
    max-width: 1400px !important;
    width: 100% !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    margin: 0 auto !important;
}

/* Reset any constraining styles */
.cms-home * {
    max-width: none !important;
}

.homepage {
    --cm-orange: #BF5700;
    --cm-orange-light: #D66A1A;
    --cm-orange-dark: #A64D00;
    --cm-dark: #333F48;
    --cm-dark-light: #4A5761;
    --cm-success: #28a745;
    --cm-light-bg: #f8f9fa;
    --cm-border: #e9ecef;
    --cm-text-muted: #6c757d;
    
    /* Force normal text size */
    font-size: 16px !important;
}

/* === HIDE PAGE TITLE AND BREADCRUMBS === */
.page-title-wrapper,
.breadcrumbs,
.page-main .page-title,
.cms-home .page-title-wrapper,
.cms-home .page-title {
    display: none !important;
}

/* === HERO SECTION === */
.homepage .hero-section {
    height: 350px !important;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    position: relative !important;
    overflow: hidden !important;
    width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    display: block !important;
}

.homepage .hero-background {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: #f8f9fa !important;
    z-index: 1 !important;
}

.homepage .hero-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(135deg, rgba(51, 63, 72, 0.3) 0%, rgba(191, 87, 0, 0.2) 100%) !important;
    z-index: 2 !important;
}

.homepage .hero-content-row {
    height: 350px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.homepage .hero-content {
    z-index: 3 !important;
    position: relative !important;
    text-align: center !important;
    padding: 2rem !important;
}

.homepage .hero-title {
    font-size: 5rem !important;
    font-weight: 700 !important;
    color: #333F48 !important;
    line-height: 1.2 !important;
    margin-bottom: 1rem !important;
}

.homepage .hero-subtitle {
    font-size: 2rem !important;
    font-weight: 400 !important;
    color: #333F48 !important;
    opacity: 0.8 !important;
    margin-bottom: 2rem !important;
}

.homepage .text-orange {
    color: var(--cm-orange) !important;
}

.homepage .btn-orange {
    background: linear-gradient(135deg, var(--cm-orange) 0%, var(--cm-orange-light) 100%) !important;
    border: none !important;
    color: white !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    font-size: 1.25rem !important;
    padding: 1rem 2.5rem !important;
    border-radius: 8px !important;
    display: inline-block !important;
    text-decoration: none !important;
}

.homepage .btn-orange:hover {
    background: linear-gradient(135deg, var(--cm-orange-dark) 0%, var(--cm-orange) 100%) !important;
    color: white !important;
    box-shadow: 0 8px 25px rgba(191, 87, 0, 0.4) !important;
}

.homepage .feature-pills {
    margin-top: 2rem !important;
    display: flex !important;
    gap: 1rem !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
}

.homepage .feature-pills .badge {
    font-size: 2rem !important;
    padding: 1.5rem 2rem !important;
    font-weight: 500 !important;
    border-radius: 1px !important;
    color: white !important;
}

.homepage .bg-orange {
    background: var(--cm-orange) !important;
}

.homepage .bg-success {
    background: var(--cm-success) !important;
}

.homepage .bg-dark {
    background: var(--cm-dark) !important;
}

/* === CATEGORIES SECTION === */
.homepage .categories-section {
    padding: 5rem 15px !important;
    background: white !important;
    width: 100% !important;
}

.homepage .categories-section .container {
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 0 15px !important;
}

/* === IMPROVED SECTION HEADER === */
.homepage .section-header {
    margin-bottom: 4rem !important;
}

.homepage .section-title {
    font-size: 3rem !important;
    font-weight: 800 !important;
    color: #5A6873 !important;
    margin-bottom: 0.75rem !important;
    text-align: left !important;
    letter-spacing: -0.02em !important;
}

.homepage .section-subtitle {
    font-size: 1.4rem !important;
    color: #8b9097 !important;
    margin-bottom: 2rem !important;
    text-align: left !important;
    font-weight: 400 !important;
}

.homepage .section-divider {
    height: 3px !important;
    background: linear-gradient(90deg, var(--cm-orange) 0%, rgba(191, 87, 0, 0.3) 40%, transparent 70%) !important;
    border: none !important;
    margin: 0 !important;
    width: 350px !important;
}

/* === CATEGORY ROWS === */
.homepage .categories-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 4rem !important;
}

.homepage .category-row {
    display: flex !important;
    align-items: center !important;
    background: white !important;
    border-radius: 5px !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06) !important;
    transition: all 0.3s ease !important;
    border: 1px solid var(--cm-border) !important;
    margin-bottom: 0 !important;
}

.homepage .category-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #BF5700 0%, #D66A1A 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.homepage .category-placeholder span {
    color: white;
    font-size: 5.25rem !important;
    font-weight: 600;
    text-align: center;
    line-height: 1;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    width: 300px;
}

/* For product images placeholder */
.homepage .product-image {
    position: relative;
}

.homepage .category-image {
    margin-bottom: unset;
}

.homepage .product-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #BF5700 0%, #D66A1A 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
}

.homepage .product-placeholder span {
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.homepage .category-row:hover {
    box-shadow: 0 12px 32px rgba(0,0,0,0.1) !important;
    border-color: var(--cm-orange) !important;
}

.homepage .category-image {
    height: 140px !important;
    border-radius: 5px !important;
    overflow: hidden !important;
    margin-right: 2.5rem !important;
    flex-shrink: 0 !important;
}

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

.homepage .category-info {
    flex: 1 !important;
    position: relative;
    top: -18px;
}

.homepage .category-name {
    font-size: 2rem !important;
    font-weight: 600 !important;
    color: var(--cm-dark) !important;
    margin: 0 0 0.5rem 0 !important;
}

.homepage .product-count {
    font-size: 1.1rem !important;
    color: var(--cm-text-muted) !important;
    background: var(--cm-light-bg) !important;
    padding: 0.5rem 1.25rem !important;
    border-radius: 20px !important;
    display: inline-block !important;
}

.homepage .category-action {
    flex-shrink: 0 !important;
    position: relative;
    top: -28px;
    left: -18px;
}

.homepage .shop-btn {
    background: var(--cm-orange) !important;
    color: white !important;
    padding: 1.1rem 2.2rem !important;
    border-radius: 10px !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    font-size: 1.2rem !important;
    transition: all 0.3s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
}

.homepage .shop-btn:hover {
    background: var(--cm-orange-dark) !important;
    color: white !important;
}

.homepage .shop-btn i {
    font-size: 1.1rem !important;
}

/* === PRODUCTS PREVIEW === */

@media (min-width: 1024px), print {
  .homepage .products-grid .product-item {
    width: 100% !important;
    max-width: 260px;
  }
}

.homepage .products-preview {
  margin-top: 0.5rem !important;
  padding-left: 0px !important;
}

.homepage .products-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important;
    gap: 1.75rem !important;
}

.homepage .product-item {
    background: white !important;
    border: 1px solid var(--cm-border) !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    transition: all 0.3s ease !important;
}

.homepage .product-item:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.1) !important;
    border-color: var(--cm-orange) !important;
}

.homepage .product-image {
    height: 327px !important;
    overflow: hidden !important;
}

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

.homepage .product-info {
    padding: 1.5rem !important;
}

.homepage .product-name {
    font-size: 1.5rem !important;
    font-weight: 600 !important;
    color: var(--cm-dark) !important;
    margin: 0 0 0.75rem 0 !important;
    line-height: 1.4 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

.homepage .product-price {
    font-size: 2rem !important;
    font-weight: 700 !important;
    color: var(--cm-orange) !important;
    display: block !important;
    margin-bottom: 1rem !important;
}

.homepage .product-link {
    font-size: 1.5rem !important;
    color: var(--cm-orange) !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    padding: 1rem 1.5rem !important;
    border: 2px solid var(--cm-orange) !important;
    border-radius: 8px !important;
    display: inline-block !important;
    transition: all 0.3s ease !important;
}

.homepage .product-link:hover {
    background: var(--cm-orange) !important;
    color: white !important;
}

/* === EMPTY STATE === */
.homepage .empty-state {
    text-align: center !important;
    padding: 5rem !important;
    color: var(--cm-text-muted) !important;
}

.homepage .empty-state h3 {
    color: var(--cm-dark) !important;
    margin-bottom: 1rem !important;
    font-size: 1.75rem !important;
}

/* === REMOVE BLUE STYLING === */
.homepage a:not(.btn-orange):not(.shop-btn):not(.product-link) {
    color: var(--cm-dark) !important;
    font-size: 1.5em;
}

.homepage a:not(.btn-orange):not(.shop-btn):not(.product-link):hover {
    color: var(--cm-orange) !important;
}

/* Override any blue badges or buttons */
.homepage .bg-primary,
.homepage .btn-primary,
.homepage .badge-primary,
.homepage .text-primary {
    background-color: var(--cm-orange) !important;
    border-color: var(--cm-orange) !important;
    color: white !important;
}

/* Force all text to be readable size */
.homepage p,
.homepage span,
.homepage div {
    font-size: inherit !important;
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 768px) {
    .homepage .hero-section {
        height: 350px !important;
    }
    
    .homepage .hero-content-row {
        height: 350px !important;
    }
    
    .homepage .hero-title {
        font-size: 3rem !important;
    }
    
    .homepage .section-title {
        font-size: 2.2rem !important;
    }
    
    .homepage .category-row {
        flex-direction: column !important;
        text-align: center !important;
        gap: 1.5rem !important;
    }
    
    .homepage .category-image {
        margin-right: 0 !important;
    }
    
    .homepage .products-preview {
        padding-left: 0 !important;
        margin-top: 2rem !important;
    }
    
    .homepage .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 576px) {
    .homepage .hero-title {
        font-size: 2rem !important;
    }
    
    .homepage .products-grid {
        grid-template-columns: 1fr !important;
    }
    
    .homepage .category-row {
        padding: 1.5rem !important;
    }
    
    .homepage .section-divider {
        width: 250px !important;
    }
}