/*
Theme Name: Ốp Việt
Theme URI: https://opviet.vn
Author: Ốp Việt Team
Description: Theme cao cấp cho website vật liệu ốp tường Ốp Việt. Thiết kế hiện đại, sang trọng với bảng màu nâu warm và typography Be Vietnam Pro.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: opviet
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* Base resets — Tailwind handles the rest via CDN */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: 'Be Vietnam Pro', sans-serif;
    background-color: #fbf9f8;
    color: #1b1c1c;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Material Symbols */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* Scrollbar custom */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background-color: #d4c4b7; border-radius: 20px; }

/* Header scroll transition */
#main-header {
    transition: background-color 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}
#main-header.scrolled {
    background-color: #ffffff !important;
    box-shadow: 0px 4px 20px rgba(47, 47, 47, 0.08) !important;
    backdrop-filter: none !important;
}

/* Mobile menu */
#mobile-menu {
    transition: transform 0.3s ease, opacity 0.3s ease;
}
#mobile-menu.hidden {
    display: none;
}

/* Product card hover */
.product-card { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.product-card:hover { transform: translateY(-4px); }

/* Smooth image zoom */
.img-zoom { transition: transform 0.7s ease; }
.img-zoom:hover { transform: scale(1.05); }

/* Category icon hover */
.cat-icon { transition: transform 0.3s ease; }
.cat-card:hover .cat-icon { transform: scale(1.1); }

/* ── WordPress Pagination ── */
.page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 99px; font-size: 14px; font-weight: 600; letter-spacing: .05em; transition: all .2s; border: 1.5px solid #d4c4b7; color: #50453b; margin: 0 3px; text-decoration: none; }
.page-numbers:hover, .page-numbers.current { background-color: #79542e; color: #fff; border-color: #79542e; }
.page-numbers.dots { border: none; pointer-events: none; }

/* ── Hero image contain ── */
.hero-bg { background-size: cover; background-position: center; }

/* ── Prose (blog content) ── */
.prose h2 { font-size: 24px; font-weight: 600; margin: 2rem 0 1rem; color: #1b1c1c; }
.prose h3 { font-size: 20px; font-weight: 600; margin: 1.5rem 0 .75rem; color: #1b1c1c; }
.prose p  { margin-bottom: 1rem; }
.prose ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1rem; }
.prose li { margin-bottom: .4rem; }
.prose strong { font-weight: 600; color: #1b1c1c; }
.prose a { color: #79542e; text-decoration: underline; }

/* ── Fix: bento image cover ── */
.bento-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* WordPress alignments */
.alignleft { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { display: block; margin: 0 auto 1rem; }
img.alignleft, img.alignright, img.aligncenter { max-width: 100%; height: auto; }

/* WP caption */
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 12px; color: #50453b; text-align: center; margin-top: 4px; }

/* ── Layout constraint fallbacks (guarantees Tailwind custom classes work) ── */
.max-w-container-max { max-width: 1280px; }
.px-margin-mobile    { padding-left: 20px;  padding-right: 20px;  }
.py-section-gap      { padding-top: 120px;  padding-bottom: 120px; }
.pt-section-gap      { padding-top: 120px;  }
.pb-section-gap      { padding-bottom: 120px; }
.mb-section-gap      { margin-bottom: 120px; }
.gap-gutter          { gap: 24px; }
@media (min-width: 768px) {
    .md\:px-margin-desktop { padding-left: 64px; padding-right: 64px; }
}

/* Screen reader text */
.screen-reader-text {
    border: 0; clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%); height: 1px; margin: -1px;
    overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important;
}
