/*
Theme Name: FurrBudd
Theme URI: https://furrbudd.com
Author: FurFect Partners
Author URI: https://furrbudd.com
Description: A custom WordPress theme for FurrBudd — a pet product affiliate site featuring premium pet essentials with paw-some deals. Supports product listings with affiliate links, category filtering (Dogs/Cats), and WooCommerce compatibility.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: furrbudd
Tags: e-commerce, blog, custom-logo, custom-menu, featured-images, theme-options, translation-ready
*/

/* ==========================================================================
   CSS VARIABLES
   ========================================================================== */

:root {
    --fb-navy: #0f2b4a;
    --fb-navy-dark: #0a1e33;
    --fb-navy-light: #1a3d5c;
    --fb-teal: #0d7377;
    --fb-teal-dark: #095a5d;
    --fb-teal-light: #13908f;
    --fb-gold: #d4a843;
    --fb-gold-light: #e8c46a;
    --fb-white: #ffffff;
    --fb-off-white: #f5f5f5;
    --fb-light-gray: #e8e8e8;
    --fb-mid-gray: #888888;
    --fb-dark-gray: #333333;
    --fb-body-bg: #ffffff;
    --fb-text: #333333;
    --fb-text-light: #666666;
    --fb-border-radius: 12px;
    --fb-border-radius-sm: 8px;
    --fb-border-radius-lg: 20px;
    --fb-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    --fb-shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.15);
    --fb-transition: all 0.3s ease;
    --fb-font-heading: 'Oswald', sans-serif;
    --fb-font-body: 'Open Sans', sans-serif;
    --fb-container: 1200px;
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--fb-font-body);
    color: var(--fb-text);
    background-color: var(--fb-body-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--fb-teal);
    text-decoration: none;
    transition: var(--fb-transition);
}

a:hover {
    color: var(--fb-gold);
}

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--fb-font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--fb-navy);
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.6rem; }
h4 { font-size: 1.3rem; }

p {
    margin-bottom: 1rem;
}

button, input, select, textarea {
    font-family: var(--fb-font-body);
}

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    word-wrap: normal !important;
}

/* ==========================================================================
   LAYOUT
   ========================================================================== */

.fb-container {
    max-width: var(--fb-container);
    margin: 0 auto;
    padding: 0 20px;
}

.fb-section {
    padding: 60px 0;
}

/* ==========================================================================
   HEADER
   ========================================================================== */

.site-header {
    background-color: var(--fb-white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    max-width: var(--fb-container);
    margin: 0 auto;
    position: relative;
}

.site-logo {
    flex-shrink: 0;
}

.site-logo img {
    height: 80px;
    width: auto;
}

.main-navigation {
    flex: 1;
    display: flex;
    justify-content: center;
}

.main-navigation ul {
    display: flex;
    align-items: center;
    gap: 8px;
}

.main-navigation li a {
    font-family: var(--fb-font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--fb-navy);
    padding: 8px 14px;
    border-radius: var(--fb-border-radius-sm);
    transition: var(--fb-transition);
    letter-spacing: 0.5px;
}

.main-navigation li a:hover,
.main-navigation li.current-menu-item a,
.main-navigation li.current_page_item a {
    color: var(--fb-teal);
    background-color: rgba(13, 115, 119, 0.08);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.header-search {
    position: relative;
}

.header-search input {
    border: 2px solid var(--fb-light-gray);
    border-radius: 25px;
    padding: 8px 38px 8px 16px;
    font-size: 0.85rem;
    width: 180px;
    transition: var(--fb-transition);
    outline: none;
}

.header-search input:focus {
    border-color: var(--fb-teal);
    width: 220px;
}

.header-search button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--fb-mid-gray);
    cursor: pointer;
    padding: 4px;
}

.header-search button:hover {
    color: var(--fb-teal);
}

.cart-icon {
    position: relative;
    color: var(--fb-navy);
    font-size: 1.3rem;
    padding: 6px;
}

.cart-icon:hover {
    color: var(--fb-teal);
}

.cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background-color: var(--fb-gold);
    color: var(--fb-white);
    font-size: 0.65rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--fb-navy);
    position: relative;
    transition: var(--fb-transition);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: var(--fb-navy);
    transition: var(--fb-transition);
}

.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

.mobile-menu-toggle.active .hamburger {
    background-color: transparent;
}

.mobile-menu-toggle.active .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.mobile-menu-toggle.active .hamburger::after {
    transform: rotate(-45deg);
    top: 0;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero-section {
    background-color: var(--fb-navy);
    background-image: linear-gradient(135deg, var(--fb-navy-dark) 0%, var(--fb-navy) 50%, var(--fb-navy-light) 100%);
    position: relative;
    overflow: hidden;
    min-height: 420px;
}

.rope-border {
    width: 100%;
    height: 12px;
    background: linear-gradient(
        to right,
        #8B6914, #C4982B, #D4A843, #C4982B, #8B6914,
        #C4982B, #D4A843, #C4982B, #8B6914, #C4982B,
        #D4A843, #C4982B, #8B6914
    );
    background-size: 60px 12px;
    position: relative;
}

.rope-border::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 8px,
        rgba(0,0,0,0.15) 8px,
        rgba(0,0,0,0.15) 10px
    );
}

.hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 60px 20px;
    max-width: var(--fb-container);
    margin: 0 auto;
    gap: 40px;
}

.hero-content {
    flex: 1;
    max-width: 520px;
    z-index: 2;
}

.hero-content h1 {
    color: var(--fb-white);
    font-size: 3.2rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 8px;
    line-height: 1.1;
}

.hero-content h1 span {
    color: var(--fb-gold);
    display: block;
}

.hero-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.15rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 24px;
}

.hero-content .btn-primary {
    display: inline-block;
    background-color: var(--fb-gold);
    color: var(--fb-navy);
    font-family: var(--fb-font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 14px 36px;
    border-radius: 30px;
    letter-spacing: 1px;
    transition: var(--fb-transition);
    box-shadow: 0 4px 15px rgba(212, 168, 67, 0.4);
}

.hero-content .btn-primary:hover {
    background-color: var(--fb-gold-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 168, 67, 0.5);
}

.hero-image {
    flex: 1;
    max-width: 550px;
    position: relative;
    z-index: 2;
}

.hero-image img {
    width: 100%;
    border-radius: var(--fb-border-radius-lg);
}

.hero-collage {
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 3;
}

.hero-collage img {
    width: 120px;
    height: 90px;
    object-fit: cover;
    border-radius: var(--fb-border-radius-sm);
    border: 3px solid var(--fb-white);
    box-shadow: var(--fb-shadow);
}

/* ==========================================================================
   FEATURED PRODUCTS
   ========================================================================== */

.featured-products-section {
    padding: 60px 0;
    background-color: var(--fb-white);
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 2rem;
    text-transform: uppercase;
    color: var(--fb-navy);
    letter-spacing: 1px;
}

.category-tabs {
    display: flex;
    gap: 12px;
}

.category-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: var(--fb-navy);
    color: var(--fb-white);
    font-family: var(--fb-font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 10px 24px;
    border-radius: 30px;
    border: 2px solid var(--fb-navy);
    cursor: pointer;
    transition: var(--fb-transition);
    letter-spacing: 0.5px;
}

.category-tab:hover {
    background-color: var(--fb-navy-light);
    border-color: var(--fb-navy-light);
}

.category-tab.active {
    background-color: var(--fb-teal);
    border-color: var(--fb-teal);
}

.category-tab svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

/* Product Carousel */
.products-carousel-wrapper {
    position: relative;
    padding: 0 50px;
}

.products-carousel {
    display: flex;
    gap: 24px;
    overflow: hidden;
    scroll-behavior: smooth;
}

.product-card {
    flex: 0 0 calc(25% - 18px);
    background: var(--fb-white);
    border: 2px solid var(--fb-light-gray);
    border-radius: var(--fb-border-radius);
    padding: 20px;
    text-align: center;
    transition: var(--fb-transition);
    position: relative;
}

.product-card:hover {
    border-color: var(--fb-teal);
    box-shadow: var(--fb-shadow-lg);
    transform: translateY(-4px);
}

.product-card-image {
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--fb-border-radius-sm);
    overflow: hidden;
    margin-bottom: 16px;
    background-color: var(--fb-off-white);
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--fb-transition);
}

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

.product-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--fb-navy);
    margin-bottom: 6px;
}

.product-card .product-excerpt {
    font-size: 0.82rem;
    color: var(--fb-text-light);
    margin-bottom: 10px;
    line-height: 1.4;
}

.product-card .product-price {
    font-family: var(--fb-font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--fb-teal);
    margin-bottom: 12px;
}

.product-card .btn-affiliate {
    display: inline-block;
    background-color: var(--fb-gold);
    color: var(--fb-navy);
    font-family: var(--fb-font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 10px 24px;
    border-radius: 25px;
    transition: var(--fb-transition);
    letter-spacing: 0.5px;
}

.product-card .btn-affiliate:hover {
    background-color: var(--fb-gold-light);
    transform: scale(1.05);
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background-color: var(--fb-white);
    border: 2px solid var(--fb-light-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--fb-transition);
    z-index: 10;
    color: var(--fb-navy);
}

.carousel-arrow:hover {
    background-color: var(--fb-navy);
    border-color: var(--fb-navy);
    color: var(--fb-white);
}

.carousel-arrow.prev { left: 0; }
.carousel-arrow.next { right: 0; }

.carousel-arrow svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* ==========================================================================
   WHY CHOOSE US
   ========================================================================== */

.why-choose-section {
    padding: 50px 0;
    background-color: var(--fb-white);
    border-top: 1px solid var(--fb-light-gray);
}

.why-choose-section h2 {
    text-align: center;
    text-transform: uppercase;
    margin-bottom: 40px;
    font-size: 2rem;
    letter-spacing: 1px;
}

.why-choose-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.why-choose-item {
    text-align: center;
    padding: 20px;
}

.why-choose-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 16px;
    color: var(--fb-gold);
}

.why-choose-icon svg {
    width: 100%;
    height: 100%;
}

.why-choose-item h4 {
    font-family: var(--fb-font-heading);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 6px;
    color: var(--fb-navy);
}

.why-choose-item p {
    font-size: 0.85rem;
    color: var(--fb-text-light);
    margin-bottom: 0;
}

/* ==========================================================================
   CTA BANNER
   ========================================================================== */

.cta-banner {
    background: linear-gradient(135deg, var(--fb-teal-dark) 0%, var(--fb-teal) 50%, var(--fb-teal-light) 100%);
    padding: 60px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-banner::before,
.cta-banner::after {
    content: '';
    position: absolute;
    width: 120px;
    height: 120px;
    opacity: 0.12;
}

.cta-banner::before {
    top: 20px;
    left: 40px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 2L9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.64-7.03L22 9.24l-7.19-.61z'/%3E%3C/svg%3E") no-repeat center/contain;
}

.cta-banner::after {
    bottom: 20px;
    right: 40px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 2L9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.64-7.03L22 9.24l-7.19-.61z'/%3E%3C/svg%3E") no-repeat center/contain;
}

.cta-sparkle {
    position: absolute;
    opacity: 0.15;
}

.cta-sparkle svg {
    fill: white;
}

.cta-sparkle-1 { top: 30px; right: 15%; width: 50px; height: 50px; }
.cta-sparkle-2 { bottom: 30px; left: 10%; width: 40px; height: 40px; }
.cta-sparkle-3 { top: 50%; right: 5%; width: 60px; height: 60px; }

.cta-banner h2 {
    color: var(--fb-white);
    font-size: 2.2rem;
    text-transform: uppercase;
    margin-bottom: 4px;
    letter-spacing: 1px;
}

.cta-banner h3 {
    color: var(--fb-gold-light);
    font-size: 1.6rem;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.cta-banner p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.05rem;
    margin-bottom: 24px;
}

.btn-cta {
    display: inline-block;
    background-color: var(--fb-white);
    color: var(--fb-teal);
    font-family: var(--fb-font-heading);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 14px 40px;
    border-radius: 30px;
    border: 2px solid var(--fb-white);
    transition: var(--fb-transition);
    letter-spacing: 1px;
}

.btn-cta:hover {
    background-color: transparent;
    color: var(--fb-white);
    transform: translateY(-2px);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
    background-color: var(--fb-navy-dark);
    color: rgba(255, 255, 255, 0.8);
}

.footer-widgets {
    padding: 50px 0 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-widgets-inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr;
    gap: 40px;
    max-width: var(--fb-container);
    margin: 0 auto;
    padding: 0 20px;
}

.footer-widget h4 {
    color: var(--fb-white);
    font-family: var(--fb-font-heading);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-widget h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--fb-gold);
    border-radius: 2px;
}

.footer-widget p {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 16px;
}

.footer-widget .footer-logo {
    height: 60px;
    width: auto;
    margin-bottom: 16px;
}

.footer-widget ul li {
    margin-bottom: 10px;
}

.footer-widget ul li a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    transition: var(--fb-transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-widget ul li a::before {
    content: '';
    width: 6px;
    height: 6px;
    background-color: var(--fb-gold);
    border-radius: 50%;
    flex-shrink: 0;
}

.footer-widget ul li a:hover {
    color: var(--fb-gold);
    padding-left: 4px;
}

.footer-newsletter-form {
    display: flex;
    gap: 8px;
}

.footer-newsletter-form input[type="email"] {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--fb-white);
    font-size: 0.9rem;
    outline: none;
    transition: var(--fb-transition);
}

.footer-newsletter-form input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.footer-newsletter-form input[type="email"]:focus {
    border-color: var(--fb-teal);
    background-color: rgba(255, 255, 255, 0.12);
}

.footer-newsletter-form button {
    background-color: var(--fb-gold);
    color: var(--fb-navy);
    font-family: var(--fb-font-heading);
    font-weight: 700;
    text-transform: uppercase;
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: var(--fb-transition);
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.footer-newsletter-form button:hover {
    background-color: var(--fb-gold-light);
    transform: scale(1.03);
}

/* Footer Tagline Row */
.footer-tagline {
    text-align: center;
    padding: 24px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-tagline-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    max-width: var(--fb-container);
    margin: 0 auto;
}

.footer-tagline .paw-icon {
    width: 24px;
    height: 24px;
    fill: var(--fb-gold);
}

.footer-tagline span {
    font-family: var(--fb-font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--fb-white);
    letter-spacing: 2px;
}

/* Footer Bottom Bar */
.footer-bottom {
    padding: 20px 0;
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    max-width: var(--fb-container);
    margin: 0 auto;
    padding: 0 20px;
}

.footer-copyright {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.6);
    transition: var(--fb-transition);
}

.footer-links a:hover {
    color: var(--fb-gold);
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    transition: var(--fb-transition);
}

.footer-social a:hover {
    background-color: var(--fb-gold);
    color: var(--fb-navy);
    transform: translateY(-3px);
}

.footer-social a svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* ==========================================================================
   BLOG / ARCHIVE
   ========================================================================== */

.content-area {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    padding: 40px 0;
}

.content-area.full-width {
    grid-template-columns: 1fr;
}

.post-card {
    background: var(--fb-white);
    border-radius: var(--fb-border-radius);
    overflow: hidden;
    box-shadow: var(--fb-shadow);
    transition: var(--fb-transition);
    margin-bottom: 30px;
}

.post-card:hover {
    box-shadow: var(--fb-shadow-lg);
    transform: translateY(-3px);
}

.post-card-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--fb-transition);
}

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

.post-card-content {
    padding: 24px;
}

.post-card-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 10px;
    font-size: 0.8rem;
    color: var(--fb-mid-gray);
}

.post-card-content h3 {
    margin-bottom: 10px;
}

.post-card-content h3 a {
    color: var(--fb-navy);
}

.post-card-content h3 a:hover {
    color: var(--fb-teal);
}

.post-card-excerpt {
    color: var(--fb-text-light);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.read-more {
    font-family: var(--fb-font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--fb-teal);
    letter-spacing: 0.5px;
}

.read-more:hover {
    color: var(--fb-gold);
}

/* Single Post */
.single-post-header {
    background-color: var(--fb-navy);
    padding: 60px 0 40px;
    text-align: center;
}

.single-post-header h1 {
    color: var(--fb-white);
    font-size: 2.4rem;
    max-width: 800px;
    margin: 0 auto 16px;
}

.single-post-header .post-meta {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.single-post-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    font-size: 1.05rem;
    line-height: 1.8;
}

.single-post-content h2,
.single-post-content h3,
.single-post-content h4 {
    margin-top: 32px;
    margin-bottom: 16px;
}

.single-post-content p {
    margin-bottom: 20px;
}

.single-post-content img {
    border-radius: var(--fb-border-radius);
    margin: 24px 0;
}

/* ==========================================================================
   PRODUCT SINGLE
   ========================================================================== */

.product-single {
    padding: 40px 0;
}

.product-single-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.product-gallery img {
    width: 100%;
    border-radius: var(--fb-border-radius);
    box-shadow: var(--fb-shadow);
}

.product-info h1 {
    font-size: 2rem;
    margin-bottom: 16px;
}

.product-info .product-price {
    font-family: var(--fb-font-heading);
    font-size: 2rem;
    color: var(--fb-teal);
    margin-bottom: 20px;
}

.product-info .product-rating {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
    color: var(--fb-gold);
}

.product-info .product-description {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--fb-text-light);
    margin-bottom: 24px;
}

.btn-buy-now {
    display: inline-block;
    background-color: var(--fb-gold);
    color: var(--fb-navy);
    font-family: var(--fb-font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 16px 48px;
    border-radius: 30px;
    transition: var(--fb-transition);
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(212, 168, 67, 0.4);
}

.btn-buy-now:hover {
    background-color: var(--fb-gold-light);
    color: var(--fb-navy);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 168, 67, 0.5);
}

/* ==========================================================================
   SIDEBAR
   ========================================================================== */

.sidebar .widget {
    background: var(--fb-white);
    border-radius: var(--fb-border-radius);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--fb-shadow);
}

.sidebar .widget h4,
.sidebar .widget-title {
    font-family: var(--fb-font-heading);
    font-size: 1.1rem;
    text-transform: uppercase;
    color: var(--fb-navy);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--fb-gold);
}

.sidebar .widget ul li {
    padding: 8px 0;
    border-bottom: 1px solid var(--fb-light-gray);
}

.sidebar .widget ul li:last-child {
    border-bottom: none;
}

.sidebar .widget ul li a {
    color: var(--fb-text);
    font-size: 0.9rem;
}

.sidebar .widget ul li a:hover {
    color: var(--fb-teal);
}

/* ==========================================================================
   PAGE TEMPLATES
   ========================================================================== */

.page-header {
    background-color: var(--fb-navy);
    background-image: linear-gradient(135deg, var(--fb-navy-dark) 0%, var(--fb-navy) 50%, var(--fb-navy-light) 100%);
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    color: var(--fb-white);
    font-size: 2.6rem;
    text-transform: uppercase;
}

.page-header .breadcrumbs {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    margin-top: 10px;
}

.page-header .breadcrumbs a {
    color: var(--fb-gold);
}

.page-content {
    padding: 50px 0;
    max-width: 900px;
    margin: 0 auto;
}

/* FAQ */
.faq-item {
    border: 2px solid var(--fb-light-gray);
    border-radius: var(--fb-border-radius);
    margin-bottom: 12px;
    overflow: hidden;
    transition: var(--fb-transition);
}

.faq-item.active {
    border-color: var(--fb-teal);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    cursor: pointer;
    font-family: var(--fb-font-heading);
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--fb-navy);
    transition: var(--fb-transition);
}

.faq-question:hover {
    background-color: rgba(13, 115, 119, 0.05);
}

.faq-question .faq-toggle {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
    color: var(--fb-teal);
}

.faq-item.active .faq-toggle {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer-inner {
    padding: 0 24px 20px;
    color: var(--fb-text-light);
    line-height: 1.7;
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-family: var(--fb-font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--fb-navy);
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--fb-light-gray);
    border-radius: var(--fb-border-radius-sm);
    font-size: 0.95rem;
    outline: none;
    transition: var(--fb-transition);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--fb-teal);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.btn-submit {
    display: inline-block;
    background-color: var(--fb-teal);
    color: var(--fb-white);
    font-family: var(--fb-font-heading);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 14px 40px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--fb-transition);
    letter-spacing: 1px;
}

.btn-submit:hover {
    background-color: var(--fb-teal-dark);
    transform: translateY(-2px);
}

/* ==========================================================================
   PAGINATION
   ========================================================================== */

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 40px 0;
}

.pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 2px solid var(--fb-light-gray);
    border-radius: var(--fb-border-radius-sm);
    font-family: var(--fb-font-heading);
    font-weight: 600;
    color: var(--fb-navy);
    transition: var(--fb-transition);
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background-color: var(--fb-teal);
    border-color: var(--fb-teal);
    color: var(--fb-white);
}

/* ==========================================================================
   404 PAGE
   ========================================================================== */

.error-404 {
    text-align: center;
    padding: 80px 20px;
}

.error-404 h1 {
    font-size: 8rem;
    color: var(--fb-navy);
    line-height: 1;
    margin-bottom: 16px;
}

.error-404 h2 {
    font-size: 1.8rem;
    margin-bottom: 16px;
}

.error-404 p {
    color: var(--fb-text-light);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

/* ==========================================================================
   WOOCOMMERCE COMPATIBILITY
   ========================================================================== */

.woocommerce .products ul,
.woocommerce ul.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.woocommerce ul.products li.product {
    border: 2px solid var(--fb-light-gray);
    border-radius: var(--fb-border-radius);
    padding: 20px;
    text-align: center;
    transition: var(--fb-transition);
}

.woocommerce ul.products li.product:hover {
    border-color: var(--fb-teal);
    box-shadow: var(--fb-shadow-lg);
}

.woocommerce ul.products li.product a img {
    border-radius: var(--fb-border-radius-sm);
    margin-bottom: 12px;
}

.woocommerce ul.products li.product .price {
    font-family: var(--fb-font-heading);
    font-size: 1.2rem;
    color: var(--fb-teal);
}

.woocommerce ul.products li.product .button,
.woocommerce a.button,
.woocommerce button.button {
    background-color: var(--fb-gold) !important;
    color: var(--fb-navy) !important;
    font-family: var(--fb-font-heading);
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 25px !important;
    padding: 10px 24px !important;
}

/* ==========================================================================
   COMMENTS
   ========================================================================== */

.comments-area {
    padding: 40px 0;
    max-width: 800px;
    margin: 0 auto;
}

.comments-title {
    font-size: 1.6rem;
    margin-bottom: 30px;
}

.comment-list .comment {
    padding: 24px 0;
    border-bottom: 1px solid var(--fb-light-gray);
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.comment-author img {
    border-radius: 50%;
}

.comment-author .fn {
    font-family: var(--fb-font-heading);
    font-weight: 700;
    color: var(--fb-navy);
}

.comment-metadata {
    font-size: 0.8rem;
    color: var(--fb-mid-gray);
    margin-bottom: 12px;
}

.comment-content {
    font-size: 0.95rem;
    line-height: 1.7;
}

.comment-respond .comment-reply-title {
    font-size: 1.4rem;
    margin-bottom: 20px;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1024px) {
    .product-card {
        flex: 0 0 calc(33.333% - 16px);
    }

    .footer-widgets-inner {
        grid-template-columns: 1fr 1fr;
    }

    .why-choose-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-single-inner {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }

    .mobile-menu-toggle {
        display: block;
    }

    .main-navigation {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        background-color: var(--fb-white);
        flex-direction: column;
        justify-content: flex-start;
        padding: 80px 24px 24px;
        box-shadow: var(--fb-shadow-lg);
        transition: left 0.3s ease;
        z-index: 999;
    }

    .main-navigation.active {
        left: 0;
    }

    .main-navigation ul {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }

    .main-navigation li a {
        display: block;
        padding: 14px 16px;
        border-bottom: 1px solid var(--fb-light-gray);
        border-radius: 0;
    }

    .header-search input {
        width: 140px;
    }

    .header-search input:focus {
        width: 160px;
    }

    .hero-inner {
        flex-direction: column;
        text-align: center;
        padding: 40px 20px;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-image {
        max-width: 100%;
    }

    .hero-collage {
        display: none;
    }

    .section-header {
        flex-direction: column;
        text-align: center;
    }

    .product-card {
        flex: 0 0 calc(50% - 12px);
    }

    .products-carousel-wrapper {
        padding: 0 36px;
    }

    .content-area {
        grid-template-columns: 1fr;
    }

    .footer-widgets-inner {
        grid-template-columns: 1fr;
    }

    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
    }

    .cta-banner h2 {
        font-size: 1.6rem;
    }

    .cta-banner h3 {
        font-size: 1.2rem;
    }

    .error-404 h1 {
        font-size: 5rem;
    }
}

@media (max-width: 480px) {
    .product-card {
        flex: 0 0 100%;
    }

    .products-carousel-wrapper {
        padding: 0 30px;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .category-tabs {
        flex-direction: column;
        width: 100%;
    }

    .category-tab {
        justify-content: center;
    }

    .footer-newsletter-form {
        flex-direction: column;
    }

    .why-choose-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   UTILITIES
   ========================================================================== */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 16px; }
.mt-4 { margin-top: 32px; }

/* Mobile overlay */
.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 998;
}

.mobile-overlay.active {
    display: block;
}
