/*
 * FocusCover Scoped Redesign Styles (Prefix: .fc-redesign-)
 * Strictly isolated from other storefront pages and layout.
 */

:root {
    --fc-primary: #b68a57;
    --fc-gray: #f5f5f7;
    --fc-gray-border: #e5e5e7;
    --fc-text-dark: #1d1d1f;
}

/* 1. Scoped Search Model Bar */
.fc-redesign-search-container {
    max-width: 600px;
    margin: 30px auto;
    position: relative;
    padding: 0 15px;
}
.fc-redesign-search-wrap {
    position: relative;
    background-color: var(--fc-gray);
    border: 1px solid var(--fc-gray-border);
    border-radius: 30px;
    padding: 5px 20px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}
.fc-redesign-search-wrap i {
    color: #86868b;
    font-size: 16px;
    margin-right: 15px;
}
.fc-redesign-search-input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--fc-text-dark);
    width: 100%;
    height: 40px;
    font-size: 14px;
    font-weight: 500;
}
.fc-redesign-search-input::placeholder {
    color: #86868b;
}

.fc-redesign-search-results {
    position: absolute;
    top: 60px;
    left: 15px;
    right: 15px;
    background-color: #ffffff;
    border: 1px solid var(--fc-gray-border);
    border-radius: 15px;
    z-index: 100;
    max-height: 250px;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.fc-redesign-search-result-item {
    padding: 12px 20px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f2;
    transition: background-color 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.fc-redesign-search-result-item:hover {
    background-color: #f5f5f7;
}
.fc-redesign-search-result-item span {
    font-weight: 500;
    color: var(--fc-text-dark);
}
.fc-redesign-search-result-item em {
    font-size: 11px;
    color: var(--fc-primary);
    font-style: normal;
    background-color: rgba(255, 96, 0, 0.1);
    padding: 2px 8px;
    border-radius: 10px;
}

/* 2. Scoped Choose Brand Grid */
.fc-redesign-section-title {
    text-align: center;
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 25px;
    margin-top: 30px;
    color: var(--fc-text-dark);
}
.fc-redesign-brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 15px;
    max-width: 900px;
    margin: 0 auto 40px;
    padding: 0 15px;
}
.fc-redesign-brand-btn {
    background-color: var(--fc-gray);
    border: 1px solid var(--fc-gray-border);
    color: var(--fc-text-dark) !important;
    text-align: center;
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
}
.fc-redesign-brand-btn:hover {
    background-color: #e8e8ed;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* 3. Scoped Shop by Category List */
.fc-redesign-categories-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    max-width: 700px;
    margin: 0 auto 40px;
    padding: 0 15px;
}
.fc-redesign-category-row {
    background-color: var(--fc-gray);
    border: 1px solid var(--fc-gray-border);
    border-radius: 25px;
    padding: 15px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--fc-text-dark) !important;
}
.fc-redesign-category-row:hover {
    background-color: #e8e8ed;
    transform: translateY(-2px);
}
.fc-redesign-category-left {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 14px;
    font-weight: 600;
}
.fc-redesign-category-left svg {
    width: 20px;
    height: 20px;
    stroke: var(--fc-text-dark);
}
.fc-redesign-category-row i {
    font-size: 14px;
    color: #86868b;
}

/* 4. Scoped Brand Models Selection Page */
.fc-redesign-models-banner {
    background: linear-gradient(135deg, #1d1d1f 0%, #000000 100%);
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
    margin-bottom: 30px;
}
.fc-redesign-models-title {
    font-size: 38px;
    font-weight: 800;
    line-height: 1.2;
    color: #ffffff !important;
    margin: 0;
}
.fc-redesign-models-title span {
    color: var(--fc-primary);
}

.fc-redesign-btn-back {
    background-color: #1d1d1f;
    color: #ffffff !important;
    border: none;
    border-radius: 25px;
    padding: 12px 35px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    display: inline-block;
    transition: all 0.2s ease;
    text-decoration: none !important;
}
.fc-redesign-btn-back:hover {
    background-color: #2d2d2f;
    transform: scale(1.02);
}

.fc-redesign-models-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 15px;
}
.fc-redesign-model-pill {
    background-color: var(--fc-gray);
    border: 1px solid var(--fc-gray-border);
    color: var(--fc-text-dark) !important;
    padding: 12px 18px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 13px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
}
.fc-redesign-model-pill:hover {
    background-color: #e8e8ed;
    transform: translateY(-2px);
}

/* Responsive Mobile Layout Customizations */
@media (max-width: 768px) {
    .fc-redesign-brands-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .fc-redesign-categories-list {
        grid-template-columns: 1fr;
    }
    .fc-redesign-models-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .fc-redesign-models-title {
        font-size: 28px;
    }
}

/* 5. Bulletproof Swiper Height Stretching Fixes */
.features-wrap {
    height: auto !important;
    min-height: unset !important;
}
.features-wrap .features {
    height: auto !important;
}
.features-wrap .swiper-wrapper {
    height: auto !important;
}
.features-wrap .swiper-slide {
    height: auto !important;
}

.products-slider {
    height: auto !important;
    min-height: unset !important;
}
.products-slider .swiper-wrapper {
    height: auto !important;
}
.products-slider .swiper-slide {
    height: auto !important;
}
.products-slider .swiper-slide .product-card {
    height: auto !important;
}

/* 6. Featured Device Models Circular Carousel */
.fc-redesign-featured-models-section {
    background: #ffffff;
    padding: 20px 0 10px 0;
    border-bottom: 1px solid #f2f2f2;
    overflow: hidden;
    width: 100%;
}
.fc-redesign-featured-models-container {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    padding: 0 15px;
    cursor: grab;
    user-select: none;
    -webkit-overflow-scrolling: touch;
}
.fc-redesign-featured-models-container::-webkit-scrollbar {
    display: none;
}
.fc-redesign-featured-models-container.active {
    cursor: grabbing;
}
.fc-redesign-featured-model-item {
    display: inline-block;
    margin-right: 15px;
    text-decoration: none !important;
}
.fc-redesign-featured-model-circle {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 2px solid #eaeaea;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), border-color 0.3s ease;
}
.fc-redesign-featured-model-item:hover .fc-redesign-featured-model-circle {
    transform: scale(1.06);
    border-color: var(--fc-primary);
}
.fc-redesign-featured-model-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.fc-redesign-featured-model-placeholder {
    width: 100%;
    height: 100%;
    background: #f7f7f7;
    color: #333333;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8px;
    font-size: 10px;
    font-weight: 700;
    white-space: normal;
    word-break: break-word;
    font-family: 'Outfit', sans-serif;
}

/* 7. Ensure All Categories Dropdown Popup stays on top of content */
.header-wrap {
    position: relative;
    z-index: 1002 !important;
}
.navigation-wrap {
    position: relative;
    z-index: 1001 !important;
}
.fc-redesign-featured-models-section {
    position: relative;
    z-index: 10 !important;
}
.category-nav,
.category-dropdown-menu,
.category-dropdown-wrap,
.category-dropdown {
    z-index: 99999 !important;
}

/* Push categories dropdown below the circular models slider on the homepage */
body.home-page .category-dropdown-wrap {
    margin-top: 121px !important;
}

/* 8. Daily Deals Height & Image Alignments */
.daily-deals-wrap {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.daily-deals.swiper {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: auto !important;
}
.daily-deals.swiper .swiper-wrapper {
    flex: 1;
    height: auto !important;
}
.daily-deals.swiper .swiper-slide {
    height: 100% !important;
}
.daily-deals-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.daily-deals .product-image {
    height: 220px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.daily-deals .product-image img {
    max-height: 100%;
    width: auto;
    object-fit: contain;
}

/* 9. Global Special Price Color Override */
.special-price,
.product-price,
.product-price .special-price,
.daily-deals-inner .product-price,
.vertical-products-inner .product-price {
    color: var(--fc-primary) !important;
}

/* 10. Sidebar Menu Mobile Overlaps and Transparency Fixes */
.sidebar-menu-wrap {
    z-index: 9999999 !important;
    background-color: #ffffff !important;
}
.sidebar-menu-curve-background {
    background-color: #ffffff !important;
}
.sidebar-menu-close {
    z-index: 99999999 !important;
}




