
/* =========================================================
   LUXURYWATCH - CSS DÙNG CHUNG TOÀN WEBSITE
   File: public/assets/css/style.css

   Phụ trách:
   1. Thiết lập giao diện chung
   2. Thanh thông báo
   3. Header, logo, tìm kiếm
   4. Giỏ hàng, tài khoản
   5. Menu điều hướng
   6. Footer
   7. Thành phần dùng chung và responsive
   ========================================================= */

/* ---------- 1. Biến màu giao diện ---------- */
:root {
    --lw-primary: #17324d;
    --lw-primary-dark: #10263b;
    --lw-accent: #b69a67;
    --lw-accent-light: #d6c29c;

    --lw-white: #ffffff;
    --lw-background: #f7f8fa;
    --lw-text: #202a35;
    --lw-muted: #77818c;
    --lw-border: #e7e9ec;

    --lw-font: "Be Vietnam Pro", Arial, sans-serif;
    --lw-heading-font: "Playfair Display", Georgia, serif;

    --lw-transition: 0.25s ease;
}

/* ---------- 2. Reset và thiết lập chung ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--lw-text);
    background: var(--lw-white);
    font-family: var(--lw-font);
    font-size: 14px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

body,
input,
button,
textarea,
select {
    font-family: var(--lw-font);
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
    transition:
        color var(--lw-transition),
        background-color var(--lw-transition);
}

button,
input,
textarea,
select {
    font-size: inherit;
}

button {
    cursor: pointer;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--lw-accent);
    outline-offset: 3px;
}

::selection {
    color: var(--lw-white);
    background: var(--lw-primary);
}

/* Giữ các container Bootstrap hiển thị ổn định. */
.container {
    --bs-gutter-x: 1.5rem;
}

/* ---------- 3. Thanh thông báo ---------- */
.lw-announcement {
    position: relative;
    z-index: 1021;
    min-height: 36px;
    background: var(--lw-primary-dark);
    color: rgba(255, 255, 255, 0.92);
    font-size: 10px;
    letter-spacing: 0.3px;
}

.lw-announcement-inner {
    display: flex;
    min-height: 36px;
    align-items: center;
    justify-content: center;
    gap: 18px;
}

.lw-announcement-inner > span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.lw-announcement-inner i {
    color: var(--lw-accent-light);
    font-size: 12px;
}

.lw-announcement .announcement-divider {
    color: rgba(255, 255, 255, 0.35);
}

/* ---------- 4. Header chính ---------- */
.lw-header {
    position: relative;
    z-index: 1020;
    width: 100%;
    background: var(--lw-white);
    border-bottom: 1px solid var(--lw-border);
}

.lw-header > .container {
    width: 100%;
}

/* Hàng logo, tìm kiếm và chức năng. */
.lw-header-main {
    display: grid;
    grid-template-columns: 225px minmax(200px, 1fr) 180px;
    align-items: center;
    gap: 34px;
    min-height: 108px;
    padding-top: 12px;
    padding-bottom: 12px;
}

/* ---------- 5. Logo LuxuryWatch ---------- */
.lw-logo {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 12px;
    color: var(--lw-primary-dark);
}

.lw-logo:hover {
    color: var(--lw-primary);
}

.lw-logo-icon {
    display: flex;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--lw-accent);
    color: var(--lw-accent);
    font-size: 23px;
    transition:
        color var(--lw-transition),
        background-color var(--lw-transition);
}

.lw-logo:hover .lw-logo-icon {
    color: var(--lw-white);
    background: var(--lw-primary);
}

.lw-logo-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
    line-height: 1.35;
}

.lw-logo-text strong {
    color: var(--lw-primary-dark);
    font-family: var(--lw-heading-font);
    font-size: 23px;
    font-weight: 600;
    letter-spacing: 2px;
}

.lw-logo-text small {
    color: var(--lw-accent);
    font-size: 8px;
    font-weight: 600;
    letter-spacing: 2px;
    white-space: nowrap;
}

/* ---------- 6. Thanh tìm kiếm ---------- */
.lw-search {
    display: flex;
    width: 100%;
    min-width: 0;
    height: 46px;
    align-items: stretch;
    overflow: hidden;
    border: 1px solid #e0e3e7;
    background: #ffffff;
    transition: border-color var(--lw-transition);
}

.lw-search:focus-within {
    border-color: var(--lw-accent);
}

.lw-search input[type="search"] {
    width: 100%;
    min-width: 0;
    height: 100%;
    padding: 0 15px;
    border: 0;
    outline: none;
    background: transparent;
    color: var(--lw-text);
    font-size: 11px;
    box-shadow: none;
    appearance: none;
}

.lw-search input[type="search"]::placeholder {
    color: #969da5;
}

.lw-search input[type="search"]:focus {
    outline: none;
    box-shadow: none;
}

.lw-search button {
    display: flex;
    width: 48px;
    min-width: 48px;
    height: 100%;
    align-items: center;
    justify-content: center;
    border: 0;
    background: var(--lw-primary);
    color: var(--lw-white);
    font-size: 16px;
    transition: background-color var(--lw-transition);
}

.lw-search button:hover {
    background: var(--lw-accent);
}

/* ---------- 7. Các chức năng ở header ---------- */
.lw-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 23px;
}

.lw-header-action {
    display: inline-flex;
    min-width: 58px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: var(--lw-primary);
    text-align: center;
}

.lw-action-icon {
    display: flex;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    color: var(--lw-primary);
    font-size: 21px;
    transition:
        color var(--lw-transition),
        transform var(--lw-transition);
}

.lw-header-action:hover {
    color: var(--lw-accent);
}

.lw-header-action:hover .lw-action-icon {
    color: var(--lw-accent);
    transform: translateY(-2px);
}

.lw-action-label {
    color: #626d78;
    font-size: 10px;
    font-weight: 500;
    white-space: nowrap;
}

/* ---------- 8. Menu điều hướng ---------- */
.lw-navigation {
    display: flex;
    min-height: 48px;
    align-items: stretch;
    justify-content: center;
    gap: clamp(20px, 4vw, 53px);
    border-top: 1px solid #f0f1f2;
}

.lw-navigation a {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 0;
    color: #4d5965;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    transition: color var(--lw-transition);
}

.lw-navigation a::after {
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 2px;
    background: var(--lw-accent);
    content: "";
    transform: scaleX(0);
    transform-origin: center;
    transition: transform var(--lw-transition);
}

.lw-navigation a:hover,
.lw-navigation a.active {
    color: var(--lw-primary);
}

.lw-navigation a:hover::after,
.lw-navigation a.active::after {
    transform: scaleX(1);
}

/* ---------- 9. Nút dùng chung ---------- */
.lw-btn,
.lw-btn-primary {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 11px 22px;
    border: 1px solid var(--lw-primary);
    border-radius: 0;
    background: var(--lw-primary);
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    transition:
        color var(--lw-transition),
        background-color var(--lw-transition),
        border-color var(--lw-transition);
}

.lw-btn:hover,
.lw-btn-primary:hover {
    border-color: var(--lw-accent);
    background: var(--lw-accent);
    color: #ffffff;
}

.lw-btn-outline {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 11px 22px;
    border: 1px solid var(--lw-primary);
    border-radius: 0;
    background: #ffffff;
    color: var(--lw-primary);
    font-size: 11px;
    font-weight: 600;
    transition: all var(--lw-transition);
}

.lw-btn-outline:hover {
    background: var(--lw-primary);
    color: #ffffff;
}

/* ---------- 10. Tiêu đề và nội dung dùng chung ---------- */
.lw-page-title {
    margin: 0 0 18px;
    color: var(--lw-primary-dark);
    font-family: var(--lw-heading-font);
    font-size: clamp(30px, 3vw, 44px);
    font-weight: 500;
    line-height: 1.35;
}

.lw-muted {
    color: var(--lw-muted);
}

.lw-divider {
    width: 100%;
    height: 1px;
    border: 0;
    background: var(--lw-border);
}

/* ---------- 11. Footer dùng chung ---------- */
.lw-footer {
    margin-top: 0;
    background: var(--lw-primary-dark);
    color: rgba(255, 255, 255, 0.75);
}

.lw-footer-main {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 45px;
    padding-top: 64px;
    padding-bottom: 55px;
}

.lw-footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
    color: #ffffff;
}

.lw-footer-brand:hover {
    color: var(--lw-accent-light);
}

.lw-footer-brand .lw-logo-icon {
    border-color: var(--lw-accent-light);
    color: var(--lw-accent-light);
}

.lw-footer-brand strong {
    display: block;
    font-family: var(--lw-heading-font);
    font-size: 23px;
    font-weight: 500;
    letter-spacing: 2px;
}

.lw-footer-brand small {
    display: block;
    color: var(--lw-accent-light);
    font-size: 8px;
    letter-spacing: 2px;
}

.lw-footer-description {
    max-width: 310px;
    margin: 0;
    color: rgba(255, 255, 255, 0.65);
    font-size: 11px;
    line-height: 2;
}

.lw-footer-heading {
    margin: 0 0 21px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.4px;
}

.lw-footer-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.lw-footer-links a {
    color: rgba(255, 255, 255, 0.65);
    font-size: 11px;
}

.lw-footer-links a:hover {
    color: var(--lw-accent-light);
}

.lw-footer-contact {
    display: flex;
    flex-direction: column;
    gap: 13px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.lw-footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 11px;
    overflow-wrap: anywhere;
}

.lw-footer-contact i {
    margin-top: 3px;
    color: var(--lw-accent-light);
}

.lw-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.lw-footer-bottom-inner {
    display: flex;
    min-height: 60px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.lw-footer-bottom p {
    margin: 0;
    color: rgba(255, 255, 255, 0.55);
    font-size: 10px;
}

.lw-footer-bottom a {
    color: var(--lw-accent-light);
}

/* ---------- 12. Trạng thái trống và thông báo ---------- */
.lw-empty-state {
    padding: 45px 20px;
    border: 1px solid var(--lw-border);
    background: var(--lw-background);
    text-align: center;
}

.lw-empty-state i {
    display: block;
    margin-bottom: 15px;
    color: var(--lw-accent);
    font-size: 32px;
}

.lw-empty-state h3 {
    margin-bottom: 8px;
    color: var(--lw-primary);
    font-size: 17px;
    font-weight: 600;
}

.lw-empty-state p {
    margin: 0;
    color: var(--lw-muted);
    font-size: 12px;
}

/* ---------- 13. Responsive - màn hình vừa ---------- */
@media (max-width: 1100px) {
    .lw-header-main {
        grid-template-columns: 190px minmax(160px, 1fr) 150px;
        gap: 20px;
    }

    .lw-logo-text strong {
        font-size: 20px;
    }

    .lw-header-actions {
        gap: 14px;
    }

    .lw-navigation {
        gap: clamp(16px, 3vw, 32px);
    }

    .lw-footer-main {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 38px;
    }
}

/* ---------- 14. Responsive - máy tính bảng ---------- */
@media (max-width: 768px) {
    .lw-announcement {
        font-size: 9px;
    }

    .lw-announcement-inner {
        gap: 10px;
    }

    .lw-header-main {
        grid-template-columns: 1fr auto;
        gap: 15px;
        min-height: auto;
        padding-top: 17px;
        padding-bottom: 16px;
    }

    .lw-logo-icon {
        width: 39px;
        height: 39px;
        flex-basis: 39px;
        font-size: 21px;
    }

    .lw-logo-text strong {
        font-size: 20px;
    }

    .lw-search {
        grid-column: 1 / -1;
        grid-row: 2;
        height: 43px;
    }

    .lw-header-actions {
        grid-column: 2;
        grid-row: 1;
        gap: 15px;
    }

    .lw-action-icon {
        width: 28px;
        height: 28px;
        font-size: 20px;
    }

    .lw-action-label {
        font-size: 9px;
    }

    .lw-navigation {
        justify-content: flex-start;
        gap: 25px;
        min-height: 44px;
        overflow-x: auto;
        scrollbar-width: thin;
        scrollbar-color: var(--lw-accent-light) transparent;
    }

    .lw-navigation a {
        flex-shrink: 0;
        padding: 11px 0;
        font-size: 10px;
    }

    .lw-footer-main {
        gap: 30px;
        padding-top: 45px;
        padding-bottom: 40px;
    }

    .lw-footer-bottom-inner {
        padding-top: 15px;
        padding-bottom: 15px;
    }
}

/* ---------- 15. Responsive - điện thoại ---------- */
@media (max-width: 480px) {
    .container {
        --bs-gutter-x: 1rem;
    }

    .lw-announcement {
        font-size: 8px;
    }

    .lw-announcement-inner {
        gap: 7px;
    }

    .lw-announcement-inner i {
        font-size: 10px;
    }

    .lw-header-main {
        gap: 12px;
    }

    .lw-logo {
        gap: 8px;
    }

    .lw-logo-icon {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
        font-size: 19px;
    }

    .lw-logo-text strong {
        font-size: 17px;
        letter-spacing: 1.4px;
    }

    .lw-logo-text small {
        font-size: 7px;
        letter-spacing: 1px;
    }

    .lw-header-actions {
        gap: 9px;
    }

    .lw-header-action {
        min-width: 44px;
    }

    .lw-action-icon {
        font-size: 18px;
    }

    .lw-action-label {
        font-size: 8px;
    }

    .lw-search input[type="search"] {
        padding-inline: 10px;
        font-size: 10px;
    }

    .lw-search button {
        width: 42px;
        min-width: 42px;
    }

    .lw-navigation {
        gap: 21px;
    }

    .lw-footer-main {
        grid-template-columns: minmax(0, 1fr);
        gap: 30px;
        padding-top: 38px;
        padding-bottom: 35px;
    }

    .lw-footer-description {
        max-width: 100%;
    }

    .lw-footer-heading {
        margin-bottom: 14px;
    }

    .lw-footer-links {
        gap: 10px;
    }

    .lw-footer-bottom-inner {
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 5px;
    }
}

/* ---------- 16. Hỗ trợ giảm chuyển động ---------- */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* =========================================================
   LUXURYWATCH - FIX FOOTER
   Khớp với các class đang sử dụng trong footer.php
   ========================================================= */

.lw-footer {
    margin-top: 0;
    padding: 0;
    background: #10263b;
    color: #ffffff;
    font-family: "Be Vietnam Pro", Arial, sans-serif;
}

/* Nội dung chính của footer */
.lw-footer > .container {
    padding-top: 58px;
    padding-bottom: 0;
}

.lw-footer .row {
    padding-bottom: 42px;
}

/* Logo */
.lw-footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
    color: #ffffff;
    text-decoration: none;
}

.lw-footer-logo i {
    display: flex;
    width: 43px;
    height: 43px;
    align-items: center;
    justify-content: center;
    border: 1px solid #b69a67;
    color: #d6c29c;
    font-size: 23px;
    transition: background-color 0.25s ease, color 0.25s ease;
}

.lw-footer-logo span {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 21px;
    font-weight: 600;
    letter-spacing: 1.5px;
}

.lw-footer-logo:hover {
    color: #d6c29c;
}

.lw-footer-logo:hover i {
    background: #b69a67;
    color: #ffffff;
}

/* Mô tả thương hiệu */
.lw-footer-description {
    max-width: 340px;
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 12px;
    line-height: 2;
}

/* Mạng xã hội */
.lw-social-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lw-social-links a {
    display: flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: rgba(255, 255, 255, 0.85);
    font-size: 15px;
    text-decoration: none;
    transition: all 0.25s ease;
}

.lw-social-links a:hover {
    border-color: #b69a67;
    background: #b69a67;
    color: #ffffff;
    transform: translateY(-2px);
}

/* Tiêu đề từng cột */
.lw-footer .lw-footer-heading {
    position: relative;
    margin: 5px 0 23px;
    padding-bottom: 13px;
    color: #ffffff;
    font-family: "Be Vietnam Pro", Arial, sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.4px;
}

.lw-footer .lw-footer-heading::after {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 32px;
    height: 2px;
    background: #b69a67;
    content: "";
}

/* Danh sách liên kết */
.lw-footer .lw-footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.lw-footer .lw-footer-links li {
    margin: 0;
    padding: 0;
}

.lw-footer .lw-footer-links a {
    display: inline-block;
    color: rgba(255, 255, 255, 0.68);
    font-size: 11px;
    line-height: 1.8;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

.lw-footer .lw-footer-links a:hover {
    color: #d6c29c;
    transform: translateX(3px);
}

/* Thông tin cửa hàng */
.lw-footer p.lw-footer-contact {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin: 0 0 15px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 11px;
    line-height: 1.9;
    overflow-wrap: anywhere;
}

.lw-footer .lw-footer-contact i {
    flex: 0 0 auto;
    margin-top: 3px;
    color: #d6c29c;
    font-size: 14px;
}

/* Thanh bản quyền cuối footer */
.lw-footer .lw-footer-bottom {
    display: flex;
    min-height: 64px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.55);
    font-size: 10px;
    line-height: 1.8;
}

.lw-footer .lw-footer-bottom span {
    display: block;
}

/* Tablet */
@media (max-width: 767.98px) {
    .lw-footer > .container {
        padding-top: 42px;
    }

    .lw-footer .row {
        padding-bottom: 28px;
        row-gap: 30px !important;
    }

    .lw-footer .lw-footer-heading {
        margin-top: 0;
        margin-bottom: 17px;
    }

    .lw-footer-description {
        max-width: 100%;
    }
}

/* Điện thoại */
@media (max-width: 480px) {
    .lw-footer > .container {
        padding-top: 35px;
    }

    .lw-footer .row {
        padding-bottom: 25px;
    }

    .lw-footer-logo span {
        font-size: 19px;
    }

    .lw-footer .lw-footer-bottom {
        min-height: 0;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 5px;
        padding-top: 15px;
        padding-bottom: 15px;
    }
}
