/*
Theme Name: BG Clothing Theme
Theme URI: https://bg-clothing.com
Description: Custom theme for BG Clothing Manufacturer, featuring autoplay video headers and fast-loading partitioned product grids.
Version: 1.0.0
Author: BG Clothing
License: GNU General Public License v2 or later
Text Domain: bg-clothing-theme
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', 'Inter', sans-serif;
    background-color: #f5f5f5;
    color: #333;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Announcement Bar */
.announcement-bar {
    background-color: #111;
    color: #fff;
    font-size: 13px;
    padding: 8px 20px;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.announcement-bar span i {
    margin-right: 5px;
    color: #ff6a00;
}

/* Header */
.main-header {
    background-color: #fff;
    padding: 15px 20px;
    border-bottom: 1px solid #eaeaea;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.logo a {
    display: flex;
    flex-direction: column;
}

.logo h1 {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 800;
    color: #ff6a00;
    letter-spacing: 0.5px;
}

.logo-sub {
    font-size: 11px;
    color: #666;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.search-bar {
    flex: 1;
    max-width: 600px;
}

.search-input-wrapper {
    display: flex;
    border: 2px solid #ff6a00;
    border-radius: 30px;
    overflow: hidden;
}

.search-input-wrapper input {
    flex: 1;
    padding: 12px 20px;
    border: none;
    outline: none;
    font-size: 15px;
}

.search-btn {
    background-color: #ff6a00;
    color: white;
    border: none;
    padding: 0 25px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.2s;
}

.search-btn:hover {
    background-color: #e65c00;
}

/* Search suggestions dropdown styling */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    z-index: 10000;
    max-height: 250px;
    overflow-y: auto;
    display: none;
    margin-top: 5px;
}

.suggestion-item {
    padding: 12px 15px;
    font-size: 13.5px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    border-bottom: 1px solid #f5f5f5;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 8px;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item i {
    color: #ff6a00;
    font-size: 12px;
}

.suggestion-item:hover, .suggestion-item.selected {
    background: #fff0e6;
    color: #ff6a00;
}

.header-actions {
    display: flex;
    gap: 25px;
    align-items: center;
}

.action-item {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: color 0.2s;
}

.action-item:hover {
    color: #ff6a00;
}

.action-item i {
    font-size: 24px;
    color: #333;
}

.action-item:hover i {
    color: #ff6a00;
}

.action-text {
    display: flex;
    flex-direction: column;
    font-size: 12px;
}

.action-text strong {
    font-size: 14px;
}

.cart-item {
    position: relative;
}

.cart-badge {
    position: absolute;
    top: -8px;
    left: 12px;
    background-color: #ff6a00;
    color: white;
    font-size: 11px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
    border: 2px solid #fff;
}

/* Navigation */
.main-nav {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.categories-btn {
    background-color: #333;
    color: white;
    padding: 15px 25px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-links {
    display: flex;
    gap: 20px;
    padding: 0 20px;
}

.nav-links a {
    font-weight: 500;
    font-size: 14px;
    padding: 15px 10px;
    display: block;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
}

.nav-links a:hover, .nav-links a.active {
    color: #ff6a00;
    border-bottom-color: #ff6a00;
}

/* Hero Banner with Autoplay Video Background */
.hero-banner {
    position: relative;
    color: white;
    padding: 90px 20px;
    text-align: center;
    margin-bottom: 30px;
    overflow: hidden;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.hero-bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 1;
    object-fit: cover;
    pointer-events: none;
    filter: brightness(0.5) contrast(1.05);
}

.hero-overlay-shade {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 850px;
    margin: 0 auto;
}

.hero-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.25;
}

.hero-content p {
    font-size: 17px;
    color: #eaeaea;
    margin-bottom: 35px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.shop-now-btn {
    background-color: #ff6a00;
    color: white;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.2s, background 0.2s;
}

.shop-now-btn:hover {
    background-color: #e65c00;
    transform: translateY(-2px);
}

/* Features */
.features {
    max-width: 1400px;
    margin: 0 auto 40px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 0 20px;
}

.feature-card {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    transition: transform 0.2s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card i {
    font-size: 32px;
    color: #ff6a00;
    margin-bottom: 15px;
}

.feature-card h3 {
    font-size: 16px;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 13px;
    color: #666;
}

/* Main Content */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px 60px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.section-header h2 {
    font-size: 24px;
    font-weight: 700;
}

.see-all {
    color: #ff6a00;
    font-weight: 600;
    font-size: 14px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

/* Product Card */
.product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.product-image-wrapper {
    position: relative;
    padding-top: 130%; /* Aspect ratio */
    overflow: hidden;
    background: #f9f9f9;
}

.product-image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.product-card:hover .product-image-wrapper img {
    transform: scale(1.05);
}

.wholesale-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ff6a00;
    color: white;
    font-size: 11px;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 4px;
    z-index: 10;
}

.product-info {
    padding: 15px;
}

.product-title {
    font-size: 14px;
    color: #333;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 40px;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.moq {
    font-size: 12px;
    color: #666;
    background: #f0f0f0;
    padding: 2px 6px;
    border-radius: 4px;
}

.rating {
    color: #fadb14;
    font-size: 12px;
}

.rating span {
    color: #999;
    margin-left: 4px;
}

.product-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.inquire-btn {
    background-color: transparent;
    border: 1px solid #ff6a00;
    color: #ff6a00;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
}

.inquire-btn:hover {
    background-color: #ff6a00;
    color: white;
}

/* ===================== VIDEO SHOWCASE ===================== */
.video-showcase {
    padding: 60px 20px;
    background: linear-gradient(135deg, #0a0a0f 0%, #151520 100%);
    margin-top: 45px;
}

.video-showcase .section-header h2 {
    color: #fff;
}

.video-showcase .see-all {
    color: #aaa;
    font-weight: 400;
}

/* Video Showcase Filters */
.video-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 15px !important;
    margin-bottom: 30px !important;
    flex-wrap: wrap;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.05);
    color: #ccc;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 22px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
}

.filter-btn.active {
    background: #ff6a00;
    color: #fff;
    border-color: #ff6a00;
    box-shadow: 0 4px 15px rgba(255, 106, 0, 0.3);
}

.video-grid {
    max-width: 1400px;
    margin: 25px auto 0;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 25px;
}

.video-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 9/16;
    background: #000;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.video-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 106, 0, 0.4);
}

.video-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: filter 0.3s ease;
}

.video-card:hover video {
    filter: brightness(0.9);
}

.video-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    top: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.1) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    color: #fff;
    transition: background 0.3s ease;
    z-index: 2;
}

.video-overlay-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    font-size: 52px;
    color: rgba(255, 106, 0, 0.9);
    transition: transform 0.3s ease, color 0.3s ease, opacity 0.3s ease;
    text-shadow: 0 4px 12px rgba(0,0,0,0.4);
    opacity: 0.7;
}

.video-card:hover .video-overlay-play-btn {
    transform: translate(-50%, -50%) scale(1.15);
    color: #ff6a00;
    opacity: 1;
}

.video-overlay-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.video-card-tag {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    color: #ff6a00;
    letter-spacing: 1px;
}

.video-card-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    color: #fff;
}

/* ===================== VIDEO LIGHTBOX ===================== */
.video-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.96);
    z-index: 11000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(8px);
}

.video-lightbox.active {
    display: flex;
}

.video-lightbox-close {
    position: absolute;
    top: 20px;
    right: 25px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 11200;
    transition: color 0.2s;
}

.video-lightbox-close:hover {
    color: #ff6a00;
}

.video-lightbox-content {
    display: flex;
    background: #111;
    border-radius: 16px;
    overflow: hidden;
    max-width: 900px;
    width: 90%;
    max-height: 80vh;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 1px solid #222;
}

.video-lightbox-content .video-wrapper {
    flex: 1.2;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 9/16;
    max-height: 80vh;
}

.video-lightbox-content video {
    width: 100%;
    height: 100%;
    max-height: 80vh;
    object-fit: contain;
}

.video-info-panel {
    flex: 1;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #fff;
    background: #151515;
}

.video-badge {
    align-self: flex-start;
    background: rgba(255, 106, 0, 0.15);
    color: #ff6a00;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 20px;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.video-info-panel h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #fff;
    line-height: 1.3;
}

.video-info-panel p {
    font-size: 14px;
    line-height: 1.6;
    color: #bbb;
    margin-bottom: 30px;
}

.video-inquire-btn {
    background: #ff6a00;
    color: #fff;
    padding: 12px 25px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    transition: background 0.2s, transform 0.2s;
}

.video-inquire-btn:hover {
    background: #e65c00;
    transform: translateY(-2px);
}

.video-lightbox-nav {
    position: absolute;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 30px;
    box-sizing: border-box;
    pointer-events: none;
}

.video-lightbox-nav button {
    background: rgba(255,255,255,0.08);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
    pointer-events: auto;
}

.video-lightbox-nav button:hover {
    background: #ff6a00;
    transform: scale(1.1);
}

/* Responsiveness for Video Lightbox */
@media (max-width: 768px) {
    .video-lightbox-content {
        flex-direction: column;
        max-height: 90vh;
    }
    .video-lightbox-content .video-wrapper {
        aspect-ratio: 16/9;
        max-height: 40vh;
    }
    .video-lightbox-content video {
        max-height: 40vh;
    }
    .video-info-panel {
        padding: 20px;
    }
    .video-info-panel h3 {
        font-size: 18px;
        margin-bottom: 8px;
    }
    .video-info-panel p {
        font-size: 12px;
        margin-bottom: 15px;
    }
    .video-lightbox-nav {
        display: none; /* Hide buttons on mobile to avoid overlap */
    }
}

/* ===================== SEO CONTENT ===================== */
.seo-content {
    padding: 50px 20px;
    background: #fff;
}

.seo-container {
    max-width: 1400px;
    margin: 0 auto;
}

.seo-content article h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ff6a00;
}

.seo-content article p {
    font-size: 15px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 15px;
}

.seo-content article p strong {
    color: #333;
}

.seo-content details {
    margin-bottom: 10px;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
}

.seo-content details summary {
    padding: 15px 20px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    background: #fafafa;
    display: flex;
    align-items: center;
    gap: 10px;
    list-style: none;
    transition: background 0.2s;
}

.seo-content details summary:hover {
    background: #f0f0f0;
}

.seo-content details summary::-webkit-details-marker {
    display: none;
}

.seo-content details summary i {
    color: #ff6a00;
    font-size: 18px;
}

.seo-details-content {
    padding: 15px 20px;
    border-top: 1px solid #eee;
}

.seo-details-content p {
    font-size: 14px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 12px;
}

.seo-features-list {
    margin-left: 10px;
}

.seo-features-list li {
    font-size: 14px;
    color: #555;
    padding: 6px 0;
    border-bottom: 1px solid #f5f5f5;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.seo-features-list li::before {
    content: "✓";
    color: #ff6a00;
    font-weight: bold;
}

.seo-features-list li strong {
    color: #333;
}

.seo-keywords-block {
    margin-top: 30px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    font-size: 12px;
    color: #999;
    line-height: 1.8;
}

.seo-keywords-block h3 {
    font-size: 14px;
    color: #bbb;
    margin-bottom: 8px;
}

/* ===================== LIGHTBOX ===================== */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    animation: lightboxIn 0.3s ease;
}

@keyframes lightboxIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    z-index: 10001;
    transition: color 0.2s;
    line-height: 1;
}

.lightbox-close:hover {
    color: #ff6a00;
}

.lightbox-nav {
    position: absolute;
    bottom: 30px;
    display: flex;
    gap: 20px;
}

.lightbox-prev,
.lightbox-next {
    background: rgba(255,255,255,0.15);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 18px;
    transition: background 0.2s;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: #ff6a00;
}

/* Footer */
footer {
    background-color: #222;
    color: #ccc;
    padding: 60px 20px 20px;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-column p {
    line-height: 1.6;
    font-size: 14px;
}

.footer-column ul li {
    margin-bottom: 12px;
    font-size: 14px;
}

.footer-column ul li a:hover {
    color: #ff6a00;
}

.footer-column ul li i {
    width: 20px;
    color: #ff6a00;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    font-size: 13px;
}

/* Responsive */
@media (max-width: 1024px) {
    .features {
        grid-template-columns: repeat(2, 1fr);
    }
    .video-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
    }
    .search-bar {
        max-width: 100%;
        width: 100%;
    }
    .nav-links {
        display: none; /* simple mobile behavior */
    }
    .footer-container {
        grid-template-columns: 1fr;
    }
    .announcement-bar {
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }
    .hero-content h2 {
        font-size: 28px;
    }
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .video-grid {
        grid-template-columns: 1fr;
    }
}

/* Order Sample Button */
.order-sample-btn {
    background-color: #ff6a00;
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.2s;
    border: none;
    cursor: pointer;
}

.order-sample-btn:hover {
    background-color: #e65c00;
}

/* Static Pages */
.static-page {
    max-width: 900px;
    margin: 40px auto;
    padding: 40px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.static-page h1 {
    font-size: 32px;
    color: #ff6a00;
    margin-bottom: 30px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

.static-page h2 {
    font-size: 24px;
    margin-top: 30px;
    margin-bottom: 15px;
    color: #333;
}

.static-page p {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
}

.static-page ul {
    margin-left: 20px;
    margin-bottom: 25px;
}

.static-page ul li {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 8px;
    list-style-type: disc;
}

.static-page a {
    color: #ff6a00;
    font-weight: 600;
}

.static-page a:hover {
    text-decoration: underline;
}
