/* ==========================================================================
   Treelostore - Luxury Black & White Theme
   ========================================================================== */

   :root {
    --primary-color: #000000;
    --secondary-color: #1a1a1a;
    --text-color: #333333;
    --text-light: #666666;
    --bg-color: #ffffff;
    --bg-alt: #f8f8f8;
    --border-color: #eeeeee;
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Playfair Display', serif;
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.1);
    --radius: 4px;
}

/* ==========================================================================
   Base Styles
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: 600;
}

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

a:hover {
    color: var(--text-light);
}

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

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center { text-align: center; }
.text-white { color: #fff; }
.mb-3 { margin-bottom: 1rem; }
.mt-5 { margin-top: 3rem; }

/* Buttons */
.btn-primary, .btn-outline, .btn-outline-white, .btn-amazon, .btn-amazon-block {
    display: inline-block;
    padding: 12px 30px;
    font-family: var(--font-main);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    cursor: pointer;
    border-radius: var(--radius);
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #ffffff;
    border: 1px solid var(--primary-color);
}

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

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

.btn-outline:hover {
    background-color: var(--primary-color);
    color: #ffffff;
}

.btn-outline-white {
    background-color: transparent;
    color: #ffffff;
    border: 1px solid #ffffff;
}

.btn-outline-white:hover {
    background-color: #ffffff;
    color: var(--primary-color);
}

.btn-amazon-block {
    display: block;
    background-color: var(--primary-color);
    color: #fff;
    padding: 15px;
    margin-top: 15px;
    border-radius: var(--radius);
}
.btn-amazon-block:hover {
    background-color: var(--secondary-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* ==========================================================================
   Loading Screen
   ========================================================================== */
.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader-text {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: #fff;
    letter-spacing: 5px;
    opacity: 0;
    animation: fadeInOut 2s ease-in-out infinite;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    padding: 20px 0;
    background: transparent;
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.site-header.scrolled .site-title a,
.site-header.scrolled .menu-container a,
.site-header.scrolled .header-actions button,
.site-header.scrolled .header-actions a {
    color: var(--primary-color);
}

.site-header.scrolled .hamburger span {
    background-color: var(--primary-color); /* For hamburger lines */
}

/* Base header color when not scrolled */
.site-title a {
    color: #fff;
    font-size: 1.8rem;
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 2px;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
}

.menu-container ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.menu-container a {
    color: #fff;
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.menu-container a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: currentColor;
    transition: var(--transition);
}

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

.header-actions {
    display: flex;
    gap: 20px;
}

.header-actions button, .header-actions a {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: #fff;
    margin: 5px 0;
    transition: var(--transition);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    transform: scale(1.05); /* For subtle zoom animation */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.6) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: #fff;
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-size: 5rem;
    color: #fff;
    margin-bottom: 20px;
    font-style: italic;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.scroll-down {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    text-align: center;
    z-index: 10;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-10px) translateX(-50%); }
    60% { transform: translateY(-5px) translateX(-50%); }
}

/* ==========================================================================
   Sections & Layout
   ========================================================================== */
.section {
    padding: 100px 0;
}

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

.section-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.section-desc {
    color: var(--text-light);
    font-size: 1.1rem;
}

.dark-bg {
    background-color: var(--primary-color);
}

/* ==========================================================================
   Shop By Category (Circular)
   ========================================================================== */
.shop-category-section {
    padding: 80px 0 20px;
    background-color: var(--bg-color);
}

.category-circles-wrapper {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.cat-circle-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    cursor: pointer;
}

.cat-circle-img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: #fff;
    padding: 5px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
}

.cat-circle-img img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.cat-circle-item:hover .cat-circle-img {
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.cat-circle-item:hover .cat-circle-img img {
    transform: scale(1.08);
}

.cat-circle-item span {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.cat-circle-item:hover span {
    color: var(--text-light);
}

/* ==========================================================================
   Collections (Carousel)
   ========================================================================== */
.collections-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.collection-card {
    position: relative;
    height: 400px;
    overflow: hidden;
    border-radius: var(--radius);
    group: hover;
}

.collection-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.collection-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    transition: var(--transition);
}

.collection-card:hover .collection-img {
    transform: scale(1.1);
}

.collection-card:hover::after {
    background: rgba(0,0,0,0.5);
}

.collection-info {
    position: absolute;
    bottom: 30px;
    left: 30px;
    z-index: 10;
    color: #fff;
}

.collection-info h3 {
    color: #fff;
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.collection-info span {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transform: translateY(10px);
    opacity: 0;
    transition: var(--transition);
}

.collection-card:hover .collection-info span {
    transform: translateY(0);
    opacity: 1;
}

/* ==========================================================================
   Product Grid (Pinterest Style / Masonry)
   ========================================================================== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    transition: var(--transition);
}

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

.product-image-wrapper {
    position: relative;
    overflow: hidden;
}

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

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

.pin-save {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #E60023;
    color: #fff;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
    cursor: pointer;
    opacity: 0;
    transform: translateY(-10px);
    transition: var(--transition);
}

.wishlist-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #fff;
    color: var(--primary-color);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    transform: translateY(-10px);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card:hover .pin-save,
.product-card:hover .wishlist-btn {
    opacity: 1;
    transform: translateY(0);
}

.wishlist-btn:hover {
    background: var(--primary-color);
    color: #fff;
}

.product-details {
    padding: 20px;
}

.product-rating {
    color: #FFD700;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.product-rating span {
    color: var(--text-light);
    margin-left: 5px;
}

.product-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-family: var(--font-main);
}

.product-desc {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* ==========================================================================
   Features Section
   ========================================================================== */
.features-section {
    background-color: var(--bg-alt);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: center;
}

.feature-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-item h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.feature-item p {
    color: var(--text-light);
}

/* ==========================================================================
   Blog / Archive / Single
   ========================================================================== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
}

.post-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

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

.post-img-link {
    display: block;
    height: 250px;
    overflow: hidden;
}

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

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

.post-content {
    padding: 30px;
}

.post-meta {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
    margin-bottom: 15px;
}

.post-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.post-title a {
    color: var(--primary-color);
}

.post-excerpt {
    color: var(--text-light);
    margin-bottom: 20px;
}

.read-more {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* Page Wrapper */
.page-wrapper {
    padding: 150px 0 80px; /* Space for fixed header */
}

/* Blog Layout with Sidebar */
.blog-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
}

.horizontal-card {
    display: flex;
    margin-bottom: 40px;
    height: auto;
}

.horizontal-card .post-thumbnail-wrapper {
    flex: 0 0 40%;
    max-width: 40%;
}

.horizontal-card .post-thumbnail-wrapper img {
    height: 100%;
    object-fit: cover;
}

/* Single Post */
.single-post-article .entry-title {
    font-size: 3rem;
    margin-bottom: 20px;
}

.single-post-article .post-thumbnail {
    margin: 40px 0;
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
}

.single-post-article .entry-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

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

.pin-save-large {
    top: 20px;
    left: 20px;
    padding: 12px 25px;
    font-size: 1rem;
}

.social-share {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.social-share a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
}

.social-share a:hover {
    background: var(--primary-color);
    color: #fff;
}

.author-bio {
    display: flex;
    align-items: center;
    gap: 30px;
    background: var(--bg-alt);
    padding: 40px;
    border-radius: var(--radius);
    margin: 60px 0;
}

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

/* Sidebar Widgets */
.widget {
    margin-bottom: 40px;
    padding: 30px;
    background: #fff;
    box-shadow: var(--shadow-soft);
    border-radius: var(--radius);
}

.widget-title {
    font-size: 1.2rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
}

.widget ul {
    list-style: none;
}

.widget ul li {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.widget ul li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.popular-post-item {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.popular-post-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius);
}

.ppi-info h4 {
    font-size: 1rem;
    margin-bottom: 5px;
    font-family: var(--font-main);
}

.ppi-info span {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background-color: var(--primary-color);
    color: #fff;
}

.footer-top {
    padding: 80px 0;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 60px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-title a {
    color: #fff;
}

.footer-desc {
    color: #999;
    margin: 20px 0;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.social-links a:hover {
    background: #fff;
    color: var(--primary-color);
}

.footer-widget-title {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
}

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

.footer-links ul li a {
    color: #999;
}

.footer-links ul li a:hover {
    color: #fff;
    padding-left: 5px;
}

.footer-newsletter p {
    color: #999;
    margin-bottom: 20px;
}

.newsletter-form {
    display: flex;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: var(--radius) 0 0 var(--radius);
    outline: none;
}

.newsletter-form button {
    border-radius: 0 var(--radius) var(--radius) 0;
}

.footer-bottom {
    background-color: #0a0a0a;
    padding: 20px 0;
    text-align: center;
}

.footer-bottom .footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-info, .affiliate-disclaimer {
    color: #666;
    font-size: 0.9rem;
}

/* ==========================================================================
   Search Overlay
   ========================================================================== */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-close {
    position: absolute;
    top: 40px;
    right: 40px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
}

.search-overlay form {
    width: 80%;
    max-width: 800px;
    position: relative;
}

.search-overlay input[type="search"] {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 2px solid #fff;
    color: #fff;
    font-size: 3rem;
    padding: 10px 0;
    font-family: var(--font-heading);
    outline: none;
}

.search-overlay input[type="search"]::placeholder {
    color: rgba(255,255,255,0.3);
}

/* ==========================================================================
   Back to Top
   ========================================================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 900;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: var(--shadow-hover);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 992px) {
    .menu-toggle {
        display: block;
        z-index: 1001;
    }
    
    .menu-container {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: #fff;
        padding: 100px 40px;
        transition: var(--transition);
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    }
    
    .menu-container.active {
        right: 0;
    }
    
    .menu-container ul {
        flex-direction: column;
    }
    
    .menu-container a {
        color: var(--primary-color);
        font-size: 1.2rem;
    }
    
    .site-header.menu-open .hamburger span {
        background-color: var(--primary-color);
    }
    
    .site-header.menu-open .hamburger span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .site-header.menu-open .hamburger span:nth-child(2) {
        opacity: 0;
    }
    
    .site-header.menu-open .hamburger span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .collections-grid, .features-grid, .blog-layout, .footer-container {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom .footer-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .horizontal-card {
        flex-direction: column;
    }
    
    .horizontal-card .post-thumbnail-wrapper {
        max-width: 100%;
        height: 250px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    .header-container {
        padding: 0 20px;
    }
    .section {
        padding: 60px 0;
    }
    .category-circles-wrapper {
        gap: 30px;
    }
    .cat-circle-img {
        width: 100px;
        height: 100px;
    }
}
