:root {
    --bg-color: #FFFFFF;
    --text-color: #2D2D2D;
    --accent-color: #c9a227;
    --menu-panel-bg: #3D3D3D;
    --backdrop-color: rgba(0, 0, 0, 0.7);
    --font-primary: 'Cormorant Garamond', serif;
    --font-secondary: 'Inter', sans-serif;
    --header-height: 110px;
    --panel-width: 450px;
}

body {
    font-family: var(--font-secondary);
    overflow-x: hidden;
    line-height: 1.6;
}

.site-header {
    background-color: var(--bg-color);
    height: var(--header-height);
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.inside-header {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.site-logo {
    max-height: 120px;
    width: auto;
    display: block;
    object-fit: contain;
}

@media (min-width: 768px) {
    :root {
        --header-height: 140px;
    }

    .site-logo {
        max-height: 120px;
    }
}

.fallback-title {
    font-family: var(--font-primary);
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 1px;
    font-style: italic;
    margin: 0;
    color: var(--text-color);
}

.fallback-title span {
    color: var(--accent-color);
}

.menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 101;
}

.menu-toggle span {
    display: block;
    width: 35px;
    height: 1px;
    background-color: var(--text-color);
    transition: all 0.4s ease;
}

.menu-toggle span:nth-child(2) {
    width: 25px;
    align-self: flex-end;
}

.menu-toggle:hover span {
    background-color: var(--accent-color);
    width: 35px;
}

.off-canvas-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: var(--panel-width);
    height: 100vh;
    background-color: var(--menu-panel-bg);
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    padding: 60px;
    box-sizing: border-box;
    border-left: 1px solid rgba(255, 255, 255, 0.05);
}

.off-canvas-menu.is-open {
    transform: translateX(0);
}

.menu-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--backdrop-color);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.5s ease;
    backdrop-filter: blur(4px);
}

.menu-backdrop.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.close-btn {
    align-self: flex-end;
    background: none;
    border: none;
    font-family: var(--font-primary);
    font-size: 16px;
    font-style: italic;
    cursor: pointer;
    color: #F5F5F5;
    margin-bottom: 50px;
    padding: 10px;
    opacity: 0.7;
    transition: 0.3s;
}

.close-btn:hover {
    opacity: 1;
    color: var(--accent-color);
    transform: rotate(90deg);
}

.off-canvas-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.off-canvas-menu li {
    margin-bottom: 25px;
    transform: translateX(30px);
    opacity: 0;
    transition: all 0.5s ease;
}

.off-canvas-menu.is-open li {
    transform: translateX(0);
    opacity: 1;
}

.off-canvas-menu.is-open li:nth-child(1) { transition-delay: 0.1s; }
.off-canvas-menu.is-open li:nth-child(2) { transition-delay: 0.15s; }
.off-canvas-menu.is-open li:nth-child(3) { transition-delay: 0.2s; }
.off-canvas-menu.is-open li:nth-child(4) { transition-delay: 0.25s; }
.off-canvas-menu.is-open li:nth-child(5) { transition-delay: 0.3s; }
.off-canvas-menu.is-open li:nth-child(6) { transition-delay: 0.35s; }
.off-canvas-menu.is-open li:nth-child(7) { transition-delay: 0.4s; }
.off-canvas-menu.is-open li:nth-child(8) { transition-delay: 0.45s; }

.off-canvas-menu a {
    text-decoration: none;
    color: #F5F5F5;
    font-family: var(--font-primary);
    font-size: 32px;
    font-weight: 400;
    display: inline-block;
    position: relative;
    transition: color 0.3s;
}

.off-canvas-menu a:hover {
    color: var(--accent-color);
    padding-left: 10px;
}

.menu-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.35rem;
    border-radius: 9999px;
    background: rgba(201, 162, 39, 0.18);
    color: #f6e9be;
    font-size: 0.72rem;
    font-weight: 700;
    margin-left: 0.5rem;
}

.off-canvas-menu a.menu-active {
    color: var(--accent-color);
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 2px;
}

.off-canvas-menu > ul > li > a::before,
.off-canvas-menu .menu-item-wrapper > a::before {
    content: attr(data-index);
    font-family: var(--font-secondary);
    font-size: 12px;
    color: var(--accent-color);
    position: absolute;
    left: -25px;
    top: 10px;
    opacity: 0;
    transition: opacity 0.3s;
}

.off-canvas-menu > ul > li > a:hover::before,
.off-canvas-menu .menu-item-wrapper > a:hover::before {
    opacity: 1;
}

.has-submenu {
    position: relative;
}

.menu-item-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.menu-item-wrapper > a {
    flex: 1;
}

.submenu-toggle {
    background: none;
    border: none;
    color: #F5F5F5;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.6;
}

.submenu-toggle:hover {
    opacity: 1;
    color: var(--accent-color);
}

.submenu-toggle i {
    transition: transform 0.3s ease;
    font-size: 14px;
}

.has-submenu.is-open .submenu-toggle i {
    transform: rotate(180deg);
}

.submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    margin-top: 0;
}

.has-submenu.is-open .submenu {
    max-height: 400px;
    padding: 15px 0;
    margin-top: 10px;
}

.submenu li {
    margin-bottom: 0 !important;
    transform: none !important;
    opacity: 1 !important;
}

.submenu a {
    font-size: 18px !important;
    font-family: var(--font-secondary) !important;
    font-weight: 400 !important;
    padding: 10px 25px;
    display: block;
    color: rgba(255, 255, 255, 0.8) !important;
}

.submenu a:hover {
    color: var(--accent-color) !important;
    background: rgba(255, 255, 255, 0.05);
    padding-left: 30px;
}

.submenu a::before {
    display: none !important;
}

.submenu .submenu-header {
    font-family: var(--font-secondary);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent-color);
    padding: 10px 25px 5px;
    opacity: 0.8;
}

.submenu .view-all {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 10px;
    padding-top: 10px;
}

.submenu .view-all a {
    font-size: 14px !important;
    opacity: 0.7;
}

.submenu .view-all a:hover {
    opacity: 1;
}

.img-grayscale {
    filter: grayscale(100%);
    transition: filter 0.5s ease, transform 0.5s ease;
}

.img-grayscale:hover {
    filter: grayscale(0%);
}

.btn-primary {
    border-radius: 0;
    transition: all 0.3s ease;
}

.form-input {
    width: 100%;
    padding: 16px 20px;
    border: 1px solid #e5e5e5;
    background: white;
    font-family: var(--font-secondary);
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #d97706;
}

.form-input::placeholder {
    color: #9ca3af;
}

.search-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    color: var(--text-color);
    font-size: 18px;
    transition: color 0.3s ease;
}

.search-toggle:hover {
    color: var(--accent-color);
}

.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.search-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.search-overlay-content {
    width: 100%;
    max-width: 700px;
    padding: 20px;
    text-align: center;
    transform: translateY(30px);
    transition: transform 0.4s ease;
}

.search-overlay.is-open .search-overlay-content {
    transform: translateY(0);
}

.search-close-btn {
    position: absolute;
    top: 30px;
    right: 30px;
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.3s ease;
    padding: 10px;
}

.search-close-btn:hover {
    opacity: 1;
    transform: rotate(90deg);
}

.search-form {
    display: flex;
    align-items: center;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    transition: border-color 0.3s ease;
}

.search-form:focus-within {
    border-color: var(--accent-color);
}

.search-form input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-family: var(--font-primary);
    font-size: 2.5rem;
    color: white;
    padding: 20px 0;
}

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

.search-submit {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 20px;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.search-submit:hover {
    opacity: 1;
    color: var(--accent-color);
}

.search-hint {
    color: rgba(255, 255, 255, 0.4);
    font-size: 14px;
    margin-top: 20px;
    font-family: var(--font-secondary);
}

@media (max-width: 768px) {
    .search-form input {
        font-size: 1.5rem;
    }

    .search-close-btn {
        top: 20px;
        right: 20px;
    }
}

@media (max-width: 600px) {
    :root {
        --panel-width: 100%;
    }

    .off-canvas-menu {
        padding: 40px 30px;
    }

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

    .off-canvas-menu a {
        font-size: 28px;
    }

    .site-logo {
        max-height: 40px;
    }
}

.bic-product-content h2 {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: #1e293b;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.bic-product-content h2:first-child {
    margin-top: 0;
}

.bic-product-content h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: #334155;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.bic-product-content p {
    margin-bottom: 1.25rem;
    line-height: 1.8;
}

.bic-specs-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.bic-specs-table tr {
    border-bottom: 1px solid #e5e7eb;
}

.bic-specs-table tr:last-child {
    border-bottom: none;
}

.bic-specs-table td {
    padding: 1rem 1.5rem;
}

.bic-specs-table td:first-child {
    background: #f9fafb;
    width: 40%;
    font-weight: 500;
}

.bic-faq {
    margin-top: 2rem;
}

.bic-faq .faq-item {
    background: #f9fafb;
    border-left: 4px solid #d97706;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 0 4px 4px 0;
}

.bic-faq .faq-item h3 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
    color: #1e293b;
}

.bic-faq .faq-item p {
    margin-bottom: 0;
    color: #475569;
}

.bic-faq-accordion {
    margin-top: 2rem;
}

.faq-accordion-item {
    background: white;
    border: 1px solid #e5e7eb;
    margin-bottom: 0.5rem;
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-accordion-item:hover {
    border-color: #d97706;
    box-shadow: 0 2px 8px rgba(217, 119, 6, 0.1);
}

.faq-accordion-header {
    width: 100%;
    background: white;
    border: none;
    padding: 1.25rem 1.5rem;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
    transition: all 0.3s ease;
}

.faq-accordion-header:hover {
    color: #d97706;
    background: #fffbeb;
}

.faq-accordion-header span {
    flex: 1;
    padding-right: 1rem;
}

.faq-icon {
    color: #d97706;
    transition: transform 0.3s ease;
    font-size: 0.875rem;
}

.faq-accordion-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background: #f9fafb;
}

.faq-accordion-item.active .faq-accordion-content {
    max-height: 500px;
    padding: 1.25rem 1.5rem;
}

.faq-accordion-content p {
    margin: 0;
    color: #475569;
    line-height: 1.7;
}

@media (max-width: 768px) {
    .bic-specs-table td {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    .bic-specs-table td:first-child {
        width: 45%;
    }

    .bic-product-content h2 {
        font-size: 1.75rem;
    }

    .bic-product-content h3 {
        font-size: 1.25rem;
    }
}
