/* =========================================================
   THE LUXE CODE
   Main Stylesheet
========================================================= */


/* =========================================================
   01. 全站基礎
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Noto Serif TC", "Times New Roman", serif;
    background: #f8f6f2;
    color: #111;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    transition: 0.3s ease;
}


/* =========================================================
   02. 導覽列 Navbar
========================================================= */

.navbar {
    width: 100%;
    background: #111;
    color: white;
    padding: 25px 8%;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo,
.nav-logo {
    font-size: 22px;
    font-weight: 400;
    letter-spacing: 7px;
}

.logo a,
.nav-logo a,
.navbar a {
    color: white;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    margin-left: 28px;
    font-size: 14px;
    letter-spacing: 2px;
}

.nav-menu a:hover,
.navbar a:hover {
    opacity: 0.7;
}


/* =========================================================
   03. 品牌頁 Hero
========================================================= */

.hero {
    width: 100%;
    padding: 100px 20px 70px;
    text-align: center;
    background: #ece8e1;
}

.hero h1 {
    font-size: 54px;
    font-weight: 400;
    letter-spacing: 10px;
    line-height: 1.4;
}

.hero p {
    margin-top: 18px;
    color: #666;
    font-size: 18px;
    letter-spacing: 3px;
}


/* =========================================================
   04. 品牌商品頁
   CHANEL / DIOR / HERMES / LV / CELINE 等
========================================================= */

.about {
    width: 80%;
    max-width: 1100px;
    margin: 90px auto;
    line-height: 2;
}

.about h2 {
    margin-bottom: 25px;
    font-size: 28px;
    font-weight: 400;
    letter-spacing: 4px;
}

.about > p {
    margin-bottom: 10px;
}


/* 商品 Grid */

.product-grid {
    width: 100%;
    margin-top: 50px;

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}


/* 商品卡片 */

.product-card {
    width: 100%;
    max-width: 320px;
    min-height: 640px;

    margin: 0 auto;
    padding-bottom: 28px;

    background: white;
    text-align: center;

    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.15);
}


/* 商品圖片 */

.product-image {
    width: 100%;
    height: 280px;

    overflow: hidden;
    background: #ddd;
}

.product-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    transition: transform 0.4s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}


/* 商品名稱 */

.product-card h3 {
    height: 60px;

    margin: 24px 20px 10px;

    font-size: 22px;
    font-weight: 400;
    line-height: 1.4;

    display: flex;
    align-items: center;
    justify-content: center;
}


/* 商品編號 */

.product-code {
    color: #777;
    font-size: 14px;
    letter-spacing: 2px;
    margin-top: 8px;
}


/* 分隔線 */

.product-line {
    width: 60%;
    height: 1px;

    margin: 22px auto;

    background: #ddd;
}


/* 商品資訊 */

.product-info {
    height: 130px;

    color: #555;
    font-size: 16px;
    line-height: 2;

    text-align: center;
}


/* 價格 */

.price-text {
    margin-top: 20px;
    margin-bottom: 18px;

    color: #111;
}


/* LINE 按鈕 */

.inquiry-btn {
    display: inline-block;

    padding: 12px 30px;

    border: 1px solid #111;

    color: #111;
    text-decoration: none;
}

.inquiry-btn:hover {
    background: #111;
    color: white;
}


/* 返回品牌總覽 */

.back {
    display: inline-block;

    margin-top: 40px;
    padding: 14px 34px;

    border: 1px solid #111;

    color: #111;
    text-decoration: none;
}

.back:hover {
    background: #111;
    color: white;
}


/* =========================================================
   05. 系列列表
========================================================= */

.series-list {
    margin-top: 30px;
    margin-bottom: 40px;
    padding-left: 20px;
}

.series-list li {
    margin: 12px 0;
    font-size: 18px;
    letter-spacing: 1px;
}


/* =========================================================
   06. bags.html 品牌總覽
========================================================= */

.brand-list {
    width: 86%;
    max-width: 1100px;

    margin: 0 auto 120px;

    display: grid;
    gap: 26px;
}

.brand-card {
    width: 100%;

    padding: 45px 60px;

    background: white;
    border: 1px solid #e6e0d8;

    display: flex;
    justify-content: space-between;
    align-items: center;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.brand-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

.brand-info h2 {
    margin-bottom: 12px;

    font-size: 34px;
    font-weight: 400;
    letter-spacing: 6px;
}

.brand-info h3 {
    margin-bottom: 18px;

    color: #888;

    font-size: 16px;
    font-weight: 400;
    letter-spacing: 4px;
}

.brand-info p {
    color: #666;
    letter-spacing: 2px;
}

.brand-card a {
    color: #111;
    text-decoration: none;

    border-bottom: 1px solid #111;

    padding-bottom: 6px;

    font-size: 14px;
    letter-spacing: 3px;
}


/* =========================================================
   07. 首頁 Hero
========================================================= */

.home-page .hero {
    width: 100%;
    min-height: 720px;

    padding: 100px 8%;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;
}

.home-page .hero h1 {
    width: 100%;
    max-width: 900px;

    margin: 0 auto;

    text-align: center;
}

.home-page .hero p {
    width: 100%;
    max-width: 650px;

    margin: 25px auto 0;

    text-align: center;
}


/* =========================================================
   08. 首頁一般區塊
========================================================= */

.new-arrivals,
.products,
.custom,
.about-section {
    width: 84%;
    max-width: 1200px;

    margin-left: auto;
    margin-right: auto;
}


/* =========================================================
   09. 首頁服飾區塊
========================================================= */

.clothing {
    width: 84%;
    max-width: 1100px;

    margin: 90px auto;

    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;

    background: white;
}

.clothing-text {
    padding: 70px 60px;

    display: flex;
    flex-direction: column;
    justify-content: center;
}

.clothing-text h2 {
    margin-bottom: 20px;

    font-size: 30px;
    font-weight: 400;
    letter-spacing: 2px;

    writing-mode: horizontal-tb;
}

.clothing-text p {
    color: #555;

    font-size: 16px;
    line-height: 2;

    writing-mode: horizontal-tb;
}

.small-line {
    width: 60px;
    height: 1px;

    margin: 20px 0;

    background: #111;
}

.product-btn {
    display: inline-block;

    width: fit-content;

    margin-top: 30px;
    padding: 12px 28px;

    border: 1px solid #111;

    color: #111;
    text-decoration: none;
}

.product-btn:hover {
    background: #111;
    color: white;
}

.clothing-image {
    width: 100%;
    padding-top: 70px;
}

.clothing-image img {
    width: 100%;
    height: 100%;
    min-height: 500px;

    object-fit: cover;
}


/* =========================================================
   10. Footer
========================================================= */

.footer {
    width: 100%;

    margin-top: 120px;
    padding: 80px 20px;

    background: #111;
    color: white;

    text-align: center;
}

.footer h2 {
    margin-bottom: 15px;

    font-size: 32px;
    font-weight: 300;
    letter-spacing: 6px;
}

.footer p {
    margin: 10px 0;

    color: #bbb;

    font-size: 16px;
}

.footer-links {
    margin: 30px 0;
}

.footer-links a {
    margin: 0 18px;

    color: white;
    text-decoration: none;
}

.footer-links a:hover {
    color: #c9a86a;
}

.copyright {
    color: #888 !important;
    font-size: 14px !important;
}


/* =========================================================
   11. 平板版
   601px ～ 1000px
========================================================= */

@media (max-width: 1000px) {

    /* 商品頁 */

    .about {
        width: 88%;
        max-width: 760px;
    }

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
    }

    .product-card {
        width: 100%;
        max-width: 340px;
    }


    /* 首頁服飾 */

    .clothing {
        width: 88%;
        grid-template-columns: 1fr 1fr;
    }

    .clothing-text {
        padding: 45px 35px;
    }


    /* bags */

    .brand-list {
        width: 88%;
    }
}


/* =========================================================
   12. 手機版
   600px 以下
========================================================= */

@media (max-width: 600px) {

    /* -----------------------------------------------------
       Navbar
    ----------------------------------------------------- */

    .navbar {
        padding: 20px;

        flex-direction: column;

        gap: 16px;

        text-align: center;
    }

    .logo,
    .nav-logo {
        font-size: 18px;
        letter-spacing: 5px;
    }

    .nav-menu {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;

        gap: 12px;
    }

    .nav-menu a {
        margin-left: 0;
    }


    /* -----------------------------------------------------
       品牌頁 Hero
    ----------------------------------------------------- */

    .hero {
        padding: 55px 18px 45px;
    }

    .hero h1 {
        font-size: 34px;
        letter-spacing: 4px;
        line-height: 1.4;
    }

    .hero p {
        margin-top: 12px;

        font-size: 15px;
        letter-spacing: 2px;
    }


    /* -----------------------------------------------------
       品牌商品頁
       
       ★ 手機維持兩欄
       ★ 第三個商品自然排左下
    ----------------------------------------------------- */

    .about {
        width: 90%;
        max-width: 420px;

        margin: 45px auto;

        line-height: 1.8;
    }

    .about h2 {
        margin-bottom: 15px;

        font-size: 20px;
        letter-spacing: 2px;
        line-height: 1.5;
    }

    .about > p {
        font-size: 11px;
        line-height: 1.8;
    }


    /* ★ 關鍵：兩欄 */

    .product-grid {
        width: 100%;

        margin-top: 20px;

        display: grid;

        grid-template-columns: repeat(2, minmax(0, 1fr));

        gap: 14px;
    }


    /* 小商品卡 */

    .product-card {
        width: 100%;
        max-width: none;
        min-width: 0;
        min-height: 0;

        margin: 0;

        padding-bottom: 18px;

        background: white;
    }


    /* 商品圖 */

    .product-image {
        width: 100%;
        height: 125px;
    }

    .product-image img {
        width: 100%;
        height: 100%;

        object-fit: cover;
        object-position: center;
    }


    /* 商品名稱 */

    .product-card h3 {
        height: auto;
        min-height: 34px;

        margin: 14px 6px 4px;

        font-size: 13px;
        line-height: 1.4;

        display: flex;
        align-items: center;
        justify-content: center;
    }


    /* 商品編號 */

    .product-code {
        margin-top: 2px;

        color: #777;

        font-size: 9px;
        letter-spacing: 1px;
    }


    /* 分隔線 */

    .product-line {
        width: 60%;
        height: 1px;

        margin: 11px auto;

        background: #ddd;
    }


    /* 商品資訊 */

    .product-info {
        height: auto;
        min-height: 0;

        margin: 0;

        color: #555;

        font-size: 9px;
        line-height: 1.8;
    }


    /* 價格 */

    .price-text {
        margin: 10px 0;

        font-size: 9px;
    }


    /* LINE */

    .inquiry-btn {
        padding: 7px 12px;

        font-size: 9px;
    }


    /* 返回 */

    .back {
        display: block;

        width: fit-content;
        max-width: 100%;

        margin: 18px 0 0;
        padding: 9px 14px;

        font-size: 10px;

        text-align: center;
    }


    /* -----------------------------------------------------
       bags.html
    ----------------------------------------------------- */

    .brand-list {
        width: 92%;

        margin-bottom: 80px;
    }

    .brand-card {
        width: 100%;
        max-width: 360px;

        margin: 0 auto;

        padding: 32px 24px;

        flex-direction: column;

        gap: 20px;

        text-align: center;
    }

    .brand-info h2 {
        font-size: 28px;
    }

    .brand-info h3 {
        font-size: 16px;
    }

    .brand-card a {
        display: inline-block;

        margin-top: 8px;
    }


    /* -----------------------------------------------------
       首頁 Hero
    ----------------------------------------------------- */

    .home-page .hero {
        width: 100%;
        min-height: 620px;

        padding: 70px 24px;

        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;

        text-align: center;
    }

    .home-page .hero h1 {
        width: 100%;
        max-width: 100%;

        margin: 0 auto;

        text-align: center;
    }

    .home-page .hero p {
        width: 100%;
        max-width: 100%;

        margin: 20px auto 0;

        text-align: center;
    }


    /* -----------------------------------------------------
       首頁一般區塊
    ----------------------------------------------------- */

    .new-arrivals,
    .products,
    .custom,
    .about-section {
        width: 90%;

        margin-left: auto;
        margin-right: auto;
    }


    /* -----------------------------------------------------
       首頁服飾區塊
    ----------------------------------------------------- */

    .clothing {
        width: 92%;
        max-width: none;

        margin: 50px auto;

        display: grid;

        grid-template-columns: 1fr;
    }

    .clothing-text {
        width: 100%;

        padding: 35px 25px;

        text-align: left;
    }

    .clothing-text h2 {
        width: 100%;

        font-size: 28px;
        line-height: 1.5;

        writing-mode: horizontal-tb;

        word-break: keep-all;
        white-space: normal;
    }

    .clothing-text p {
        width: 100%;

        font-size: 16px;
        line-height: 2;

        writing-mode: horizontal-tb;

        word-break: normal;
        white-space: normal;
    }

    .clothing-image {
        width: 100%;
    }

    .clothing-image img {
        width: 100%;
        height: auto;
        min-height: 0;

        object-fit: cover;
    }


    /* -----------------------------------------------------
       Footer
    ----------------------------------------------------- */

    .footer {
        margin-top: 80px;

        padding: 60px 20px;
    }

    .footer h2 {
        font-size: 25px;
        letter-spacing: 4px;
    }

    .footer-links a {
        display: inline-block;

        margin: 8px 10px;
    }
}
/* =========================
   首頁 New Arrivals 修正
========================= */

.home-page .product-grid {
    width: 100%;
    max-width: 1200px;
    margin: 50px auto 0;

    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.home-page .product {
    width: 100%;
    min-width: 0;
}

.home-page .product img {
    width: 100%;
    height: 320px;
    object-fit: cover;
}
/* =========================================================
   首頁 NEW ARRIVALS 最終修正
========================================================= */

/* 外層不要再切四欄 */
.home-page .products {
    display: block !important;
    width: 90% !important;
    max-width: 1250px !important;
    margin: 0 auto !important;
    padding: 80px 0 !important;
}

/* 真正負責排列商品的是 product-grid */
.home-page .products .product-grid {
    width: 100% !important;
    max-width: 1200px !important;
    margin: 45px auto 0 !important;

    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 24px !important;
}

/* 首頁商品卡 */
.home-page .products .product {
    width: 100% !important;
    min-width: 0 !important;

    background: white;
    text-align: center;

    box-shadow: 0 8px 25px rgba(0,0,0,.08);
}

/* 首頁商品圖片 */
.home-page .products .product img {
    width: 100% !important;
    height: 280px !important;

    object-fit: cover !important;
    display: block !important;
}

/* 商品名稱 */
.home-page .products .product h3 {
    margin: 20px 12px 10px !important;

    font-size: 17px !important;
    line-height: 1.5 !important;
}

/* 商品描述 */
.home-page .products .product p {
    padding: 0 15px !important;

    font-size: 14px !important;
    line-height: 1.8 !important;
}

/* 商品按鈕 */
.home-page .products .product-btn {
    display: inline-block !important;

    margin: 20px auto 25px !important;
    padding: 11px 24px !important;
}


/* =========================================================
   首頁 NEW ARRIVALS 手機版
========================================================= */

@media (max-width: 600px) {

    .home-page .products {
        width: 92% !important;
        padding: 55px 0 !important;
    }

    .home-page .products .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 14px !important;
    }

    .home-page .products .product img {
        height: 180px !important;
    }

    .home-page .products .product h3 {
        font-size: 14px !important;
        margin: 14px 8px 6px !important;
    }

    .home-page .products .product p {
        font-size: 11px !important;
        padding: 0 8px !important;
    }

    .home-page .products .product-btn {
        margin: 15px auto 20px !important;
        padding: 8px 14px !important;
        font-size: 11px !important;
    }
}