/*
Theme Name: TCA Peeling E-commerce Theme
Author: Advanced AI
Description: Premium skincare e-commerce theme with modern design
Version: 2.0.0
Text Domain: tcapeeling
*/

/* ===== CSS VARIABLES ===== */
:root {
    --primary: #1a3a2a;
    --primary-light: #2d7a5f;
    --secondary: #c8956c;
    --accent: #e8d5b7;
    --bg: #faf8f5;
    --bg-card: #ffffff;
    --text-dark: #1a1a1a;
    --text-body: #555555;
    --text-light: #888888;
    --border: #e8e2da;
    --shadow-sm: 0 2px 8px rgba(26,58,42,0.06);
    --shadow-md: 0 8px 30px rgba(26,58,42,0.08);
    --shadow-lg: 0 20px 60px rgba(26,58,42,0.12);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg);
    color: var(--text-body);
    margin: 0;
    padding: 0;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.2;
    font-weight: 800;
}

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

/* ===== HEADER ===== */
.site-header {
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(232,226,218,0.5);
    position: sticky;
    top: 0;
    z-index: 9999;
    transition: all var(--transition);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-branding a {
    font-size: 22px;
    font-weight: 900;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: -0.5px;
}

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

.main-navigation a {
    color: var(--text-body);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding: 8px 0;
    transition: color var(--transition);
}

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

.main-navigation a:hover { color: var(--primary); }
.main-navigation a:hover::after { width: 100%; }

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.cart-icon {
    position: relative;
    color: var(--primary);
    font-size: 18px;
    text-decoration: none;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg);
    transition: all var(--transition);
}

.cart-icon:hover {
    background: var(--primary);
    color: #fff;
}

.cart-count {
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--secondary);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== HERO SECTION ===== */
.hero-section {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #1a3a2a 0%, #2d5a45 50%, #1a3a2a 100%);
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 70% 50%, rgba(200,149,108,0.15) 0%, transparent 60%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    padding: 0 20px 0 80px;
    animation: fadeInUp 1s ease;
}

.hero-badge {
    display: inline-block;
    padding: 6px 18px;
    background: rgba(200,149,108,0.2);
    border: 1px solid rgba(200,149,108,0.4);
    border-radius: 30px;
    color: var(--secondary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.hero-title {
    font-size: 56px;
    font-weight: 900;
    color: #fff;
    line-height: 1.05;
    letter-spacing: -2px;
    margin: 0 0 20px;
}

.hero-title span { color: var(--secondary); }

.hero-desc {
    font-size: 17px;
    color: rgba(255,255,255,0.7);
    line-height: 1.8;
    margin-bottom: 36px;
}

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

.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all var(--transition);
    border: none;
    text-decoration: none;
}

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

.btn-primary:hover {
    background: #b8854e;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(200,149,108,0.4);
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.3);
}

.btn-secondary:hover {
    border-color: #fff;
    color: #fff;
    background: rgba(255,255,255,0.1);
}

.hero-float {
    position: absolute;
    right: 8%;
    top: 50%;
    transform: translateY(-50%);
    width: 450px;
    height: 450px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(200,149,108,0.1) 0%, transparent 70%);
    z-index: 1;
    animation: float 6s ease-in-out infinite;
}

/* ===== MARQUEE ===== */
.marquee-bar {
    background: var(--primary);
    padding: 14px 0;
    overflow: hidden;
    white-space: nowrap;
}

.marquee-track {
    display: inline-block;
    animation: marquee 25s linear infinite;
}

.marquee-track span {
    color: rgba(255,255,255,0.5);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-right: 60px;
}

.marquee-track span::before {
    content: '✦';
    margin-right: 60px;
    color: var(--secondary);
}

/* ===== SECTION COMMON ===== */
.section { padding: 100px 0; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-badge {
    display: inline-block;
    padding: 6px 18px;
    background: rgba(45,122,95,0.08);
    border-radius: 30px;
    color: var(--primary-light);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.section-title {
    font-size: 42px;
    font-weight: 900;
    color: var(--text-dark);
    letter-spacing: -1px;
    margin: 0 0 16px;
}
.section-desc {
    font-size: 16px;
    color: var(--text-light);
    max-width: 560px;
    margin: 0 auto;
}

/* ===== PRODUCT GRID ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.product-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--transition);
    border: 1px solid var(--border);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.product-card-img {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--bg);
}

.product-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.product-card-body { padding: 20px; }

.product-card-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 8px;
    line-height: 1.4;
}

.product-card-price {
    font-size: 18px;
    font-weight: 800;
    color: var(--secondary);
}

.product-card-price del {
    font-size: 14px;
    color: var(--text-light);
    font-weight: 400;
    margin-left: 8px;
}

/* ===== CATEGORIES ===== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.category-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 16/10;
    cursor: pointer;
}

.category-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26,58,42,0.85) 0%, transparent 60%);
    z-index: 1;
    transition: all var(--transition);
}

.category-card:hover::before { background: linear-gradient(to top, rgba(26,58,42,0.95) 0%, rgba(26,58,42,0.3) 100%); }

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.category-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    z-index: 2;
}

.category-card-title {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 6px;
}

.category-card-count {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
}

/* ===== TRUST FEATURES ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.feature-card {
    text-align: center;
    padding: 40px 24px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    transition: all var(--transition);
}

.feature-card:hover {
    border-color: var(--secondary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 24px;
}

.feature-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 8px;
}

.feature-desc {
    font-size: 13px;
    color: var(--text-light);
    margin: 0;
}

/* ===== FAQ ===== */
.faq-list { max-width: 800px; margin: 0 auto; }

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    overflow: hidden;
    transition: all var(--transition);
}

.faq-item:hover { border-color: var(--secondary); }

.faq-question {
    padding: 20px 24px;
    font-weight: 700;
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
}

.faq-question::after {
    content: '+';
    font-size: 20px;
    color: var(--secondary);
    font-weight: 300;
    transition: transform var(--transition);
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-answer-inner {
    padding: 0 24px 20px;
    color: var(--text-body);
    font-size: 14px;
    line-height: 1.8;
}

.faq-item.active .faq-answer { max-height: 500px; }

/* ===== NEWSLETTER ===== */
.newsletter-section {
    background: linear-gradient(135deg, var(--primary) 0%, #2d5a45 100%);
    border-radius: var(--radius-lg);
    padding: 80px 60px;
    text-align: center;
    margin: 0 20px;
    position: relative;
    overflow: hidden;
}

.newsletter-section::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(200,149,108,0.08);
    top: -100px;
    right: -100px;
}

.newsletter-title { font-size: 36px; color: #fff; margin: 0 0 12px; }
.newsletter-desc { color: rgba(255,255,255,0.6); margin: 0 0 32px; }

.newsletter-form {
    display: flex;
    max-width: 480px;
    margin: 0 auto;
    gap: 12px;
}

.newsletter-form input {
    flex: 1;
    padding: 16px 24px;
    border: none;
    border-radius: 50px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    background: rgba(255,255,255,0.12);
    color: #fff;
    outline: none;
}

.newsletter-form input::placeholder { color: rgba(255,255,255,0.4); }

.newsletter-form button {
    padding: 16px 32px;
    background: var(--secondary);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all var(--transition);
}

.newsletter-form button:hover { background: #b8854e; }

/* ===== BLOG GRID ===== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.blog-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all var(--transition);
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.blog-card-img {
    aspect-ratio: 16/10;
    overflow: hidden;
}

.blog-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.blog-card:hover .blog-card-img img { transform: scale(1.06); }

.blog-card-body { padding: 24px; }

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.blog-card-category {
    padding: 4px 12px;
    background: rgba(45,122,95,0.08);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    color: var(--primary-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.blog-card-date {
    font-size: 12px;
    color: var(--text-light);
}

.blog-card-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-dark);
    margin: 0 0 10px;
    line-height: 1.4;
}

.blog-card-title a {
    color: inherit;
    text-decoration: none;
}

.blog-card-title a:hover { color: var(--primary-light); }

.blog-card-excerpt {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.7;
    margin: 0 0 16px;
}

.blog-card-link {
    font-size: 13px;
    font-weight: 700;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.blog-card-link:hover { color: var(--primary); }

.blog-featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    border-radius: var(--radius-lg);
}

.blog-featured .blog-card-img { aspect-ratio: auto; height: 100%; }
.blog-featured .blog-card-body { display: flex; flex-direction: column; justify-content: center; padding: 40px; }
.blog-featured .blog-card-title { font-size: 28px; }

/* ===== BLOG SIDEBAR ===== */
.blog-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    align-items: start;
}

.sidebar-widget {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 28px;
    margin-bottom: 24px;
}

.sidebar-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-dark);
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border);
}

.sidebar-categories li {
    list-style: none;
    margin-bottom: 10px;
}

.sidebar-categories li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    color: var(--text-body);
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition);
}

.sidebar-categories li a:hover {
    background: rgba(45,122,95,0.06);
    color: var(--primary);
}

/* ===== PAGINATION ===== */
.tca-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 60px;
}

.tca-pagination a, .tca-pagination span {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 600;
    font-size: 14px;
    border: 1px solid var(--border);
    color: var(--text-body);
    transition: all var(--transition);
}

.tca-pagination a:hover { border-color: var(--secondary); color: var(--secondary); }
.tca-pagination .current { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ===== FOOTER ===== */
.site-footer {
    background: var(--primary);
    color: rgba(255,255,255,0.6);
    padding: 80px 20px 30px;
    margin-top: 100px;
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-brand-desc { font-size: 14px; line-height: 1.8; margin: 16px 0 24px; }

.footer-social { display: flex; gap: 10px; }

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.5);
    transition: all var(--transition);
    font-size: 14px;
}

.footer-social a:hover {
    background: var(--secondary);
    border-color: var(--secondary);
    color: #fff;
}

.footer-heading {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 0 0 24px;
}

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

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

.footer-links a {
    color: rgba(255,255,255,0.5);
    font-size: 14px;
    transition: all var(--transition);
}

.footer-links a:hover { color: var(--secondary); }

.footer-bottom {
    max-width: 1200px;
    margin: 50px auto 0;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
    0%, 100% { transform: translateY(-50%) scale(1); }
    50% { transform: translateY(-52%) scale(1.05); }
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.fade-in { opacity: 0; transform: translateY(20px); transition: all 0.8s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero-title { font-size: 40px; }
    .hero-content { padding: 0 40px; }
    .hero-float { display: none; }
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .categories-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .blog-layout { grid-template-columns: 1fr; }
    .blog-featured { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .hero-section { min-height: 70vh; }
    .hero-title { font-size: 32px; }
    .hero-content { padding: 0 20px; }
    .section { padding: 60px 0; }
    .section-title { font-size: 28px; }
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .features-grid { grid-template-columns: 1fr 1fr; }
    .categories-grid { grid-template-columns: 1fr; }
    .blog-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .newsletter-section { padding: 50px 24px; margin: 0; border-radius: 0; }
    .newsletter-form { flex-direction: column; }
    .header-container { padding: 10px 16px; }
    .main-navigation ul { gap: 16px; }
    .main-navigation a { font-size: 12px; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 26px; }
    .hero-buttons { flex-direction: column; }
    .products-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .product-card-body { padding: 12px; }
    .product-card-title { font-size: 13px; }
}

/* ===== WOOCOMMERCE OVERRIDES ===== */
.woocommerce ul.products li.product {
    margin-bottom: 0 !important;
}

.woocommerce ul.products li.product a img {
    border-radius: var(--radius-sm);
}

.woocommerce .button, .woocommerce button.button {
    background: var(--primary) !important;
    color: #fff !important;
    border-radius: 50px !important;
    font-weight: 700 !important;
    padding: 12px 28px !important;
    transition: all var(--transition) !important;
    border: none !important;
}

.woocommerce .button:hover, .woocommerce button.button:hover {
    background: var(--secondary) !important;
    transform: translateY(-2px) !important;
}
