/* style.css */
/*
Theme Name: Oriental Essence
Theme URI: https://gomalleasy.com
Author: Your Name
Author URI: https://gomalleasy.com
Description: A multi-language WooCommerce theme with Red Gold theme, supporting wishlist, compare, cart, checkout, account, and blog.
Version: 1.0.0
License: GPL v2 or later
Text Domain: oriental-essence
Domain Path: /languages
WC requires at least: 6.0
WC tested up to: 8.0
*/

/* ===== Global Reset & Variables ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, sans-serif;
}
:root {
    --china-red: #C70000;
    --china-red-dark: #A80000;
    --gold: #FFD700;
    --gray-text: #666;
    --light-bg: #f8f8f8;
    --border-color: #eee;
}
body {
    background: var(--light-bg);
    color: #333;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}
a {
    text-decoration: none;
    color: inherit;
}
ul {
    list-style: none;
}
.section {
    margin: 50px 0;
}
.section-title {
    text-align: center;
    font-size: 24px;
    color: var(--china-red);
    margin-bottom: 10px;
}
.section-desc {
    text-align: center;
    color: #777;
    margin-bottom: 30px;
    font-size: 14px;
}

/* ===== Top Bar ===== */
.topbar {
    background: #f5f5f5;
    padding: 10px 0;
    font-size: 12px;
    color: var(--gray-text);
    border-bottom: 1px solid var(--border-color);
}
.topbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.topbar-left {
    display: flex;
    gap: 20px;
    align-items: center;
}
.topbar-left select {
    border: none;
    background: transparent;
    color: var(--gray-text);
    outline: none;
}
.topbar-right {
    display: flex;
    gap: 20px;
}

/* ===== Main Header ===== */
.main-header {
    background: #fff;
    padding: 22px 0;
    border-bottom: 1px solid var(--border-color);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}
.logo {
    font-size: 28px;
    font-weight: bold;
    color: var(--china-red);
    white-space: nowrap;
}
.search-form {
    flex: 1;
    max-width: 560px;
    display: flex;
}
.search-form input {
    width: 100%;
    height: 46px;
    padding: 0 15px;
    border: 1px solid var(--border-color);
    border-right: 0;
    background: #f9f9f9;
    outline: none;
    font-size: 14px;
}
.search-form button {
    width: 50px;
    height: 46px;
    background: var(--china-red);
    color: #fff;
    border: none;
    cursor: pointer;
}
.header-icons {
    display: flex;
    gap: 25px;
}
.icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 12px;
    gap: 4px;
    color: #222;
    cursor: pointer;
}
.icon-item i {
    font-size: 18px;
}
.icon-item:hover {
    color: var(--china-red);
}
.cart-icon {
    position: relative;
}
.cart-count {
    position: absolute;
    top: -5px;
    right: -6px;
    width: 16px;
    height: 16px;
    background: var(--china-red);
    color: #fff;
    border-radius: 50%;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== Navigation ===== */
.main-nav {
    background: var(--china-red);
}
.nav-list {
    display: flex;
    gap: 35px;
    height: 52px;
    align-items: center;
}
.nav-list a {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
}
.nav-list a:hover {
    color: var(--gold);
}

/* ===== Banner ===== */
.banner {
    width: 100%;
    height: 550px;
    background: url('https://images.unsplash.com/photo-1555041469-a586c61ea9bc?ixlib=rb-4.0.3&w=1600&q=80') center/cover;
    display: flex;
    align-items: center;
    padding: 0 10%;
    position: relative;
}
.banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.05);
}
.banner-content {
    position: relative;
    z-index: 2;
    max-width: 500px;
}
.banner h1 {
    font-size: 46px;
    margin-bottom: 15px;
    color: #222;
}
.banner p {
    font-size: 16px;
    margin-bottom: 25px;
    color: #444;
}
.banner-btn {
    display: inline-block;
    padding: 12px 28px;
    background: var(--china-red);
    color: #fff;
    border-radius: 4px;
    font-size: 14px;
}
.banner-btn:hover {
    background: var(--china-red-dark);
}

/* ===== Product Card ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
}
.product-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: 0.3s;
    position: relative;
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.08);
}
.product-img {
    height: 180px;
    background: #f1f1f1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    background-size: cover;
    background-position: center;
}
.product-info {
    padding: 15px;
}
.product-title {
    font-size: 14px;
    margin-bottom: 6px;
}
.product-price {
    font-size: 16px;
    font-weight: bold;
    color: var(--china-red);
}
.rating {
    color: var(--gold);
    font-size: 12px;
    margin-bottom: 6px;
}
.badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--china-red);
    color: var(--gold);
    padding: 3px 8px;
    font-size: 10px;
    border-radius: 3px;
}

/* ===== Categories Grid ===== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 20px;
    text-align: center;
}
.category-item {
    background: #fff;
    padding: 18px;
    border-radius: 6px;
    transition: 0.3s;
}
.category-item:hover {
    background: #fff5f5;
    transform: translateY(-3px);
}
.category-item h4 {
    font-size: 14px;
    margin-bottom: 4px;
}
.category-item p {
    font-size: 12px;
    color: #777;
}

/* ===== Brands Grid ===== */
.brands-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}
.brand-item {
    background: #fff;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: 0.3s;
    border: 1px solid var(--border-color);
}
.brand-item:hover {
    border-color: var(--gold);
}

/* ===== Collections Grid ===== */
.collections-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.collection-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}
.collection-img {
    height: 220px;
    background: #f1f1f1;
}
.collection-info {
    padding: 15px;
}

/* ===== Collection Large ===== */
.collection-large {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
}
.collection-wrap {
    display: flex;
    gap: 30px;
    align-items: center;
}
.collection-left {
    flex: 2;
}
.collection-right {
    flex: 1;
}
.collection-desc {
    color: #777;
    margin: 15px 0;
    line-height: 1.6;
}

/* ===== Guide Box ===== */
.guide-box {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
}
.guide-text {
    line-height: 1.7;
    color: #555;
    margin-bottom: 20px;
}
.guide-list {
    padding-left: 20px;
}
.guide-list li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 15px;
}
.guide-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--china-red);
}

/* ===== Articles Slider ===== */
.articles-slider {
    position: relative;
    overflow: hidden;
}
.articles-track {
    display: flex;
    gap: 25px;
    transition: 0.4s ease;
}
.article-card {
    min-width: 33.333%;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}
.article-img {
    height: 200px;
    background: #f1f1f1;
}
.article-info {
    padding: 20px;
}
.article-meta {
    font-size: 12px;
    color: #999;
    margin-bottom: 10px;
}
.article-title {
    font-size: 16px;
    margin-bottom: 10px;
}
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: var(--china-red);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
}
.prev-btn {
    left: 15px;
}
.next-btn {
    right: 15px;
}

/* ===== Footer ===== */
footer {
    background: #1a1a1a;
    color: #ccc;
    padding-top: 60px;
    margin-top: 60px;
}
.footer-top {
    padding-bottom: 40px;
    border-bottom: 1px solid #333;
}
.footer-columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}
.footer-col h4 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gold);
}
.footer-col li {
    margin-bottom: 10px;
}
.footer-col a:hover {
    color: var(--gold);
}
.footer-logo {
    font-size: 22px;
    color: var(--gold);
    font-weight: bold;
    margin-bottom: 15px;
}
.footer-desc {
    margin-bottom: 20px;
    line-height: 1.6;
}
.footer-social {
    display: flex;
    gap: 12px;
}
.footer-social a {
    color: #fff;
    background: #292929;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.footer-social a:hover {
    background: var(--china-red);
    color: var(--gold);
}
.newsletter-form {
    display: flex;
    margin-top: 12px;
}
.newsletter-form input {
    flex: 1;
    padding: 10px;
    border: none;
    outline: none;
}
.newsletter-form button {
    background: var(--china-red);
    color: #fff;
    border: none;
    padding: 0 14px;
    cursor: pointer;
}
.footer-bottom {
    padding: 25px 0;
    background: #111;
}
.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.copyright {
    color: #777;
}
.payments img {
    max-width: 260px;
}

/* Responsive */
@media (max-width: 768px) {
    .header-inner {
        flex-wrap: wrap;
    }
    .nav-list {
        gap: 15px;
        flex-wrap: wrap;
    }
    .brands-grid, .collections-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .articles-track .article-card {
        min-width: 100%;
    }
}