@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400..700;1,400..700&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');

:root {
    --primary-color: #ab2328;
    --secondary-color: #ffee8c;
    --bg-color: #f4efe3;
    --text-color: #000000;
    --white: #ffffff;
    --gray-light: #e0e0e0;
    --font-title: 'Cinzel', serif;
    /* SVN-Swashington replacement */
    --font-body: 'Lora', serif;
    --font-nav: 'Montserrat', sans-serif;
    --font-accent: 'Cinzel', serif;

    --h1-size: 52px;
    --h2-size: 36px;
    --body-size: 18px;
    --price-size: 18px;
    --transition: all 0.3s ease;
    --container-width: 1200px;
}

@media (max-width: 768px) {
    :root {
        --h1-size: 36px;
        --h2-size: 28px;
        --body-size: 15px;
    }
}

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

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

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-title);
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: var(--h1-size);
}

h2 {
    font-size: var(--h2-size);
}

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

ul {
    list-style: none;
}

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

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: var(--white);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 4px;
    letter-spacing: 1px;
}

.btn:hover {
    background-color: #8a1c20;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(171, 35, 40, 0.3);
}

/* Header Styles */
header {
    background-color: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-top {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 8px 0;
    font-size: 14px;
    font-family: var(--font-nav);
}

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

.header-main {
    padding: 15px 0;
}

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

.logo img {
    height: 60px;
}

nav ul {
    display: flex;
    gap: 25px;
}

nav ul li a {
    font-family: var(--font-nav);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 15px;
}

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

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

.search-cart {
    display: flex;
    gap: 15px;
    font-size: 20px;
}

/* Mega Menu */
.has-mega {
    position: relative;
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 600px;
    background: var(--white);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    transform: translateY(10px);
}

.has-mega:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-col h4 {
    margin-bottom: 10px;
    color: var(--primary-color);
    border-bottom: 1px solid var(--gray-light);
    padding-bottom: 5px;
    font-family: var(--font-title);
    font-size: 16px;
}

.mega-col ul li {
    margin-bottom: 5px;
}

/* Breadcrumb */
.breadcrumb {
    padding: 20px 0;
    font-family: var(--font-nav);
    font-size: 14px;
}

.breadcrumb a {
    color: #666;
}

.breadcrumb span {
    margin: 0 10px;
    color: #ccc;
}

.breadcrumb .active {
    color: var(--primary-color);
}

/* Footer */
footer {
    background-color: #1a1a1a;
    color: var(--white);
    padding: 60px 0 20px;
}

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

.footer-col h3 {
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
    font-family: var(--font-title);
    font-size: 20px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--primary-color);
}

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

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    text-align: center;
    font-size: 14px;
}

/* Sticky Contact */
.contact-sticky {
    position: fixed;
    right: 20px;
    bottom: 100px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 999;
}

.sticky-item {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 24px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.sticky-item:hover {
    transform: scale(1.1);
}

.hotline {
    background: #ab2328;
}

.zalo {
    background: #0068ff;
}

.tiktok {
    background: #000000;
}

.messenger {
    background: #0084ff;
}

.map-sticky {
    background: #4caf50;
}

.scroll-top {
    position: fixed;
    right: 20px;
    bottom: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    visibility: hidden;
    opacity: 0;
    transition: var(--transition);
    z-index: 999;
}

.scroll-top.show {
    visibility: visible;
    opacity: 1;
}

/* Section Styles */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: var(--h2-size);
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary-color);
}

/* Grids */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    align-items: center;
}

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

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

/* Hero Slider */
.hero-slide {
    height: 600px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: var(--white);
    text-align: center;
}

.hero-content h1 {
    font-size: 64px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 24px;
    margin-bottom: 30px;
    font-weight: 300;
}

/* Product Card */
.product-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
}

.product-card:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.product-img {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1/1;
}

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

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

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.btn-quick-view {
    padding: 10px 20px;
    background: var(--white);
    border: none;
    color: var(--primary-color);
    font-family: var(--font-nav);
    font-weight: 600;
    cursor: pointer;
}

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

.product-info h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.product-info .price {
    color: var(--primary-color);
    font-weight: 700;
    font-family: var(--font-nav);
    font-size: 18px;
    margin-bottom: 15px;
}

.view-detail {
    font-family: var(--font-nav);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 13px;
    border-bottom: 1px solid var(--primary-color);
    color: var(--primary-color);
}

/* Values Section */
.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.value-item {
    transition: var(--transition);
}

.value-icon {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* Seasonal Items */
.seasonal-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    height: 300px;
}

.seasonal-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.seasonal-item h3 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: var(--white);
    text-align: center;
    font-size: 22px;
}

/* Responsive Overrides */
@media (max-width: 992px) {

    .grid-3,
    .grid-4,
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Archive Page Styles */
.page-archive {
    padding-bottom: 80px;
}

.archive-layout {
    display: flex;
    gap: 40px;
}

.sidebar {
    flex: 0 0 280px;
}

.main-content {
    flex: 1;
}

.filter-group {
    background: var(--white);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}

.filter-group h4 {
    margin-bottom: 15px;
    border-bottom: 1px solid var(--gray-light);
    padding-bottom: 10px;
    text-transform: uppercase;
    font-size: 16px;
    color: var(--primary-color);
}

.filter-group ul li {
    margin-bottom: 10px;
    font-family: var(--font-nav);
    font-size: 15px;
}

.filter-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.archive-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.sort-by select {
    padding: 8px 15px;
    border: 1px solid var(--gray-light);
    font-family: var(--font-nav);
    outline: none;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 50px;
}

.pagination a {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--white);
    border: 1px solid var(--gray-light);
    font-family: var(--font-nav);
    font-weight: 600;
}

.pagination a.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.pagination a:hover:not(.active) {
    background: var(--gray-light);
}

@media (max-width: 992px) {
    .archive-layout {
        flex-direction: column;
    }

    .sidebar {
        flex: none;
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* Product Detail Page Styles */
.product-detail-layout {
    display: flex;
    gap: 60px;
    margin-bottom: 60px;
}

.product-images-scroll {
    flex: 0 0 550px;
    height: 800px;
    overflow-y: auto;
    scrollbar-width: thin;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.product-images-scroll::-webkit-scrollbar {
    width: 6px;
}

.product-images-scroll::-webkit-scrollbar-thumb {
    background: var(--gray-light);
    border-radius: 10px;
}

.product-images-scroll img {
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.product-info-column {
    flex: 1;
    position: sticky;
    top: 100px;
    height: fit-content;
}

.product-title {
    font-size: 32px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.product-price {
    font-family: var(--font-nav);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.product-meta {
    background: var(--white);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.product-meta p {
    margin-bottom: 15px;
}

.product-meta p strong {
    color: var(--primary-color);
}

.product-description {
    margin-bottom: 30px;
    font-size: 17px;
}

.product-options {
    margin-bottom: 30px;
}

.option-item label {
    display: block;
    margin-bottom: 10px;
    font-family: var(--font-nav);
    font-weight: 600;
}

.option-item select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--gray-light);
    font-family: var(--font-nav);
}

.add-to-cart-section {
    display: flex;
    gap: 20px;
    align-items: center;
}

.quantity-input {
    display: flex;
    border: 1px solid var(--gray-light);
    border-radius: 4px;
    overflow: hidden;
}

.quantity-input button {
    width: 40px;
    height: 48px;
    background: var(--white);
    border: none;
    cursor: pointer;
    font-size: 18px;
}

.quantity-input input {
    width: 60px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--gray-light);
    border-right: 1px solid var(--gray-light);
    font-family: var(--font-nav);
    font-weight: 600;
}

/* Extra Info Section */
.info-card {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.info-card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.info-card i {
    margin-right: 10px;
}

/* News Page Styles */
.news-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
}

.news-img {
    height: 200px;
}

.news-img img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.news-info {
    padding: 20px;
}

.news-date {
    font-family: var(--font-nav);
    font-size: 13px;
    color: #888;
    display: block;
    margin-bottom: 10px;
}

.news-info h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.news-info p {
    font-size: 15px;
    margin-bottom: 15px;
}

.read-more {
    font-family: var(--font-nav);
    font-weight: 600;
    color: var(--primary-color);
    font-size: 14px;
}

/* News Single Page */
.page-news-single {
    max-width: 900px;
    padding-bottom: 80px;
}

.news-single-header {
    text-align: center;
    margin-bottom: 40px;
}

.news-single-header h1 {
    margin-bottom: 20px;
}

.news-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    font-size: 14px;
    color: #666;
}

.news-toc {
    background: #fdfdfd;
    padding: 30px;
    border: 1px solid var(--gray-light);
    border-radius: 8px;
    margin-bottom: 40px;
}

.news-toc h4 {
    margin-bottom: 15px;
    text-transform: uppercase;
}

.news-toc ul li {
    margin-bottom: 8px;
}

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

.news-article h2 {
    margin: 40px 0 20px;
    color: var(--primary-color);
}

.news-article img {
    border-radius: 8px;
    margin: 30px 0;
}

.news-article p {
    margin-bottom: 20px;
}

.news-related {
    margin-top: 60px;
    border-top: 1px solid var(--gray-light);
    padding-top: 40px;
}

/* Contact Page Styles */
.contact-form {
    margin-top: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--gray-light);
    border-radius: 4px;
    font-family: var(--font-body);
    outline: none;
    background: #fff;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(171, 35, 40, 0.1);
}

.map-box {
    border-radius: 8px;
    overflow: hidden;
    margin-top: 15px;
    border: 1px solid var(--gray-light);
}

.social-icon {
    display: inline-flex;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--white);
    color: var(--primary-color);
    justify-content: center;
    align-items: center;
    margin-right: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.social-icon:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* Common Header/Nav fixes */
.nav-active {
    color: var(--primary-color);
    font-weight: 700;
}

/* Global Responsive Fixes */
@media (max-width: 768px) {
    .header-main .container {
        flex-direction: column;
        gap: 15px;
    }

    nav ul {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .header-actions {
        width: 100%;
        justify-content: center;
    }

    .hero-content h1 {
        font-size: 32px;
    }

    .section {
        padding: 50px 0;
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }
}