/*
Theme Name: Storefront Child - CasTheme
Description: Child theme of Storefront for TazeKitchens.com - Modern kitchen equipment e-commerce website
Author: CasTheme Development Team
Template: storefront
Version: 1.0.0
Text Domain: storefront-child
*/

/* Import parent theme styles */
@import url("../storefront/style.css");

/* =============================================================================
   CASTHEME CUSTOM STYLES
   ========================================================================== */

/* Custom variables for consistent theming */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #e74c3c;
    --accent-color: #f39c12;
    --text-color: #2c3e50;
    --light-bg: #ecf0f1;
    --white: #ffffff;
    --border-radius: 8px;
    --box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Header customizations */
.site-header {
    background-color: var(--white);
    box-shadow: var(--box-shadow);
}

.site-title a {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 2rem;
}
.home.blog .site-header {
    margin-bottom: 0 !important;
}
/* Navigation styling */
.main-navigation ul li a {
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

.main-navigation ul li a:hover {
    color: var(--secondary-color);
}

/* Button styling */
.button, .wc-block-grid__product-add-to-cart .wp-block-button__link,
.woocommerce a.button, .woocommerce button.button {
    background-color: var(--secondary-color);
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    border: none;
}

.button:hover, .wc-block-grid__product-add-to-cart .wp-block-button__link:hover,
.woocommerce a.button:hover, .woocommerce button.button:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
}

/* ========================================
   FOOTER STYLES - Simple & Clean Design
======================================== */

/* Main Footer */
.castheme-footer {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: #ffffff;
    margin-top: 60px;
    border: none;
    position: relative;
    overflow: hidden;
}

.castheme-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="footerGrain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23footerGrain)"/></svg>');
    opacity: 0.3;
}

.footer-content {
    padding: 60px 0 40px;
    position: relative;
    z-index: 2;
}

.footer-main {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.footer-brand {
    text-align: center;
    max-width: 500px;
}

/* Footer Logo */
.footer-logo {
    margin-bottom: 25px;
}

.footer-logo .custom-logo-link {
    display: inline-block;
}

.footer-logo .custom-logo {
    max-height: 60px;
    width: auto;
    filter: brightness(0) invert(1);
}

.site-title {
    color: #ffffff;
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    text-decoration: none;
}

.site-title:hover {
    color: #3498db;
}

/* Footer Description */
.footer-description {
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 30px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* Social Media Links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #ffffff;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.social-link:hover {
    background: #3498db;
    border-color: #3498db;
    color: #ffffff;
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.3);
}

.social-link.facebook:hover {
    background: #1877f2;
    border-color: #1877f2;
    box-shadow: 0 8px 20px rgba(24, 119, 242, 0.3);
}

.social-link.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-color: #e6683c;
    box-shadow: 0 8px 20px rgba(225, 48, 108, 0.3);
}

.social-link.twitter:hover {
    background: #1da1f2;
    border-color: #1da1f2;
    box-shadow: 0 8px 20px rgba(29, 161, 242, 0.3);
}

.social-link.youtube:hover {
    background: #ff0000;
    border-color: #ff0000;
    box-shadow: 0 8px 20px rgba(255, 0, 0, 0.3);
}

.social-link.linkedin:hover {
    background: #0077b5;
    border-color: #0077b5;
    box-shadow: 0 8px 20px rgba(0, 119, 181, 0.3);
}

/* Footer Bottom */
.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 2;
}

.footer-bottom-content {
    text-align: center;
}

.copyright {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Responsive Design */
@media (max-width: 768px) {
    .footer-content {
        padding: 40px 0 30px;
    }
    
    .footer-description {
        font-size: 0.95rem;
        margin-bottom: 25px;
    }
    
    .social-links {
        gap: 12px;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    .site-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .footer-content {
        padding: 30px 0 20px;
    }
    
    .footer-description {
        font-size: 0.9rem;
        padding: 0 10px;
    }
    
    .social-links {
        gap: 10px;
        flex-wrap: wrap;
    }
    
    .footer-bottom {
        padding: 15px 0;
    }
    
    .copyright {
        font-size: 0.85rem;
        padding: 0 10px;
    }
}

/* Responsive design enhancements */
@media (max-width: 768px) {
    .site-title a {
        font-size: 1.5rem;
    }
}

/* Custom classes for future development */
.castheme-hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.castheme-features {
    background-color: var(--light-bg);
    padding: 40px 0;
}

.castheme-cta {
    background-color: var(--accent-color);
    color: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    margin: 20px 0;
}

.castheme-homepage {
    overflow-x: hidden;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col-md-6 {
    width: 50%;
    padding: 0 15px;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.section-header p {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Hero Section */
.castheme-hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.castheme-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="80" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="60" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: white;
}
.castheme-single-product-wrapper .woocommerce-tabs.wc-tabs-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
}

 .storefront-full-width-content .castheme-single-product-wrapper  .woocommerce-tabs .panel {
    float: none !important;
clear: both !important;
width: 100% !important;
        margin-bottom: 0;
    }
.btn-primary:hover {
    background-color: white;
    color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border-color: white;
}

.btn-secondary:hover {
    background-color: white;
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* Features Section */
.castheme-features {
    background-color: #fff;
    padding: 80px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.feature-item {
    padding: 40px 20px;
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-10px);
}

.feature-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(45deg, var(--secondary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    padding: 20px;
}

.feature-item h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.feature-item p {
    color: #666;
    line-height: 1.6;
}

/* Modern Products Section */
.featured-products {
    padding: 80px 0;
    background-color: var(--light-bg);
    position: relative;
    overflow: hidden;
}

.featured-products::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.featured-products .container {
    position: relative;
    z-index: 2;
}

.featured-products .section-header {
    text-align: center;
    margin-bottom: 60px;
}

.featured-products .section-header h2 {
  
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;

}

.featured-products .section-header p {
 
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

.featured-products .products-grid,
.castheme-products-container .products {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 30px;
	margin-top: 0;
	list-style-type: none;
	padding: 0;
}

.featured-products .products-grid .product,
.castheme-products-container .products .product {
	background: white;
	border-radius: 20px;
	padding: 0;
	text-align: center;
	transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
	box-shadow: 0 10px 30px rgba(0,0,0,0.1);
	overflow: hidden;
	position: relative;
}

.featured-products .products-grid .product::before,
.castheme-products-container .products .product::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.featured-products .products-grid .product:hover::before,
.castheme-products-container .products .product:hover::before {
    transform: scaleX(1);
}

.featured-products .products-grid .product:hover,
.castheme-products-container .products .product:hover {
	transform: translateY(-10px);
	box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

/* Modern product element styling */
.featured-products .product .woocommerce-loop-product__link,
.castheme-products-container .product .woocommerce-loop-product__link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.featured-products .product img,
.castheme-products-container .product img {
	width: 100%;
	height: 250px;
	object-fit: cover;
	border-radius: 0;
	margin-bottom: 0;
	transition: transform 0.4s ease;
}

.featured-products .product:hover img,
.castheme-products-container .product:hover img {
    transform: scale(1.05);
}

.featured-products .product .product-content,
.castheme-products-container .product .product-content {
    padding: 25px;
}

.featured-products .product h2,
.castheme-products-container .product h2,
.featured-products .product .woocommerce-loop-product__title,
.castheme-products-container .product .woocommerce-loop-product__title {
	font-size: 18px;
	font-weight: 600;
	margin: 0 0 15px 0;
	line-height: 1.4;
	color: #2c3e50;
}

.featured-products .product .price,
.castheme-products-container .product .price {
	font-size: 24px;
	font-weight: 700;
	background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	margin: 15px 0 20px 0;
	display: inline-block;
}

.featured-products .product .button,
.castheme-products-container .product .button {
	background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
	color: white;
	padding: 12px 30px;
	font-size: 14px;
	font-weight: 600;
	border-radius: 50px;
	border: none;
	text-decoration: none;
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
	text-transform: uppercase;
	letter-spacing: 1px;
}

.featured-products .product .button::before,
.castheme-products-container .product .button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.featured-products .product .button:hover::before,
.castheme-products-container .product .button:hover::before {
    left: 100%;
}

.featured-products .product .button:hover,
.castheme-products-container .product .button:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 25px rgba(44, 62, 80, 0.4);
}
.section-footer {
    text-align: center;
    margin-top: 60px;
}

.view-all-products {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 40px;
    background: white;
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 3px solid white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.view-all-products::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transition: left 0.4s ease;
    z-index: -1;
}

.view-all-products::after {
    content: '→';
    font-size: 18px;
    transition: transform 0.3s ease;
}

.view-all-products:hover {
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(44, 62, 80, 0.4);
}

.view-all-products:hover::before {
    left: 0;
}

.view-all-products:hover::after {
    transform: translateX(5px);
}

/* No products message styling */
.no-products-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.no-products-message h3 {
    color: #2c3e50;
    font-size: 24px;
    margin-bottom: 15px;
}

.no-products-message p {
    color: #7f8c8d;
    font-size: 16px;
    margin: 0;
}

/* Responsive Design for Modern Products */
@media (max-width: 768px) {
    .featured-products {
        padding: 60px 0;
    }
    
    .featured-products .section-header h2 {
        font-size: 2rem;
    }
    
    .featured-products .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .featured-products .product img {
        height: 200px;
    }
    
    .view-all-products {
        padding: 14px 30px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .featured-products .products-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .featured-products .section-header h2 {
        font-size: 1.8rem;
    }
    
    .featured-products .section-header p {
        font-size: 1rem;
    }
}

/* Categories Section */
.product-categories {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.category-item {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
}

.category-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.category-item a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.category-image {
    height: 200px;
    overflow: hidden;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.category-item:hover .category-image img {
    transform: scale(1.1);
}

.category-content {
    padding: 20px;
    text-align: center;
}

.category-content h3 {
    color: var(--primary-color);
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.product-count {
    color: #666;
    font-size: 0.9rem;
}



/* Testimonials Section */
.testimonials {
    padding: 80px 0;
    background: white;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.testimonial-item {
    background: #f8f9fa;
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    position: relative;
}

.testimonial-item::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 4rem;
    color: var(--secondary-color);
    font-family: serif;
}

.stars {
    color: var(--accent-color);
    margin-bottom: 20px;
}

.testimonial-content p {
    font-style: italic;
    margin-bottom: 20px;
    line-height: 1.6;
    color: #555;
}

.customer-info strong {
    color: var(--primary-color);
    display: block;
    margin-bottom: 5px;
}

.customer-info span {
    color: #666;
    font-size: 0.9rem;
}

/* =============================================================================
   STOREFRONT WRAPPER OVERRIDE FOR TRUE FULL WIDTH
   ========================================================================== */

/* Force homepage to break out of Storefront's container system */
.home .site,
.home .site-content,
.home .content-area,
.home #primary {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}


  .cas-sitewrapper .content-area {
    width:100%;
    float: none !important;
    margin-left:0;
    margin-right:0
  }
/* Remove Storefront's default spacing and constraints */
.home .site-content {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}


/* Ensure our wrapper takes full control */
.home .site-content {
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
}


/* Ensure full width sections */
.castheme-hero,
.castheme-features,
.featured-products,
.product-categories,
.newsletter-cta,
.testimonials {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
}

/* Storefront specific fixes */
.castheme-homepage .site-main {
    margin-bottom: 0;
}

.castheme-homepage .content-area {
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Override Storefront's default page styling */
.castheme-homepage .hentry {
    margin: 0;
    padding: 0;
    border: none;
    box-shadow: none;
}

/* Ensure sections stack properly */
.castheme-homepage section {
    display: block;
    width: 100%;
    clear: both;
}

/* =============================================================================
   FULL WIDTH PAGE TEMPLATE STYLES
   ========================================================================== */

/* Full Width Page Styling */
.castheme-fullwidth-page {
    margin: 0;
    padding: 0;
    border: none;
    box-shadow: none;
}

.castheme-fullwidth-page .entry-content {
    max-width: none;
    padding: 0;
}

.castheme-fullwidth-page .page-featured-image {
    width: 100%;
    margin-bottom: 0;
}

.castheme-fullwidth-page .page-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Content blocks in full width */
.castheme-fullwidth-page .entry-content > * {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* Allow full width elements */
.castheme-fullwidth-page .entry-content .alignfull {
    max-width: none;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    padding-left: 0;
    padding-right: 0;
}

.castheme-fullwidth-page .entry-content .alignwide {
    max-width: 1400px;
    width: calc(100% + 40px);
    margin-left: -20px;
    margin-right: -20px;
}

/* Page links styling */
.castheme-fullwidth-page .page-links {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 20px;
    text-align: center;
}

.castheme-fullwidth-page .page-links a {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 4px;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: background-color 0.3s ease;
}

.castheme-fullwidth-page .page-links a:hover {
    background-color: var(--secondary-color);
}

/* Entry footer for full width pages */
.castheme-fullwidth-page .entry-footer {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 20px;
    text-align: center;
}

.castheme-fullwidth-page .edit-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
}

.castheme-fullwidth-page .edit-link a:hover {
    color: var(--secondary-color);
}


/* ==========================================================================
   CAS Site Wrapper - Global Container Replacement for col-full
   ========================================================================== */

/* Base styles for cas-sitewrapper (replaces col-full globally) */
.cas-sitewrapper {
  width: 100%;
  padding-right: var(--bs-gutter-x, 0.75rem);
  padding-left: var(--bs-gutter-x, 0.75rem);
  margin-right: auto;
  margin-left: auto;
  position: relative;
  display: block;
}
 .cas-sitewrapper .page,
  .cas-sitewrapper .container {
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
  }
/* Responsive container widths for cas-sitewrapper */
@media (min-width: 576px) {
  .cas-sitewrapper .page,
  .cas-sitewrapper .container {
    max-width: 540px;
  }
}

@media (min-width: 768px) {
  .cas-sitewrapper .page,
  .cas-sitewrapper .container {
    max-width: 720px;
  }
  
  .storefront-full-width-content .castheme-single-product-wrapper .woocommerce-tabs .panel {
    float: none !important;
clear: both !important;
width: 100% !important;
        margin-bottom: 0;
    }
}

@media (min-width: 992px) {
  .cas-sitewrapper .page,
  .cas-sitewrapper .container {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  .cas-sitewrapper .page,
  .cas-sitewrapper .container {
    max-width: 1140px;
  }
}

@media (min-width: 1400px) {
  .cas-sitewrapper .page,
  .cas-sitewrapper .container {
    max-width: 1140px;
  }
}



/* ==========================================================================
   Swiper Hero Slider Styles
   ========================================================================== */

/* Hero Slider Container */
.castheme-hero-slider-section {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}

.castheme-hero-slider {
  width: 100%;
  height: 100%;
}

.castheme-hero-slider .swiper-wrapper {
  height: 100%;
}

.castheme-hero-slider .swiper-slide {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hero Slide Background */
.hero-slide {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hero Overlay for better text readability */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

/* Hero Content */
.hero-slide .container {
  position: relative;
  z-index: 2;

}

.hero-slide .hero-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
    text-align: center;
  color: white;
}

.hero-slide .hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
   color: white;
}

.hero-slide .hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  line-height: 1.6;
  opacity: 0.95;
   color: white;
}

.hero-slide .hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-slide .btn-primary,
.hero-slide .btn-secondary {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-slide .btn-primary {
  background: var(--castheme-primary-color, #e74c3c);
  color: white;
  border: 2px solid var(--castheme-primary-color, #e74c3c);
}

.hero-slide .btn-primary:hover {
  background: transparent;
  color: var(--castheme-primary-color, #e74c3c);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(231, 76, 60, 0.3);
}

.hero-slide .btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.hero-slide .btn-secondary:hover {
  background: white;
  color: var(--castheme-primary-color, #e74c3c);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.3);
}

/* Swiper Navigation Buttons */
.castheme-hero-slider .swiper-button-next,
.castheme-hero-slider .swiper-button-prev {
  color: white;
  font-size: 24px;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.5);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-top: -25px;
  transition: all 0.3s ease;
}

.castheme-hero-slider .swiper-button-next:hover,
.castheme-hero-slider .swiper-button-prev:hover {
  background: var(--castheme-primary-color, #e74c3c);
  transform: scale(1.1);
}

.castheme-hero-slider .swiper-button-next::after,
.castheme-hero-slider .swiper-button-prev::after {
  font-size: 16px;
  font-weight: 700;
}

/* Swiper Pagination */
.castheme-hero-slider .swiper-pagination {
  bottom: 30px;
}

.castheme-hero-slider .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  opacity: 1;
  transition: all 0.3s ease;
}

.castheme-hero-slider .swiper-pagination-bullet-active {
  background: var(--castheme-primary-color, #e74c3c);
  transform: scale(1.2);
}

/* Responsive Design */
@media (max-width: 768px) {
  .castheme-hero-slider-section {
    height: 70vh;
    min-height: 500px;
  }
  
  .hero-slide .hero-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
  }
  
  .hero-slide .hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
  }
  
  .hero-slide .hero-content {
    padding: 1rem;
  }
  
  .hero-slide .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .hero-slide .btn-primary,
  .hero-slide .btn-secondary {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
  }
  
  .castheme-hero-slider .swiper-button-next,
  .castheme-hero-slider .swiper-button-prev {
    width: 40px;
    height: 40px;
    margin-top: -20px;
  }
  
  .castheme-hero-slider .swiper-button-next::after,
  .castheme-hero-slider .swiper-button-prev::after {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .hero-slide .hero-title {
    font-size: 2rem;
  }
  
  .hero-slide .hero-subtitle {
    font-size: 1rem;
  }
  
  .castheme-hero-slider .swiper-button-next,
  .castheme-hero-slider .swiper-button-prev {
    display: none;
  }
}

/* ==========================================================================
   WooCommerce Shop Page Custom Styles
   ========================================================================== */

/* Shop Wrapper */
.castheme-shop-wrapper {
  width: 100%;
}

/* Shop Hero Section */
.castheme-shop-hero {
    color: var(--text-color);
    padding: 20px 0 20px;
    text-align: left;
    background-color: var(--light-bg);
}
.castheme-shop-hero * {
   color: var(--text-color);
}
.shop-hero-content .shop-hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0;

}

.shop-hero-content .shop-hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 0;
}
.page-descriptions {
    background-color: #fff;
    padding: 25px;
    margin-top: 20px;
}
/* Category Filters */
.category-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-top: 2rem;
}

.category-filters .filter-btn {
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  text-decoration: none;
  border-radius: 25px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
  font-weight: 500;
}

.category-filters .filter-btn:hover,
.category-filters .filter-btn.active {
  background: white;
  color: var(--primary-color);
  border-color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Shop Content Area */
.castheme-shop-content {
  padding: 60px 0;
  background: #f8f9fa;
}

/* Shop Toolbar */
.castheme-shop-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  padding: 20px;
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  flex-wrap: wrap;
  gap: 20px;
}

.toolbar-left {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.castheme-shop-toolbar .storefront-sorting {
margin: 0;
}


/* Products Container */
.castheme-products-container {
  margin-bottom: 40px;
}
.castheme-products-container ul.products::before, .castheme-products-container ul.products::after {
	display: none !important;
}

/* List View */
.castheme-products-container.list-view .products {
  grid-template-columns: 1fr;
  gap: 20px;
}

.castheme-products-container.list-view .product {
  display: flex;
  background: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  align-items: center;
  padding: 20px;
}

.castheme-products-container.list-view .product .woocommerce-loop-product__link {
  display: flex;
  align-items: center;
  width: 100%;
  text-decoration: none;
}

.castheme-products-container.list-view .product img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  margin-right: 20px;
  border-radius: var(--border-radius);
}

/* No Products Found */
.castheme-no-products {
  text-align: center;
  padding: 80px 20px;
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.no-products-content i {
  font-size: 4rem;
  color: #ccc;
  margin-bottom: 20px;
}

.no-products-content h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.no-products-content p {
  color: #666;
  margin-bottom: 30px;
}

/* Shop Categories Section */
.castheme-shop-categories {
  padding: 80px 0;
  background: white;
}

.shop-categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.shop-category-item {
  text-align: center;
  transition: transform 0.3s ease;
}

.shop-category-item:hover {
  transform: translateY(-5px);
}

.shop-category-item a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.shop-category-item .category-image {
  width: 100px;
  height: 100px;
  margin: 0 auto 15px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--light-bg);
  transition: border-color 0.3s ease;
}

.shop-category-item:hover .category-image {
  border-color: var(--secondary-color);
}

.shop-category-item .category-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shop-category-item h4 {
  color: var(--primary-color);
  margin-bottom: 5px;
  font-size: 1.1rem;
}

.shop-category-item .product-count {
  color: #666;
  font-size: 0.9rem;
}

/* Shop Features */
.castheme-shop-features {
  padding: 60px 0;
  background: var(--light-bg);
}

.shop-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.shop-feature {
  display: flex;
  align-items: center;
  background: white;
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: transform 0.3s ease;
}

.shop-feature:hover {
  transform: translateY(-3px);
}

.shop-feature .feature-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(45deg, var(--secondary-color), var(--accent-color));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 20px;
  font-size: 1.5rem;
}

.shop-feature .feature-content h4 {
  color: var(--primary-color);
  margin-bottom: 5px;
  font-size: 1.1rem;
}

.shop-feature .feature-content p {
  color: #666;
  margin: 0;
  font-size: 0.9rem;
}

/* Shop Breadcrumb Navigation */
.shop-breadcrumb {
  text-align: center;
  margin-bottom: 30px;
  padding: 15px 0;
}

.shop-breadcrumb a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 0.9rem;
}

.shop-breadcrumb a:hover {
  color: white;
}

.shop-breadcrumb .separator {
  color: rgba(255, 255, 255, 0.6);
  margin: 0 10px;
}

.shop-breadcrumb .current {
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .shop-hero-content h1.shop-hero-title {
    font-size: 2.2rem;
  }
  
  .shop-hero-content .shop-hero-subtitle {
    font-size: 1.1rem;
  }
  
  .category-filters {
    justify-content: center;
  }
  
  .category-filters .filter-btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
  .castheme-shop-content .shop-main-content {
 width: 100%;
  }
  
  .castheme-products-container .products {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
  }
  
  .castheme-products-container.list-view .product img {
    width: 100%;
    height: auto;
    margin-right: 0;
    margin-bottom: 15px;
  }
  
  .shop-categories-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
  }
  
  .shop-feature {
    flex-direction: column;
    text-align: center;
}
  
  .castheme-products-container .products {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
  }
  
  .castheme-products-container.list-view .product {
    flex-direction: column;
    text-align: center;
  }
  
  .castheme-products-container.list-view .product img {
    margin-right: 0;
    margin-bottom: 15px;
  }
  
  .shop-features-grid {
    grid-template-columns: 1fr;
  }
  
  .shop-feature {
    flex-direction: column;
    text-align: center;
  }
  
  .shop-feature .feature-icon {
    margin-right: 0;
    margin-bottom: 15px;
  }
}

/* ==========================================================================
   Page Template Custom Styles
   ========================================================================== */

/* Page Wrapper */
.castheme-page-wrapper {
  width: 100%;
}

/* Page Hero Section */
.castheme-page-hero {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 20px 0 20px;
  text-align: center;
}


/* Page Hero Content */
.page-hero-content h1.page-hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0;
   color: white;
}

.page-hero-content .page-hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 0;
  opacity: 0.9;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* Page Content */
.castheme-page-content {
  padding: 80px 0;
  background: #fff;
}

.page-content-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 60px;
  align-items: start;
}

/* No sidebar layout */
.castheme-page-content:not(:has(.page-sidebar)) .page-content-grid,
.page-content-grid:not(:has(.page-sidebar)) {
  grid-template-columns: 1fr;
  max-width: 800px;
  margin: 0 auto;
}
.castheme-page-content .page-content-grid.no-sidebar {
    display: block;
    width: 100%;
    max-width: inherit !important;
    margin: 0 !important;
}
/* Main Content */
.page-main-content {
  background: white;
  padding: 40px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}
.castheme-page-content .page-content-grid.no-sidebar .page-main-content {
  background: white;
  padding: 40px;
  border-radius: 0;
  box-shadow: none;
}
.castheme-page-article {
  margin: 0;
  border: none;
  box-shadow: none;
  padding: 0;
}

/* Featured Image */
.page-featured-image {
  margin-bottom: 30px;
  border-radius: var(--border-radius);
  overflow: hidden;
}

.page-featured-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Page Entry Content */
.page-entry-content {
  line-height: 1.8;
  font-size: 1.1rem;
  color: #333;
}

.page-entry-content h1,
.page-entry-content h2,
.page-entry-content h3,
.page-entry-content h4,
.page-entry-content h5,
.page-entry-content h6 {
  color: var(--primary-color);
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.page-entry-content h2 {
  font-size: 2rem;
  border-bottom: 2px solid var(--light-bg);
  padding-bottom: 10px;
}

.page-entry-content h3 {
  font-size: 1.5rem;
}

.page-entry-content p {
  margin-bottom: 1.5rem;
}

.page-entry-content ul,
.page-entry-content ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.page-entry-content li {
  margin-bottom: 0.5rem;
}

.page-entry-content blockquote {
  background: var(--light-bg);
  border-left: 4px solid var(--secondary-color);
  padding: 20px;
  margin: 2rem 0;
  font-style: italic;
  font-size: 1.1rem;
}

.page-entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  margin: 1rem 0;
}

/* Page Links */
.page-links {
  text-align: center;
  margin: 2rem 0;
  padding: 20px;
  background: var(--light-bg);
  border-radius: var(--border-radius);
}

.page-links a {
  display: inline-block;
  padding: 8px 16px;
  margin: 0 4px;
  background-color: var(--primary-color);
  color: white;
  text-decoration: none;
  border-radius: var(--border-radius);
  transition: background-color 0.3s ease;
}

.page-links a:hover {
  background-color: var(--secondary-color);
}

/* Page Entry Footer */
.page-entry-footer {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--light-bg);
  text-align: center;
}

.page-entry-footer .edit-link a {
  color: var(--primary-color);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 8px 16px;
  border: 1px solid var(--primary-color);
  border-radius: var(--border-radius);
  transition: all 0.3s ease;
}

.page-entry-footer .edit-link a:hover {
  background: var(--primary-color);
  color: white;
}

/* Page Sidebar */
.page-sidebar {
  background: white;
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  height: fit-content;
  position: sticky;
  top: 20px;
}

.page-sidebar .widget {
  margin-bottom: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--light-bg);
}

.page-sidebar .widget:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.page-sidebar .widget-title {
  color: var(--primary-color);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--secondary-color);
}

.page-sidebar .widget ul {
  list-style: none;
  padding: 0;
}

.page-sidebar .widget li {
  padding: 8px 0;
  border-bottom: 1px solid var(--light-bg);
}

.page-sidebar .widget li:last-child {
  border-bottom: none;
}

.page-sidebar .widget a {
  color: #666;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-sidebar .widget a:hover {
  color: var(--secondary-color);
}

/* Page CTA Section */
.castheme-page-cta {
  padding: 80px 0;
  background: linear-gradient(135deg, #34495e, #2c3e50);
  color: white;
  text-align: center;
}

.page-cta-content h3 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.page-cta-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.page-cta-content .btn-primary {
  display: inline-block;
  padding: 15px 40px;
  background: var(--secondary-color);
  color: white;
  text-decoration: none;
  border-radius: var(--border-radius);
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.page-cta-content .btn-primary:hover {
  background: var(--accent-color);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Related Pages Section */
.castheme-related-pages {
  padding: 80px 0;
  background: white;
}

.castheme-related-pages .section-header {
  text-align: center;
  margin-bottom: 50px;
}

.castheme-related-pages .section-header h3 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: 700;
}

.related-pages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.related-page-item {
  background: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: all 0.3s ease;
}

.related-page-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.related-page-item a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.related-page-image {
  height: 200px;
  overflow: hidden;
}

.related-page-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.related-page-item:hover .related-page-image img {
  transform: scale(1.1);
}

.related-page-content {
  padding: 20px;
}

.related-page-content h4 {
  color: var(--primary-color);
  margin-bottom: 10px;
  font-size: 1.2rem;
  font-weight: 600;
}

.related-page-content p {
  color: #666;
  margin: 0;
  line-height: 1.6;
}

/* Product Specifications Section */
.product-specifications-section {
  background: white;
  padding: 60px 40px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  margin-bottom: 40px;
}

.product-specifications-section .section-title {
  text-align: center;
  font-size: 2.2rem;
  color: var(--primary-color);
  margin-bottom: 40px;
  font-weight: 700;
  position: relative;
}

.product-specifications-section .section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--secondary-color);
  border-radius: 2px;
}

.specifications-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.specification-item {
  background: var(--light-bg);
  padding: 20px;
  border-radius: var(--border-radius);
  border-left: 4px solid var(--secondary-color);
  transition: all 0.3s ease;
}

.specification-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.specification-item strong {
  color: var(--primary-color);
  font-weight: 600;
  margin-right: 10px;
}

/* Mobile responsive for specifications */
@media (max-width: 768px) {
  .product-specifications-section {
    padding: 40px 20px;
  }
  
  .specifications-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .specification-item {
    padding: 15px;
  }
}

/* ==========================================================================
   Blog Template Styles
   ========================================================================== */

/* Blog Wrapper */
.castheme-blog-wrapper {
  width: 100%;
}

/* Blog Hero Section */
.blog-hero-section {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 100px 0 80px;
  text-align: center;
}

.blog-hero-content h1.blog-hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.blog-hero-content .blog-hero-subtitle {
  font-size: 1.3rem;
  margin-bottom: 0;
  opacity: 0.9;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* Blog Container */
.blog-container {
  padding: 80px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.blog-content-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 60px;
  align-items: start;
}

/* Main Blog Content */
.blog-main-content {
  width: 100%;
}

.blog-posts-grid {
  display: grid;
  gap: 40px;
}

/* Blog Post Item */
.blog-post-item {
  background: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: all 0.3s ease;
}

.blog-post-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* Post Thumbnail */
.post-thumbnail {
  position: relative;
  overflow: hidden;
  height: 300px;
}

.post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.blog-post-item:hover .post-thumbnail img {
  transform: scale(1.1);
}

/* Post Content */
.post-content {
  padding: 30px;
}

/* Post Meta */
.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 15px;
  font-size: 0.9rem;
  color: #666;
}

.post-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.post-meta i {
  color: var(--secondary-color);
}

.post-meta a {
  color: #666;
  text-decoration: none;
  transition: color 0.3s ease;
}

.post-meta a:hover {
  color: var(--secondary-color);
}

/* Post Title */
.post-title {
  margin-bottom: 15px;
}

.post-title a {
  color: var(--primary-color);
  text-decoration: none;
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.4;
  transition: color 0.3s ease;
}

.post-title a:hover {
  color: var(--secondary-color);
}

/* Post Excerpt */
.post-excerpt {
  color: #555;
  line-height: 1.7;
  margin-bottom: 20px;
}

.post-excerpt p {
  margin: 0;
}

/* Read More Button */
.post-read-more {
  text-align: left;
}

.btn-read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 25px;
  background: var(--secondary-color);
  color: white;
  text-decoration: none;
  border-radius: var(--border-radius);
  font-weight: 600;
  transition: all 0.3s ease;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

.btn-read-more:hover {
  background: var(--accent-color);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Blog Pagination */
.blog-pagination {
  margin-top: 60px;
  text-align: center;
}

.blog-pagination .nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.blog-pagination .nav-links a,
.blog-pagination .nav-links span {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: white;
  color: var(--primary-color);
  text-decoration: none;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: all 0.3s ease;
  font-weight: 600;
}

.blog-pagination .nav-links a:hover {
  background: var(--secondary-color);
  color: white;
}

.blog-pagination .nav-links .current {
  background: var(--secondary-color);
  color: white;
}

/* No Posts Found */
.no-posts-found {
  text-align: center;
  padding: 80px 20px;
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.no-posts-found h2 {
  color: var(--primary-color);
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.no-posts-found p {
  color: #666;
  font-size: 1.2rem;
}

/* Blog Sidebar */
.blog-sidebar {
  width: 100%;
}

.sidebar-widget {
  background: white;
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  margin-bottom: 30px;
}

.sidebar-widget:last-child {
  margin-bottom: 0;
}

.widget-title {
  color: var(--primary-color);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 3px solid var(--secondary-color);
  position: relative;
}

/* Search Widget */
.search-form {
  display: flex;
  gap: 10px;
}

.search-field {
  flex: 1;
  padding: 12px 15px;
  border: 2px solid #ddd;
  border-radius: var(--border-radius);
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.search-field:focus {
  outline: none;
  border-color: var(--secondary-color);
}

.search-submit {
  padding: 12px 20px;
  background: var(--secondary-color);
  color: white;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: background 0.3s ease;
}

.search-submit:hover {
  background: var(--accent-color);
}

/* Categories Widget */
.categories-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.categories-list li {
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

.categories-list li:last-child {
  border-bottom: none;
}

.categories-list a {
  color: #666;
  text-decoration: none;
  transition: color 0.3s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.categories-list a:hover {
  color: var(--secondary-color);
}

/* Recent Posts Widget */
.recent-posts-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.recent-post-item {
  display: block;
}

.recent-post-item a {
  display: flex;
  gap: 15px;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  padding: 10px;
  border-radius: var(--border-radius);
}

.recent-post-item a:hover {
  background: var(--light-bg);
}

.recent-post-thumb {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  border-radius: var(--border-radius);
  overflow: hidden;
}

.recent-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.recent-post-content h4 {
  color: var(--primary-color);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 5px;
  line-height: 1.4;
}

.recent-post-date {
  color: #999;
  font-size: 0.8rem;
}

/* Tags Widget */
.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tags-cloud a {
  display: inline-block;
  padding: 6px 12px;
  background: var(--light-bg);
  color: #666;
  text-decoration: none;
  border-radius: 20px;
  font-size: 0.85rem;
  transition: all 0.3s ease;
}

.tags-cloud a:hover {
  background: var(--secondary-color);
  color: white;
}

/* ================================
   SINGLE POST STYLES
   ================================ */

/* Single Post Wrapper */
.castheme-single-post-wrapper {
    padding: 0;
    background: #f8f9fa;
}

/* Post Hero Section */
.post-hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 60px 0 40px;
    position: relative;
    overflow: hidden;
}

.post-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.post-hero-content {
    position: relative;
    z-index: 2;
}

/* Breadcrumb */
.post-breadcrumb {
    margin-bottom: 20px;
    font-size: 14px;
    opacity: 0.9;
}

.post-breadcrumb a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.post-breadcrumb a:hover {
    opacity: 0.8;
}

.post-breadcrumb .separator {
    margin: 0 8px;
    opacity: 0.7;
}

.post-breadcrumb .current {
    opacity: 0.8;
    font-weight: 500;
}

/* Post Hero Meta */
.post-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 14px;
    opacity: 0.9;
}

.post-hero-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.post-hero-meta i {
    font-size: 12px;
}

.post-hero-meta a {
    color: white;
    text-decoration: none;
}

/* Post Hero Title */
.post-hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: white;
}

/* Post Hero Excerpt */
.post-hero-excerpt {
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.9;
    max-width: 800px;
}

/* Featured Image Section */
.post-featured-image-section {
    padding: 40px 0;
    background: white;
}

.post-featured-image {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    transform: translateY(-20px);
}

.post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.post-featured-image:hover img {
    transform: scale(1.02);
}

/* Post Content Section */
.post-content-section {
    padding: 60px 0;
    background: white;
}

.post-content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: start;
}

/* Main Post Content */
.post-main-content {
    max-width: 100%;
}

.single-post-article {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
}

/* Post Entry Content */
.post-entry-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 40px;
}

.post-entry-content h2,
.post-entry-content h3,
.post-entry-content h4 {
    color: #2c3e50;
    margin: 30px 0 20px;
    font-weight: 600;
}

.post-entry-content h2 {
    font-size: 1.8rem;
    border-bottom: 3px solid #667eea;
    padding-bottom: 10px;
}

.post-entry-content h3 {
    font-size: 1.5rem;
}

.post-entry-content h4 {
    font-size: 1.3rem;
}

.post-entry-content p {
    margin-bottom: 20px;
}

.post-entry-content blockquote {
    background: #f8f9fa;
    border-left: 4px solid #667eea;
    padding: 20px 30px;
    margin: 30px 0;
    font-style: italic;
    border-radius: 0 10px 10px 0;
}

.post-entry-content ul,
.post-entry-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.post-entry-content li {
    margin-bottom: 10px;
}

.post-entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Post Tags */
.post-tags {
    padding: 30px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    margin-bottom: 40px;
}

.post-tags h4 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tags-list a {
    background: #f8f9fa;
    color: #667eea;
    padding: 8px 15px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.tags-list a:hover {
    background: #667eea;
    color: white;
}

/* Share Buttons */
.post-share-section {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 40px;
}

.post-share-section h4 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.share-buttons a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    color: white;
}

.share-facebook { background: #3b5998; }
.share-twitter { background: #1da1f2; }
.share-linkedin { background: #0077b5; }
.share-whatsapp { background: #25d366; }
.share-email { background: #34495e; }

.share-buttons a:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Author Bio */
.author-bio-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 40px;
}

.author-bio-content {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.author-avatar {
    flex-shrink: 0;
}

.author-avatar img {
    border-radius: 50%;
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.author-info h4 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.author-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.author-links a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s ease;
}

.author-links a:hover {
    color: #764ba2;
}

/* Post Navigation */
.post-navigation {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 40px;
}

.post-nav-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.nav-previous,
.nav-next {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.nav-previous:hover,
.nav-next:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.nav-previous a,
.nav-next a {
    display: block;
    padding: 20px;
    text-decoration: none;
    color: #333;
}

.nav-direction {
    font-size: 0.9rem;
    color: #667eea;
    font-weight: 500;
    margin-bottom: 8px;
}

.nav-title {
    font-weight: 600;
    line-height: 1.4;
}

.nav-next {
    text-align: right;
}

/* Post Sidebar */
.post-sidebar {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    height: fit-content;
    position: sticky;
    top: 100px;
}

/* Related Posts Widget */
.related-posts-widget .related-posts-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.related-post-item {
    display: block;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.related-post-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.related-post-item a {
    display: flex;
    gap: 15px;
    text-decoration: none;
    color: #333;
}

.related-post-thumb {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
}

.related-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-post-content h4 {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 5px;
    color: #2c3e50;
}

.related-post-date {
    font-size: 0.8rem;
    color: #666;
}

/* Newsletter Widget */
.newsletter-widget {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 30px !important;
    border-radius: 15px;
    text-align: center;
}

.newsletter-widget .widget-title {
    color: white !important;
    margin-bottom: 15px;
}

.newsletter-widget p {
    margin-bottom: 20px;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.newsletter-form input {
    padding: 12px 15px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
}

.newsletter-form button {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.newsletter-form button:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

/* ================================
   MONSTROID² STYLE HEADER
   ================================ */
.castheme-header {
    background: transparent;
    color: #fff;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: none;
    transition: all 0.3s ease;
}

/* Header background for non-homepage pages */
body:not(.home) .castheme-header {
    background: #ffffff;
    color: #333;
    box-shadow: 0 2px 16px rgba(0,0,0,0.1);
}

body:not(.home) .castheme-header .castheme-logo a,
body:not(.home) .castheme-header .castheme-main-nav a {
    color: #333;
}

body:not(.home) .castheme-header .btn-header-cart {
    color: #333;
}

body:not(.home) .castheme-header .castheme-hamburger svg {
    color: #333;
}

body:not(.home) {
    padding-top: 80px !important; /* Adjust padding for fixed header */
}
/* Header scroll effect - white background when 50% scrolled */
.castheme-header.scrolled {
    background: #ffffff;
    color: #333;
    box-shadow: 0 2px 16px rgba(0,0,0,0.1);
}

.castheme-header.scrolled .castheme-logo a,
.castheme-header.scrolled .castheme-main-nav a {
    color: #333;
}
.castheme-header.scrolled .castheme-logo img,
body:not(.home) .castheme-header .castheme-logo img {
    filter: invert(1); /* Adjust logo for dark background */

}
.castheme-header.scrolled .btn-header-cart {
    color: #333;
}

.castheme-header.scrolled .castheme-hamburger svg {
    color: #333;
}

.castheme-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 80px;
    gap: 32px;
}


.castheme-logo {
    flex-shrink: 0;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -1px;
}

.castheme-logo a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.castheme-logo img {
    max-height: 48px;
    width: auto;
    display: block;
}
.site-title {
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -1px;
    text-decoration: none;
    transition: color 0.3s ease;
}
.castheme-main-nav {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.castheme-menu {
     display: flex;
    gap: 36px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.castheme-menu > li {
    position: relative;
}
.castheme-menu > li > a {
    color: #fff;
    font-size: 1.08rem;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
    padding: 8px 0;
    text-decoration: none;
    transition: color 0.2s;
    letter-spacing: 0.01em;
}
.castheme-menu > li > a:hover,
.castheme-menu > li.current-menu-item > a {
    color: #00e6d0;
}
.castheme-menu li.menu-item-has-children > a:after {
    content: '\25BC';
    font-size: 0.7em;
    margin-left: 7px;
    opacity: 0.7;
}
.castheme-menu li ul {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    background: #232733;
    min-width: 180px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    border-radius: 0 0 8px 8px;
    z-index: 10;
    padding: 10px 0;
}
.castheme-menu li:hover > ul,
.castheme-menu li:focus-within > ul {
    display: block;
}
.castheme-menu li ul li a {
    color: #fff;
    padding: 10px 24px;
    display: block;
    font-size: 1rem;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}
.castheme-menu li ul li a:hover {
    background: #00e6d0;
    color: #181c23;
}
.castheme-header-btn {
    margin-left: 24px;
}
.btn-header-demo {
    background: #00e6d0;
    color: #181c23;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(0,230,208,0.08);
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    display: inline-block;
}
.btn-header-demo:hover {
    background: #fff;
    color: #00e6d0;
    box-shadow: 0 4px 16px rgba(0,230,208,0.18);
}
.casheader-buttons {
    display: flex;
    align-items: center;
}

/* Header Cart Button */
.castheme-header-cart {
    margin-right: 15px;
}

.btn-header-cart {
    color: #fff;
    text-decoration: none;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.btn-header-cart:hover {
    background: rgba(255,255,255,0.1);
}

.cart-count {
    background: #ff6b35;
    color: #fff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

/* Hamburger */
.castheme-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 40px;
    cursor: pointer;
    z-index: 1100;
    margin-left: 15px;
    background-color: rgba(255,255,255,0.1);
    padding: 0;
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
} 

.castheme-hamburger:hover {
    background-color: rgba(255,255,255,0.2);
}

.castheme-hamburger svg {
    color: #fff;
    transition: color 0.3s ease;
}

/* Mobile Menu */
.castheme-mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(24,28,35,0.98);
    z-index: 2000;
    transition: opacity 0.3s;
    opacity: 0;
    pointer-events: none;
}
.castheme-mobile-menu.active {
    display: block;
    opacity: 1;
        pointer-events: auto;
}
.castheme-mobile-menu-inner {
    padding: 60px 24px 24px 24px;
    max-width: 400px;
    margin: 0 auto;
}
.castheme-mobile-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.castheme-mobile-menu-list li a {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 500;
    text-decoration: none;
    padding: 12px 0;
    display: block;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    transition: color 0.2s;
}
.castheme-mobile-menu-list li a:hover {
    color: #00e6d0;
}
.castheme-mobile-menu-close {
		position: absolute;
		top: 1.1rem;
		right: 1.1rem;
		background: none;
		border: none;
		font-size: 2rem;
		color: #888;
		cursor: pointer;
		z-index: 10;
		transition: color 0.2s;
	}
	.castheme-mobile-menu-close:hover {
		color: #222;
	}

/* Hide body scroll when cart open */
body.offcanvas-cart-open {
	overflow: hidden;
}

/* === Offcanvas Cart === */
.castheme-offcanvas-cart {
	position: fixed;
	top: 0;
	right: 0;
	width: 100vw;
	height: 100vh;
	z-index: 9999;
	pointer-events: none;
	transition: background 0.3s;
}
.castheme-offcanvas-cart.active {
	pointer-events: auto;
}
.offcanvas-cart-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background: rgba(0,0,0,0.25);
	transition: opacity 0.3s;
	opacity: 0;
	z-index: 1;
}
.castheme-offcanvas-cart.active .offcanvas-cart-overlay {
	opacity: 1;
}
.offcanvas-cart-panel {
	position: absolute;
	top: 0;
	right: 0;
	width: 370px;
	max-width: 95vw;
	height: 100vh;
	background: #fff;
	box-shadow: -2px 0 16px rgba(0,0,0,0.10);
	transform: translateX(100%);
	transition: transform 0.35s cubic-bezier(.77,0,.18,1);
	z-index: 2;
	display: flex;
	flex-direction: column;
}
.castheme-offcanvas-cart.active .offcanvas-cart-panel {
	transform: translateX(0);
}
.offcanvas-cart-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1.2rem 1.5rem 1rem 1.5rem;
	border-bottom: 1px solid #eee;
}
.offcanvas-cart-title {
	font-size: 1.2rem;
	font-weight: 600;
	color: #222;
}
.offcanvas-cart-close {
	background: none;
	border: none;
	font-size: 2rem;
	color: #888;
	cursor: pointer;
	line-height: 1;
	transition: color 0.2s;
}
.offcanvas-cart-close:hover {
	color: #222;
}
.offcanvas-cart-content {
	flex: 1 1 auto;
	padding: 1.2rem 1.5rem;
	overflow-y: auto;
}

/* Enhanced Offcanvas Cart Mini Cart Styles */
.offcanvas-cart-content .woocommerce-mini-cart {
	margin: 0;
	padding: 0;
	list-style: none;
}

.offcanvas-cart-content .woocommerce-mini-cart-item {
	display: flex;
	align-items: flex-start;
	padding: 15px 0;
	border-bottom: 1px solid #eee;
	position: relative;
	transition: all 0.3s ease;
}

.offcanvas-cart-content .woocommerce-mini-cart-item:last-child {
	border-bottom: none;
}

.offcanvas-cart-content .woocommerce-mini-cart-item .item-image {
	flex-shrink: 0;
	margin-right: 12px;
}

.offcanvas-cart-content .woocommerce-mini-cart-item .item-image img {
	width: 60px;
	height: 60px;
	object-fit: cover;
	border-radius: 8px;
}

.offcanvas-cart-content .woocommerce-mini-cart-item .item-details {
	flex: 1;
	min-width: 0;
}

.offcanvas-cart-content .woocommerce-mini-cart-item .product-name {
	text-decoration: none;
	color: #333;
	font-weight: 500;
	font-size: 14px;
	line-height: 1.4;
	display: block;
	margin-bottom: 4px;
}

.offcanvas-cart-content .woocommerce-mini-cart-item .product-name:hover {
	color: #ff6b35;
}

.offcanvas-cart-content .woocommerce-mini-cart-item .quantity-price {
	font-size: 13px;
	color: #666;
}

.offcanvas-cart-content .woocommerce-mini-cart-item .quantity-price .amount {
	font-weight: 600;
	color: #ff6b35;
	font-size: 14px;
}

.offcanvas-cart-content .remove_from_cart_button {
	position: absolute;
	top: 50%;
	right: 0;
	transform: translateY(-50%);
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: #f5f5f5;
	border: none;
	color: #999;
	font-size: 16px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
	text-decoration: none !important;
}

.offcanvas-cart-content .remove_from_cart_button:hover {
	background: #ff4444;
	color: #fff;
	transform: translateY(-50%) scale(1.1);
}

.offcanvas-cart-content .remove_from_cart_button:before {
	content: "×";
	font-size: 18px;
	line-height: 1;
}

.offcanvas-cart-content .woocommerce-mini-cart__total {
	padding: 20px 0;
	border-top: 2px solid #eee;
	margin-top: 15px;
	font-size: 16px;
	font-weight: 600;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.offcanvas-cart-content .woocommerce-mini-cart__total .amount {
	color: #ff6b35;
	font-size: 18px;
}

.offcanvas-cart-content .woocommerce-mini-cart__buttons {
	padding: 15px 0 0;
	display: flex;
	gap: 10px;
	flex-direction: column;
}

.offcanvas-cart-content .woocommerce-mini-cart__buttons a {
	display: block;
	text-align: center;
	padding: 12px 20px;
	border-radius: 8px;
	text-decoration: none;
	font-weight: 600;
	font-size: 14px;
	transition: all 0.3s ease;
}

.offcanvas-cart-content .woocommerce-mini-cart__buttons .button.wc-forward {
	background: #ff6b35;
	color: #fff;
	border: 2px solid #ff6b35;
}

.offcanvas-cart-content .woocommerce-mini-cart__buttons .button.wc-forward:hover {
	background: transparent;
	color: #ff6b35;
}

.offcanvas-cart-content .woocommerce-mini-cart__buttons .button.checkout {
	background: #333;
	color: #fff;
	border: 2px solid #333;
}

.offcanvas-cart-content .woocommerce-mini-cart__buttons .button.checkout:hover {
	background: transparent;
	color: #333;
}

.offcanvas-cart-content .woocommerce-mini-cart-item.loading {
	opacity: 0.5;
	pointer-events: none;
}

.offcanvas-cart-content .empty-cart {
	text-align: center;
	padding: 40px 20px;
	color: #666;
}

.offcanvas-cart-content .empty-cart i {
	font-size: 48px;
	color: #ddd;
	margin-bottom: 15px;
	display: block;
}

.offcanvas-cart-content .empty-cart .button {
	background: #ff6b35;
	color: #fff;
	border: 2px solid #ff6b35;
	padding: 12px 24px;
	border-radius: 8px;
	text-decoration: none;
	font-weight: 600;
	display: inline-block;
	margin-top: 15px;
	transition: all 0.3s ease;
}

.offcanvas-cart-content .empty-cart .button:hover {
	background: transparent;
	color: #ff6b35;
}

/* Responsive adjustments for offcanvas cart */
@media (max-width: 480px) {
	.offcanvas-cart-panel {
		width: 100%;
	}
	
	.offcanvas-cart-content .woocommerce-mini-cart-item img {
		width: 50px;
		height: 50px;
	}
	
	.offcanvas-cart-content .woocommerce-mini-cart__buttons {
		gap: 8px;
	}
}
.storefront-breadcrumb {
    padding: 5px 0px;
    margin: 0 !important;
} 


@media (max-width: 768px) {
.castheme-header.menu-md .castheme-main-nav {
    display: none;

}
.castheme-header.menu-md .casheader-buttons .castheme-hamburger {
    display: flex !important;;
}
}
@media (max-width: 992px) {
.castheme-header.menu-lg .castheme-main-nav {
    display: none;
}
.castheme-header.menu-lg .casheader-buttons .castheme-hamburger {
    display: flex !important;
}
}
/* === WooCommerce Cart Page Styles === */
.castheme-cart-wrapper {
	padding: 2rem 0;
	background: #f8f9fa;
	min-height: 60vh;
}
.cart-title {
	text-align: center;
	margin-bottom: 2rem;
	color: #222;
	font-size: 2.5rem;
	font-weight: 700;
}
.woocommerce-cart-form {
	background: #fff;
	padding: 2rem;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.08);
	margin-bottom: 2rem;
}
.shop_table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 2rem;
}
.shop_table th, .shop_table td {
	padding: 1rem;
	text-align: left;
	border-bottom: 1px solid #eee;
	vertical-align: middle;
}
.shop_table th {
	background: #f8f9fa;
	font-weight: 600;
	color: #555;
}
.product-thumbnail img {
	width: 80px;
	height: 80px;
	object-fit: cover;
	border-radius: 4px;
}
.product-remove a {
	color: #dc3545;
	font-size: 1.5rem;
	text-decoration: none;
	padding: 0.5rem;
	border-radius: 4px;
	transition: background 0.2s;
}
.product-remove a:hover {
	background: #f8d7da;
}
.cart-collaterals {
	background: #fff;
	padding: 2rem;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.cart_totals h2 {
	margin-bottom: 1.5rem;
	color: #222;
}
.cart_totals table {
	width: 100%;
}
.cart_totals th, .cart_totals td {
	padding: 0.8rem 1rem;
	border-bottom: 1px solid #eee;
}
.cart_totals .order-total {
	font-weight: 700;
	font-size: 1.2rem;
	background: #f8f9fa;
}
.wc-proceed-to-checkout .checkout-button {
	background: #8bc34a;
	color: #fff;
	padding: 1rem 2rem;
	border: none;
	border-radius: 2rem;
	font-size: 1.1rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s;
	text-decoration: none;
	display: inline-block;
	margin-top: 1rem;
}
.wc-proceed-to-checkout .checkout-button:hover {
	background: #689f38;
}
@media (max-width: 768px) {
	.shop_table, .shop_table thead, .shop_table tbody, .shop_table th, .shop_table td, .shop_table tr {
		display: block;
	}
	.shop_table thead tr {
		position: absolute;
		top: -9999px;
		left: -9999px;
	}
	.shop_table tr {
		margin-bottom: 1rem;
		border: 1px solid #ddd;
		border-radius: 8px;
		padding: 1rem;
	}
	.shop_table td {
		border: none;
		position: relative;
		padding-left: 50%;
	}
	.shop_table td:before {
		content: attr(data-title) ": ";
		position: absolute;
		left: 0;
		width: 45%;
		padding-left: 1rem;
		white-space: nowrap;
		font-weight: 600;
	}
}

/* ========================================
   FIX WOOCOMMERCE TABS SCROLL ISSUE
======================================== */

/* Prevent smooth scroll behavior that causes auto-scroll */
.woocommerce-tabs,
.wc-tabs-wrapper,
.woocommerce-tabs .panel {
    scroll-behavior: auto !important;
}

/* Ensure tabs don't jump during initialization */
.woocommerce-tabs {
    position: relative;
}

.woocommerce-tabs .wc-tab {
    scroll-margin-top: 0 !important;
    scroll-snap-align: none !important;
}

/* Override any smooth scrolling from WooCommerce */
html {
    scroll-behavior: auto !important;
}

body.single-product {
    scroll-behavior: auto !important;
}

/* ========================================
   SHOP LAYOUT WITH CATEGORY SIDEBAR
======================================== */

/* Mobile Category Toggle Button */
.mobile-category-toggle {
    display: none;
    margin-bottom: 20px;
}

.btn-category-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-category-toggle:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* Shop Layout Container */
.shop-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

/* Category Sidebar */
.shop-sidebar {
    width: 280px;
    flex-shrink: 0;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-header h3 {
    margin: 0;
    color: var(--primary-color);
    font-size: 1.3rem;
    font-weight: 700;
}

.sidebar-close {
    display: none;
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #666;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.sidebar-close:hover {
    background: #f0f0f0;
    color: var(--primary-color);
}

/* Category Menu */
.category-menu {
    padding: 0;
}

.category-item {
    border-bottom: 1px solid #f5f5f5;
}

.category-item:last-child {
    border-bottom: none;
}

.category-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.category-link:hover {
    background: #f8f9fa;
    color: var(--primary-color);
    transform: translateX(5px);
}

.category-item.active > .category-link {
    background: var(--primary-color);
    color: white;
}

.category-item.active > .category-link:hover {
    background: var(--secondary-color);
    transform: translateX(0);
}

.category-link i {
    font-size: 1rem;
    width: 16px;
    text-align: center;
}

.category-link .product-count {
    margin-left: auto;
    font-size: 0.85rem;
    color: #666;
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: 12px;
}

.category-item.active > .category-link .product-count {
    background: rgba(255,255,255,0.2);
    color: white;
}

.toggle-icon {
    margin-left: auto;
    transition: transform 0.3s ease;
}

.category-item.active .toggle-icon {
    transform: rotate(180deg);
}

/* Subcategory Menu */
.subcategory-menu {
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    display: none;
}

.subcategory-menu.open {
    display: block;
}

.subcategory-item {
    border-bottom: 1px solid #e9ecef;
}

.subcategory-item:last-child {
    border-bottom: none;
}

.subcategory-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px 12px 45px;
    color: #555;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.subcategory-link:hover {
    background: #e9ecef;
    color: var(--primary-color);
    transform: translateX(5px);
}

.subcategory-item.active .subcategory-link {
    background: var(--primary-color);
    color: white;
}

.subcategory-item.active .subcategory-link:hover {
    background: var(--secondary-color);
    transform: translateX(0);
}

.subcategory-link .product-count {
    margin-left: auto;
    font-size: 0.8rem;
    color: #777;
    background: #e9ecef;
    padding: 1px 6px;
    border-radius: 10px;
}

.subcategory-item.active .subcategory-link .product-count {
    background: rgba(255,255,255,0.2);
    color: white;
}

/* Main Products Area */
.shop-main-content {
    flex: 1;
    min-width: 0;
}
select.orderby {
    border: 1px solid #ddd;
    padding: 5px;
    border-radius: 4px;
}
/* Mobile Responsive */
@media (max-width: 768px) {
    .mobile-category-toggle {
        display: block;
    }
    
    .shop-layout {
        flex-direction: column;
        gap: 0;
    }
    .castheme-shop-toolbar {
      margin-bottom: 10px;
    }
    .castheme-shop-toolbar form.woocommerce-ordering,p.woocommerce-result-count {
margin-bottom: 5px;
}
    .shop-sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 320px;
        height: 100vh;
        z-index: 9999;
        max-height: none;
        border-radius: 0;
        transition: left 0.3s ease;
        box-shadow: 0 0 50px rgba(0,0,0,0.3);
    }
    
    .shop-sidebar.sidebar-open {
        left: 0;
    }
    
    .sidebar-close {
        display: block;
    }
    
    .sidebar-header {
        padding: 20px;
        background: var(--primary-color);
        color: white;
    }
    
    .sidebar-header h3 {
        color: white;
    }
    
    .sidebar-close {
        color: white;
    }
    
    .sidebar-close:hover {
        background: rgba(255,255,255,0.1);
        color: white;
    }
    
    /* Sidebar Overlay */
    body.sidebar-overlay-active::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0,0,0,0.5);
        z-index: 9998;
    }
    
    body.sidebar-overlay-active {
        overflow: hidden;
    }
}

/* ========================================
   SHOP BRANDS SWIPER SECTION
======================================== */

.castheme-shop-brands {
    padding: 60px 0;
    background: #f8f9fa;
    margin-top: 40px;
}

/* Brands Swiper Container */
.brands-swiper {
    position: relative;
    padding: 20px 0 50px;
    margin-top: 40px;
}

.brands-swiper .swiper-wrapper {
    align-items: stretch;
}

.brands-swiper .swiper-slide {
    height: auto;
    display: flex;
}

.shop-brand-item {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    overflow: hidden;
    text-align: center;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.shop-brand-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.shop-brand-item a {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

/* Brand with image */
.brand-image {
    padding: 30px 20px 20px;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fafafa;
    flex: 1;
}

.brand-image img {
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.shop-brand-item:hover .brand-image img {
    transform: scale(1.1);
}

/* Brand name only (no image) */
.brand-name-only {
    padding: 40px 20px;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    position: relative;
    flex: 1;
}

.brand-name-only::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="brandPattern" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23brandPattern)"/></svg>');
    opacity: 0.3;
}

.brand-name-only h4 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Brand info */
.brand-info {
    padding: 20px;
    border-top: 1px solid #f0f0f0;
}

.brand-info h5 {
    margin: 0 0 8px 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
}

.brand-info .product-count {
    font-size: 0.9rem;
    color: #666;
    background: #f0f0f0;
    padding: 4px 12px;
    border-radius: 15px;
    display: inline-block;
}

.shop-brand-item:hover .brand-info .product-count {
    background: var(--primary-color);
    color: white;
}

/* Swiper Navigation Buttons for Brands */
.brands-swiper .swiper-button-next,
.brands-swiper .swiper-button-prev {
    color: var(--primary-color);
    background: rgba(255, 255, 255, 0.9);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin-top: -22px;
}

.brands-swiper .swiper-button-next::after,
.brands-swiper .swiper-button-prev::after {
    font-size: 18px;
    font-weight: 700;
}

.brands-swiper .swiper-button-next:hover,
.brands-swiper .swiper-button-prev:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Swiper Pagination for Brands */
.brands-swiper .swiper-pagination {
    bottom: 10px;
}

.brands-swiper .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: rgba(0, 0, 0, 0.3);
    opacity: 1;
    transition: all 0.3s ease;
}

.brands-swiper .swiper-pagination-bullet-active {
    background: var(--primary-color);
    transform: scale(1.3);
}

/* Responsive design for brands swiper */
@media (max-width: 768px) {
    .castheme-shop-brands {
        padding: 40px 0;
    }
    
    .brands-swiper {
        padding: 20px 0 40px;
        margin-top: 30px;
    }
    
    .brands-swiper .swiper-button-next,
    .brands-swiper .swiper-button-prev {
        width: 36px;
        height: 36px;
        margin-top: -18px;
    }
    
    .brands-swiper .swiper-button-next::after,
    .brands-swiper .swiper-button-prev::after {
        font-size: 14px;
    }
    
    .brand-image {
        padding: 20px 15px 15px;
        min-height: 100px;
    }
    
    .brand-image img {
        max-height: 60px;
    }
    
    .brand-name-only {
        padding: 30px 15px;
        min-height: 100px;
    }
    
    .brand-name-only h4 {
        font-size: 1.1rem;
    }
    
    .brand-info {
        padding: 15px;
    }
    
    .brand-info h5 {
        font-size: 1rem;
    }
}

/* ========================================
   WOOCOMMERCE TABS REDESIGN - HORIZONTAL LAYOUT
======================================== */

/* Main tabs container */
.woocommerce-tabs {
    margin-top: 40px;
    position: relative;
}

/* Horizontal tab navigation - positioned above content */
.woocommerce-tabs .wc-tabs {
    display: flex !important;
    flex-direction: row !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border-bottom: 2px solid #f0f0f0;
    background: transparent;
    position: relative;
    z-index: 10;
}

.woocommerce-tabs .wc-tabs li {
    flex: 1;
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
    border: none !important;
    display: flex;
}

.woocommerce-tabs .wc-tabs li a {
    display: block !important;
    width: 100%;
    padding: 15px 20px !important;
    text-align: center;
    color: #666 !important;
    text-decoration: none !important;
    background: #f8f8f8 !important;
    border: 1px solid #e0e0e0 !important;
    border-bottom: none !important;
    margin-right: 2px;
    transition: all 0.3s ease;
    font-weight: 600;
    border-radius: 8px 8px 0 0;
}

.woocommerce-tabs .wc-tabs li:last-child a {
    margin-right: 0;
}

.woocommerce-tabs .wc-tabs li a:hover {
    background: #e8e8e8 !important;
    color: var(--primary-color) !important;
    transform: translateY(-2px);
}

.woocommerce-tabs .wc-tabs li.active a {
    background: #ffffff !important;
    color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    border-bottom: 2px solid #ffffff !important;
    position: relative;
    z-index: 5;
}

/* Tab panels container */
.woocommerce-tabs .panel {
    display: none !important;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-top: none;
    padding: 30px !important;
    margin-top: 0 !important;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.woocommerce-tabs .panel.active,
.woocommerce-tabs .panel:target {
    display: block !important;
}

/* Tab content styling */
.woocommerce-tabs .panel h2 {
    margin-top: 0 !important;
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.woocommerce-tabs .panel p {
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Reviews specific styling */
.woocommerce-tabs #tab-reviews .commentlist {
    margin-top: 20px;
}

.woocommerce-tabs #tab-reviews .comment {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid var(--primary-color);
}

/* Additional information table styling */
.woocommerce-tabs #tab-additional_information table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.woocommerce-tabs #tab-additional_information table th,
.woocommerce-tabs #tab-additional_information table td {
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    text-align: left;
}

.woocommerce-tabs #tab-additional_information table th {
    background: #f8f8f8;
    font-weight: 600;
    color: var(--primary-color);
}

.woocommerce-tabs #tab-additional_information table tr:nth-child(even) {
    background: #f9f9f9;
}

/* Responsive design for tabs */
@media (max-width: 768px) {
    .woocommerce-tabs .wc-tabs {
        flex-direction: column !important;
    }
    
    .woocommerce-tabs .wc-tabs li {
        flex: none;
    }
    
    .woocommerce-tabs .wc-tabs li a {
        margin-right: 0;
        margin-bottom: 2px;
        border-radius: 8px;
        border: 1px solid #e0e0e0 !important;
    }
    
    .woocommerce-tabs .wc-tabs li.active a {
        border: 2px solid var(--primary-color) !important;
    }
    
    .woocommerce-tabs .panel {
        border-radius: 8px;
        border-top: 1px solid #e0e0e0;
        margin-top: 10px;
    }
}

/* === CATEGORIES SECTION === */
.categories-section {
    padding: 80px 0;
    background: #fff;
}

.categories-section h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    position: relative;
}

.categories-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(45deg, #ff6b35, #f7931e);
}

.categories-swiper {
    padding: 20px 0;
}

.categories-item {
    background: #fff;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    height: 280px;
    display: flex;
    flex-direction: column;
}

.categories-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.categories-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.categories-content {
    padding: 20px 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.categories-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px 0;
}

.categories-item .product-count {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

.categories-pagination {
    margin-top: 30px;
    text-align: center;
}

.categories-pagination .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: #ccc;
    opacity: 1;
    margin: 0 5px;
}

.categories-pagination .swiper-pagination-bullet-active {
    background: #ff6b35;
}

.categories-button-next,
.categories-button-prev {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.categories-button-next:hover,
.categories-button-prev:hover {
    background: #ff6b35;
    color: #fff;
}

.categories-button-next {
    right: -25px;
}

.categories-button-prev {
    left: -25px;
}

/* Homepage Categories and Brands Sections */
.castheme-home-categories,
.castheme-home-brands {
    padding: 80px 0;
    background: #f8f9fa;
}

.castheme-home-categories:nth-child(even),
.castheme-home-brands:nth-child(even) {
    background: #fff;
}

.home-category-item,
.home-brand-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.home-category-item:hover,
.home-brand-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.home-category-item a,
.home-brand-item a {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.home-category-item .category-image,
.home-brand-item .brand-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.home-category-item .category-image img,
.home-brand-item .brand-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.home-category-item:hover .category-image img,
.home-brand-item:hover .brand-image img {
    transform: scale(1.05);
}

.home-category-item .category-info,
.home-brand-item .brand-info {
    padding: 20px;
    text-align: center;
}

.home-category-item .category-info h3,
.home-brand-item .brand-info h5 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.home-category-item .category-info .product-count,
.home-brand-item .brand-info .product-count {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.home-brand-item .brand-name-only {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: #fff;
}

.home-brand-item .brand-name-only h4 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    text-align: center;
}

/* FAQ Page Header Styles */

.castheme-page-content {
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.95;
    margin-top: 20px;
}

.castheme-page-content p {
    margin-bottom: 15px;
}

.castheme-page-content p:last-child {
    margin-bottom: 0;
}


/* Responsive styles for homepage sliders */
@media (max-width: 768px) {
    .castheme-home-categories,
    .castheme-home-brands {
        padding: 50px 0;
    }
    
    .home-category-item .category-image,
    .home-brand-item .brand-image {
        height: 160px;
    }
    
    .home-category-item .category-info,
    .home-brand-item .brand-info {
        padding: 15px;
    }
}

/* FAQ Page Styles */
.castheme-faq-wrapper {
    background-color: #f8f9fa;
    min-height: 100vh;
}

.castheme-page-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #34495e 100%);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.page-hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.castheme-page-content {
    background: var(--white);
    padding: 40px;
 
}
.mt-0 {
    margin-top: 0 !important;
}
.mb-0 {
    margin-bottom: 0 !important;
}
.ml-0 {
    margin-left: 0 !important;
}
.mr-0 {
    margin-right: 0 !important;
}
.mb-1 {
    margin-bottom: 1rem !important;
}
.mt-1 {
    margin-top: 1rem !important;
}
.ml-1 {
    margin-left: 1rem !important;
}
.mr-1 {
    margin-right: 1rem !important;
}
.mb-2 {
    margin-bottom: 2rem !important;
}
.mt-2 {
    margin-top: 2rem !important;
}
.ml-2 {
    margin-left: 2rem !important;
}
.mr-2 {
    margin-right: 2rem !important;
}
.mb-3 {
    margin-bottom: 3rem !important;
}
.mt-3 {
    margin-top: 3rem !important;
}
.ml-3 {
    margin-left: 3rem !important;
}
.mr-3 {
    margin-right: 3rem !important;
}
.mb-4 {
    margin-bottom: 4rem !important;
}
.mt-4 {
    margin-top: 4rem!important;
}
.ml-4 {
    margin-left: 4rem !important;
}
.mr-4 {
    margin-right: 4rem !important;
}
.mb-5 {
    margin-bottom: 5rem !important;
}
.mt-5 {
    margin-top: 5rem!important;
}
.ml-5 {
    margin-left: 5rem !important;
}
.mr-5 {
    margin-right: 5rem !important;
}


.castheme-page-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #666;
    margin-bottom: 15px;
}

/* FAQ Controls */
.faq-controls {
    background: var(--white);
    padding: 30px;
    margin-bottom: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.faq-search {
    position: relative;
    margin-bottom: 25px;
}

.faq-search input {
    width: 100%;
    padding: 15px 50px 15px 20px;
    border: 2px solid #e9ecef;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.faq-search input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.1);
}

.faq-search i {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    font-size: 1.1rem;
}

.faq-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.filter-btn {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    color: #495057;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.filter-btn:hover {
    background: #e9ecef;
    border-color: #dee2e6;
}

.filter-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.filter-btn i {
    margin-right: 8px;
}

.faq-actions {
    display: flex;
    gap: 15px;
}

.action-btn {
    background: var(--secondary-color);
    border: none;
    color: var(--white);
    padding: 12px 24px;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.action-btn:hover {
    background: #c0392b;
    transform: translateY(-2px);
}

.action-btn i {
    margin-right: 8px;
}

/* FAQ Accordion */
.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.faq-question {
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--white);
    transition: all 0.3s ease;
    border-bottom: 1px solid #f8f9fa;
}

.faq-question:hover {
    background: #f8f9fa;
}

.faq-item.active .faq-question {
    background: var(--primary-color);
    color: var(--white);
    border-bottom-color: var(--primary-color);
}

.question-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
    flex: 1;
    padding-right: 20px;
}

.faq-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background: #f8f9fa;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.faq-item.active .faq-toggle {
    background: rgba(255,255,255,0.2);
    color: var(--white);
}

.faq-toggle i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.answer-content {
    padding: 25px;
    background: #f8f9fa;
    color: #495057;
    line-height: 1.6;
}

.answer-content p {
    margin-bottom: 15px;
}

.answer-content p:last-child {
    margin-bottom: 0;
}

/* No results and No FAQ */
.no-results,
.no-faq-found {
    text-align: center;
    padding: 60px 20px;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.no-results-content,
.no-faq-content {
    max-width: 400px;
    margin: 0 auto;
}

.no-results-content i,
.no-faq-content i {
    font-size: 3rem;
    color: #dee2e6;
    margin-bottom: 20px;
}

.no-results-content h3,
.no-faq-content h3 {
    color: #495057;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.no-results-content p {
    color: #6c757d;
    margin: 0;
}

/* Responsive FAQ Styles */
@media (max-width: 768px) {
    .castheme-page-hero {
        padding: 40px 0;
    }
    
    .page-hero-title {
        font-size: 2rem;
    }
    
    .castheme-page-content {
        padding: 25px;
        margin: 25px 0;
    }
    
    .faq-controls {
        padding: 20px;
    }
    
    .faq-filters {
        flex-direction: column;
    }
    
    .filter-btn {
        text-align: center;
    }
    
    .faq-actions {
        flex-direction: column;
    }
    
    .faq-question {
        padding: 15px 20px;
    }
    
    .question-title {
        font-size: 1rem;
        padding-right: 15px;
    }
    
    .answer-content {
        padding: 20px;
    }
}

/* Bootstrap-style Grid System for 404 Page */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.col-md-4 {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
}

.col-md-6 {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    flex: 0 0 50%;
    max-width: 50%;
}

/* Responsive Grid */
@media (max-width: 768px) {
    .col-md-4,
    .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 20px;
    }
    
    .row {
        margin-right: -10px;
        margin-left: -10px;
    }
    
    .col-md-4,
    .col-md-6 {
        padding-right: 10px;
        padding-left: 10px;
    }
}

/* 404 Page Styles */
.castheme-404-wrapper {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
}

/* 404 Hero Section */
.castheme-404-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #34495e 100%);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.castheme-404-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.error-404-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 0 auto;
}

.error-404-animation {
    margin-bottom: 30px;
}

.error-number {
    font-size: 8rem;
    font-weight: 900;
    color: var(--white);
    line-height: 1;
    text-shadow: 0 4px 8px rgba(0,0,0,0.3);
    transform: scale(0.8);
    transition: transform 0.6s ease;
}

.error-number.animate {
    transform: scale(1);
}

.error-icon {
    font-size: 3rem;
    color: rgba(255,255,255,0.8);
    margin-top: 20px;
    transform: translateY(10px);
    transition: transform 0.4s ease;
}

.error-icon.bounce {
    animation: bounce 2s ease infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.error-404-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--white);
}

.error-404-description {
    font-size: 1.2rem;
    opacity: 0.9;
    margin: 0;
    line-height: 1.6;
}

/* 404 Content Section */
.castheme-404-content {
    padding: 80px 0;
}

.error-404-section {
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    height: 100%;
    transition: transform 0.3s ease;
    margin-bottom: 30px;
}

.error-404-section:hover {
    transform: translateY(-5px);
}

.section-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), #34495e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: var(--white);
    font-size: 2rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.section-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 25px;
}

/* 404 Search */
.error-404-search {
    position: relative;
}

.error-404-search .search-form {
    display: flex;
    max-width: 400px;
    margin: 0 auto;
}

.error-404-search input[type="search"] {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid #e9ecef;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.error-404-search input[type="search"]:focus {
    outline: none;
    border-color: var(--primary-color);
}

.error-404-search button,
.error-404-search input[type="submit"] {
    background: var(--primary-color);
    color: var(--white);
    border: 2px solid var(--primary-color);
    padding: 15px 25px;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.error-404-search button:hover,
.error-404-search input[type="submit"]:hover {
    background: #1a252f;
}

/* 404 Buttons */
.error-404-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-404 {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    gap: 8px;
}

.btn-404.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-404.btn-primary:hover {
    background: #1a252f;
    transform: translateY(-2px);
    color: var(--white);
}

.btn-404.btn-secondary {
    background: #6c757d;
    color: var(--white);
}

.btn-404.btn-secondary:hover {
    background: #545b62;
    transform: translateY(-2px);
    color: var(--white);
}

/* Popular Content */
.error-404-popular {
    margin-top: 60px;
    text-align: center;
}

.popular-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.popular-title i {
    color: var(--secondary-color);
}

.popular-item {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: transform 0.3s ease;
    height: 100%;
    margin-bottom: 30px;
}

.popular-item:hover {
    transform: translateY(-5px);
}

.popular-image {
    height: 200px;
    overflow: hidden;
}

.popular-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.popular-item:hover .popular-image img {
    transform: scale(1.05);
}

.popular-content {
    padding: 25px;
    text-align: left;
}

.popular-item-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.popular-item-title a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.popular-item-title a:hover {
    color: var(--secondary-color);
}

.popular-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.popular-price {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.popular-price .woocommerce-Price-amount {
    font-weight: 700;
}

.popular-price del {
    color: #999;
    margin-right: 10px;
}

.popular-price ins {
    text-decoration: none;
    color: var(--secondary-color);
}

.popular-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.3s ease;
}

.popular-link:hover {
    gap: 10px;
    color: var(--secondary-color);
}

/* Contact Section */
.error-404-contact {
    margin-top: 60px;
}

.contact-404-card {
    background: linear-gradient(135deg, var(--secondary-color), #c0392b);
    color: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--box-shadow);
}

.contact-404-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    opacity: 0.9;
}

.contact-404-content h4 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--white);
}

.contact-404-content p {
    opacity: 0.9;
    margin-bottom: 25px;
    line-height: 1.6;
}

/* Responsive 404 Styles */
@media (max-width: 768px) {
    .castheme-404-hero {
        padding: 60px 0;
    }
    
    .error-number {
        font-size: 6rem;
    }
    
    .error-404-title {
        font-size: 2rem;
    }
    
    .error-404-description {
        font-size: 1.1rem;
    }
    
    .castheme-404-content {
        padding: 60px 0;
    }
    
    .error-404-section {
        padding: 30px 20px;
    }
    
    .error-404-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .popular-title {
        font-size: 1.5rem;
    }
    
    .contact-404-card {
        padding: 30px 20px;
    }
}

/* Single Post Page Styles */
.castheme-single-post-wrapper {
    background-color: #f8f9fa;
    min-height: 100vh;
}

/* Post Hero Section */
.post-hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #34495e 100%);
    color: var(--white);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.post-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
    animation: float 15s ease-in-out infinite;
}

.post-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.post-hero-meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 25px;
    font-size: 0.9rem;
    opacity: 0.9;
}

.post-hero-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.post-hero-meta i {
    font-size: 0.8rem;
}

.post-hero-meta a {
    color: var(--white);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.post-hero-meta a:hover {
    opacity: 0.8;
    color: var(--white);
}

.post-hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 20px;
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.post-hero-excerpt {
    font-size: 1.2rem;
    line-height: 1.6;
    opacity: 0.95;
    margin: 0;
}

/* Post Featured Image */
.post-featured-image-section {
    margin: -30px 0 40px;
    position: relative;
    z-index: 3;
}

.post-featured-image {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Post Content Section */
.post-content-section {
    padding: 20px 0 80px;
}
.castheme-single-post-wrapper .post-sidebar {
    background: white;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    height: fit-content;
    position: relative;
    top: inherit;
}
.post-content-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    align-items: start;
}

.post-main-content {
    background: var(--white);

}

.single-post-article {
    margin-bottom: 0;
}

.post-entry-content {
    line-height: 1.8;
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 40px;
}

.post-entry-content h2,
.post-entry-content h3,
.post-entry-content h4 {
    color: var(--primary-color);
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

.post-entry-content p {
    margin-bottom: 20px;
}

.post-entry-content img {
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin: 20px 0;
}

.post-entry-content blockquote {
    background: #f8f9fa;
    border-left: 4px solid var(--primary-color);
    padding: 20px;
    margin: 30px 0;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    font-style: italic;
}

.page-links {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #e9ecef;
    text-align: center;
}

.page-links a {
    background: var(--primary-color);
    color: var(--white);
    padding: 8px 15px;
    margin: 0 5px;
    border-radius: var(--border-radius);
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.page-links a:hover {
    background: #1a252f;
    color: var(--white);
}

/* Post Tags */
.post-tags {
    background: #f8f9fa;
    padding: 25px;
    border-radius: var(--border-radius);
    margin-bottom: 30px;
}

.post-tags h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tags-list a {
    background: var(--white);
    color: var(--primary-color);
    padding: 6px 12px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.tags-list a:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* Post Share Section */
.post-share-section {
    background: #f8f9fa;
    padding: 25px;
    border-radius: var(--border-radius);
    margin-bottom: 30px;
}

.post-share-section h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.share-buttons a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.share-facebook { background: #1877f2; color: var(--white); }
.share-twitter { background: #1da1f2; color: var(--white); }
.share-linkedin { background: #0077b5; color: var(--white); }
.share-whatsapp { background: #25d366; color: var(--white); }
.share-email { background: #6c757d; color: var(--white); }

.share-buttons a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    color: var(--white);
}

/* Author Bio */
.author-bio-section {
    background: #f8f9fa;
    padding: 30px;
    border-radius: var(--border-radius);
    margin-bottom: 30px;
}

.author-bio-content {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.author-avatar {
    flex-shrink: 0;
}

.author-avatar img {
    border-radius: 50%;
    width: 80px;
    height: 80px;
}

.author-info h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.author-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.author-links a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}

.author-links a:hover {
    color: #c0392b;
}

/* Post Navigation */
.post-navigation {
    background: #f8f9fa;
    padding: 30px;
    border-radius: var(--border-radius);
    margin-bottom: 40px;
}

.post-nav-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.nav-previous,
.nav-next {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.nav-previous:hover,
.nav-next:hover {
    transform: translateY(-3px);
}

.post-nav-grid a {
    display: block;
    padding: 20px;
    text-decoration: none;
    color: inherit;
}

.nav-direction {
    font-size: 0.9rem;
    color: var(--secondary-color);
    font-weight: 500;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-title {
    color: var(--primary-color);
    font-weight: 600;
    line-height: 1.4;
}

.nav-next {
    text-align: right;
}

/* Post Sidebar */
.post-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-widget {
    background: var(--white);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.widget-title {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f8f9fa;
}

/* Related Posts Widget */
.related-posts-list,
.recent-posts-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.related-post-item,
.recent-post-item {
    display: flex;
    gap: 12px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: var(--border-radius);
    transition: background-color 0.3s ease;
}

.related-post-item:hover,
.recent-post-item:hover {
    background: #e9ecef;
}

.related-post-item a,
.recent-post-item a {
    display: flex;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    width: 100%;
}

.related-post-thumb,
.recent-post-thumb {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.related-post-thumb img,
.recent-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-post-content,
.recent-post-content {
    flex: 1;
}

.related-post-content h4,
.recent-post-content h4 {
    color: var(--primary-color);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 5px;
}

.related-post-date,
.recent-post-date {
    color: #666;
    font-size: 0.8rem;
}

/* Categories Widget */
.categories-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.categories-list li {
    margin-bottom: 8px;
}

.categories-list a {
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.categories-list a:hover {
    background: var(--primary-color);
    color: var(--white);
}

.categories-list .count {
    background: var(--secondary-color);
    color: var(--white);
    font-size: 0.8rem;
    padding: 2px 8px;
    border-radius: 12px;
}

/* Newsletter Widget */
.newsletter-widget p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.newsletter-form input {
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.newsletter-form button {
    background: var(--secondary-color);
    color: var(--white);
    border: none;
    padding: 12px;
    border-radius: var(--border-radius);
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.newsletter-form button:hover {
    background: #c0392b;
}

/* Responsive Single Post Styles */
@media (max-width: 1024px) {
    .post-content-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .post-sidebar {
        order: -1;
    }
}

@media (max-width: 768px) {
    .post-hero-section {
        padding: 40px 0;
    }
    
    .post-hero-title {
        font-size: 2rem;
    }
    
    .post-hero-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .post-main-content {
        padding: 25px;
    }
    
    .post-entry-content {
        font-size: 1rem;
    }
    
    .post-nav-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .nav-next {
        text-align: left;
    }
    
    .share-buttons {
        flex-direction: column;
    }
    
    .share-buttons a {
        justify-content: center;
    }
    
    .author-bio-content {
        flex-direction: column;
        text-align: center;
    }
}

/* Archive Page Styles */
.castheme-archive-wrapper {
    background-color: #f8f9fa;
    min-height: 100vh;
}

/* Archive Hero Section */
.archive-hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #34495e 100%);
    color: var(--white);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.archive-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
    animation: float 15s ease-in-out infinite;
}

.archive-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.archive-hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.archive-hero-subtitle {
    font-size: 1.2rem;
    line-height: 1.6;
    opacity: 0.95;
    margin-bottom: 25px;
}

.archive-stats {
    background: rgba(255,255,255,0.1);
    display: inline-block;
    padding: 10px 20px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
}

.posts-count {
    font-weight: 500;
    font-size: 0.95rem;
}

/* Archive Container */
.archive-container {
    padding: 60px 0;
}

.archive-content-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    align-items: start;
}

/* Archive Posts Grid */
.archive-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.archive-post-item {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.archive-post-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.post-thumbnail {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.archive-post-item:hover .post-thumbnail img {
    transform: scale(1.05);
}

.post-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.85rem;
    color: #666;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.post-meta i {
    color: var(--secondary-color);
    font-size: 0.8rem;
}

.post-meta a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-meta a:hover {
    color: var(--primary-color);
}

.post-title {
    margin: 0 0 15px;
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.3;
}

.post-title a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-title a:hover {
    color: var(--secondary-color);
}

.post-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.post-read-more {
    margin-top: auto;
}

.btn-read-more {
    background: var(--secondary-color);
    color: var(--white);
    padding: 10px 20px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.btn-read-more:hover {
    background: #c0392b;
    transform: translateX(5px);
    color: var(--white);
}

/* Archive Pagination */
.archive-pagination {
    text-align: center;
    margin-top: 40px;
}

.archive-pagination .nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.archive-pagination a,
.archive-pagination .current {
    background: var(--white);
    color: var(--primary-color);
    padding: 12px 18px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--box-shadow);
}

.archive-pagination a:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.archive-pagination .current {
    background: var(--primary-color);
    color: var(--white);
}

.archive-pagination .dots {
    color: #666;
    padding: 12px 8px;
}

/* No Posts Found */
.no-posts-found {
    background: var(--white);
    padding: 60px 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    grid-column: 1 / -1;
}

.no-posts-found h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.no-posts-found p {
    color: #666;
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.btn-back-blog {
    background: var(--secondary-color);
    color: var(--white);
    padding: 12px 24px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-back-blog:hover {
    background: #c0392b;
    transform: translateY(-2px);
    color: var(--white);
}

/* Archive Sidebar */
.archive-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.archive-sidebar .sidebar-widget {
    background: var(--white);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.archive-sidebar .widget-title {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f8f9fa;
}

/* Search Widget */
.search-form {
    display: flex;
    gap: 0;
}

.search-field {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.search-field:focus {
    outline: none;
    border-color: var(--primary-color);
}

.search-submit {
    background: var(--primary-color);
    color: var(--white);
    border: 2px solid var(--primary-color);
    padding: 12px 18px;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-submit:hover {
    background: #1a252f;
}

/* Categories Widget */
.archive-sidebar .categories-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.archive-sidebar .categories-list li {
    margin-bottom: 8px;
}

.archive-sidebar .categories-list a {
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: #f8f9fa;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.archive-sidebar .categories-list a:hover,
.archive-sidebar .categories-list .current-cat a {
    background: var(--primary-color);
    color: var(--white);
}

.archive-sidebar .categories-list .count {
    background: var(--secondary-color);
    color: var(--white);
    font-size: 0.8rem;
    padding: 4px 8px;
    border-radius: 12px;
    min-width: 20px;
    text-align: center;
}

/* Popular Posts Widget */
.popular-posts-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.popular-post-item {
    display: flex;
    gap: 12px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: var(--border-radius);
    transition: background-color 0.3s ease;
}

.popular-post-item:hover {
    background: #e9ecef;
}

.popular-post-item a {
    display: flex;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    width: 100%;
}

.popular-post-thumb {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.popular-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popular-post-content {
    flex: 1;
}

.popular-post-content h4 {
    color: var(--primary-color);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 5px;
}

.popular-post-date {
    color: #666;
    font-size: 0.8rem;
}

/* Tags Widget */
.tags-cloud {
    line-height: 1.8;
}

.tags-cloud a {
    background: #f8f9fa;
    color: var(--primary-color);
    padding: 6px 12px;
    margin: 3px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    display: inline-block;
}

.tags-cloud a:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* Responsive Archive Styles */
@media (max-width: 1024px) {
    .archive-content-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .archive-sidebar {
        order: -1;
    }
    
    .archive-posts-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .archive-hero-section {
        padding: 40px 0;
    }
    
    .archive-hero-title {
        font-size: 2rem;
    }
    
    .archive-container {
        padding: 40px 0;
    }
    
    .archive-posts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .post-content {
        padding: 20px;
    }
    
    .post-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .archive-pagination .nav-links {
        gap: 5px;
    }
    
    .archive-pagination a,
    .archive-pagination .current {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
}