/*
Theme Name: TeaStore
Theme URI: https://teastore.com
Author: TeaStore
Author URI: https://teastore.com
Description: Premium Indian Tea E-commerce Theme based on Kadence
Version: 1.0.0
License: GNU General Public License v3.0
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Text Domain: teastore
Template: kadence
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
Tags: e-commerce, tea, indian-tea, responsive, woocommerce
*/

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Lato:wght@300;400;700&display=swap');

:root {
    --primary-color: #8B6914;
    --secondary-color: #C4A35A;
    --accent-color: #D4AF37;
    --dark-color: #2C2416;
    --light-color: #F8F5F0;
    --text-color: #4A4A4A;
    --white: #FFFFFF;
    --gold: #C9A227;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Lato', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--light-color);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    color: var(--dark-color);
}

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

a:hover {
    color: var(--primary-color);
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.top-bar {
    background: var(--dark-color);
    color: var(--white);
    padding: 8px 0;
    font-size: 13px;
}

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

.top-bar-left {
    display: flex;
    gap: 25px;
}

.top-bar-left span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-bar-right {
    display: flex;
    gap: 20px;
}

.top-bar a {
    color: var(--white);
    opacity: 0.9;
}

.top-bar a:hover {
    opacity: 1;
    color: var(--accent-color);
}

/* Main Header */
.main-header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    position: relative;
    z-index: 1000;
}

.header-content {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}



.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 1px;
}

.logo-text span {
    color: var(--secondary-color);
}

/* Navigation */
.main-nav {
    display: flex;
    justify-content: center;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 35px;
    margin: 0;
    padding: 0;
}

.main-nav a {
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--dark-color);
    position: relative;
    padding: 5px 0;
}

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

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

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 25px;
    justify-content: flex-end;
}

.header-actions a {
    position: relative;
    font-size: 18px;
    color: var(--dark-color);
}

.header-actions a:hover {
    color: var(--primary-color);
}

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

/* Hero Section */
.hero-section {
    position: relative;
    height: 85vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(44,36,22,0.7) 0%, rgba(44,36,22,0.4) 100%),
                url('assets/images/hero-bg.jpg') center/cover;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    color: var(--white);
    padding: 0 20px;
}

.hero-subtitle {
    font-size: 16px;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.hero-title {
    font-size: 64px;
    line-height: 1.1;
    margin-bottom: 25px;
    color: var(--white);
}

.hero-text {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 35px;
    opacity: 0.9;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 35px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 0;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
}

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

.btn-primary:hover {
    background: var(--dark-color);
    color: var(--white);
    border-color: var(--dark-color);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--dark-color);
}

/* Hero Section Buttons Special Hover */
.hero-section .btn-primary:hover {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

/* Categories Section */
.categories-section {
    padding: 80px 0;
    background: var(--white);
}

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

.category-card {
    text-align: center;
    padding: 40px 30px;
    background: var(--light-color);
    border: 1px solid rgba(139,105,20,0.1);
    transition: var(--transition);
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-color: var(--primary-color);
}

.category-image {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--primary-color);
}

.category-card h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.category-count {
    font-size: 14px;
    color: var(--text-color);
    opacity: 0.7;
}

/* Products Section */
.products-section {
    padding: 100px 0;
    background: var(--light-color);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-subtitle {
    font-size: 14px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.section-title {
    font-size: 42px;
    margin-bottom: 20px;
}

.section-desc {
    font-size: 16px;
    color: var(--text-color);
    opacity: 0.8;
}

.section-btn {
    text-align: center;
    margin-top: 50px;
}

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

.product-card {
    background: var(--white);
    transition: var(--transition);
}

.product-card:hover {
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.product-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.product-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
    background: var(--light-color);
}

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

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

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-color);
    color: var(--white);
    padding: 6px 14px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-actions {
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    transition: var(--transition);
}

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

.product-action-btn {
    width: 42px;
    height: 42px;
    background: var(--white);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--dark-color);
    text-decoration: none;
}

.product-action-btn:hover {
    background: var(--primary-color);
    color: var(--white);
}

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

.product-category {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.product-name {
    font-size: 18px;
    margin-bottom: 12px;
    font-weight: 600;
}

.product-price {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
}

.product-price del {
    color: var(--text-color);
    opacity: 0.5;
    margin-right: 10px;
    font-weight: 400;
}

/* Featured Section */
.featured-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--dark-color) 0%, #3d3220 100%);
    color: var(--white);
}

.featured-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.featured-text .section-title {
    color: var(--white);
    margin-bottom: 25px;
}

.featured-text p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 30px;
    opacity: 0.9;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.featured-item {
    background: rgba(255,255,255,0.05);
    padding: 30px;
    border: 1px solid rgba(255,255,255,0.1);
    transition: var(--transition);
}

.featured-item:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-5px);
}

.featured-item-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--white);
    margin-bottom: 20px;
}

.featured-item h4 {
    color: var(--white);
    font-size: 18px;
    margin-bottom: 10px;
}

.featured-item p {
    font-size: 14px;
    opacity: 0.8;
    line-height: 1.6;
}

/* Testimonials Section */
.testimonials-section {
    padding: 100px 0;
    background: var(--white);
}

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

.testimonial-card {
    background: var(--light-color);
    padding: 40px;
    border: 1px solid rgba(139,105,20,0.1);
    transition: var(--transition);
}

.testimonial-card:hover {
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}

.testimonial-rating {
    color: var(--accent-color);
    margin-bottom: 20px;
    font-size: 14px;
}

.testimonial-text {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 25px;
    font-style: italic;
}

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

.testimonial-avatar {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 20px;
}

.testimonial-author-info h5 {
    font-size: 16px;
    margin-bottom: 3px;
}

.testimonial-author-info span {
    font-size: 13px;
    opacity: 0.7;
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: rgba(255,255,255,0.7);
    padding: 80px 0 0;
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
    padding-top: 40px;
}

.payment-methods {
    display: flex;
    gap: 15px;
    align-items: center;
}

.payment-icon {
    background: white;
    padding: 10px 15px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.payment-icon:hover {
    opacity: 0.9;
}

.payment-icon.visa i {
    color: #1A1F71;
    font-size: 32px;
}

.payment-icon.mastercard i {
    color: #EB001B;
    font-size: 32px;
}

.footer-column h4 {
    color: var(--accent-color);
    font-size: 18px;
    margin-bottom: 25px;
    font-weight: 600;
}

.footer-column ul,
.footer-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: left;
}

.footer-column li,
.footer-menu li {
    margin-bottom: 12px;
    text-align: left;
}

.footer-column a,
.footer-menu a {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    transition: var(--transition);
    display: block;
    text-align: left;
}

.footer-column a:hover,
.footer-menu a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    line-height: 1.6;
}

.footer-contact i {
    color: var(--accent-color);
    margin-top: 2px;
    flex-shrink: 0;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 25px 0;
    text-align: center;
    font-size: 14px;
}

.footer-bottom p {
    color: rgba(255,255,255,0.7);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--dark-color);
    transition: var(--transition);
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .categories-grid,
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .hero-title {
        font-size: 52px;
    }
}

@media (max-width: 992px) {
    .header-content {
        display: flex;
        justify-content: space-between;
    }
    
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        padding: 20px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        z-index: 100;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 15px;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    .hero-title {
        font-size: 42px;
    }
    
    .categories-grid,
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .featured-content {
        grid-template-columns: 1fr;
    }
    
    .featured-section {
        background: var(--white);
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-top {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .top-bar-left {
        display: none;
    }
    
    .hero-section {
        height: auto;
        min-height: 500px;
        padding: 80px 0;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-text {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .categories-grid,
    .products-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto 40px;
    }
    
    .featured-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
    
    .payment-methods {
        justify-content: center;
    }
    
    .footer-contact li {
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .header-actions {
        gap: 15px;
    }
    
    .logo-text {
        font-size: 22px;
    }
}

/* Shop Page Banner */
.woocommerce-shop .entry-header,
.post-type-archive-product .entry-header {
    position: relative;
    background: linear-gradient(rgba(44,36,22,0.7), rgba(44,36,22,0.5)),
                url('https://images.unsplash.com/photo-1564890369478-c89ca6d9cde9?w=1920') center/cover no-repeat !important;
    background-size: cover !important;
    background-position: center !important;
    padding: 80px 0 !important;
    margin: 0 !important;
    width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
}

.woocommerce-shop .entry-header *,
.post-type-archive-product .entry-header * {
    position: relative;
    z-index: 1;
}

.woocommerce-shop .entry-header,
.post-type-archive-product .entry-header {
    text-align: center !important;
}

.woocommerce-shop .entry-header h1,
.post-type-archive-product .entry-header h1,
.woocommerce-shop .entry-header .archive-title,
.post-type-archive-product .entry-header .archive-title,
.woocommerce-shop .entry-header .page-title,
.post-type-archive-product .entry-header .page-title {
    color: #ffffff !important;
    text-shadow: 0 2px 20px rgba(0,0,0,0.5) !important;
}

.woocommerce-shop .entry-header p,
.post-type-archive-product .entry-header p,
.woocommerce-shop .entry-header .archive-description,
.post-type-archive-product .entry-header .archive-description {
    color: rgba(255,255,255,0.9) !important;
}

/* Cart & Checkout & My Account Page Banner */
.woocommerce-cart .entry-header,
.woocommerce-checkout .entry-header,
.woocommerce-account .entry-header {
    position: relative;
    background: linear-gradient(rgba(44,36,22,0.7), rgba(44,36,22,0.5)),
                url('https://images.unsplash.com/photo-1556679343-c7306c1976bc?w=1920') center/cover no-repeat !important;
    background-size: cover !important;
    background-position: center !important;
    padding: 80px 0 !important;
    margin: 0 !important;
    width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
}

.woocommerce-cart .entry-header *,
.woocommerce-checkout .entry-header *,
.woocommerce-account .entry-header * {
    position: relative;
    z-index: 1;
}

.woocommerce-cart .entry-header,
.woocommerce-checkout .entry-header,
.woocommerce-account .entry-header {
    text-align: center !important;
}

.woocommerce-cart .entry-header h1,
.woocommerce-checkout .entry-header h1,
.woocommerce-account .entry-header h1,
.woocommerce-cart .entry-header .page-title,
.woocommerce-checkout .entry-header .page-title,
.woocommerce-account .entry-header .page-title {
    color: #ffffff !important;
    text-shadow: 0 2px 20px rgba(0,0,0,0.5) !important;
}

.woocommerce-cart .entry-header p,
.woocommerce-checkout .entry-header p,
.woocommerce-account .entry-header p,
.woocommerce-cart .entry-header .page-description,
.woocommerce-checkout .entry-header .page-description,
.woocommerce-account .entry-header .page-description {
    color: rgba(255,255,255,0.9) !important;
}

/* Remove content-area margin for WooCommerce pages */
.woocommerce-shop .content-area,
.post-type-archive-product .content-area,
.woocommerce-cart .content-area,
.woocommerce-checkout .content-area,
.woocommerce-account .content-area,
.single-product .content-area {
    margin-top: 0 !important;
}

.woocommerce-shop .site-content,
.post-type-archive-product .site-content,
.woocommerce-cart .site-content,
.woocommerce-checkout .site-content,
.woocommerce-account .site-content,
.single-product .site-content {
    padding-top: 0 !important;
}

/* Product Detail Page Banner */
.single-product .site-main {
    position: relative;
}

.single-product .site-main::before {
    content: '';
    display: block;
    width: 100vw;
    height: 300px;
    margin-left: calc(-50vw + 50%);
    margin-bottom: 50px;
    background: linear-gradient(rgba(44,36,22,0.6), rgba(44,36,22,0.4)),
                url('https://images.unsplash.com/photo-1564890369478-c89ca6d9cde9?w=1920') center/cover no-repeat;
}

.single-product .site-main::after {
    content: 'Product Detail';
    position: absolute;
    top: 150px;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-size: 42px;
    font-weight: 600;
    font-family: 'Playfair Display', serif;
    text-shadow: 0 2px 20px rgba(0,0,0,0.5);
    z-index: 1;
}

/* About Us Page Styles */
.page-hero {
    position: relative;
    height: 300px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.page-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(44,36,22,0.8) 0%, rgba(44,36,22,0.5) 100%),
                url('https://images.unsplash.com/photo-1564890369478-c89ca6d9cde9?w=1920') center/cover;
}

.page-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    width: 100%;
}

.page-hero-title {
    font-size: 52px;
    color: var(--white);
    margin-bottom: 15px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.page-hero-text {
    font-size: 18px;
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: 0.9;
}

/* About Content Section */
.about-content {
    padding: 80px 0;
    background: var(--light-color);
}

.about-content .container {
    background: var(--white);
    padding: 60px;
    border: 1px solid rgba(139,105,20,0.2);
}

.about-content h2 {
    font-size: 36px;
    color: var(--dark-color);
    margin-bottom: 25px;
}

.about-content h3 {
    font-size: 28px;
    color: var(--dark-color);
    margin: 35px 0 15px;
}

.about-content h4 {
    font-size: 24px;
    color: var(--dark-color);
    margin: 30px 0 12px;
}

.about-content p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 20px;
}

.about-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0;
    margin: 30px 0;
}

.about-content ul,
.about-content ol {
    margin: 20px 0 20px 25px;
}

.about-content li {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-color);
    margin-bottom: 10px;
}

/* Responsive Styles for About Page */
@media (max-width: 992px) {
    .page-hero-title {
        font-size: 40px;
    }
    
    .about-content .container {
        padding: 40px;
    }
}

@media (max-width: 768px) {
    .page-hero {
        height: 250px;
    }
    
    .page-hero-title {
        font-size: 32px;
    }
    
    .about-content .container {
        padding: 30px 20px;
    }
}
