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

/* Top Announcement Bar */
.kd-top-announcement-bar {
    background: #242424;
    color: white;
    text-align: center;
    padding: 10px 0;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.kd-top-announcement-bar p {
    margin: 0;
}

/* Top Bar */
.kd-top-bar {
    background: var(--kd-primary-color);
    color: white;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.kd-top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.kd-top-bar-left,
.kd-top-bar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.kd-top-bar-announcement strong {
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Social Icons */
.kd-social-icons {
    display: flex;
    gap: 15px;
}

.kd-social-link {
    color: white;
    transition: opacity var(--kd-transition-fast);
}

.kd-social-link:hover {
    opacity: 0.8;
}

.kd-social-link svg {
    display: block;
}

/* Quick Links */
.kd-quick-links {
    display: flex;
    gap: 15px;
}

.kd-quick-link {
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: opacity var(--kd-transition-fast);
}

.kd-quick-link:hover {
    opacity: 0.8;
}

/* Main Header */
.kd-main-header {
    padding: 25px 0;
    background: white;
    border-bottom: 1px solid var(--kd-border-color);
}

.kd-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

/* Header Left: Logo & Contact */
.kd-header-left {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}

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

.kd-logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.kd-logo img {
    height: 60px;
    width: auto;
}

.kd-logo h1 {
    margin: 0;
    font-size: 28px;
    font-weight: 600;
    color: var(--kd-title-color);
}

.kd-contact-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-left: 20px;
}

.kd-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--kd-text-color);
}

.kd-contact-item svg {
    flex-shrink: 0;
    color: var(--kd-primary-color);
}

.kd-contact-item a {
    color: var(--kd-text-color);
    text-decoration: none;
    transition: color var(--kd-transition-fast);
}

.kd-contact-item a:hover {
    color: var(--kd-primary-color);
}

/* Header Center: Navigation */
.kd-header-center {
    flex: 2;
    display: flex;
    justify-content: center;
}

.kd-main-nav {
    width: 100%;
}

.kd-nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: center;
    gap: 30px;
}

.kd-nav-menu li {
    margin: 0;
    padding: 0;
}

.kd-nav-menu a {
    color: var(--kd-title-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color var(--kd-transition-fast);
    position: relative;
}

.kd-nav-menu a:hover {
    color: var(--kd-primary-color);
}

.kd-nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--kd-primary-color);
    transition: width var(--kd-transition-normal);
}

.kd-nav-menu a:hover::after {
    width: 100%;
}

/* Header Right: Actions */
.kd-header-right {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
    justify-content: flex-end;
}

.kd-header-action {
    display: flex;
    align-items: center;
}

.kd-action-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--kd-title-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: color var(--kd-transition-fast);
}

.kd-action-link:hover {
    color: var(--kd-primary-color);
}

.kd-action-link svg {
    flex-shrink: 0;
}

/* Header Buttons */
.kd-header-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--kd-title-color);
    transition: color var(--kd-transition-fast);
    position: relative;
}

.kd-header-btn:hover {
    color: var(--kd-primary-color);
}

.kd-header-btn svg {
    flex-shrink: 0;
}

.kd-count {
    font-size: 12px;
    font-weight: 600;
    color: var(--kd-text-color);
}

.kd-cart-total {
    display: block;
    font-size: 12px;
    color: var(--kd-text-color);
    margin-top: 2px;
}

/* Mobile Menu Toggle */
.kd-mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    width: 30px;
    height: 30px;
    position: relative;
}

.kd-mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--kd-title-color);
    margin: 5px 0;
    transition: all var(--kd-transition-normal);
}

.kd-mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.kd-mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.kd-mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Menu */
.kd-mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    overflow-y: auto;
}

.kd-mobile-menu.active {
    display: block;
}

.kd-mobile-menu-inner {
    background: white;
    max-width: 400px;
    width: 100%;
    height: 100%;
    padding: 40px 20px;
    position: relative;
    overflow-y: auto;
}

.kd-mobile-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--kd-title-color);
    transition: color var(--kd-transition-fast);
}

.kd-mobile-close:hover {
    color: var(--kd-primary-color);
}

.kd-mobile-nav {
    list-style: none;
    margin: 0;
    padding: 0;
}

.kd-mobile-nav li {
    margin: 0;
    padding: 0;
    border-bottom: 1px solid var(--kd-border-color);
}

.kd-mobile-nav a {
    display: block;
    padding: 15px 0;
    color: var(--kd-title-color);
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: color var(--kd-transition-fast);
}

.kd-mobile-nav a:hover {
    color: var(--kd-primary-color);
}

/* Scrolled State */
body.scrolled .kd-main-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--kd-shadow-md);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .kd-contact-info {
        display: none;
    }
}

@media (max-width: 1024px) {
    .kd-header-center {
        display: none;
    }

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

    .kd-header-right {
        flex: 2;
    }
}

@media (max-width: 768px) {
    .kd-top-bar-inner {
        flex-direction: column;
        gap: 15px;
    }

    .kd-top-bar-left,
    .kd-top-bar-right {
        flex-direction: column;
        gap: 10px;
    }

    .kd-social-icons,
    .kd-quick-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .kd-header-inner {
        gap: 15px;
    }

    .kd-header-left {
        flex: 1;
    }

    .kd-logo img {
        height: 50px;
    }

    .kd-header-right {
        gap: 10px;
    }

    .kd-action-link span {
        display: none;
    }

    .kd-cart-total {
        display: none;
    }
}

@media (max-width: 576px) {
    .kd-top-bar-announcement strong {
        font-size: 12px;
    }

    .kd-main-header {
        padding: 15px 0;
    }

    .kd-logo img {
        height: 45px;
    }

    .kd-header-btn {
        padding: 8px;
    }

    .kd-header-btn svg {
        width: 18px;
        height: 18px;
    }
}

/* ============================================
   LANGUAGE AND CURRENCY SWITCHERS
   ============================================ */
.kd-language-switcher,
.kd-currency-switcher {
    position: relative;
    display: inline-block;
    margin: 0 10px;
}

.kd-lang-toggle,
.kd-currency-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px 10px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    color: inherit;
    transition: color var(--kd-transition-fast);
}

.kd-lang-toggle:hover,
.kd-currency-toggle:hover {
    color: var(--kd-primary-color);
}

.kd-lang-dropdown,
.kd-currency-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 150px;
    background: white;
    border: 1px solid var(--kd-border-color);
    box-shadow: var(--kd-shadow-md);
    z-index: 1000;
    margin-top: 5px;
    padding: 5px 0;
}

.kd-lang-dropdown.show,
.kd-currency-dropdown.show {
    display: block;
}

.kd-lang-dropdown li,
.kd-currency-dropdown li {
    margin: 0;
    padding: 0;
}

.kd-lang-dropdown a,
.kd-currency-dropdown a {
    display: block;
    padding: 8px 15px;
    text-decoration: none;
    color: var(--kd-text-color);
    font-size: 14px;
    transition: background var(--kd-transition-fast), color var(--kd-transition-fast);
}

.kd-lang-dropdown a:hover,
.kd-currency-dropdown a:hover {
    background: var(--kd-background-light);
    color: var(--kd-primary-color);
}

.kd-lang-dropdown .active a,
.kd-currency-dropdown .active a {
    color: var(--kd-primary-color);
    font-weight: 600;
}

/* ============================================
   SHOP PAGE - WOOCOMMERCE DEFAULT STYLES
   ============================================ */
/* Show WooCommerce default elements */
.woocommerce-result-count,
.woocommerce-ordering,
.woocommerce-pagination {
    display: block !important;
}

/* Show WooCommerce shop header */
.woocommerce-products-header,
header.woocommerce-products-header {
    display: block !important;
}

/* Show WooCommerce product loop */
.woocommerce-page .products,
.woocommerce .products {
    display: block !important;
}

/* Hide empty shop page description */
.woocommerce-products-header .page-description:empty,
.woocommerce-products-header .page-description p:empty {
    display: none !important;
}

/* Product card improvements for WooCommerce default */
.woocommerce ul.products li.product .woocommerce-loop-product__link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.woocommerce ul.products li.product img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    transition: transform 0.3s ease;
    display: block;
}

.woocommerce ul.products li.product:hover img {
    transform: scale(1.05);
}

.woocommerce ul.products li.product h2 {
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 15px 0 10px;
}

.woocommerce ul.products li.product h2 a {
    color: #242424;
}

.woocommerce ul.products li.product .price {
    font-size: 18px;
    font-weight: 600;
    color: #242424;
    margin: 10px 0;
    display: block;
}

.woocommerce ul.products li.product .price del {
    color: #999;
    font-size: 14px;
    margin-right: 8px;
}

.woocommerce ul.products li.product .price ins {
    color: #79b38a;
    text-decoration: none;
}

.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .add_to_cart_button {
    display: block;
    width: 100%;
    padding: 12px 20px;
    background: #242424;
    color: white;
    border: none;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.woocommerce ul.products li.product .button:hover,
.woocommerce ul.products li.product .add_to_cart_button:hover {
    background: #79b38a;
    color: white;
}

.woocommerce ul.products li.product .button.loading,
.woocommerce ul.products li.product .add_to_cart_button.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Hide add to cart for variable products if needed */
.woocommerce ul.products li.product .add_to_cart_button.added {
    display: none;
}

/* Pagination */
.woocommerce-pagination {
    margin: 40px 0;
}

.woocommerce-pagination ul {
    display: flex;
    justify-content: center;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.woocommerce-pagination ul li {
    margin: 0;
}
 

/* View switcher styles */
.kd-view-switcher {
    display: flex;
    gap: 10px;
    align-items: center;
}

.kd-view-btn {
    background: transparent;
    border: 2px solid #e8e8e8;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #777777;
    border-radius: 4px;
}

.kd-view-btn:hover {
    border-color: #79b38a;
    color: #79b38a;
}

.kd-view-btn.active {
    background: #79b38a;
    border-color: #79b38a;
    color: white;
}

.kd-view-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Product grid view switcher */
.products.grid-view {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.products.list-view {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.products.list-view li.product {
    display: flex;
    gap: 30px;
}

.products.list-view li.product .woocommerce-loop-product__link {
    flex: 0 0 300px;
}

.products.list-view li.product .woocommerce-loop-product__link img {
    width: 300px;
    height: 300px;
    object-fit: cover;
}

.products.list-view li.product .product-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* ============================================
   VIEW SWITCHER
   ============================================ */
.kd-view-switcher {
    display: flex;
    gap: 10px;
    align-items: center;
}

.kd-view-switcher button {
    background: transparent;
    border: 2px solid #e8e8e8;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #777777;
}

.kd-view-switcher button:hover {
    border-color: #79b38a;
    color: #79b38a;
}

.kd-view-switcher button.active {
    background: #79b38a;
    border-color: #79b38a;
    color: white;
}

.kd-view-switcher button svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* List View Styles */
.kd-products-grid.list-view {
    grid-template-columns: 1fr !important;
    gap: 30px;
}

.kd-products-grid.list-view .kd-product-card {
    display: flex;
    gap: 30px;
    text-align: left;
}

.kd-products-grid.list-view .kd-product-image {
    flex: 0 0 300px;
    min-height: 300px;
}

.kd-products-grid.list-view .kd-product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    text-align: left;
}

.kd-products-grid.list-view .kd-product-title {
    font-size: 20px;
    margin: 10px 0;
}

.kd-products-grid.list-view .kd-product-actions {
    position: static;
    opacity: 1;
    transform: none;
    margin-top: 15px;
}

@media (max-width: 768px) {
    .kd-products-grid.list-view .kd-product-card {
        flex-direction: column;
    }

    .kd-products-grid.list-view .kd-product-image {
        flex: none;
        width: 100%;
    }
}

/* ============================================
   SHOP PAGINATION
   ============================================ */
.kd-products-grid ~ .page-numbers,
.kd-products-grid + .page-numbers {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 40px 0;
    list-style: none;
    padding: 0;
}

.kd-products-grid ~ .page-numbers li,
.kd-products-grid + .page-numbers li {
    margin: 0;
    display: inline-block;
}

.kd-products-grid ~ .page-numbers .page-numbers,
.kd-products-grid + .page-numbers .page-numbers {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border: 2px solid #e8e8e8;
    border-radius: 4px;
    color: #777777;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    background: white;
}

.kd-products-grid ~ .page-numbers .page-numbers:hover,
.kd-products-grid + .page-numbers .page-numbers:hover {
    border-color: #79b38a;
    color: #79b38a;
}

.kd-products-grid ~ .page-numbers .page-numbers.current,
.kd-products-grid + .page-numbers .page-numbers.current {
    background: #79b38a;
    border-color: #79b38a;
    color: white;
}

.kd-products-grid ~ .page-numbers .page-numbers.prev,
.kd-products-grid ~ .page-numbers .page-numbers.next,
.kd-products-grid + .page-numbers .page-numbers.prev,
.kd-products-grid + .page-numbers .page-numbers.next {
    font-size: 18px;
}

@media (max-width: 768px) {
    .kd-products-grid ~ .page-numbers,
    .kd-products-grid + .page-numbers {
        flex-wrap: wrap;
        gap: 6px;
    }
}

/* ============================================
   PRODUCT CARDS
   ============================================ */
.kd-products-grid {
    display: grid;
    gap: 20px;
}

.kd-products-grid[data-columns="4"] {
    grid-template-columns: repeat(4, 1fr);
}

.kd-products-grid[data-columns="3"] {
    grid-template-columns: repeat(3, 1fr);
}

.kd-products-grid[data-columns="2"] {
    grid-template-columns: repeat(2, 1fr);
}

.kd-products-grid[data-columns="1"] {
    grid-template-columns: 1fr;
}

@media (max-width: 1024px) {
    .kd-products-grid[data-columns="4"] {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .kd-products-grid[data-columns="4"],
    .kd-products-grid[data-columns="3"] {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .kd-products-grid[data-columns="4"],
    .kd-products-grid[data-columns="3"],
    .kd-products-grid[data-columns="2"] {
        grid-template-columns: 1fr;
    }
}

.kd-product-card {
    position: relative;
    overflow: hidden;
    background: white;
    border: 1px solid var(--kd-border-color);
    border-radius: var(--kd-border-radius-sm);
    transition: box-shadow var(--kd-transition-normal), transform var(--kd-transition-normal);
}

.kd-product-card:hover {
    box-shadow: var(--kd-shadow-lg);
    transform: translateY(-5px);
}

.kd-product-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1.15;
}

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

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

.kd-product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: var(--kd-border-radius-sm);
    z-index: 2;
}

.kd-badge-sale {
    background: #f44336;
    color: white;
}

.kd-badge-featured {
    background: var(--kd-primary-color);
    color: white;
}

.kd-product-actions {
    position: absolute;
    bottom: -60px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    background: rgba(121, 179, 138, 0.95);
    transition: bottom var(--kd-transition-normal);
}

.kd-product-card:hover .kd-product-actions {
    bottom: 0;
}

.kd-action-btn {
    background: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--kd-transition-fast), background var(--kd-transition-fast);
}

.kd-action-btn:hover {
    transform: scale(1.1);
    background: var(--kd-primary-color);
    color: white;
}

.kd-action-btn:hover svg {
    stroke: white;
}

.kd-product-info {
    padding: 20px;
    text-align: center;
}

.kd-product-category {
    margin-bottom: 8px;
}

.kd-product-category a {
    font-size: 13px;
    color: var(--kd-text-color-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.kd-product-category a:hover {
    color: var(--kd-primary-color);
}

.kd-product-title {
    margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.4;
}

.kd-product-title a {
    color: var(--kd-title-color);
}

.kd-product-title a:hover {
    color: var(--kd-primary-color);
}

.kd-product-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-bottom: 10px;
}

.kd-star {
    transition: fill var(--kd-transition-fast);
}

.kd-rating-count {
    font-size: 12px;
    color: var(--kd-text-color-light);
}

.kd-product-price {
    font-size: 18px;
    font-weight: 600;
    color: var(--kd-title-color);
}

.kd-product-price del {
    color: var(--kd-text-color-light);
    font-size: 14px;
    margin-right: 5px;
}

.kd-product-price ins {
    color: var(--kd-primary-color);
    text-decoration: none;
}

/* Product Excerpt */
.kd-product-excerpt {
    font-size: 13px;
    color: var(--kd-text-color);
    line-height: 1.5;
    margin: 10px 0 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Add to Cart Button */
.kd-add-to-cart-btn {
    width: 100%;
    padding: 12px 20px;
    background: var(--kd-title-color);
    color: white;
    border: none;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all var(--kd-transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.kd-add-to-cart-btn:hover {
    background: var(--kd-primary-color);
}

.kd-add-to-cart-btn.loading .kd-btn-text {
    display: none;
}

.kd-add-to-cart-btn.loading .kd-btn-loading {
    display: flex !important;
    align-items: center;
    gap: 8px;
}

.kd-add-to-cart-btn.success .kd-btn-text {
    display: none;
}

.kd-add-to-cart-btn.success .kd-btn-success {
    display: flex !important;
    align-items: center;
    gap: 8px;
}

.kd-spinner {
    animation: kd-spin 1s linear infinite;
}

@keyframes kd-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================
   PRODUCT CATEGORIES
   ============================================ */
.kd-categories-carousel {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media (max-width: 1024px) {
    .kd-categories-carousel {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .kd-categories-carousel {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .kd-categories-carousel {
        grid-template-columns: 1fr;
    }
}

.kd-category-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--kd-border-radius-md);
    transition: transform var(--kd-transition-normal), box-shadow var(--kd-transition-normal);
    background: #f5f5f5;
}

.kd-category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--kd-shadow-lg);
}

.kd-category-link {
    display: block;
    text-decoration: none;
}

.kd-category-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
}

.kd-category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--kd-transition-normal);
}

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

/* 无分类图片时的样式 */
.kd-category-no-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #f5f5f5;
}

.kd-category-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
}

.kd-category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--kd-transition-normal);
}

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

.kd-category-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 25px 20px 20px;
    background: rgba(255, 255, 255, 0.5);
    color: #242424;
    text-align: center;
    backdrop-filter: blur(5px);
}

.kd-category-title {
    margin: 0 0 5px 0;
    font-size: 18px;
    font-weight: 700;
    color: #242424;
    letter-spacing: 0.5px;
}

.kd-category-count {
    font-size: 14px;
    font-weight: 600;
    display: inline-block;
    padding: 4px 14px;
    background: var(--kd-primary-color);
    color: white;
    border-radius: 15px;
}

/* ============================================
   BANNERS
   ============================================ */

/* Banners Section */
.kd-banners-section {
    padding: 0;
    margin: 0 0 var(--kd-spacing-xl) 0;
}

.kd-banners-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: var(--kd-container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Banner Wrapper */
.kd-banner-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: var(--kd-border-radius-md);
    background: var(--kd-background-light);
}

.kd-banner-link {
    display: block;
    text-decoration: none;
    width: 100%;
    height: 100%;
}

/* Banner Image */
.kd-banner-image {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.kd-banner-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform var(--kd-transition-slow);
}

.kd-banner-wrapper:hover .kd-banner-image img {
    transform: scale(1.08);
}

/* Banner Sizes */
.kd-banner-large {
    aspect-ratio: 1.2 / 1;
}

.kd-banner-medium {
    aspect-ratio: 1.2 / 1;
    margin-bottom: 20px;
}

.kd-banner-small {
    aspect-ratio: 1 / 1;
}

/* Banner Overlay */
.kd-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 40px;
    transition: background var(--kd-transition-normal);
}

.kd-banner-wrapper:hover .kd-banner-overlay {
    background: rgba(0, 0, 0, 0.3);
}

/* Banner Content */
.kd-banner-content {
    color: white;
    max-width: 80%;
}

.kd-banner-subtitle {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: var(--kd-primary-color);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.kd-banner-title {
    font-size: 42px;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 20px;
    color: white;
}

.kd-banner-button {
    display: inline-block;
    padding: 12px 30px;
    background: var(--kd-primary-color);
    color: white;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--kd-border-radius-sm);
    transition: background var(--kd-transition-normal), transform var(--kd-transition-fast);
}

.kd-banner-button:hover {
    background: var(--kd-primary-color-hover);
    transform: translateY(-2px);
}

/* Banners Column */
.kd-banners-column {
    display: flex;
    flex-direction: column;
}

/* Banners Row */
.kd-banners-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .kd-banners-grid {
        grid-template-columns: 1fr;
    }

    .kd-banners-row {
        grid-template-columns: 1fr 1fr;
    }

    .kd-banner-title {
        font-size: 32px;
    }

    .kd-banner-subtitle {
        font-size: 14px;
    }

    .kd-banner-overlay {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .kd-banners-section {
        margin-bottom: var(--kd-spacing-lg);
    }

    .kd-banners-grid {
        gap: 15px;
        padding: 0 15px;
    }

    .kd-banners-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .kd-banner-medium {
        margin-bottom: 15px;
    }

    .kd-banner-title {
        font-size: 26px;
    }

    .kd-banner-button {
        padding: 10px 25px;
        font-size: 13px;
    }

    .kd-banner-overlay {
        padding: 20px;
    }

    .kd-banner-content {
        max-width: 90%;
    }
}

@media (max-width: 576px) {
    .kd-banner-title {
        font-size: 22px;
    }

    .kd-banner-subtitle {
        font-size: 13px;
        margin-bottom: 8px;
    }

    .kd-banner-button {
        padding: 8px 20px;
        font-size: 12px;
    }

    .kd-banner-overlay {
        padding: 15px;
    }
}

/* ============================================
   LOADING STATE
   ============================================ */
.kd-banner-wrapper {
    position: relative;
    overflow: hidden;
}

.kd-banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--kd-transition-slow);
}

.kd-banner-wrapper:hover .kd-banner-image {
    transform: scale(1.08);
}

.kd-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 40px;
    transition: background var(--kd-transition-normal);
}

.kd-banner-wrapper:hover .kd-banner-overlay {
    background: rgba(0, 0, 0, 0.3);
}

.kd-banner-content {
    color: white;
    max-width: 80%;
}

.kd-banner-subtitle {
    font-size: 16px;
    font-weight: 600;
    color: var(--kd-primary-color);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.kd-banner-title {
    font-size: 42px;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 20px;
}

.kd-banner-button {
    display: inline-block;
    padding: 12px 30px;
    background: var(--kd-primary-color);
    color: white;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--kd-border-radius-sm);
    transition: background var(--kd-transition-normal), transform var(--kd-transition-fast);
}

.kd-banner-button:hover {
    background: var(--kd-primary-color-hover);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .kd-banner-title {
        font-size: 26px;
    }

    .kd-banner-subtitle {
        font-size: 14px;
    }

    .kd-banner-overlay {
        padding: 20px;
    }
}

/* ============================================
   LOADING STATE
   ============================================ */
.kd-products-grid.loading {
    opacity: 0.5;
    pointer-events: none;
}

.kd-products-grid.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 3px solid var(--kd-border-color);
    border-top-color: var(--kd-primary-color);
    border-radius: 50%;
    animation: kd-spin 0.8s linear infinite;
}

@keyframes kd-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.kd-section {
    padding: var(--kd-spacing-xl) 0;
}

.kd-section-light {
    background: var(--kd-background-light);
}

.kd-section-title {
    text-align: center;
    margin-bottom: var(--kd-spacing-xl);
}

.kd-section-subtitle {
    font-size: 14px;
    font-weight: 600;
    color: var(--kd-primary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.kd-section-heading {
    font-size: 32px;
    font-weight: 400;
    margin-bottom: 10px;
}

.kd-section-description {
    font-size: 16px;
    color: var(--kd-text-color-light);
}

/* ============================================
   PRODUCT TABS
   ============================================ */
.kd-product-tabs {
    max-width: var(--kd-container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.kd-tabs-nav {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--kd-border-color);
}

.kd-tabs-button {
    background: none;
    border: none;
    padding: 15px 0;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--kd-text-color);
    cursor: pointer;
    position: relative;
    transition: color var(--kd-transition-fast);
}

.kd-tabs-button:hover {
    color: var(--kd-primary-color);
}

.kd-tabs-button.active {
    color: var(--kd-primary-color);
}

.kd-tabs-button::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--kd-primary-color);
    transition: width var(--kd-transition-normal);
}

.kd-tabs-button.active::after {
    width: 100%;
}

.kd-tabs-content {
    min-height: 400px;
}

/* Product Tabs Responsive */
@media (max-width: 768px) {
    .kd-tabs-nav {
        gap: 15px;
        flex-wrap: wrap;
    }

    .kd-tabs-button {
        font-size: 14px;
        padding: 10px 0;
    }
}

@media (max-width: 576px) {
    .kd-tabs-nav {
        gap: 10px;
    }

    .kd-tabs-button {
        font-size: 13px;
        padding: 8px 0;
    }
}

/* ============================================
   SERVICE CARDS
   ============================================ */
.kd-services-section {
    margin: var(--kd-spacing-xl) 0;
}

.kd-services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: var(--kd-container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.kd-services-grid[data-columns="3"] {
    grid-template-columns: repeat(3, 1fr);
}

.kd-services-grid[data-columns="2"] {
    grid-template-columns: repeat(2, 1fr);
}

.kd-services-grid[data-columns="1"] {
    grid-template-columns: 1fr;
}

.kd-service-card {
    text-align: center;
    padding: 40px 30px;
    border: 1px solid var(--kd-border-color);
    border-radius: var(--kd-border-radius-md);
    background: white;
    transition: transform var(--kd-transition-normal), box-shadow var(--kd-transition-normal);
}

.kd-service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--kd-shadow-lg);
}

.kd-service-icon {
    margin-bottom: 15px;
    display: inline-block;
    line-height: 0;
}

.kd-service-icon svg {
    transition: transform var(--kd-transition-normal);
    display: block;
}

.kd-service-card:hover .kd-service-icon svg {
    transform: scale(1.1);
}

.kd-service-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--kd-title-color);
}

.kd-service-description {
    color: var(--kd-text-color);
    margin-bottom: 25px;
    line-height: 1.6;
}

.kd-service-button {
    display: inline-block;
    padding: 12px 30px;
    border: 2px solid var(--kd-border-color);
    color: var(--kd-title-color);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--kd-border-radius-sm);
    transition: all var(--kd-transition-normal);
}

.kd-service-button:hover {
    background: var(--kd-primary-color);
    border-color: var(--kd-primary-color);
    color: white;
}

/* Service Cards Responsive */
@media (max-width: 1024px) {
    .kd-services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .kd-services-section {
        margin: var(--kd-spacing-lg) 0;
    }

    .kd-services-grid {
        gap: 20px;
        padding: 0 15px;
    }

    .kd-service-card {
        padding: 30px 20px;
    }

    .kd-service-icon {
        margin-bottom: 20px;
    }

    .kd-service-icon svg {
        width: 50px;
        height: 50px;
    }

    .kd-service-title {
        font-size: 18px;
    }

    .kd-service-description {
        font-size: 14px;
    }

    .kd-service-button {
        padding: 10px 25px;
        font-size: 13px;
    }
}

@media (max-width: 576px) {
    .kd-services-grid {
        grid-template-columns: 1fr;
    }

    .kd-service-card {
        padding: 25px 20px;
    }

    .kd-service-icon svg {
        width: 45px;
        height: 45px;
    }

    .kd-service-title {
        font-size: 16px;
    }
}

/* ============================================
   FOOTER - WoodMart Style
   ============================================ */
.kd-site-footer {
    background: #ffffff;
    color: #242424;
    font-family: var(--kd-font-primary);
}

/* Footer Main */
.kd-footer-main {
    padding: 80px 0 60px;
}

.kd-footer-grid {
    display: grid;
    grid-template-columns: 3fr 2fr 2fr 2fr;
    gap: 30px;
    max-width: var(--kd-container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.kd-footer-column {
    padding: 0;
}

/* Footer Logo */
.kd-footer-logo {
    margin-bottom: 20px;
}

.kd-footer-logo a {
    display: inline-block;
}

.kd-footer-logo img {
    height: 60px !important;
    width: auto !important;
    max-width: 220px;
}

.kd-footer-description {
    color: rgba(36, 36, 36, 0.6);
    line-height: 1.6;
    margin-bottom: 25px;
    font-size: 14px;
}

/* Contact List */
.kd-contact-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.kd-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    color: rgba(36, 36, 36, 0.6);
    font-size: 14px;
}

.kd-contact-item svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: rgba(36, 36, 36, 0.6);
}

.kd-contact-item a {
    color: rgba(36, 36, 36, 0.6);
    text-decoration: none;
    transition: color var(--kd-transition-fast);
}

.kd-contact-item a:hover {
    color: #242424;
}

.kd-contact-item span {
    line-height: 1.5;
}

/* Footer Menu */
.kd-footer-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #242424;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.kd-footer-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.kd-footer-menu li {
    margin: 0;
    padding: 0;
    margin-bottom: 10px;
}

.kd-footer-menu a {
    color: rgba(36, 36, 36, 0.6);
    text-decoration: none;
    font-size: 14px;
    transition: color var(--kd-transition-fast);
    line-height: 1.5;
}

.kd-footer-menu a:hover {
    color: #242424;
}

/* Footer Social */
.kd-footer-social {
    display: flex;
    gap: 10px;
    margin-top: 25px;
}

.kd-footer-social .kd-social-link {
    color: rgba(36, 36, 36, 0.6);
    transition: color var(--kd-transition-fast);
}

.kd-footer-social .kd-social-link:hover {
    color: #242424;
}

/* Footer Form */
.kd-footer-text {
    color: rgba(36, 36, 36, 0.6);
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 14px;
}

.kd-footer-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.kd-footer-form input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(36, 36, 36, 0.2);
    background: rgba(36, 36, 36, 0.05);
    color: #242424;
    font-size: 14px;
    border-radius: 0;
    transition: border-color var(--kd-transition-fast);
}

.kd-footer-form input::placeholder {
    color: rgba(36, 36, 36, 0.5);
}

.kd-footer-form input:focus {
    outline: none;
    border-color: var(--kd-primary-color);
    background: rgba(36, 36, 36, 0.08);
}

.kd-footer-form button {
    width: 100%;
    padding: 12px 25px;
    background: var(--kd-primary-color);
    color: white;
    border: none;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    border-radius: 0;
    transition: background var(--kd-transition-normal);
}

.kd-footer-form button:hover {
    background: var(--kd-primary-color-hover);
}

/* Footer Bottom */
.kd-footer-bottom {
    background: #f9f9f9;
    padding: 25px 0;
    border-top: 1px solid rgba(36, 36, 36, 0.1);
}

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

.kd-copyright {
    color: rgba(36, 36, 36, 0.5);
    font-size: 13px;
    margin: 0;
    line-height: 1.5;
}

.kd-copyright a {
    color: #242424;
    text-decoration: none;
    font-weight: 600;
}

.kd-footer-payments {
    display: flex;
    align-items: center;
}

.kd-footer-payments img {
    height: auto;
    width: 200px;
    max-width: 300px;
    opacity: 0.6;
    transition: opacity var(--kd-transition-fast);
}

.kd-footer-payments img:hover {
    opacity: 1;
}

/* Footer Responsive */
@media (max-width: 1024px) {
    .kd-footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    .kd-footer-main {
        padding: 60px 0 50px;
    }
}

@media (max-width: 768px) {
    .kd-footer-main {
        padding: 50px 0 40px;
    }

    .kd-footer-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .kd-footer-bottom-inner {
        flex-direction: column;
        gap: 20px;
    }
}

/* ============================================
   HEADER BOTTOM NAVIGATION CENTERING
   ============================================ */

.kd-header-bottom-inner {
    display: flex;
    justify-content: center;
    align-items: center;
}

.kd-main-nav {
    width: 100%;
    display: flex;
    justify-content: center;
}

.kd-nav-menu.kd-nav-main {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
}
        text-align: center;
    }

    .kd-copyright {
        font-size: 12px;
    }

    .kd-footer-payments img {
        width: 180px;
    }
}

@media (max-width: 576px) {
    .kd-footer-main {
        padding: 40px 0 30px;
    }

    .kd-footer-grid {
        gap: 30px;
    }

    .kd-footer-logo img {
        height: 35px;
    }

    .kd-footer-description {
        font-size: 13px;
    }

    .kd-footer-form input,
    .kd-footer-form button {
        padding: 10px 15px;
    }

    .kd-footer-payments img {
        width: 150px;
    }
}

/* ============================================
   NEWSLETTER SECTION
   ============================================ */
.kd-newsletter-section {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), 
                url('../images/finaly-banner-handmade-11-opt.png') center center / cover no-repeat;
    padding: 120px 0;
    text-align: center;
    position: relative;
}

.kd-newsletter-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.kd-newsletter-subtitle {
    font-size: 16px;
    color: #79b38a;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.kd-newsletter-title {
    font-size: 42px;
    color: white;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 30px;
    font-family: var(--kd-font-primary);
}

.kd-newsletter-form {
    max-width: 600px;
    margin: 0 auto 20px;
}

.kd-newsletter-form-inner {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.kd-newsletter-form input[type="email"] {
    flex: 1;
    min-width: 250px;
    padding: 15px 20px;
    border: 2px solid white;
    background: rgba(255, 255, 255, 0.95);
    color: #242424;
    font-size: 16px;
    border-radius: 0;
    transition: all var(--kd-transition-fast);
}

.kd-newsletter-form input[type="email"]::placeholder {
    color: rgba(36, 36, 36, 0.5);
}

.kd-newsletter-form input[type="email"]:focus {
    outline: none;
    border-color: #79b38a;
    background: white;
}

.kd-newsletter-form button {
    padding: 15px 40px;
    background: #79b38a;
    color: white;
    border: 2px solid #79b38a;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border-radius: 0;
    transition: all var(--kd-transition-normal);
}

.kd-newsletter-form button:hover {
    background: white;
    color: #79b38a;
    border-color: white;
}

.kd-newsletter-privacy {
    color: white;
    font-size: 14px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.kd-newsletter-privacy a {
    color: white;
    text-decoration: none;
    font-weight: 600;
}

.kd-newsletter-privacy a:hover {
    text-decoration: underline;
}

.kd-newsletter-social {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.kd-newsletter-social .kd-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 2px solid white;
    border-radius: 50%;
    color: white;
    transition: all var(--kd-transition-fast);
}

.kd-newsletter-social .kd-social-icon:hover {
    background: white;
    color: #79b38a;
}

/* Newsletter Responsive */
@media (max-width: 768px) {
    .kd-newsletter-section {
        padding: 80px 0;
    }

    .kd-newsletter-title {
        font-size: 32px;
    }

    .kd-newsletter-form-inner {
        flex-direction: column;
    }

    .kd-newsletter-form input[type="email"] {
        width: 100%;
    }

    .kd-newsletter-form button {
        width: 100%;
    }

    /* 非首页紧凑布局响应式 */
    body:not(.homepage) .kd-newsletter-section {
        padding: 30px 0;
    }

    body:not(.homepage) .kd-newsletter-wrapper {
        flex-direction: column;
        gap: 15px;
    }

    body:not(.homepage) .kd-newsletter-text {
        text-align: center;
    }

    body:not(.homepage) .kd-newsletter-title {
        font-size: 20px;
    }

    body:not(.homepage) .kd-newsletter-form {
        width: 100%;
        max-width: 100%;
    }

    body:not(.homepage) .kd-newsletter-form-inner {
        flex-direction: column;
        width: 100%;
    }
}

@media (max-width: 576px) {
    .kd-newsletter-section {
        padding: 60px 0;
    }

    .kd-newsletter-title {
        font-size: 26px;
    }

    .kd-newsletter-subtitle {
        font-size: 14px;
    }

    .kd-newsletter-form input[type="email"],
    .kd-newsletter-form button {
        padding: 12px 20px;
        font-size: 14px;
    }

    .kd-newsletter-social .kd-social-icon {
        width: 35px;
        height: 35px;
    }

    /* 非首页紧凑布局 */
    body:not(.homepage) .kd-newsletter-section {
        padding: 25px 0;
    }

    body:not(.homepage) .kd-newsletter-title {
        font-size: 18px;
    }

    body:not(.homepage) .kd-newsletter-subtitle {
        font-size: 11px;
    }
}

/* Footer Opening Hours */
.kd-footer-opening-hours {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(36, 36, 36, 0.1);
}

/* ============================================
   FAQ PAGE STYLES
   ============================================ */

/* FAQ Hero */
.kd-faq-hero {
    text-align: center;
}

.kd-faq-title {
    font-family: var(--kd-font-title, 'Lora', Arial, Helvetica, sans-serif);
    font-size: 48px;
    font-weight: 400;
    color: #242424;
    margin-bottom: 20px;
    line-height: 1.2;
}

.kd-faq-description {
    font-size: 18px;
    color: #777777;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* FAQ Section Title */
.kd-faq-section-title {
    font-family: var(--kd-font-title, 'Lora', Arial, Helvetica, sans-serif);
    font-size: 32px;
    font-weight: 600;
    color: #242424;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e8e8e8;
}

/* FAQ Contact Description */
.kd-faq-contact-description {
    font-size: 16px;
    color: #777777;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* Accordion Styles */
.kt-accordion-wrap {
    margin-top: 20px;
}

.kt-blocks-accordion-title {
    font-family: var(--kd-font-title, 'Lora', Arial, Helvetica, sans-serif);
    font-size: 18px;
    font-weight: 600;
    color: #242424;
}

.kt-blocks-accordion-header {
    padding: 20px !important;
    background: white !important;
    border-bottom: 1px solid #e8e8e8 !important;
    transition: all 0.3s ease;
}

.kt-blocks-accordion-header:hover {
    background: #f9f9f9 !important;
}

.kt-accordion-panel-inner {
    padding: 25px !important;
    background: #f9f9f9 !important;
}

.kt-accordion-panel-inner p {
    font-size: 15px;
    line-height: 1.8;
    color: #555555;
    margin: 0;
}

/* FAQ Buttons */
.kd-faq-hero .wp-block-button__link {
    background: #79b38a;
    color: white;
    padding: 15px 40px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.kd-faq-hero .wp-block-button__link:hover {
    background: #669b6b;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(121, 179, 138, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .kd-faq-title {
        font-size: 36px;
    }

    .kd-faq-description {
        font-size: 16px;
    }

    .kd-faq-section-title {
        font-size: 26px;
    }

    .kt-blocks-accordion-title {
        font-size: 16px;
    }

    .kt-accordion-panel-inner {
        padding: 20px !important;
    }

    .kt-accordion-panel-inner p {
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .kd-faq-hero {
        padding-top: 60px !important;
        padding-bottom: 60px !important;
    }

    .kd-faq-title {
        font-size: 30px;
    }

    .kd-faq-description {
        font-size: 15px;
    }

    .kd-faq-section-title {
        font-size: 24px;
    }
}

.kd-footer-subtitle {
    font-size: 14px;
    font-weight: 600;
    color: #242424;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.kd-footer-hours {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 13px;
    color: rgba(36, 36, 36, 0.6);
}

.kd-footer-hours span:first-child {
    font-weight: 500;
    color: rgba(36, 36, 36, 0.8);
}

/* ============================================
   MOBILE TOOLBAR
   ============================================ */
.kd-mobile-toolbar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    padding: 8px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.kd-toolbar-inner {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 100%;
    padding: 0 10px;
}

.kd-toolbar-item {
    flex: 1;
    text-align: center;
}

.kd-toolbar-item a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 5px;
    text-decoration: none;
    color: #242424;
    transition: all var(--kd-transition-fast);
}

.kd-toolbar-item a:hover,
.kd-toolbar-item a:active {
    color: var(--kd-primary-color);
}

.kd-toolbar-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin-bottom: 4px;
}

.kd-toolbar-icon svg {
    width: 20px;
    height: 20px;
}

.kd-toolbar-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--kd-primary-color);
    color: white;
    font-size: 10px;
    font-weight: 600;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

.kd-toolbar-label {
    font-size: 11px;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
}

/* Show on mobile only */
@media (max-width: 768px) {
    .kd-mobile-toolbar {
        display: block;
    }

    /* Add padding to body to prevent content from being hidden */
    body {
        padding-bottom: 70px;
    }

    /* Adjust footer position */
    .kd-site-footer {
        margin-bottom: 0;
    }
}

@media (max-width: 576px) {
    .kd-toolbar-item a {
        padding: 6px 3px;
    }

    .kd-toolbar-icon {
        width: 22px;
        height: 22px;
    }

    .kd-toolbar-icon svg {
        width: 18px;
        height: 18px;
    }

    .kd-toolbar-label {
        font-size: 10px;
    }

    .kd-toolbar-count {
        min-width: 16px;
        height: 16px;
        font-size: 9px;
        top: -7px;
        right: -7px;
    }

    body {
        padding-bottom: 65px;
    }
}

/* ============================================
   HOME PAGE STYLES
   ============================================ */

/* Hero Section */
.kd-hero-section {
    padding: 0;
}

.kd-hero-section .wp-block-group {
    max-width: 1220px;
    margin: 0 auto;
    padding: 0 20px;
}

.kd-hero-banner {
    position: relative;
    overflow: hidden;
    border-radius: 0;
}

.kd-hero-banner--large {
    min-height: 800px;
}

.kd-hero-banner--medium {
    min-height: 480px;
    margin-bottom: 20px;
    width: 100%;
}

.kd-hero-banner--small {
    min-height: 280px;
    flex: 1;
}

.kd-hero-banner--small-grid {
    display: flex;
    flex-direction: row;
    gap: 20px;
    width: 100%;
}

.kd-hero-banner--image-only .wp-block-cover__background {
    opacity: 0;
}

.kd-banner-cover {
    height: 100%;
    min-height: inherit;
}

.kd-banner-cover .wp-block-cover__inner-container {
    width: 100%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
}

.kd-hero-subtitle {
    color: var(--kd-primary-color);
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.kd-hero-title {
    color: var(--kd-title-color);
    font-family: var(--kd-font-title);
    line-height: 1.2;
    margin-bottom: 20px;
}

.kd-hero-title-sm {
    color: var(--kd-title-color);
    font-family: var(--kd-font-title);
    line-height: 1.3;
    margin-bottom: 15px;
}

/* Section Styles */
.kd-featured-products-section,
.kd-categories-section,
.kd-services-section,
.kd-testimonials-section {
    padding: 96px 0;
}

.kd-section-header {
    text-align: center;
    margin-bottom: 50px;
}

.kd-section-subtitle {
    color: var(--kd-primary-color);
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 14px;
    margin-bottom: 10px;
}

.kd-section-title {
    color: var(--kd-title-color);
    font-family: var(--kd-font-title);
    font-size: 36px;
    margin-bottom: 15px;
}

.kd-section-description {
    color: var(--kd-text-color);
    font-size: 16px;
    line-height: 1.6;
}

/* Factory Gallery Images - About Page */
.kd-factory-gallery .wp-block-image {
    width: 100%;
    overflow: hidden;
    margin: 0;
}

.kd-factory-gallery .wp-block-image img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
    margin: 0;
}

@media (max-width: 768px) {
    .kd-factory-gallery .wp-block-image img {
        height: 240px;
    }
}

/* Services Section */
.kd-services-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
}

.kd-services-image-wrapper {
    width: 50%;
}

.kd-services-image {
    margin-right: -100px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.kd-services-image img {
    border-radius: 0;
}

.kd-services-content {
    width: 50%;
}

.kd-services-title {
    color: var(--kd-title-color);
    font-family: var(--kd-font-title);
    font-size: 90px;
    line-height: 1em;
    font-weight: 400;
    margin-bottom: 20px;
}

.kd-services-description {
    color: var(--kd-text-color);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* Testimonials Section */
.kd-testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.kd-testimonial-card {
    background: var(--kd-background-light);
    padding: 30px;
    text-align: center;
    border: 1px solid var(--kd-border-color);
}

.kd-testimonial-avatar {
    margin-bottom: 20px;
}

.kd-testimonial-avatar img {
    border-radius: 50%;
    width: 80px;
    height: 80px;
    object-fit: cover;
}

.kd-testimonial-rating {
    margin-bottom: 15px;
}

.kd-stars {
    color: var(--kd-secondary-color);
    font-size: 16px;
    letter-spacing: 2px;
}

.kd-testimonial-text {
    color: var(--kd-text-color);
    font-size: 16px;
    line-height: 1.6;
    font-style: italic;
    margin-bottom: 15px;
}

.kd-testimonial-author {
    color: var(--kd-title-color);
    font-weight: 600;
    margin-bottom: 5px;
}

.kd-testimonial-role {
    color: var(--kd-text-color-light);
    font-size: 14px;
}

/* Newsletter Section */
.kd-newsletter-section {
    background-color: var(--kd-primary-color) !important;
    padding: 120px 0;
    text-align: center;
}

/* 非首页：紧凑布局 */
body:not(.homepage) .kd-newsletter-section {
    padding: 40px 0;
}

body:not(.homepage) .kd-newsletter-subtitle {
    font-size: 12px;
    margin-bottom: 8px;
}

body:not(.homepage) .kd-newsletter-title {
    font-size: 22px;
    line-height: 1.3;
    margin-bottom: 0;
}

body:not(.homepage) .kd-newsletter-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

body:not(.homepage) .kd-newsletter-text {
    flex: 0 0 auto;
}

body:not(.homepage) .kd-newsletter-form {
    flex: 0 0 auto;
    max-width: 400px;
}

body:not(.homepage) .kd-newsletter-form-inner {
    display: flex;
    gap: 10px;
}

body:not(.homepage) .kd-newsletter-input,
body:not(.homepage) .kd-newsletter-submit {
    padding: 10px 20px;
    font-size: 14px;
}

body:not(.homepage) .kd-newsletter-privacy {
    font-size: 12px;
    margin-top: 12px;
}

/* 首页样式保持不变 */
.kd-newsletter-subtitle {
    color: white;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 16px;
    margin-bottom: 15px;
}

.kd-newsletter-title {
    color: white;
    font-family: var(--kd-font-title);
    font-size: 36px;
    line-height: 1.3;
    margin-bottom: 0;
}

.kd-newsletter-form-wrapper {
    margin-top: 40px;
    margin-bottom: 20px;
}

.kd-newsletter-form {
    display: flex;
    gap: 10px;
    max-width: 500px;
    margin: 0 auto;
}

.kd-newsletter-input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 0;
    font-size: 16px;
    background: white;
}

.kd-newsletter-input:focus {
    outline: none;
    border-color: white;
}

.kd-newsletter-submit {
    padding: 15px 30px;
    background: white;
    color: var(--kd-primary-color);
    border: none;
    border-radius: 0;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all var(--kd-transition-fast);
}

.kd-newsletter-submit:hover {
    background: var(--kd-secondary-color);
    color: white;
}

.kd-newsletter-privacy {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    margin-top: 20px;
}

.kd-newsletter-privacy a {
    color: white;
    font-weight: 600;
    text-decoration: underline;
}

.kd-social-links {
    margin-top: 30px;
}

.kd-social-links .wp-block-social-link {
    background: white;
    color: var(--kd-primary-color);
}

.kd-social-links .wp-block-social-link:hover {
    background: var(--kd-secondary-color);
    color: white;
}

/* Buttons */
.kd-btn {
    display: inline-block;
    padding: 12px 24px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    transition: all var(--kd-transition-fast);
    border: none;
    cursor: pointer;
}

.kd-btn-primary {
    background: var(--kd-primary-color);
    color: white;
}

.kd-btn-primary:hover {
    background: var(--kd-primary-color-hover);
}

.kd-btn-light {
    background: white;
    color: var(--kd-primary-color);
}

.kd-btn-light:hover {
    background: var(--kd-secondary-color);
    color: white;
}

.kd-btn-link {
    background: transparent;
    color: var(--kd-primary-color);
    border: 1px solid var(--kd-primary-color);
}

.kd-btn-link:hover {
    background: var(--kd-primary-color);
    color: white;
}

.kd-btn-large {
    padding: 15px 35px;
    font-size: 16px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .kd-hero-banner--large {
        min-height: 600px;
    }

    .kd-hero-banner--small-grid {
        flex-direction: column;
    }

    .kd-hero-banner--small {
        width: 100%;
    }

    .kd-services-grid {
        flex-direction: column;
    }

    .kd-services-image-wrapper,
    .kd-services-content {
        width: 100%;
    }

    .kd-services-image {
        margin-right: 0;
    }

    .kd-services-title {
        font-size: 60px;
    }

    .kd-testimonials-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .kd-hero-section {
        padding: 20px 0;
    }

    .kd-hero-banner--large {
        min-height: 400px;
    }

    .kd-hero-banner--medium {
        min-height: 300px;
    }

    .kd-hero-banner--small {
        min-height: 200px;
    }

    .kd-banner-cover .wp-block-cover__inner-container {
        padding: 20px;
    }

    .kd-hero-title {
        font-size: 28px;
    }

    .kd-hero-title-sm {
        font-size: 20px;
    }

    .kd-section-title {
        font-size: 28px;
    }

    .kd-services-title {
        font-size: 40px;
    }

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

    .kd-newsletter-title {
        font-size: 24px;
    }
}

/* ============================================
   SHOP PAGE STYLES
   ============================================ */

.kd-filter-count {
    font-size: 12px;
    opacity: 0.7;
}

/* Product Sort */
.kd-product-sort {
    display: flex;
    align-items: center;
    gap: 10px;
}

.kd-product-sort label {
    font-size: 14px;
    color: var(--kd-text-color);
    margin-bottom: 0;
}

.kd-orderby {
    padding: 8px 15px;
    border: 1px solid var(--kd-border-color);
    border-radius: 0;
    font-size: 14px;
    color: var(--kd-text-color);
    background: white;
    cursor: pointer;
    min-width: 180px;
}

.kd-orderby:focus {
    outline: none;
    border-color: var(--kd-primary-color);
}

/* Products Count */
.kd-products-count {
    font-size: 14px;
    color: var(--kd-text-color);
    margin-bottom: 0;
}

/* Shop Tools */
.kd-shop-tools {
    padding-bottom: 20px;
    border-bottom: 1px solid var(--kd-border-color);
    margin-bottom: 30px;
}

/* Products Grid */
.kd-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.kd-products-grid[data-columns="2"] {
    grid-template-columns: repeat(2, 1fr);
}

.kd-products-grid[data-columns="3"] {
    grid-template-columns: repeat(3, 1fr);
}

.kd-products-grid[data-columns="4"] {
    grid-template-columns: repeat(4, 1fr);
}

/* No Products Message */
.kd-no-products {
    text-align: center;
    padding: 60px 20px;
    color: var(--kd-text-color);
    font-size: 16px;
}

/* Loading State */
.kd-products-loading {
    position: relative;
    min-height: 400px;
}

.kd-products-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 3px solid var(--kd-border-color);
    border-top-color: var(--kd-primary-color);
    border-radius: 50%;
    animation: kd-spin 1s linear infinite;
}

@keyframes kd-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .kd-shop-content {
        flex-direction: column;
        gap: 30px;
    }

    .kd-shop-sidebar {
        width: 100%;
        flex: none;
    }

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

@media (max-width: 768px) {
    .kd-shop-title {
        font-size: 32px;
    }

    .kd-products-grid {
        grid-template-columns: 1fr;
    }

    .kd-shop-tools {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .kd-product-sort {
        width: 100%;
    }

    .kd-orderby {
        flex: 1;
    }
}

@media (max-width: 576px) {
    .kd-shop-page {
        padding-top: 40px !important;
        padding-bottom: 40px !important;
    }

    .kd-filter-title {
        font-size: 14px;
    }

    .kd-filter-link {
        font-size: 13px;
        padding: 6px 10px;
    }
}

/* ============================================
   ABOUT PAGE STYLES
   ============================================ */

/* About Hero */
.kd-about-hero {
    background-color: var(--kd-background-light);
}

.kd-about-subtitle {
    color: var(--kd-primary-color);
    margin-bottom: 10px;
}

.kd-about-title {
    font-family: var(--kd-font-title);
    color: var(--kd-title-color);
    margin-bottom: 20px;
}

.kd-about-description {
    color: var(--kd-text-color);
    max-width: 600px;
}

/* About Content */
.kd-about-content {
    background: var(--kd-background-color);
}

.kd-about-grid {
    align-items: flex-start;
    gap: 60px;
}

.kd-about-image {
    flex: 1;
}

.kd-about-image img {
    box-shadow: var(--kd-shadow-lg);
    width: 100%;
    height: auto;
    display: block;
}

.kd-about-text {
    flex: 1;
}

.kd-about-text-subtitle {
    color: var(--kd-primary-color);
    margin-bottom: 10px;
}

.kd-about-text-title {
    font-family: var(--kd-font-title);
    color: var(--kd-title-color);
    line-height: 1.3;
}

.kd-about-features {
    margin-top: 15px;
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.kd-about-feature {
    padding: 4px 0;
    margin-bottom: 0;
    line-height: 1.4;
}

.kd-about-feature > * {
    margin: 0;
}

.kd-about-feature h3 {
    font-family: var(--kd-font-title);
    color: var(--kd-title-color);
    margin-bottom: 0;
    font-size: 14px;
    font-weight: 500;
}

.kd-about-feature h3 span.kd-feature-num {
    color: #79b38a;
    margin-right: 8px;
}

/* Features Section */
.kd-about-features-section {
    background-color: var(--kd-background-light);
}

.kd-features-grid {
    grid-template-columns: repeat(3, 1fr);
}

.kd-feature-card {
    background: white;
    border: 1px solid var(--kd-border-color);
    transition: all var(--kd-transition-normal);
    display: flex;
    flex-direction: column;
    height: 260px;
    overflow: hidden;
}

.kd-feature-card:hover {
    box-shadow: var(--kd-shadow-lg);
    transform: translateY(-5px);
}

.kd-feature-icon {
    text-align: center;
    padding-top: 10px;
}

.kd-feature-icon .wp-block-heading {
    margin-bottom: 0;
}

.kd-feature-title {
    font-family: var(--kd-font-title);
    color: var(--kd-title-color);
    text-align: center;
    margin-bottom: 10px;
}

.kd-feature-description {
    color: var(--kd-text-color);
    text-align: center;
    flex-grow: 1;
    margin-bottom: 0;
}

/* Testimonials */
.kd-about-testimonials {
    background: var(--kd-background-color);
}

.kd-section-header {
    text-align: center;
}

.kd-section-title {
    font-family: var(--kd-font-title);
    color: var(--kd-title-color);
}

.kd-testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
}

.kd-testimonial-card {
    background: white;
    border: 1px solid var(--kd-border-color);
}

.kd-testimonial-text {
    color: var(--kd-text-color);
    font-style: italic;
}

.kd-testimonial-author {
    gap: 15px;
}

.kd-author-avatar {
    width: 50px;
    height: 50px;
    min-width: 50px;
    border-radius: 50% !important;
    overflow: hidden;
}

.kd-author-avatar img {
    width: 50px !important;
    height: 50px !important;
    border-radius: 50% !important;
    object-fit: cover;
    margin: 0;
    display: block;
}

.kd-author-name {
    color: var(--kd-title-color);
    margin-bottom: 0;
}

.kd-author-role {
    font-size: 13px;
    color: var(--kd-text-color-light);
    margin-bottom: 0;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .kd-about-grid {
        flex-direction: column;
    }

    .kd-about-image,
    .kd-about-text {
        width: 100%;
    }

    .kd-features-grid,
    .kd-testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .kd-about-hero {
        padding-top: 60px !important;
        padding-bottom: 60px !important;
    }

    .kd-about-title {
        font-size: 36px;
    }

    .kd-about-text-title {
        font-size: 28px;
    }

    .kd-features-grid,
    .kd-testimonials-grid {
        grid-template-columns: 1fr;
    }

    .kd-about-content,
    .kd-about-features-section,
    .kd-about-testimonials {
        padding-top: 60px !important;
        padding-bottom: 60px !important;
    }
}

@media (max-width: 576px) {
    .kd-about-hero {
        padding-top: 40px !important;
        padding-bottom: 40px !important;
    }

    .kd-about-title {
        font-size: 28px;
    }

    .kd-about-text-title {
        font-size: 24px;
    }

    .kd-about-feature h3 {
        font-size: 16px;
    }
}

/* ============================================
   CONTACT PAGE STYLES
   ============================================ */

/* Contact Hero */
.kd-contact-hero {
    background-color: var(--kd-background-light);
}

.kd-contact-subtitle {
    color: var(--kd-primary-color);
    margin-bottom: 10px;
}

.kd-contact-title {
    font-family: var(--kd-font-title);
    color: var(--kd-title-color);
    margin-bottom: 20px;
}

.kd-contact-description {
    color: var(--kd-text-color);
    max-width: 600px;
}

/* Contact Info Cards */
.kd-contact-info {
    background: transparent;
}

.kd-contact-cards-grid {
    grid-template-columns: repeat(3, 1fr);
}

.kd-contact-card {
    background: white;
    transition: all var(--kd-transition-normal);
}

.kd-contact-card:hover {
    box-shadow: var(--kd-shadow-lg);
    transform: translateY(-5px);
}

.kd-contact-icon {
    text-align: center;
}

.kd-contact-card-title {
    font-family: var(--kd-font-title);
    color: var(--kd-title-color);
}

.kd-contact-card-text {
    color: var(--kd-text-color);
}

/* Contact Form Section */
.kd-contact-form-section {
    background: var(--kd-background-color);
}

.kd-contact-form-header {
    text-align: center;
}

.kd-contact-form-title {
    font-family: var(--kd-font-title);
    color: var(--kd-title-color);
}

.kd-contact-form-description {
    color: var(--kd-text-color);
}

.kd-contact-form-wrapper {
    background: var(--kd-primary-color);
    box-shadow: var(--kd-shadow-xl);
}

/* Contact Form */
.kd-contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.kd-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.kd-form-group label {
    font-weight: 600;
    color: white;
    font-size: 14px;
}

.kd-form-group .required {
    color: var(--kd-secondary-color);
}

.kd-form-group input,
.kd-form-group textarea {
    padding: 12px 15px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 0;
    font-size: 15px;
    background: white;
    transition: all var(--kd-transition-fast);
}

.kd-form-group input:focus,
.kd-form-group textarea:focus {
    outline: none;
    border-color: white;
    background: white;
}

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

.kd-form-submit {
    margin-top: 10px;
}

.kd-form-submit .kd-btn {
    width: 100%;
    padding: 15px 30px;
    font-size: 16px;
    cursor: pointer;
}

/* Contact Map */
.kd-contact-map {
    background: var(--kd-background-color);
}

.kd-map-embed {
    width: 100%;
    margin: 0;
}

.kd-map-embed iframe {
    width: 100%;
    height: 450px;
    border: 0;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .kd-contact-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .kd-contact-card-email {
        border-radius: 10px 10px 0 0 !important;
    }

    .kd-contact-card-phone {
        border-radius: 0 0 10px 10px !important;
    }
}

@media (max-width: 768px) {
    .kd-contact-hero {
        padding-top: 60px !important;
        padding-bottom: 60px !important;
    }

    .kd-contact-title {
        font-size: 36px;
    }

    .kd-contact-cards-grid {
        grid-template-columns: 1fr;
    }

    .kd-contact-card {
        border-radius: 10px !important;
    }

    .kd-contact-form-section {
        padding-top: 60px !important;
        padding-bottom: 60px !important;
    }

    .kd-contact-form-title {
        font-size: 28px;
    }

    .kd-contact-form-wrapper {
        margin-top: -50px !important;
        padding: 30px 20px !important;
    }
}

@media (max-width: 576px) {
    .kd-contact-hero {
        padding-top: 40px !important;
        padding-bottom: 40px !important;
    }

    .kd-contact-title {
        font-size: 28px;
    }

    .kd-contact-info {
        margin-top: -50px !important;
    }

    .kd-contact-form-section {
        padding-top: 40px !important;
        padding-bottom: 40px !important;
    }
}

/* ============================================
   SHOP PAGE - PRODUCT GRID 4 COLUMNS
   Force product grid to display 4 columns
   ============================================ */

/* Grid View (default) - Kadence uses products-grid-view class */
.shop ul.products.products-grid-view,
.shop ul.products:not(.products-list-view),
.tax-product_cat ul.products.products-grid-view,
.tax-product_cat ul.products:not(.products-list-view),
.woocommerce-page ul.products.products-grid-view,
.woocommerce-page ul.products:not(.products-list-view) {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 30px !important;
}

.shop ul.products.products-grid-view li.product,
.shop ul.products:not(.products-list-view) li.product,
.tax-product_cat ul.products.products-grid-view li.product,
.tax-product_cat ul.products:not(.products-list-view) li.product,
.woocommerce-page ul.products.products-grid-view li.product,
.woocommerce-page ul.products:not(.products-list-view) li.product {
    width: 100% !important;
    float: none !important;
    clear: none !important;
    margin: 0 !important;
}

/* List View - Kadence uses products-list-view class */
.shop ul.products.products-list-view,
.tax-product_cat ul.products.products-list-view,
.woocommerce-page ul.products.products-list-view {
    display: flex !important;
    flex-direction: column !important;
    gap: 30px !important;
}

.shop ul.products.products-list-view li.product,
.tax-product_cat ul.products.products-list-view li.product,
.woocommerce-page ul.products.products-list-view li.product {
    display: flex !important;
    flex-direction: row !important;
    gap: 30px !important;
    width: 100% !important;
    float: none !important;
    clear: none !important;
    margin: 0 !important;
}

.shop ul.products.products-list-view li.product .woocommerce-loop-product__link,
.shop ul.products.products-list-view li.product > a:first-child,
.tax-product_cat ul.products.products-list-view li.product .woocommerce-loop-product__link,
.tax-product_cat ul.products.products-list-view li.product > a:first-child,
.woocommerce-page ul.products.products-list-view li.product .woocommerce-loop-product__link,
.woocommerce-page ul.products.products-list-view li.product > a:first-child {
    flex: 0 0 300px !important;
    width: 300px !important;
    min-width: 300px !important;
}

.shop ul.products.products-list-view li.product img,
.tax-product_cat ul.products.products-list-view li.product img,
.woocommerce-page ul.products.products-list-view li.product img {
    width: 300px !important;
    height: 300px !important;
    object-fit: cover !important;
}

/* Responsive - 3 columns */
@media (max-width: 1200px) {
    .shop ul.products.products-grid-view,
    .shop ul.products:not(.products-list-view),
    .tax-product_cat ul.products.products-grid-view,
    .tax-product_cat ul.products:not(.products-list-view),
    .woocommerce-page ul.products.products-grid-view,
    .woocommerce-page ul.products:not(.products-list-view) {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

/* Responsive - 2 columns */
@media (max-width: 992px) {
    .shop ul.products.products-grid-view,
    .shop ul.products:not(.products-list-view),
    .tax-product_cat ul.products.products-grid-view,
    .tax-product_cat ul.products:not(.products-list-view),
    .woocommerce-page ul.products.products-grid-view,
    .woocommerce-page ul.products:not(.products-list-view) {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    /* List view - stack vertically on tablet */
    .shop ul.products.products-list-view li.product,
    .tax-product_cat ul.products.products-list-view li.product,
    .woocommerce-page ul.products.products-list-view li.product {
        flex-direction: column !important;
    }
    
    .shop ul.products.products-list-view li.product .woocommerce-loop-product__link,
    .shop ul.products.products-list-view li.product > a:first-child,
    .tax-product_cat ul.products.products-list-view li.product .woocommerce-loop-product__link,
    .tax-product_cat ul.products.products-list-view li.product > a:first-child,
    .woocommerce-page ul.products.products-list-view li.product .woocommerce-loop-product__link,
    .woocommerce-page ul.products.products-list-view li.product > a:first-child {
        flex: 0 0 100% !important;
        width: 100% !important;
        min-width: 100% !important;
    }
    
    .shop ul.products.products-list-view li.product img,
    .tax-product_cat ul.products.products-list-view li.product img,
    .woocommerce-page ul.products.products-list-view li.product img {
        width: 100% !important;
        height: auto !important;
    }
}

/* Responsive - 1 column */
@media (max-width: 576px) {
    .shop ul.products.products-grid-view,
    .shop ul.products:not(.products-list-view),
    .tax-product_cat ul.products.products-grid-view,
    .tax-product_cat ul.products:not(.products-list-view),
    .woocommerce-page ul.products.products-grid-view,
    .woocommerce-page ul.products:not(.products-list-view) {
        grid-template-columns: 1fr !important;
    }
}

/* ============================================
   SHOP PAGE - WOOCOMMERCE DEFAULT STYLES
   ============================================ */

/* Ensure WooCommerce elements show */
.woocommerce-result-count,
.woocommerce-ordering,
.woocommerce-pagination {
    display: block !important;
}

/* Product grid - 4 columns for desktop */
.woocommerce ul.products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.woocommerce ul.products li.product {
    width: 100%;
    float: none;
    clear: none;
    margin: 0;
}

/* Responsive */
@media (max-width: 1200px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .woocommerce ul.products {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   ABOUT FACTORY PAGE - HIGH FIDELITY
   ============================================ */

/* Section Title */
.kd-section-title {
    font-size: 32px;
    font-weight: 400;
    line-height: 1.3;
    color: #242424;
    margin-bottom: 0;
}

/* Feature Cards */
.kd-feature-title {
    font-size: 32px;
    font-weight: 400;
    color: #242424;
    margin-bottom: 0;
}

.kd-feature-card {
    background: white;
    padding: 30px;
    transition: all 0.3s ease;
}

.kd-feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.kd-feature-icon {
    margin-bottom: 20px;
}

.kd-feature-card-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #242424;
}

.kd-feature-card-title + p {
    font-size: 14px;
    line-height: 1.6;
    color: #777777;
}

/* Testimonials */
.kd-testimonial-card {
    background: white;
    padding: 30px;
    border-top: 1px solid #eeeeee;
}

.kd-testimonial-text {
    font-size: 15px;
    line-height: 1.6;
    font-style: italic;
    color: #777777;
    margin-bottom: 20px;
}

.kd-testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.kd-author-avatar {
    width: 50px;
    height: 50px;
    min-width: 50px;
    border-radius: 50%;
    overflow: hidden;
}

.kd-author-avatar img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin: 0;
}

.kd-author-name {
    font-weight: 600;
    color: #242424;
    margin-bottom: 0;
}

.kd-author-role {
    font-size: 13px;
    color: #999999;
    margin-bottom: 0;
}

/* Gallery */
.kd-factory-gallery img {
    border-radius: 0;
    transition: transform 0.3s ease;
}

.kd-factory-gallery img:hover {
    transform: scale(1.02);
}

/* Video Thumbnail */
.kd-video-thumbnail {
    position: relative;
    cursor: pointer;
}

/* Outlook Section - Same background as Products section */
.kd-outlook-section {
    background-color: #f9f9f9;
}

/* Responsive */
@media (max-width: 992px) {
    .kd-section-title,
    .kd-feature-title {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .kd-section-title,
    .kd-feature-title {
        font-size: 24px;
    }
    
    .kd-feature-card {
        padding: 25px;
    }
}

/* ============================================
   CART PAGE STYLES
   ============================================ */

.kd-cart-page {
    padding: 60px 0;
    background: #ffffff;
}

.kd-cart-page .container {
    max-width: 1220px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Cart Table */
.kd-cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 40px;
    background: white;
}

.kd-cart-table thead {
    border-bottom: 2px solid #e8e8e8;
}

.kd-cart-table th {
    padding: 20px 15px;
    text-align: left;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
    color: #242424;
}

.kd-cart-table td {
    padding: 30px 15px;
    vertical-align: middle;
    border-bottom: 1px solid #f0f0f0;
}

/* Product Column */
.kd-cart-product {
    display: flex;
    align-items: center;
    gap: 20px;
}

.kd-cart-product-image {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
}

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

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

.kd-cart-product-info h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px;
    color: #242424;
    line-height: 1.4;
}

.kd-cart-product-info h3 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.kd-cart-product-info h3 a:hover {
    color: #79b38a;
}

.kd-cart-product-meta {
    font-size: 13px;
    color: #999999;
    line-height: 1.5;
}

/* Quantity Input */
.kd-quantity-input {
    display: flex;
    align-items: center;
    border: 2px solid #e8e8e8;
    border-radius: 4px;
    overflow: hidden;
    width: fit-content;
    transition: border-color 0.3s ease;
}

.kd-quantity-input:hover {
    border-color: #79b38a;
}

.kd-quantity-input button {
    background: white;
    border: none;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 18px;
    color: #242424;
    transition: all 0.3s ease;
}

.kd-quantity-input button:hover {
    background: #79b38a;
    color: white;
}

.kd-quantity-input input {
    width: 60px;
    height: 40px;
    text-align: center;
    border: none;
    border-left: 1px solid #e8e8e8;
    border-right: 1px solid #e8e8e8;
    font-size: 14px;
    font-weight: 600;
}

/* Remove Button */
.kd-remove-item {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: #cccccc;
    transition: all 0.3s ease;
}

.kd-remove-item:hover {
    color: #f44336;
    transform: scale(1.1);
}

/* Cart Totals */
.kd-cart-totals {
    background: #f9f9f9;
    padding: 40px;
    max-width: 450px;
    margin-left: auto;
    border-radius: 8px;
}

.kd-cart-totals h2 {
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 30px;
    color: #242424;
    padding-bottom: 20px;
    border-bottom: 2px solid #e8e8e8;
}

.kd-totals-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #e8e8e8;
}

.kd-totals-row:last-child {
    border-bottom: none;
}

.kd-totals-row.subtotal {
    font-size: 16px;
    font-weight: 600;
}

.kd-totals-row.shipping {
    font-size: 14px;
    color: #777777;
}

.kd-totals-row.total {
    font-size: 22px;
    font-weight: 700;
    margin-top: 15px;
    padding-top: 20px;
    border-top: 2px solid #e8e8e8;
    border-bottom: none;
}

/* Checkout Button */
.kd-checkout-btn {
    display: block;
    width: 100%;
    padding: 16px 30px;
    background: #79b38a;
    color: white;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 30px;
}

.kd-checkout-btn:hover {
    background: #669b6b;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(121, 179, 138, 0.3);
}

/* Cart Actions */
.kd-cart-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    gap: 20px;
    flex-wrap: wrap;
}

.kd-cart-actions .button,
.kd-cart-actions button[type="submit"] {
    padding: 14px 30px;
    background: #242424;
    color: white;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.kd-cart-actions .button:hover,
.kd-cart-actions button[type="submit"]:hover {
    background: #79b38a;
}

/* Empty Cart */
.kd-empty-cart {
    text-align: center;
    padding: 100px 20px;
}

.kd-empty-cart h2 {
    font-size: 36px;
    font-weight: 400;
    margin-bottom: 20px;
    color: #242424;
}

.kd-empty-cart p {
    font-size: 16px;
    line-height: 1.8;
    color: #777777;
    margin-bottom: 40px;
}

.kd-return-to-shop {
    display: inline-block;
    padding: 16px 40px;
    background: #79b38a;
    color: white;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.kd-return-to-shop:hover {
    background: #669b6b;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(121, 179, 138, 0.3);
}

/* Responsive */
@media (max-width: 992px) {
    .kd-cart-table {
        font-size: 14px;
    }
    
    .kd-cart-product-image {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 768px) {
    .kd-cart-table thead {
        display: none;
    }
    
    .kd-cart-table tbody tr {
        display: block;
        margin-bottom: 30px;
        padding: 20px;
        background: #f9f9f9;
        border-radius: 8px;
    }
    
    .kd-cart-table td {
        display: block;
        padding: 10px 0;
        border-bottom: none;
    }
    
    .kd-cart-product {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .kd-cart-totals {
        max-width: 100%;
        padding: 30px 20px;
    }
    
    .kd-cart-actions {
        flex-direction: column;
    }
    
    .kd-cart-actions .button,
    .kd-cart-actions button[type="submit"] {
        width: 100%;
    }
    
    .kd-empty-cart {
        padding: 60px 20px;
    }
    
    .kd-empty-cart h2 {
        font-size: 28px;
    }
}

/* ============================================
   BLOG SINGLE POST STYLES
   ============================================ */

/* Hide uncategorized category on blog archive page */
.archive.post-type-archive-post .cat-links,
.post-archive-hero-section + * .cat-links,
.blog .post .cat-links {
    display: none;
}

/* ============================================
   SINGLE BLOG POST HERO SECTION
   ============================================ */
.single-post .entry-hero {
    min-height: 200px;
    height: 200px;
    background-image: url('/wp-content/uploads/2026/05/blog-hero.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.single-post .entry-hero .entry-hero-container-inner {
    background: linear-gradient(135deg, rgba(121, 179, 138, 0.85) 0%, rgba(74, 103, 82, 0.85) 100%);
    min-height: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.single-post .entry-hero .entry-header {
    text-align: center;
    padding: 20px;
}

.single-post .entry-hero .entry-header .post-title {
    color: #ffffff;
    font-size: 28px;
    font-weight: 700;
    font-family: 'Lora', serif;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 2px;
}

@media (max-width: 768px) {
    .single-post .entry-hero {
        min-height: 150px;
        height: 150px;
    }

    .single-post .entry-hero .entry-hero-container-inner {
        min-height: 150px;
        height: 150px;
    }

    .single-post .entry-hero .entry-header .post-title {
        font-size: 22px;
    }
}

/* ============================================
   BLOG ARCHIVE HERO SECTION
   ============================================ */
.post-type-archive-post .post-archive-hero-section,
.blog .post-archive-hero-section {
    min-height: 200px;
    height: 200px;
    background-image: url('/wp-content/uploads/2026/05/blog-hero.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.post-type-archive-post .post-archive-hero-section .entry-hero-container-inner,
.blog .post-archive-hero-section .entry-hero-container-inner {
    background: linear-gradient(135deg, rgba(121, 179, 138, 0.85) 0%, rgba(74, 103, 82, 0.85) 100%);
    min-height: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-type-archive-post .post-archive-hero-section .entry-header,
.blog .post-archive-hero-section .entry-header {
    text-align: center;
    padding: 20px;
}

.post-type-archive-post .post-archive-hero-section .archive-title,
.blog .post-archive-hero-section .archive-title {
    color: #ffffff;
    font-size: 28px;
    font-weight: 700;
    font-family: 'Lora', serif;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 2px;
}

@media (max-width: 768px) {
    .post-type-archive-post .post-archive-hero-section,
    .blog .post-archive-hero-section {
        min-height: 150px;
        height: 150px;
    }

    .post-type-archive-post .post-archive-hero-section .entry-hero-container-inner,
    .blog .post-archive-hero-section .entry-hero-container-inner {
        min-height: 150px;
        height: 150px;
    }

    .post-type-archive-post .post-archive-hero-section .archive-title,
    .blog .post-archive-hero-section .archive-title {
        font-size: 22px;
    }
}

/* ============================================
   ABOUT PAGE HERO SECTION
   ============================================ */
.page-id-3174 .post-archive-hero-section,
.blog .post-archive-hero-section {
    min-height: 200px;
    height: 200px;
    background-image: url('/wp-content/uploads/2026/05/about-hero.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.page-id-3174 .post-archive-hero-section .entry-hero-container-inner,
.blog .post-archive-hero-section .entry-hero-container-inner {
    background: linear-gradient(135deg, rgba(121, 179, 138, 0.85) 0%, rgba(74, 103, 82, 0.85) 100%);
    min-height: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-id-3174 .post-archive-hero-section .archive-title,
.blog .post-archive-hero-section .archive-title {
    color: #ffffff;
    font-size: 28px;
    font-weight: 700;
    font-family: 'Lora', serif;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 2px;
}

.page-id-3174 .post-archive-hero-section .archive-tagline,
.blog .post-archive-hero-section .archive-tagline {
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin: 0 0 5px 0;
}

@media (max-width: 768px) {
    .page-id-3174 .post-archive-hero-section,
    .blog .post-archive-hero-section {
        min-height: 150px;
        height: 150px;
    }

    .page-id-3174 .post-archive-hero-section .entry-hero-container-inner,
    .blog .post-archive-hero-section .entry-hero-container-inner {
        min-height: 150px;
        height: 150px;
    }

    .page-id-3174 .post-archive-hero-section .archive-title,
    .blog .post-archive-hero-section .archive-title {
        font-size: 22px;
    }
}

/* ============================================
   SHOP ARCHIVE HERO SECTION
   ============================================ */
.post-type-archive-product .product-archive-hero-section,
.archive.post-type-archive-product {
    min-height: 200px;
    height: 200px;
    background-image: url('/wp-content/uploads/2026/05/shop-hero.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

/* Hide the overlay div that may be causing issues */
.post-type-archive-product .product-archive-hero-section .hero-section-overlay,
.archive.post-type-archive-product .hero-section-overlay {
    display: none;
}

.post-type-archive-product .product-archive-hero-section .entry-hero-container-inner,
.archive.post-type-archive-product .entry-hero-container-inner {
    background: linear-gradient(135deg, rgba(121, 179, 138, 0.75) 0%, rgba(74, 103, 82, 0.75) 100%);
    min-height: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-type-archive-product .product-archive-hero-section .entry-header,
.archive.post-type-archive-product .entry-header {
    text-align: center;
    padding: 20px;
}

.post-type-archive-product .product-archive-hero-section .archive-title,
.archive.post-type-archive-product .archive-title {
    color: #ffffff;
    font-size: 28px;
    font-weight: 700;
    font-family: 'Lora', serif;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 2px;
}

@media (max-width: 768px) {
    .post-type-archive-product .product-archive-hero-section,
    .archive.post-type-archive-product {
        min-height: 150px;
        height: 150px;
    }

    .post-type-archive-product .product-archive-hero-section .entry-hero-container-inner,
    .archive.post-type-archive-product .entry-hero-container-inner {
        min-height: 150px;
        height: 150px;
    }

    .post-type-archive-product .product-archive-hero-section .archive-title,
    .archive.post-type-archive-product .archive-title {
        font-size: 22px;
    }
}
body.single-post .entry-content,
body.single-post .entry-content-wrap,
body.single-post article.entry {
    max-width: 1220px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
    overflow: hidden;
}

/* Constrain full-width blocks inside content */
body.single-post .entry-content .wp-block-group.alignfull {
    max-width: 1220px;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    box-sizing: border-box;
    width: 100%;
}

/* Also constrain inner groups */
body.single-post .entry-content .wp-block-group.is-layout-constrained {
    max-width: 1220px;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box;
    margin-left: auto !important;
    margin-right: auto !important;
    width: 100%;
}

body.single-post .entry-content p,
body.single-post .entry-content h1,
body.single-post .entry-content h2,
body.single-post .entry-content h3,
body.single-post .entry-content h4,
body.single-post .entry-content h5,
body.single-post .entry-content h6 {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Fix first image alignment in blog post content */
body.single-post .entry-content > figure:first-of-type,
body.single-post .entry-content > .wp-block-image:first-of-type,
body.single-post .entry-content > img:first-of-type,
body.single-post .entry-content .wp-block-image figure {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
}

body.single-post .entry-content .wp-block-image figure {
    width: 100%;
}

body.single-post .entry-content .wp-block-image figure img {
    width: 100%;
    height: auto;
    display: block;
}

/* Hide duplicate featured image in post content */
body.single-post .entry-content .kd-post-featured-image {
    display: none;
}

/* Hide duplicate title (h1) in post content - header already has h1 */
body.single-post .entry-content .wp-block-heading:first-of-type {
    display: none;
}

/* Also hide if it's the first h1 in the content area */
body.single-post .entry-content > .wp-block-group:first-of-type .wp-block-heading {
    display: none;
}

/* Ensure first image in content is full width and centered */
body.single-post .entry-content .wp-block-group:first-of-type .wp-block-image,
body.single-post .entry-content .wp-block-group:first-of-type figure.wp-block-image {
    margin-left: 0;
    width: 100%;
}

body.single-post .entry-content .wp-block-group:first-of-type .wp-block-image img,
body.single-post .entry-content .wp-block-group:first-of-type figure.wp-block-image img {
    width: 100%;
    max-width: 100%;
}

/* Fix floated images */
body.single-post .entry-content .wp-block-image.alignleft,
body.single-post .entry-content .wp-block-image.alignright,
body.single-post .entry-content .wp-block-image.aligncenter {
    margin-left: 0;
    margin-right: 0;
}

body.single-post .entry-content img {
    max-width: 100%;
    height: auto;
    display: block;
}

