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

:root {
    --primary-color: #8b0000; /* Đỏ đô */
    --accent-color: #b8860b; /* Vàng đồng */
    --text-main: #333333;
    --text-light: #666666;
    --bg-light: #fafafa;
    --border-color: #eaeaea;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: #ffffff;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

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

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

/* Header */
header {
    border-bottom: 1px solid var(--border-color);
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-bar {
    background: var(--bg-light);
    font-size: 13px;
    padding: 8px 0;
    color: var(--text-light);
}

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

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

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

.logo {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 1px;
}

.logo img {
    max-height: 60px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

nav ul li a {
    font-size: 15px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

/* Hero Banner */
.hero-banner {
    background: url('https://dingdangvietnam.com/cdn/shop/files/611649066_1330675125769360_1009908293663754662_n.jpg?v=1767854789&width=2000') center/cover no-repeat;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    position: relative;
}

.hero-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.3);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 48px;
    margin-bottom: 15px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border: 1px solid var(--primary-color);
    background: var(--primary-color);
    color: #fff;
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.btn-outline {
    background: transparent;
    border-color: #fff;
}

.btn-outline:hover {
    background: #fff;
    color: var(--text-main);
}

/* Section Title */
.section-title {
    text-align: center;
    margin: 60px 0 40px;
}

.section-title h2 {
    font-family: var(--font-heading);
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.section-title p {
    color: var(--text-light);
    font-style: italic;
    font-family: var(--font-heading);
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.product-card {
    text-align: center;
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/4;
    background: var(--bg-light);
    margin-bottom: 15px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

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

.product-info h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    margin-bottom: 8px;
    font-weight: 600;
}

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

/* Footer */
footer {
    background: var(--bg-light);
    padding: 60px 0 20px;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-widget h4 {
    font-family: var(--font-heading);
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.footer-widget p, .footer-widget li {
    color: var(--text-light);
    margin-bottom: 10px;
    font-size: 14px;
}

.footer-widget ul {
    list-style: none;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    color: var(--text-light);
    font-size: 13px;
}

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

.form-control {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border: 1px solid #d8d8d8;
    border-radius: 10px;
    background: #fff;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 48px;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02);
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.form-control:hover {
    border-color: #bdbdbd;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(139, 0, 0, 0.1);
}

.form-control::placeholder {
    color: #a8a8a8;
}

.auth-page {
    background: linear-gradient(135deg, #faf7f5 0%, #fff 52%, #f7f1ea 100%);
    padding: 70px 15px;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-card {
    background: #fff;
    padding: 44px 40px;
    width: 100%;
    max-width: 460px;
    border: 1px solid rgba(139, 0, 0, 0.08);
    border-radius: 22px;
    box-shadow: 0 18px 50px rgba(55, 32, 21, 0.09);
}

.auth-heading {
    text-align: center;
    margin-bottom: 32px;
}

.auth-heading h2 {
    font-family: var(--font-heading);
    font-size: 30px;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.auth-heading p {
    color: var(--text-light);
    margin-top: 0;
}

.auth-form {
    display: grid;
    gap: 18px;
}

.auth-form .form-group {
    margin-bottom: 0;
}

.auth-form .form-group.has-bottom-space {
    margin-bottom: 12px;
}

.auth-form label {
    display: block;
    margin-bottom: 8px;
    color: #3d3d3d;
    font-size: 14px;
    font-weight: 600;
}

.auth-form .btn {
    width: 100%;
    min-height: 50px;
    border-radius: 999px;
    font-size: 15px;
    margin-top: 4px;
}

.auth-switch {
    text-align: center;
    margin-top: 26px;
    color: var(--text-light);
    font-size: 14px;
}

.auth-switch a {
    color: var(--primary-color);
    font-weight: 700;
}

.auth-alert {
    background: #fff1f1;
    color: #8b1e1e;
    padding: 14px 16px;
    margin-bottom: 22px;
    border: 1px solid #ffd1d1;
    border-radius: 12px;
    font-size: 14px;
}

.auth-alert ul {
    margin: 0;
    padding-left: 20px;
}

@media (max-width: 575px) {
    .auth-page {
        padding: 45px 14px;
    }

    .auth-card {
        padding: 34px 22px;
        border-radius: 18px;
    }

    .auth-heading h2 {
        font-size: 26px;
    }
}

/* Detail Page */
.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin: 40px 0;
}

.detail-image img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
}

.detail-info h1 {
    font-family: var(--font-heading);
    font-size: 32px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.detail-price {
    font-size: 24px;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 25px;
}

.detail-desc {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 30px;
}

/* Blog List */
.blog-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.blog-card {
    border: 1px solid var(--border-color);
}

.blog-image img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.blog-content {
    padding: 20px;
}

.blog-content h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    margin-bottom: 10px;
}

.blog-date {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 15px;
}

/* ============================================================
   DING DANG HOMEPAGE – matches dingdangvietnam.com style
   ============================================================ */

/* ---------- Font (Jost like the reference) ---------- */
@import url('https://fonts.googleapis.com/css2?family=Jost:wght@300;400;500;600;700&display=swap');

/* ---------- Slider / Slideshow ---------- */
.dd-home-slideshow { margin: 0; }
.dd-home-slideshow .swiper { width: 100%; }
.dd-slide-item { position: relative; }
.dd-slide-link { display: block; }
.dd-slide-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 16/9;
}
@media (min-width: 768px) {
    .dd-slide-image { aspect-ratio: 16/9; }
}
@media (max-width: 767px) {
    .dd-slide-image { aspect-ratio: auto; max-height: 100vh; }
}

.dd-slide-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 2;
}
.dd-slide-content-inner { pointer-events: auto; }
.dd-slide-cta {
    font-family: 'Jost', sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #ffffff !important;
    padding: 12px 32px;
    border: 1px solid rgba(255,255,255,0.6);
    backdrop-filter: blur(4px);
    transition: all 0.35s ease;
    opacity: 0;
    transform: translateY(20px);
}
.swiper-slide-active .dd-slide-cta {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.4s;
}
.dd-slide-cta:hover {
    background: #fff;
    color: #111;
    border-color: #fff;
}

/* Swiper arrows */
.dd-swiper-actions {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    z-index: 10;
    transform: translateY(-50%);
    pointer-events: none;
}
.dd-swiper-actions .swiper-arrow {
    pointer-events: auto;
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(6px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    transition: all 0.3s;
    box-shadow: 0 2px 12px rgba(0,0,0,0.12);
}
.dd-swiper-actions .swiper-arrow::after { font-size: 16px; font-weight: 700; }
.dd-swiper-actions .swiper-arrow:hover { background: #fff; color: #111; }
.dd-swiper-actions .swiper-button-prev { position: absolute; left: 30px; }
.dd-swiper-actions .swiper-button-next { position: absolute; right: 30px; }
.dd-swiper-actions .swiper-button-disabled { opacity: 0; }

/* Swiper pagination */
.dd-swiper-pagination {
    position: absolute;
    bottom: 30px !important;
    left: 50% !important;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}
.dd-swiper-pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: rgba(255,255,255,0.5);
    opacity: 1;
    border-radius: 50%;
    transition: all 0.3s;
}
.dd-swiper-pagination .swiper-pagination-bullet-active {
    background: #fff;
    width: 28px;
    border-radius: 5px;
}

@media (max-width: 767px) {
    .dd-swiper-actions { display: none; }
    .dd-swiper-pagination { bottom: 16px !important; }
}

/* ---------- Section Shared ---------- */
.dd-section-full {
    padding: 50px 15px;
    max-width: 1410px;
    margin: 0 auto;
}
@media (min-width: 768px) { .dd-section-full { padding: 60px 30px; } }
@media (min-width: 1200px) { .dd-section-full { padding: 100px 45px; } }

/* ---------- Product Cards ---------- */
.dd-product-section { background: #fff; }
.dd-product-row {
    display: flex;
    flex-wrap: wrap;
}
.dd-product-col {
    margin-bottom: 30px;
}
.dd-product-card {
    position: relative;
    border-radius: 10px;
    overflow: visible;
    transition: transform 0.35s ease;
}
.dd-product-card:hover { transform: translateY(-4px); }
.dd-product-image-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}
.dd-product-image-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0);
    transition: background 0.4s;
    z-index: 1;
    pointer-events: none;
    border-radius: 10px;
}
.dd-product-card:hover .dd-product-image-wrap::after {
    background: rgba(0,0,0,0.06);
}
.dd-product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 2/3;
    display: block;
    transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.dd-product-image--main {
    position: relative;
    z-index: 1;
    opacity: 1;
}

.dd-product-image--hover {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0;
}

.dd-product-card:hover .dd-product-image--main {
    opacity: 0;
    transform: scale(1.06);
}

.dd-product-card:hover .dd-product-image--hover {
    opacity: 1;
    transform: scale(1.06);
}

.dd-product-card:hover .dd-product-image--main:only-child,
.dd-product-card:hover .dd-product-image:only-of-type {
    opacity: 1;
    transform: scale(1.06);
}
.dd-product-details {
    padding: 15px 5px 5px;
}
.dd-product-name {
    font-family: 'Jost', sans-serif;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #111;
    margin: 0;
}
.dd-product-name a {
    color: #111;
    transition: color 0.3s;
}
.dd-product-name a:hover { color: #555; }
.dd-product-price {
    font-family: 'Jost', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #111;
}

/* Load more */
.dd-load-more { margin-top: 30px; }
.dd-btn-link {
    font-family: 'Jost', sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #111;
    border: 1px solid #111;
    padding: 14px 40px;
    border-radius: 30px;
    transition: all 0.35s;
    display: inline-block;
}
.dd-btn-link:hover {
    background: #111;
    color: #fff;
    border-color: #111;
}

/* ---------- Banner Section ---------- */
.dd-home-banners { background: #fff; }
.dd-banner-row { margin: 0; }
.dd-banner-item { padding: 0; flex: 0 0 50%; max-width: 50%; width: 50%; }
.dd-banner-inner { position: relative; }
.dd-banner-link {
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
}
.dd-banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 1/1;
    display: block;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.dd-banner-inner:hover .dd-banner-image {
    transform: scale(1.05);
}
.dd-banner-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: 40px 60px 60px;
    z-index: 2;
    pointer-events: none;
}
.dd-banner-heading {
    font-family: 'Jost', sans-serif;
    font-size: 36px;
    font-weight: 400;
    letter-spacing: 5px;
    color: #fff;
    text-transform: uppercase;
    margin: 0 0 10px;
    text-shadow: 0 1px 8px rgba(0,0,0,0.3);
}
.dd-banner-btn {
    font-family: 'Jost', sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,0.6);
    padding-bottom: 4px;
    transition: all 0.3s;
    pointer-events: auto;
}
.dd-banner-btn:hover {
    color: #fff;
    border-color: #fff;
}

@media (max-width: 767px) {
    .dd-banner-heading { font-size: 22px; letter-spacing: 3px; }
    .dd-banner-content { padding: 20px 20px 30px; }
}

/* ---------- Collection List ---------- */
.dd-collection-list { background: #fff; }
.dd-collection-row { display: flex; flex-wrap: wrap; justify-content: center; }
.dd-collection-item { margin-bottom: 30px; }
.dd-collection-image {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.collection-item:hover .dd-collection-image {
    transform: scale(1.04);
}
.dd-collection-title {
    font-family: 'Jost', sans-serif;
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #111;
    text-align: center;
    margin-top: 15px;
}
.dd-collection-title a { color: #111; transition: color 0.3s; }
.dd-collection-title a:hover { color: #555; }

/* Hover zoom helper */
.hover-zoom { overflow: hidden; }
.hover-effect:hover img { transform: scale(1.05); }

/* ---------- Brand Statement ---------- */
.dd-brand-statement {
    padding: 60px 0;
    background: #fff;
    text-align: center;
}
.dd-statement-logo {
    margin-bottom: 20px;
}
.dd-statement-logo img {
    max-width: 180px;
    height: auto;
}
.dd-statement-text h6 {
    font-family: 'Jost', sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: #555;
    line-height: 1.8;
    letter-spacing: 0.3px;
}

/* ---------- Blog Section ---------- */
.dd-blog-section { background: #fff; }
.dd-section-heading {
    font-family: 'Jost', sans-serif;
    font-size: 28px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #111;
}
.dd-blog-item { background: #fff; }
.dd-blog-image {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.5s;
}
.dd-blog-item:hover .dd-blog-image {
    transform: scale(1.04);
}
.dd-blog-title {
    font-family: 'Jost', sans-serif;
    font-size: 18px;
    font-weight: 500;
    color: #111;
    margin: 0;
}
.dd-blog-title a { color: #111; transition: color 0.3s; }
.dd-blog-title a:hover { color: #555; }
.dd-blog-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
}
.dd-blog-link {
    font-family: 'Jost', sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #111;
    border-bottom: 1px solid #111;
    padding-bottom: 2px;
    transition: all 0.3s;
}
.dd-blog-link:hover {
    color: #555;
    border-color: #555;
}

/* ---------- Utility Classes ---------- */
.show-on-desktop { display: block; }
@media (max-width: 767px) { .show-on-desktop { display: none; } }
