/* =========================================================
   PMT LUXURY CUSTOM HEADER STYLES
   - Font: 'Roboto Slab', serif (16px, 500 Medium)
   - Normal Color: #B8860B | Active/Hover Color: #FFD700
   - Desktop: 80px Side Margin/Padding, 8px Top/Bottom, 120px Logo
   - Mobile: 70px Logo, 20px Side Padding, 8px Top/Bottom
   - Red Circular Cart Badge
========================================================= */

:root {
    --pmt-header-bg: #000000;
    --pmt-color-normal: #B8860B;
    --pmt-color-active: #FFD700;
    --pmt-color-hover: #FFD700;
    --pmt-badge-red: #E53935;
    --pmt-font-header: 'Roboto Slab', Georgia, serif;
    --pmt-header-zindex: 9999;
}

/* Base Header Reset & Container */
.pmt-custom-header {
    width: 100%;
    background-color: var(--pmt-header-bg);
    position: relative;
    top: 0;
    left: 0;
    z-index: var(--pmt-header-zindex);
    border-bottom: 1px solid rgba(184, 134, 11, 0.15);
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.pmt-header-inner {
    width: 100%;
    max-width: 1530px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 10px auto;
    padding: 0 80px;
    min-height: 54px;
}

/* Header Columns */
.pmt-header-col {
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

.pmt-header-col-left {
    flex: 1;
    justify-content: flex-start;
}

.pmt-header-col-center {
    flex: 0 0 auto;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
}

.pmt-header-col-right {
    flex: 1;
    justify-content: flex-end;
    gap: 26px;
}

/* =========================================================
   DESKTOP NAVIGATION
========================================================= */
.pmt-desktop-nav {
    display: block;
}

.pmt-menu-list {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 32px;
}

.pmt-menu-list li {
    position: relative;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pmt-menu-list li a {
    font-family: var(--pmt-font-header) !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
    color: var(--pmt-color-normal) !important;
    text-decoration: none !important;
    letter-spacing: 0.3px;
    padding: 6px 0;
    display: inline-block;
    position: relative;
    transition: color 0.25s cubic-bezier(0.4, 0, 0.2, 1), transform 0.2s ease;
}

/* Active & Hover States */
.pmt-menu-list li:hover > a,
.pmt-menu-list li.current-menu-item > a,
.pmt-menu-list li.current_page_item > a,
.pmt-menu-list li.current-menu-ancestor > a,
.pmt-menu-list li.current-menu-parent > a,
.pmt-menu-list li.active > a {
    color: var(--pmt-color-active) !important;
    font-weight: 600 !important;
}

/* Submenu / Dropdown styling */
.pmt-menu-list li .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #0d0d0d;
    min-width: 200px;
    padding: 10px 0;
    margin: 0;
    list-style: none;
    border: 1px solid rgba(184, 134, 11, 0.3);
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s ease;
    z-index: 100;
}

.pmt-menu-list li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.pmt-menu-list .sub-menu li {
    padding: 0;
}

.pmt-menu-list .sub-menu li a {
    display: block;
    padding: 8px 18px !important;
    font-size: 14px !important;
}

.pmt-menu-list .sub-menu li a:hover {
    background: rgba(255, 215, 0, 0.08);
}

/* =========================================================
   CENTER LOGO
========================================================= */
.pmt-logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.pmt-logo-link:hover {
    opacity: 0.92;
    transform: scale(1.02);
}

.pmt-header-logo-img {
    width: 80px;
    max-width: 120px;
    height: auto;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.6));
}

.pmt-logo-fallback-text {
    font-family: var(--pmt-font-header);
    font-size: 26px;
    font-weight: 700;
    color: var(--pmt-color-active);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* =========================================================
   RIGHT ACTION ICONS
========================================================= */
.pmt-icon-btn,
button.pmt-icon-btn,
.pmt-custom-header button.pmt-icon-btn,
.pmt-custom-header button.pmt-search-btn,
#pmtSearchOpenBtn {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 6px;
    margin: 0;
    color: var(--pmt-color-normal) !important;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    position: relative;
    transition: color 0.25s ease, transform 0.2s ease;
    border-radius: 4px;
    outline: none !important;
    -webkit-appearance: none;
    appearance: none;
}

.pmt-icon-btn:hover,
.pmt-icon-btn:focus,
.pmt-icon-btn:active,
button.pmt-icon-btn:hover,
button.pmt-icon-btn:focus,
button.pmt-icon-btn:active,
.pmt-custom-header button.pmt-icon-btn:hover,
.pmt-custom-header button.pmt-icon-btn:focus,
.pmt-custom-header button.pmt-icon-btn:active,
.pmt-custom-header button.pmt-search-btn:hover,
.pmt-custom-header button.pmt-search-btn:focus,
.pmt-custom-header button.pmt-search-btn:active,
#pmtSearchOpenBtn:hover,
#pmtSearchOpenBtn:focus,
#pmtSearchOpenBtn:active {
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    border: none !important;
    color: var(--pmt-color-hover) !important;
    transform: translateY(-1px);
}

.pmt-icon-btn:focus-visible {
    outline: none !important;
}

.pmt-svg-icon {
    width: 22px;
    height: 22px;
    stroke-width: 1.9;
    color: var(--pmt-color-normal);
    stroke: currentColor;
    transition: color 0.25s ease, stroke 0.25s ease;
}

.pmt-icon-btn:hover .pmt-svg-icon,
.pmt-icon-btn:focus .pmt-svg-icon,
.pmt-icon-btn:active .pmt-svg-icon,
.pmt-custom-header button.pmt-search-btn:hover .pmt-svg-icon,
.pmt-custom-header button.pmt-search-btn:focus .pmt-svg-icon,
#pmtSearchOpenBtn:hover .pmt-svg-icon,
#pmtSearchOpenBtn:focus .pmt-svg-icon {
    color: var(--pmt-color-hover) !important;
    stroke: var(--pmt-color-hover) !important;
}

/* Shopping Bag Icon & Cart Badge */
.pmt-cart-icon-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pmt-bag-icon {
    width: 23px;
    height: 23px;
}

.pmt-cart-count-badge {
    position: absolute;
    top: -7px;
    right: -10px;
    background-color: var(--pmt-badge-red);
    color: #FFFFFF;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    pointer-events: none;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.pmt-cart-count-badge.has-items {
    transform: scale(1);
}

/* Mobile Toggle Hamburger (Hidden on Desktop) */
.pmt-mobile-toggle-btn {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    margin: 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5.5px;
    width: 36px;
    height: 36px;
    box-sizing: border-box;
    transition: opacity 0.2s ease, transform 0.15s ease;
    border-radius: 8px;
}

.pmt-mobile-toggle-btn:hover {
    opacity: 0.85;
}

.pmt-hamburger-line {
    display: block;
    width: 22px;
    height: 2px;
    background-color: #FFFFFF;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* =========================================================
   SEARCH MODAL
========================================================= */
.pmt-search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.pmt-search-modal.is-active {
    opacity: 1;
    visibility: visible;
}

.pmt-search-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
}

.pmt-search-modal-box {
    position: relative;
    width: 90%;
    max-width: 600px;
    z-index: 2;
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.pmt-search-modal.is-active .pmt-search-modal-box {
    transform: scale(1);
}

.pmt-search-close-btn,
button.pmt-search-close-btn,
#pmtSearchCloseBtn {
    position: absolute;
    top: -45px;
    right: 0;
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    color: var(--pmt-color-normal) !important;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    margin: 0 !important;
    transition: color 0.2s ease, transform 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
}

.pmt-search-close-btn:hover,
.pmt-search-close-btn:focus,
.pmt-search-close-btn:active,
button.pmt-search-close-btn:hover,
button.pmt-search-close-btn:focus,
button.pmt-search-close-btn:active,
#pmtSearchCloseBtn:hover,
#pmtSearchCloseBtn:focus,
#pmtSearchCloseBtn:active {
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    border: none !important;
    color: var(--pmt-color-active) !important;
    transform: rotate(90deg);
}

.pmt-search-close-btn svg,
#pmtSearchCloseBtn svg {
    width: 28px;
    height: 28px;
    stroke: currentColor;
    color: inherit;
    transition: color 0.2s ease, stroke 0.2s ease;
}

.pmt-search-close-btn:hover svg,
.pmt-search-close-btn:focus svg,
#pmtSearchCloseBtn:hover svg,
#pmtSearchCloseBtn:focus svg {
    color: var(--pmt-color-active) !important;
    stroke: var(--pmt-color-active) !important;
}

.pmt-search-form {
    display: flex;
    align-items: center;
    border-bottom: 2px solid var(--pmt-color-active);
    padding-bottom: 8px;
}

.pmt-search-input {
    flex: 1;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    color: #FFFFFF !important;
    font-family: var(--pmt-font-header) !important;
    font-size: 22px !important;
    font-weight: 500 !important;
    padding: 8px 12px !important;
}

.pmt-search-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.pmt-search-submit-btn,
button.pmt-search-submit-btn {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: var(--pmt-color-active) !important;
    cursor: pointer;
    padding: 8px;
    outline: none !important;
}

.pmt-search-submit-btn:hover,
.pmt-search-submit-btn:focus,
.pmt-search-submit-btn:active,
button.pmt-search-submit-btn:hover,
button.pmt-search-submit-btn:focus,
button.pmt-search-submit-btn:active {
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    color: #FFFFFF !important;
}

.pmt-search-submit-btn svg {
    width: 26px;
    height: 26px;
}

/* =========================================================
   MOBILE OFF-CANVAS DRAWER
========================================================= */
.pmt-mobile-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10001;
    visibility: hidden;
    transition: visibility 0.35s ease;
}

.pmt-mobile-drawer.is-active {
    visibility: visible;
}

.pmt-drawer-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.pmt-mobile-drawer.is-active .pmt-drawer-backdrop {
    opacity: 1;
}

.pmt-drawer-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 82%;
    max-width: 340px;
    height: 100%;
    background: #0a0a0a;
    border-right: 1px solid rgba(184, 134, 11, 0.3);
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2;
    overflow-y: auto;
}

.pmt-mobile-drawer.is-active .pmt-drawer-panel {
    transform: translateX(0);
}

.pmt-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(184, 134, 11, 0.2);
}

.pmt-drawer-logo img {
    max-width: 75px;
    height: auto;
    display: block;
}

.pmt-drawer-close-btn,
button.pmt-drawer-close-btn,
#pmtDrawerCloseBtn {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    color: var(--pmt-color-normal) !important;
    cursor: pointer;
    padding: 6px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
}

.pmt-drawer-close-btn:hover,
.pmt-drawer-close-btn:focus,
.pmt-drawer-close-btn:active,
button.pmt-drawer-close-btn:hover,
button.pmt-drawer-close-btn:focus,
button.pmt-drawer-close-btn:active,
#pmtDrawerCloseBtn:hover,
#pmtDrawerCloseBtn:focus,
#pmtDrawerCloseBtn:active {
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    border: none !important;
    color: var(--pmt-color-active) !important;
}

.pmt-drawer-close-btn svg,
#pmtDrawerCloseBtn svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    color: inherit;
    transition: color 0.2s ease, stroke 0.2s ease;
}

.pmt-drawer-close-btn:hover svg,
.pmt-drawer-close-btn:focus svg,
#pmtDrawerCloseBtn:hover svg,
#pmtDrawerCloseBtn:focus svg {
    color: var(--pmt-color-active) !important;
    stroke: var(--pmt-color-active) !important;
}

.pmt-drawer-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Mobile Search Inside Drawer */
.pmt-mobile-search-form {
    display: flex;
    align-items: center;
    background: #141414;
    border: 1px solid rgba(184, 134, 11, 0.3);
    border-radius: 6px;
    padding: 4px 8px;
}

.pmt-mobile-search-input {
    flex: 1;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    color: #FFFFFF !important;
    font-family: var(--pmt-font-header) !important;
    font-size: 14px !important;
    padding: 6px 8px !important;
}

.pmt-mobile-search-submit,
button.pmt-mobile-search-submit {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: var(--pmt-color-normal) !important;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    outline: none !important;
}

.pmt-mobile-search-submit:hover,
.pmt-mobile-search-submit:focus,
.pmt-mobile-search-submit:active,
button.pmt-mobile-search-submit:hover,
button.pmt-mobile-search-submit:focus,
button.pmt-mobile-search-submit:active {
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    color: var(--pmt-color-hover) !important;
}

.pmt-mobile-search-submit svg {
    width: 18px;
    height: 18px;
}

/* Mobile Navigation Links */
.pmt-mobile-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pmt-mobile-menu-list li {
    margin: 0;
    padding: 0;
}

.pmt-mobile-menu-list li a {
    font-family: var(--pmt-font-header) !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    color: var(--pmt-color-normal) !important;
    text-decoration: none !important;
    display: block;
    padding: 6px 0;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.pmt-mobile-menu-list li:hover > a,
.pmt-mobile-menu-list li.current-menu-item > a,
.pmt-mobile-menu-list li.active > a {
    color: var(--pmt-color-active) !important;
    font-weight: 600 !important;
    padding-left: 4px;
}

/* Mobile Quick Action Links */
.pmt-drawer-quick-links {
    margin-top: 10px;
    padding-top: 20px;
    border-top: 1px solid rgba(184, 134, 11, 0.2);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.pmt-quick-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--pmt-color-normal) !important;
    text-decoration: none !important;
    font-family: var(--pmt-font-header) !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    transition: color 0.2s ease;
}

.pmt-quick-link:hover {
    color: var(--pmt-color-active) !important;
}

.pmt-quick-link svg {
    width: 20px;
    height: 20px;
}

/* =========================================================
   RESPONSIVE MEDIA QUERIES (MOBILE / TABLET)
========================================================= */
@media (max-width: 920px) {
    .pmt-header-inner {
        padding: 8px 20px !important;
        margin: 0 !important;
    }

    .pmt-header-logo-img {
        width: 70px !important;
        max-width: 70px !important;
    }

    /* Show hamburger, hide desktop menu */
    .pmt-desktop-nav {
        display: none !important;
    }

    .pmt-mobile-toggle-btn {
        display: flex !important;
    }

    /* On mobile, only cart icon is shown in top bar (matching image 2) */
    .pmt-search-btn,
    .pmt-wishlist-btn,
    .pmt-account-btn {
        display: none !important;
    }

    .pmt-header-col-right {
        gap: 0 !important;
    }

    .pmt-cart-btn {
        padding: 4px !important;
    }
}
