/* Main CSS File for FC Cladding */

:root {
    --primary-color: #1a1a1a;
    --secondary-color: #ffffff;
    --accent-color: #9C0909;
    --accent-hover: #7e0707; /* darker shade for hover states */
    --accent-light: #b01010; /* lighter shade for subtle accents */
    --gray-light: #f8f9fa;
    --gray-medium: #e9ecef;
    --gray-dark: #343a40;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --border-radius: 0.25rem;
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
}

/* Global Styles */
body {
    font-family: 'Roboto', sans-serif;
    color: var(--primary-color);
    line-height: 1.6;
    background-color: #000000;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Exo', sans-serif;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    position: relative;
    padding-bottom: var(--spacing-md);
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--accent-color);
}

.btn-primary {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    padding: 10px 20px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-2px);
}

/* Top Banner */
.top-banner {
    background-color: var(--accent-color);
    color: var(--secondary-color);
    padding: 8px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1030;
}

.top-banner p {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
}

.top-banner a {
    color: white;
    text-decoration: none;
    font-weight: 600;
}

.top-banner a:hover {
    text-decoration: underline;
}

/* Navigation */
.navbar {
    top: 40px;
    background-color: #000000 !important;
    padding: 16px 0;
    box-shadow: 0 2px 4px rgba(255,255,255,0.1);
    border: 2px solid var(--accent-color);
    margin-top: -2px;
}

.navbar-brand {
    text-decoration: none;
    height: 40px;
    display: flex;
    align-items: center;
}

.navbar-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
}

/* Mobile logo sizes */
@media (max-width: 767.98px) {
    .navbar-brand {
        height: 32px;
    }
    
    .navbar-logo {
        height: 32px;
    }
}

@media (max-width: 360px) {
    .navbar-brand {
        height: 28px;
    }
    
    .navbar-logo {
        height: 28px;
    }
}

.nav-link {
    color: var(--secondary-color);
    font-weight: 500;
    padding: 8px 16px;
    transition: color 0.2s ease;
    font-size: 16px;
    letter-spacing: -0.01em;
}

.nav-link:hover {
    color: var(--accent-color);
}

/* Navbar Toggle Button */
.navbar-toggler {
    border: 1px solid var(--accent-color);
    padding: 8px;
    margin: 0;
    height: 40px;
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-toggler:focus {
    box-shadow: none;
    border-color: var(--accent-color);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    width: 24px;
    height: 24px;
    transition: all 0.3s ease;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M6 6L24 24M6 24L24 6'/%3e%3c/svg%3e");
}

/* Mobile Navigation Styles */
@media (max-width: 991.98px) {
    .navbar-collapse {
        margin-top: 1rem;
        width: 100%;
        clear: both;
    }

    .navbar > .container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 15px;
    }

    .navbar-brand {
        margin-right: 0;
        flex: 1;
    }

    .navbar-toggler {
        margin-left: auto;
        order: 2;
    }

    .navbar-nav {
        text-align: center;
    }

    .nav-buttons {
        margin-top: 1rem;
        display: flex;
        justify-content: center;
        gap: 1rem;
    }
}

/* Galaxy and smaller screens */
@media (max-width: 360px) {
    .navbar > .container {
        padding: 0 10px;
    }
    
    .navbar-brand {
        flex: 0 1 auto;
    }
    
    .navbar-toggler {
        margin-left: auto;
    }
}
/* Search Bar Styling */
.search-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-input {
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid #ced4da;
    background-color: #f8f9fa;
    font-size: 14px;
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.2rem rgba(156, 9, 9, 0.25);
}

.btn-search {
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-search:hover {
    background-color: var(--accent-hover);
}

/* Featured Products Section */
.featured-products {
    padding: 80px 0;
    background-color: #000;
}

/* Product Card Styling */
.product-card {
    background-color: #111;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 2px solid var(--accent-color);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border-color: var(--accent-hover);
}

.product-image {
    height: 200px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 20px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-info h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
    color: white;
}

.product-info p {
    color: #ccc;
    font-size: 0.9rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.product-actions {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.product-actions .btn {
    transition: all 0.3s ease;
}

.product-actions .btn-primary {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    font-weight: bold;
    margin-bottom: 8px;
}

.product-actions .btn-primary:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-2px);
}

.product-actions .btn-outline-light {
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: rgba(255, 255, 255, 0.9);
}

.product-actions .btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.8);
    color: white;
}

/* Featured Products Section */
.featured-products {
    padding: 80px 0;
    background-color: #000;
}

/* Product Card Styling */
.product-card {
    background-color: #111;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 2px solid var(--accent-color);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border-color: var(--accent-hover);
}

.product-image {
    height: 200px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 20px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-info h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
    color: white;
}

.product-info p {
    color: #ccc;
    font-size: 0.9rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.product-actions {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.product-actions .btn {
    transition: all 0.3s ease;
}

.product-actions .btn-primary {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    font-weight: bold;
    margin-bottom: 8px;
}

.product-actions .btn-primary:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-2px);
}

.product-actions .btn-outline-light {
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: rgba(255, 255, 255, 0.9);
}

.product-actions .btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.8);
    color: white;
}

/* Fixed dimensions for product card buttons */
.product-card .product-actions .btn {
    height: 44px;
    width: 200px;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* Fixed dimensions for product card buttons */
.product-card .product-actions .btn {
    height: 44px !important;
    width: 180px !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 15px !important;
}

/* Make all headings white */
h1, h2, h3, h4, h5, h6 {
    color: #fff !important;
}

/* Make paragraph text white */
p, .product-info p, .card-text, .product-card p {
    color: #fff !important;
}

/* Make any other text elements white */
span, li, a:not(.btn), div:not(.btn) {
    color: #fff !important;
}

/* Exception for buttons to maintain their styling */
.btn {
    color: inherit;
}

/* Fix button text color to remain readable */
.btn, .btn-primary, .btn-secondary {
    color: inherit !important;
}

/* Ensure primary buttons have white text */
.btn-primary {
    color: white !important;
}

/* Hero section contact us button style */
.hero-buttons a[href="/contact"] {
    background-color: transparent !important;
    border: 1px solid white !important;
    color: white !important;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.hero-buttons a[href="/contact"]:hover {
    background-color: rgba(255, 255, 255, 0.2) !important;
    color: white !important;
}

/* Hero section contact us button style */
.hero-buttons a[href="/contact"] {
    background-color: transparent !important;
    border: 1px solid white !important;
    color: white !important;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.hero-buttons a[href="/contact"]:hover {
    background-color: rgba(255, 255, 255, 0.2) !important;
    color: white !important;
}

/* Fixed styling for filter dropdowns on product page */
.filter-section .filter-group {
    min-width: 180px !important;
    margin-right: 1.5rem !important;
    margin-bottom: 1rem !important;
}

.filter-section .filter-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: flex-start;
    align-items: flex-end;
    margin-bottom: 2rem;
}

.filter-section label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.filter-section .btn-secondary {
    width: 100%;
    text-align: left;
    position: relative;
    height: 44px;
    background-color: #000000;
    border: 1px solid #9C0909;
    color: white;
}

/* Add padding between nav and product header section */
.product-header {
    padding-top: 3rem !important;  /* Increased padding on top */
    padding-bottom: 2rem !important;
    margin-top: 1.5rem !important;
}

/* Ensure proper spacing on product details section */
.product-details {
    padding-top: 2rem !important;
}

/* Additional spacing for page header sections */
.page-header {
    padding-top: 3.5rem !important;
    margin-top: 1.5rem !important;
}

/* Ensure breadcrumb has proper spacing */
.breadcrumb {
    margin-bottom: 1.5rem !important;
}

/* Fix text readability in cart page */
.cart-section h3,
.cart-section .cart-item h3,
.cart-section .cart-item p,
.cart-summary h3,
.cart-summary .summary-item span,
#emptyCartMessage h3 {
    color: #333 !important;
}

/* Make sure text on white backgrounds is visible */
.card-body {
    color: #333;
}

/* Ensure proper contrast on cart item cards */
.cart-item .card-body {
    background-color: #f8f9fa;
}

.cart-summary .card-body {
    background-color: #f8f9fa;
}

/* Specific fixes for the cart summary section */
.cart-summary {
    color: #333 !important;
    background-color: #f9f9f9;
}

.cart-summary .card-title,
.cart-summary .summary-item span,
.cart-summary .total span {
    color: #333 !important;
}

/* Ensure a dark background for white text instead of changing text color */
.card.shadow-sm {
    background-color: #f9f9f9;
}

/* Preserve dark text in product details */
.cart-item .text-muted {
    color: #6c757d !important;
}
