/* ==========================================================
1. GLOBAL & UNIVERSAL NAVBAR STYLES (All Pages)
========================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: #ffffff;
    color: #000000;
    min-height: 100vh;
    overflow-y: scroll; /* Forces the scrollbar track to always show, preventing the layout shift */
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Universal Header / Navbar Layout */
.site-header {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 1.25rem 0 !important;
    margin-bottom: 2rem !important;
    border-bottom: 1px solid #f2f2f2 !important;
    background-color: #ffffff !important;
    width: 100% !important;
}

.logo-wrapper {
    flex: 1;
    display: flex;
    justify-content: flex-start;
}

.logo-link {
    font-size: 1.25rem;
    font-weight: 700;
    color: #000000;
    text-decoration: none;
}

.nav-menu {
    flex: 2;
    display: flex !important;
    list-style: none !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 2rem !important;
    margin: 0 !important;
    padding: 0 !important;
}

.nav-item {
    color: #2E2E2E;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.nav-item:hover,
.nav-item.active {
    color: #000000;
}

.nav-actions {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1.25rem;
}

.icon-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    color: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem;
    transition: color 0.2s ease;
}

.icon-btn:hover {
    color: #000000;
}

/* ==========================================================
UNIFIED PAGE HEADERS & CONTENT CONTAINERS (All Inner Pages)
========================================================== */
.products-container,
.faq-container,
.contact-container,
.checkout-container {
    max-width: 1200px;
    margin: 3rem auto 5rem auto;
    padding: 0 1.5rem;
}

.products-container h1,
.faq-container h1,
.contact-container h1,
.checkout-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: #000000;
    letter-spacing: -0.5px;
    margin-bottom: 0.5rem;
}

.products-container > p,
.faq-container .faq-subtitle,
.contact-container .contact-subtitle,
.checkout-container > p {
    font-size: 1.05rem;
    color: #2E2E2E;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

/* FOOTER STYLES */
footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    margin-top: 3rem;
    border-top: 1px solid #f2f2f2;
}

footer p {
    color: #2E2E2E;
    margin-bottom: 0;
    font-size: 0.95rem;
}

footer .link-body-emphasis {
    color: #000000;
    font-size: 1.25rem;
    font-weight: 500;
    text-decoration: none;
    letter-spacing: -0.5px;
}

footer .nav {
    display: flex;
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
    gap: 1.5rem;
}

footer .nav-link {
    color: #2E2E2E;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

footer .nav-link:hover {
    color: #000000;
}

@media (max-width: 768px) {
    footer {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    footer .col-md-4 {
        width: 100%;
        justify-content: center !important;
    }

    footer .nav {
        justify-content: center !important;
        flex-wrap: wrap;
    }
}

/* ==========================================================
2. HOME PAGE EXCLUSIVE STYLES
========================================================== */
body.page-home .px-4.py-5 {
    padding-top: 4rem;
    padding-bottom: 4rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

body.page-home .display-5 {
    font-size: 2.75rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 1.25rem;
}

body.page-home .col-lg-6 {
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}

body.page-home .lead {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.15rem;
    color: #2E2E2E;
    line-height: 1.6;
    margin-bottom: 2rem;
}

body.page-home .d-sm-flex {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

body.page-home .btn-primary {
    background-color: #000000;
    color: #ffffff;
    border: none;
    border-radius: 50px;
    padding: 0.75rem 1.75rem;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(242, 242, 242, 0.2);
    transition: background-color 0.2s ease;
}

body.page-home .btn-primary:hover {
    background-color: #2E2E2E;
}

body.page-home .btn-outline-secondary {
    background-color: transparent;
    color: #2E2E2E;
    border: 1px solid #f2f2f2;
    border-radius: 50px;
    padding: 0.75rem 1.75rem;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

body.page-home .btn-outline-secondary:hover {
    border-color: #000000;
    color: #000000;
}

/* FEATURES GRID SECTION */
body.page-home #featured-3 h2.border-bottom {
    font-size: 1.75rem;
    font-weight: 500;
    color: #000000;
    padding-bottom: 1rem;
    margin-bottom: 3rem;
    border-bottom: 1px solid #f2f2f2 !important;
    text-align: center;
}

body.page-home .row.g-4 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

@media (max-width: 992px) {
    body.page-home .row.g-4 {
        grid-template-columns: 1fr;
    }
}

body.page-home .feature {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

body.page-home .feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background-color: #000000 !important;
    color: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 1.25rem !important;
    box-shadow: 0 4px 12px rgba(242, 242, 242, 0.2);
}

body.page-home .feature h3.fs-2 {
    font-size: 1.35rem !important;
    font-weight: 700;
    color: #000000;
    margin-bottom: 0.75rem;
}

body.page-home .feature p {
    font-size: 1rem;
    color: #2E2E2E;
    line-height: 1.6;
    margin-bottom: 1.25rem;
    text-align: left !important;
}

body.page-home .icon-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #000000;
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

body.page-home .icon-link:hover {
    color: #2E2E2E;
    text-decoration: underline;
}

/* ==========================================================
3. PRODUCTS PAGE EXCLUSIVE STYLES
========================================================== */
.filter-pills {
    display: flex;
    gap: 0.75rem;
    margin: 1.5rem 0 2.5rem 0;
    flex-wrap: wrap;
}

.pill {
    background: transparent;
    border: 1px solid #f2f2f2;
    color: #2E2E2E;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pill.active,
.pill:hover {
    background-color: #000000;
    color: #ffffff;
    border-color: #000000;
}

.product-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 2rem !important;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (max-width: 992px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 576px) {
    .product-grid {
        grid-template-columns: 1fr !important;
    }
}

.product-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.product-card {
    background: #ffffff !important;
    border-radius: 8px !important;
    border: 1px solid rgba(0, 0, 0, 0.125) !important;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.product-image {
    width: 100%;
    height: 225px;
    overflow: hidden;
    background-color: #f2f2f2 !important;
}

.product-card img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.product-info {
    padding: 1.25rem !important;
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
}

.product-info .category-tag {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #2E2E2E;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.product-info h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 0.5rem;
}

.product-info .description {
    font-size: 0.9rem;
    color: #2E2E2E;
    line-height: 1.5;
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.product-footer .price {
    font-weight: 700;
    color: #000000;
    font-size: 1rem;
}

/* ==========================================================
PRODUCT CARD "VIEW DETAILS" BUTTON STYLING
========================================================== */
.product-card .view-details-btn,
.product-card a.btn-outline-dark,
.product-card a:has(+ *),
.product-card a[href*="products/"] {
    display: inline-block;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #000000;
    background-color: #ffffff;
    border: 1px solid #f2f2f2;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.product-card a[href*="products/"]:hover {
    background-color: #f2f2f2;
    border-color: #000000;
    color: #000000;
}

/* ==========================================================
PRODUCT DETAIL PAGE MODERN STYLING
========================================================== */
.product-detail-container {
    max-width: 1200px;
    margin: 3rem auto 5rem auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: start;
}

@media (max-width: 768px) {
    .product-detail-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.gallery-container {
    width: 100%;
}

.main-image-view {
    position: relative;
    background: #f2f2f2;
    border: 1px solid #f2f2f2;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 500px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.main-image-view img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.15s ease-in-out;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #f2f2f2;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
    z-index: 10;
}

.carousel-btn:hover {
    background: #ffffff;
    border-color: #000000;
}

.carousel-btn svg {
    width: 16px;
    height: 16px;
    fill: #000000;
}

.carousel-prev {
    left: 1rem;
}

.carousel-next {
    right: 1rem;
}

.product-info {
    display: flex;
    flex-direction: column;
}

.product-category {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #000000;
    margin-bottom: 0.5rem;
}

.product-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #000000;
    letter-spacing: -0.5px;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 1.25rem;
}

.product-description {
    font-size: 1rem;
    color: #2E2E2E;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.specs-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #000000;
    margin-bottom: 0.5rem;
}

.specs-list {
    list-style-type: disc;
    padding-left: 1.25rem;
    color: #2E2E2E;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.specs-list li {
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
}

.purchase-form {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-top: auto;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid #f2f2f2;
    border-radius: 8px;
    background: #ffffff;
    overflow: hidden;
}

.qty-btn {
    background: #f2f2f2;
    border: none;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-weight: 600;
    color: #000000;
    cursor: pointer;
    transition: background 0.2s ease;
}

.qty-btn:hover {
    background: #f2f2f2;
}

.qty-input {
    width: 50px;
    text-align: center;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    color: #000000;
    outline: none;
    background: transparent;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.btn-add-cart {
    flex: 1;
    background-color: #000000;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 0.85rem 1.5rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    box-shadow: 0 4px 12px rgba(242, 242, 242, 0.2);
}

.btn-add-cart:hover {
    background-color: #2E2E2E;
}

/* ==========================================================
5. CHECKOUT PAGE EXCLUSIVE STYLES
========================================================== */
body.page-checkout .checkout-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 3rem;
    align-items: start;
}

@media (max-width: 992px) {
    body.page-checkout .checkout-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

body.page-checkout .checkout-form-section,
body.page-checkout .cart-summary-section {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

body.page-checkout .form-label {
    font-weight: 500;
    color: #334155;
    margin-bottom: 0.5rem;
}

body.page-checkout .checkout-form-section input.form-control,
body.page-checkout .checkout-form-section select.form-select,
body.page-checkout .form-control,
body.page-checkout .form-select {
    width: 100% !important;
    padding: 0.75rem;
    border: 1px solid #f2f2f2;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

body.page-checkout .form-control:focus,
body.page-checkout .form-select:focus {
    border-color: #000000;
    box-shadow: 0 0 0 3px rgba(242, 242, 242, 0.15);
}

body.page-checkout .btn-checkout-submit {
    background-color: #000000;
    color: #ffffff;
    border: none;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.2s ease;
}

body.page-checkout .btn-checkout-submit:hover {
    background-color: #2E2E2E;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
}

/* ==========================================================
FAQ PAGE MODERN STYLING
========================================================== */
.faq-category {
    margin-bottom: 3rem;
}

.faq-category h2 {
    font-size: 1.35rem;
    font-weight: 600;
    color: #000000;
    border-bottom: 2px solid #f2f2f2;
    padding-bottom: 0.75rem;
    margin-bottom: 1.75rem;
    letter-spacing: -0.3px;
}

.faq-item {
    background: #ffffff;
    border: 1px solid #f2f2f2;
    border-radius: 12px;
    padding: 1.5rem 1.75rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    transition: all 0.2s ease;
}

.faq-item:hover {
    border-color: #f2f2f2;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.faq-item h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: #000000;
    margin-bottom: 0.75rem;
}

.faq-item p {
    font-size: 0.95rem;
    color: #2E2E2E;
    line-height: 1.6;
    margin-bottom: 0;
}

/* ==========================================================
CONTACT PAGE MODERN STYLING
========================================================== */
.contact-card {
    background: #ffffff;
    border: 1px solid #f2f2f2;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.contact-card .form-label {
    font-weight: 600;
    color: #000000;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    display: block;
}

.contact-card .form-control {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid #f2f2f2;
    border-radius: 8px;
    font-size: 1rem;
    color: #000000;
    background-color: #fff;
    transition: all 0.2s ease;
    outline: none;
    margin-bottom: 1.5rem;
}

.contact-card .form-control:focus {
    border-color: #000000;
    box-shadow: 0 0 0 3px rgba(242, 242, 242, 0.15);
}

.contact-card textarea.form-control {
    resize: vertical;
}

.contact-card .btn-submit {
    background-color: #000000;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 0.85rem 2rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: inline-block;
    width: 100%;
}

.contact-card .btn-submit:hover {
    background-color: #2E2E2E;
}