/*
Theme Name: Ecommerce Pro Theme
Description: A premium WordPress eCommerce theme with Elementor and WooCommerce integration, built from Figma design
Version: 1.0.0
Author: Your Name
Author URI: https://yoursite.com
Theme URI: https://yoursite.com/ecommerce-pro
Text Domain: ecommerce-pro
Domain Path: /languages
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: e-commerce, custom-menu, custom-logo, entertainment, featured-images, footer-widgets, full-width-template, one-column, two-columns, left-sidebar, e-commerce, right-sidebar, custom-colors, editor-style, featured-images, full-width-template, microformats, post-formats, rtl-language-support, theme-options, threaded-comments, translation-ready, blog, portfolio, news
*/

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #000000;
    background-color: #FFFFFF;
}

.container {
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 100px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 400;
    line-height: 1.2;
}

p {
    margin-bottom: 1rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 400;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: none;
    background: none;
    font-family: inherit;
}

.btn-outline {
    border: 1px solid #000000;
    color: #000000;
    background: transparent;
}

.btn-outline:hover {
    background: #000000;
    color: #FFFFFF;
}

.btn-white {
    background: #FFFFFF;
    color: #000000;
    border: 1px solid #000000;
}

.btn-white:hover {
    background: #000000;
    color: #FFFFFF;
}

/* Homepage Styles */
.homepage {
    width: 100%;
}

/* Banner Section */
.banner {
    background: #000000;
    padding: 10px 0;
    text-align: center;
}

.banner-text {
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 400;
    margin: 0;
}

/* Hero Section */
.hero-section {
    height: 1080px;
    background-size: 100% 271.91%;
    background-position: 0% 25.36%;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}

.hero-logo {
    position: absolute;
    left: -1px;
    top: 593px;
    width: 1933px;
    height: 447px;
    overflow: hidden;
}

.hero-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hero-offer {
    position: absolute;
    left: 100px;
    top: 140px;
    width: 415px;
    background: #FFFFFF;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hero-text h2 {
    font-size: 20px;
    line-height: 24px;
    color: #000000;
    margin-bottom: 12px;
}

.hero-text p {
    font-size: 16px;
    line-height: 20px;
    color: #000000;
    margin: 0;
}

/* Best Sellers Section */
.best-sellers-section {
    padding: 80px 0 0;
    position: relative;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
}

.section-title {
    font-size: 36px;
    line-height: normal;
    color: #000000;
    font-weight: 400;
    margin: 0;
}

.products-grid {
    display: flex;
    gap: 10px;
    position: relative;
    justify-content: flex-start;
    flex-wrap: nowrap;
}

.product-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 422px;
    flex-shrink: 0;
}

.product-image {
    height: 510px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.badge {
    position: absolute;
    top: 0;
    right: 0;
    padding: 8px 16px;
    font-size: 18px;
    font-weight: 500;
    text-transform: uppercase;
    color: #FFFFFF;
    line-height: 22px;
}

.badge-new {
    background: #0600FF;
}

.badge-sale {
    background: #D30000;
}

.product-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.product-naming {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.product-brand {
    font-size: 16px;
    color: #686868;
    line-height: normal;
    margin: 0;
}

.product-title {
    font-size: 16px;
    color: #000000;
    line-height: normal;
    margin: 0;
    font-weight: 400;
}

.product-price {
    display: flex;
    gap: 4px;
    align-items: flex-start;
}

.current-price {
    font-size: 16px;
    color: #000000;
    line-height: normal;
}

.old-price {
    font-size: 16px;
    color: #686868;
    text-decoration: line-through;
    line-height: normal;
}

.add-to-cart-btn {
    width: 100%;
}

/* Slider Navigation */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.slider-btn {
    background: #FFFFFF;
    border: 1px solid #000000;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: auto;
    transition: all 0.3s ease;
}

.slider-btn:hover {
    background: #000000;
    color: #FFFFFF;
}

.slider-btn svg {
    width: 24px;
    height: 24px;
}

/* Slider Indicator */
.slider-indicator {
    position: relative;
    height: 0;
    width: 100%;
}

.slider-line {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    top: -1px;
    height: 1px;
    background: #F0F0F0;
}

.slider-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    top: -1px;
    width: 200px;
    height: 1px;
    background: #000000;
}

/* Routine Section */
.routine-section {
    padding: 30px 0 80px;
}

.routine-grid {
    display: flex;
    gap: 10px;
    justify-content: flex-start;
}

.routine-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
}

.routine-image {
    width: 567px;
    height: 770px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.routine-item:nth-child(2) .routine-image {
    height: 855px;
}

.routine-item:nth-child(3) .routine-image {
    height: 620px;
    background-size: 200.06% 121.99%;
    background-position: 1% 50%;
}

.routine-caption {
    font-size: 16px;
    color: #000000;
    line-height: normal;
    margin: 0;
    min-width: fit-content;
}

/* Special Offers Section */
.special-offers-section {
    padding: 30px 0 80px;
}

.offers-grid {
    display: flex;
    gap: 10px;
    justify-content: space-between;
}

.offer-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.offer-header h3 {
    font-size: 16px;
    color: #000000;
    line-height: 20px;
    margin: 0;
    font-weight: 400;
}

.offer-image {
    width: 855px;
    height: 855px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.offer-item:nth-child(2) .offer-image {
    background-size: 100% 144.94%;
    background-position: 0% 100.67%;
}

.offer-image .btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Age Container Section */
.age-container-section {
    padding: 30px 0 80px;
}

.age-content {
    display: flex;
    gap: 82px;
    align-items: flex-start;
}

.age-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.age-header h2 {
    font-size: 36px;
    line-height: normal;
    color: #000000;
    margin-bottom: 12px;
    font-weight: 400;
}

.age-header p {
    font-size: 16px;
    line-height: 20px;
    color: #000000;
    margin: 0;
}

.testimonial {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rating {
    display: flex;
    gap: 0;
}

.star {
    font-size: 24px;
    color: #000000;
    line-height: 1;
}

.testimonial blockquote {
    font-size: 16px;
    line-height: 20px;
    color: #000000;
    margin: 0;
    font-style: normal;
    font-weight: 400;
}

.age-image {
    width: 1071px;
    height: 682px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    flex-shrink: 0;
}

/* Instagram Section */
.instagram-section {
    padding: 30px 0 80px;
    position: relative;
}

.instagram-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 30px;
}

.instagram-handle {
    font-size: 16px;
    color: #686868;
    line-height: 18px;
    margin: 0;
}

.instagram-grid {
    display: flex;
    gap: 10px;
    position: relative;
    justify-content: flex-start;
}

.instagram-post {
    width: 423px;
    height: 422px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    flex-shrink: 0;
}

.instagram-post:nth-child(3) {
    background-size: 100% 150.39%;
    background-position: 0% 20.04%;
}

.instagram-slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

/* Header Styles */
.site-header {
    background: #FFFFFF;
    border-bottom: 1px solid #F0F0F0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
}

.site-branding {
    width: 250px;
}

.site-logo {
    height: 19px;
    width: 86px;
    overflow: hidden;
}

.site-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.main-navigation {
    display: flex;
    gap: 20px;
}

.nav-menu {
    display: flex;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin: 0;
}

.nav-menu a {
    font-size: 16px;
    color: #000000;
    text-decoration: none;
    text-transform: uppercase;
    line-height: 20px;
    font-weight: 400;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #0600FF;
}

.header-actions {
    display: flex;
    gap: 20px;
    width: 250px;
    justify-content: flex-end;
}

.header-actions a {
    font-size: 16px;
    color: #000000;
    text-decoration: none;
    text-transform: uppercase;
    line-height: 20px;
    font-weight: 400;
}

/* Footer Styles */
.site-footer {
    background: #312D60;
    color: #FFFFFF;
    padding: 80px 0 80px;
}

.footer-content {
    display: flex;
    gap: 154px;
    margin-bottom: 80px;
}

.footer-widget {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.footer-widget:first-child {
    width: 495px;
}

.footer-logo {
    height: 29px;
    width: 134px;
    overflow: hidden;
}

.footer-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.email-subscription {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.subscription-input {
    display: flex;
    gap: 10px;
    align-items: center;
    width: 100%;
}

.email-input {
    flex: 1;
    height: 52px;
    padding: 14px 10px;
    border: 1px solid #E8E8E8;
    background: #FFFFFF;
    font-size: 16px;
    color: #686868;
    font-family: inherit;
    outline: none;
}

.email-input::placeholder {
    color: #686868;
}

.subscription-text {
    font-size: 14px;
    color: #FFFFFF;
    line-height: 18px;
    margin: 0;
}

.subscription-text a {
    color: #FFFFFF;
    text-decoration: underline;
}

.footer-widget h3 {
    font-size: 20px;
    text-transform: uppercase;
    line-height: 24px;
    margin: 0;
    font-weight: 400;
}

.footer-widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-widget li {
    margin: 0;
}

.footer-widget a {
    font-size: 16px;
    color: #FFFFFF;
    text-decoration: none;
    line-height: 20px;
    font-weight: 400;
}

.footer-widget a:hover {
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid rgba(99, 95, 146, 1);
    padding-top: 20px;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 50px;
}

.footer-bottom p,
.footer-bottom a {
    font-size: 16px;
    color: #FFFFFF;
    line-height: 20px;
    margin: 0;
    font-weight: 400;
}

.footer-links {
    display: flex;
    gap: 50px;
}

.footer-links a {
    text-decoration: none;
    white-space: nowrap;
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer-credit {
    text-align: right;
}

.footer-credit p {
    white-space: nowrap;
}

/* Notifications */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #FFFFFF;
    border: 1px solid #E8E8E8;
    border-radius: 4px;
    padding: 16px 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    max-width: 400px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.notification.show {
    transform: translateX(0);
}

.notification-success {
    border-left: 4px solid #28a745;
}

.notification-error {
    border-left: 4px solid #dc3545;
}

.notification-info {
    border-left: 4px solid #17a2b8;
}

.notification-message {
    flex: 1;
    font-size: 14px;
    line-height: 1.4;
    color: #333;
}

.notification-close {
    background: none;
    border: none;
    font-size: 18px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.notification-close:hover {
    color: #333;
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    position: relative;
    z-index: 1001;
}

.menu-toggle-icon {
    display: block;
    width: 24px;
    height: 2px;
    background: #000000;
    position: relative;
    transition: all 0.3s ease;
}

.menu-toggle-icon::before,
.menu-toggle-icon::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: #000000;
    transition: all 0.3s ease;
}

.menu-toggle-icon::before {
    top: -8px;
}

.menu-toggle-icon::after {
    bottom: -8px;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon {
    background: transparent;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon::before {
    transform: rotate(45deg);
    top: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon::after {
    transform: rotate(-45deg);
    bottom: 0;
}

/* Product Card Hover Effects */
.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card.hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Header Scroll Effect */
.site-header.scrolled {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

/* Body Menu Open State */
body.menu-open {
    overflow: hidden;
}

/* Responsive Design Updates */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .main-navigation {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: #FFFFFF;
        z-index: 1000;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .main-navigation.active {
        transform: translateX(0);
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
    
    .nav-menu a {
        font-size: 24px;
        padding: 15px 0;
    }
    
    .header-actions {
        gap: 15px;
    }
    
    .header-actions a {
        font-size: 14px;
    }
    
    .notification {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .products-grid {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }
    
    .product-card {
        scroll-snap-align: start;
        min-width: 280px;
    }
    
    .slider-nav {
        display: none;
    }
    
    .instagram-grid {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
    }
    
    .instagram-post {
        scroll-snap-align: start;
        min-width: 280px;
    }
    
    .instagram-slider-nav {
        display: none;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-offer {
        left: 15px;
        right: 15px;
        width: auto;
        top: 80px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .footer-content {
        gap: 30px;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 10px;
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .container {
        padding: 0 50px;
    }
    
    .hero-offer {
        left: 50px;
        width: 350px;
    }
    
    .products-grid {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .product-card {
        width: calc(50% - 5px);
    }
    
    .routine-grid {
        flex-direction: column;
        align-items: center;
    }
    
    .routine-image {
        width: 100%;
        max-width: 567px;
    }
    
    .offers-grid {
        flex-direction: column;
    }
    
    .offer-image {
        width: 100%;
        height: 400px;
    }
    
    .age-content {
        flex-direction: column;
        gap: 40px;
    }
    
    .age-image {
        width: 100%;
        height: 400px;
    }
    
    .instagram-grid {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .instagram-post {
        width: calc(50% - 5px);
        height: 300px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    .hero-section {
        height: 600px;
    }
    
    .hero-offer {
        left: 20px;
        top: 100px;
        width: calc(100% - 40px);
    }
    
    .section-header {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .product-card {
        width: 100%;
    }
    
    .product-image {
        height: 400px;
    }
    
    .routine-image {
        height: 300px;
    }
    
    .routine-item:nth-child(2) .routine-image {
        height: 350px;
    }
    
    .routine-item:nth-child(3) .routine-image {
        height: 250px;
    }
    
    .offer-image {
        height: 300px;
    }
    
    .age-image {
        height: 300px;
    }
    
    .instagram-post {
        width: 100%;
        height: 250px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 40px;
    }
    
    .footer-widget:first-child {
        width: 100%;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
}

/* WooCommerce Compatibility */
.woocommerce .products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.woocommerce .product {
    text-align: center;
}

.woocommerce .product img {
    width: 100%;
    height: auto;
}

.woocommerce .price {
    font-size: 16px;
    color: #000000;
}

.woocommerce .button {
    background: #000000;
    color: #FFFFFF;
    border: none;
    padding: 10px 20px;
    text-decoration: none;
    display: inline-block;
    margin-top: 10px;
}

/* Elementor Compatibility */
.elementor-page .homepage {
    margin-top: 0;
}

.elementor-page .site-header {
    position: relative;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.hidden {
    display: none;
}

.visible {
    display: block;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Accessibility */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    color: #21759b;
    display: block;
    font-size: 14px;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* Blog Layout Styles */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.blog-post-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.blog-post-card .post-thumbnail {
    position: relative;
    overflow: hidden;
}

.blog-post-card .post-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-post-card:hover .post-thumbnail img {
    transform: scale(1.05);
}

.blog-post-card .post-content {
    padding: 25px;
}

.blog-post-card .entry-title {
    font-size: 1.4rem;
    margin: 0 0 15px 0;
    line-height: 1.4;
}

.blog-post-card .entry-title a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-post-card .entry-title a:hover {
    color: var(--primary-color);
}

.blog-post-card .entry-meta {
    font-size: 0.9rem;
    color: #6B7280;
    margin-bottom: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.blog-post-card .entry-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.blog-post-card .entry-summary {
    color: #4B5563;
    line-height: 1.6;
    margin-bottom: 20px;
}

.blog-post-card .read-more {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.blog-post-card .read-more:hover {
    color: var(--secondary-color);
}

/* Single Post Styles */
.single-post {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.single-post .entry-header {
    padding: 40px 40px 20px;
}

.single-post .entry-title {
    font-size: 2.5rem;
    margin: 0 0 20px 0;
    line-height: 1.3;
    color: var(--text-color);
}

.single-post .entry-meta {
    font-size: 0.95rem;
    color: #6B7280;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.single-post .entry-thumbnail {
    margin-bottom: 30px;
}

.single-post .entry-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.single-post .entry-content {
    padding: 0 40px 40px;
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-color);
}

.single-post .entry-content h2,
.single-post .entry-content h3,
.single-post .entry-content h4 {
    margin: 30px 0 15px 0;
    color: var(--text-color);
}

.single-post .entry-content p {
    margin-bottom: 20px;
}

.single-post .entry-content ul,
.single-post .entry-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.single-post .entry-content li {
    margin-bottom: 10px;
}

.single-post .entry-footer {
    padding: 30px 40px;
    border-top: 1px solid #E5E7EB;
    background: #F9FAFB;
}

.single-post .tags-links {
    margin-bottom: 20px;
}

.single-post .tags-links a {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    text-decoration: none;
    margin: 0 5px 5px 0;
    transition: background-color 0.3s ease;
}

.single-post .tags-links a:hover {
    background: var(--secondary-color);
}

/* Search Results Styles */
.search-results {
    margin: 40px 0;
}

.search-result-item {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    padding: 30px;
    margin-bottom: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.search-result-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.search-result-item .entry-title {
    font-size: 1.5rem;
    margin: 0 0 15px 0;
}

.search-result-item .entry-title a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.search-result-item .entry-title a:hover {
    color: var(--primary-color);
}

.search-result-item .entry-meta {
    font-size: 0.9rem;
    color: #6B7280;
    margin-bottom: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.search-result-item .entry-thumbnail {
    float: left;
    margin: 0 20px 15px 0;
    border-radius: 8px;
    overflow: hidden;
}

.search-result-item .entry-thumbnail img {
    width: 120px;
    height: 90px;
    object-fit: cover;
}

.search-result-item .entry-summary {
    color: #4B5563;
    line-height: 1.6;
}

/* 404 Page Styles */
.error-404 {
    text-align: center;
    padding: 60px 0;
}

.error-404 .page-title {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--text-color);
}

.error-404 .page-content {
    max-width: 600px;
    margin: 0 auto;
}

.error-404-content {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    padding: 40px;
}

.error-404-image {
    margin-bottom: 30px;
}

.error-404-image svg {
    max-width: 200px;
    height: auto;
}

.error-404 .search-form {
    margin: 30px 0;
    display: flex;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.error-404 .search-field {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #E5E7EB;
    border-radius: 8px 0 0 8px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.error-404 .search-field:focus {
    border-color: var(--primary-color);
}

.error-404 .search-submit {
    padding: 12px 20px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.error-404 .search-submit:hover {
    background: var(--secondary-color);
}

.error-404-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin: 40px 0;
    text-align: left;
}

.error-404-widgets .widget {
    background: #F9FAFB;
    padding: 25px;
    border-radius: 8px;
}

.error-404-widgets .widget h2 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--text-color);
}

.error-404-widgets .widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.error-404-widgets .widget li {
    margin-bottom: 8px;
}

.error-404-widgets .widget a {
    color: #4B5563;
    text-decoration: none;
    transition: color 0.3s ease;
}

.error-404-widgets .widget a:hover {
    color: var(--primary-color);
}

.back-to-home {
    margin-top: 40px;
}

.back-to-home .button {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.back-to-home .button:hover {
    background: var(--secondary-color);
}

/* Comments Styles */
.comments-area {
    margin-top: 50px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    padding: 40px;
}

.comments-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: var(--text-color);
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comment-list .comment {
    margin-bottom: 30px;
    padding: 20px;
    background: #F9FAFB;
    border-radius: 8px;
}

.comment-list .comment-author {
    font-weight: 600;
    color: var(--text-color);
}

.comment-list .comment-meta {
    font-size: 0.9rem;
    color: #6B7280;
    margin-bottom: 10px;
}

.comment-list .comment-content {
    color: #4B5563;
    line-height: 1.6;
}

.comment-respond {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #E5E7EB;
}

.comment-respond h3 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: var(--text-color);
}

.comment-form {
    display: grid;
    gap: 20px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.comment-form .submit {
    background: var(--primary-color);
    color: #fff;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    justify-self: start;
}

.comment-form .submit:hover {
    background: var(--secondary-color);
}

/* Pagination Styles */
.navigation.pagination {
    margin: 50px 0;
    text-align: center;
}

.nav-links {
    display: inline-flex;
    gap: 10px;
}

.page-numbers {
    display: inline-block;
    padding: 12px 16px;
    background: #fff;
    color: var(--text-color);
    text-decoration: none;
    border-radius: 8px;
    border: 2px solid #E5E7EB;
    transition: all 0.3s ease;
    min-width: 44px;
    text-align: center;
}

.page-numbers:hover,
.page-numbers.current {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.nav-previous,
.nav-next {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Sidebar Styles */
.widget-area {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    padding: 30px;
    margin-top: 40px;
}

.widget {
    margin-bottom: 40px;
}

.widget:last-child {
    margin-bottom: 0;
}

.widget h2 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--text-color);
    padding-bottom: 10px;
    border-bottom: 2px solid #E5E7EB;
}

.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget li {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #F3F4F6;
}

.widget li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.widget a {
    color: #4B5563;
    text-decoration: none;
    transition: color 0.3s ease;
}

.widget a:hover {
    color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    .hero-section {
        padding: 60px 0;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }
    
    .routine-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .offers-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .instagram-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .main-navigation {
        display: none;
    }
    
    .mobile-menu {
        display: block;
    }

    /* Blog Responsive */
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .single-post .entry-header,
    .single-post .entry-content,
    .single-post .entry-footer {
        padding: 20px;
    }

    .single-post .entry-title {
        font-size: 2rem;
    }

    .search-result-item {
        padding: 20px;
    }

    .search-result-item .entry-thumbnail {
        float: none;
        margin: 0 0 15px 0;
    }

    .search-result-item .entry-thumbnail img {
        width: 100%;
        height: 200px;
    }

    .error-404 .page-title {
        font-size: 2.5rem;
    }

    .error-404-content {
        padding: 20px;
    }

    .error-404-widgets {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .comments-area {
        padding: 20px;
    }

    .comment-form {
        grid-template-columns: 1fr;
    }
}
