/* ========================================
   EDOKYU MAIN STYLES - OPTIMIZED FOR WORDPRESS
   ======================================== */

/* Font Integration - TBUDMincho Std M */
@font-face {
    font-family: 'TBUDMincho';
    src: url('../fonts/TBUDMinchoStd-M.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Base Styles */
body {
    font-family: 'TBUDMincho', 'Noto Serif JP', serif;
    background-color: #ffffff;
    color: #333;
    line-height: 1.6;
}

.edokyu-font-line-seed {
    font-family: 'LINE Seed JP', sans-serif;
}

.section-padding{
    padding: 120px 0;
}

/* Header Section */

.edokyu-title {
    font-family: 'Arial Black', 'Helvetica Neue', sans-serif;
    text-transform: uppercase;
    font-weight:700;
    letter-spacing: 0.8rem;
  }

.edokyu-header {
    background: url('../img/background-header.png') no-repeat center center;
    background-size: cover;
    height: 98vh;
    display: block;
    position: relative;
    margin-top: 0;
    transition: margin-top 0.3s ease;
}

.edokyu-header-brand {
    margin-top: 150px;
    width: 180px;
}

/* Desktop Navigation - Fixed on Scroll */
.edokyu-nav-desktop {
    position: relative;
    z-index: 1000;
    transition: all 0.3s ease;
    font-family: 'LINE Seed JP', sans-serif;
}

.edokyu-nav-desktop.fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    /*background: rgba(255, 255, 255, 0.95) !important;*/
    /*-webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);*/
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    animation: slideDown 0.3s ease;
}

/* Animation for smooth slide down effect */
@keyframes slideDown {
    from {
        -webkit-transform: translateY(-100%);
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        -webkit-transform: translateY(0);
        transform: translateY(0);
        opacity: 1;
    }
}

/* Mobile Logo - Fixed on Scroll */
.edokyu-logo-mobile {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1001;
    width: 80px;
    height: 80px;
    display: none;
}

/* Mobile Logo Placeholder */
.edokyu-logo-mobile-placeholder {
    width: 80px;
    height: 80px;
    padding: 8px;
}

/* Show mobile logo only on mobile */
@media (max-width: 991.98px) {
    .edokyu-logo-mobile {
        display: block;
    }
}



/* About Section */
.edokyu-about {
    min-height: 100vh;
    width: 100%;
    background: #000 url('../img/background-about-section.png') no-repeat center/contain;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
}

.edokyu-about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
    position: relative;
}

.edokyu-logo {
    height: 80px;
    margin-bottom: 1rem;
}

/* Vertical Text Styles */
.edokyu-vertical-text-title,
.edokyu-vertical-text-menu,
.edokyu-vertical-text {
    -webkit-writing-mode: vertical-rl;
    writing-mode: vertical-rl;
    -webkit-text-orientation: mixed;
    text-orientation: mixed;
    font-size: 1.1rem;    
    max-height: 65vh;
    letter-spacing: 2px;
    padding: 1rem 0;
    overflow: hidden;
    -webkit-transition: writing-mode 0.2s;
    transition: writing-mode 0.2s;
}

/* Vertical Text Container */
.edokyu-vertical-text-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.edokyu-vertical-text-container .edokyu-vertical-text {
    text-align: center;
    margin: 0 auto;
}

/* Menu Section */
.edokyu-menu-section-bg {
    background-image: url('../img/products/sushi-ingredients.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    height: 100%;
    padding: 2rem 1rem;
    position: relative;
}

/* Mobile Navigation */
.edokyu-nav-mobile-btn {
    width: 100%;
    height: 54px;
    background: #fff;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.09);
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.edokyu-nav-mobile-slogan {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: 3rem;
    font-weight: 100;
    max-height: 65vh;
    letter-spacing: 2px;
    padding: 0;
    overflow: hidden;
    transition: writing-mode 0.2s;
    position: absolute;
    bottom: 80px;
    left: 42%;
}

.edokyu-nav-btn-item {
    flex: 1 1 0%;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    font-size: 1.09rem;
    gap: 8px;
    height: 100%;
    padding: 0;
    border: none;
    outline: none;
    transition: background 0.2s, color 0.2s;
    cursor: pointer;
    text-align: center;
}

.edokyu-nav-btn-item.edokyu-phone {
    background: #181818;
    color: #fff !important;
}

.edokyu-nav-btn-item.edokyu-site {
    background: #fff;
    color: #181818 !important;
    border-left: 1px solid #ddd;
}

.edokyu-nav-btn-item img {
    height: 20px;
    width: auto;
}

/* Product Section */
.edokyu-product {
    width: 100%;
    background: url('../img/background-product-section.jpeg') no-repeat center/cover;
    padding-bottom: 80px;
}

.edokyu-product .edokyu-product-banner {
    width: 200px;
}

.edokyu-product .edokyu-product-brand {
    width: 150px;
}

.edokyu-product .edokyu-product-image {
    width: 100%;
    max-width: 260px;
}

/* Product Line Decoration - FIXED FOR MOBILE */
.edokyu-product-line {
    width: 100% !important;
    height: auto !important;
    min-height: 20px !important; /* Đảm bảo chiều cao tối thiểu */
    -webkit-object-fit: cover !important;
    object-fit: cover !important;
    display: block !important;
}

/* Product List Styles - FIXED FOR DESKTOP ALIGNMENT */
.edokyu-product-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
}

.edokyu-product-desc .edokyu-vertical-text{
    height: 135px;
    padding-bottom: 0;
    margin-bottom: 0;
}

/* Desktop: Container alignment */
@media (min-width: 992px) {
    .edokyu-product-list .col-lg-6 {
        display: flex;
        align-items: stretch;
    }
    
    .edokyu-product-list .col-lg-6 .row {
        align-items: stretch;
    }
}

.edokyu-product-list .col-12.col-lg-4 {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 400px; /* Đảm bảo chiều cao tối thiểu đồng nhất */
}

.edokyu-product-title-box {
    margin-bottom: 1rem;
    min-height: 80px; /* Chiều cao cố định cho title box */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.edokyu-product-title {
    font-size: 1.5rem;
    font-weight: bold;
}

.edokyu-product-price {
    font-size: 1.2rem;
    color: #333;
}

.edokyu-product-list-description{
    size: 20px;
}

/* Info Section */
.edokyu-section-title h2 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.edokyu-store-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.edokyu-map-container {
    border-radius: 8px;
    overflow: hidden;
}

.edokyu-social-icons a {
    transition: opacity 0.2s;
}

.edokyu-social-icons a:hover {
    opacity: 0.7;
}

/* Enhanced Info Section Layout */
.edokyu-info {
    background-color: #fff;
}

.edokyu-info .container {
    max-width: 1200px;
}

.edokyu-info .row {
    align-items: flex-start;
}

.edokyu-info .col-lg-6:first-child {
    padding-right: 2rem;
}

.edokyu-info .col-lg-6:last-child {
    padding-left: 2rem;
}

/* Info Layout with Label-Content Structure */
.edokyu-info .info-item {
    display: flex;
    margin-bottom: 1.5rem;
    align-items: flex-start;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #000;
}

.edokyu-info .info-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.edokyu-info .info-label {
    flex: 0 0 120px;
    font-weight: bold;
    color: #333;
    margin-right: 2rem;
    text-align: left;
}

.edokyu-info .info-content {
    flex: 1;
    text-align: left;
    color: #000;
}

.edokyu-info .info-content p {
    margin-bottom: 0.5rem;
}

.edokyu-info .info-content .small {
    margin-top: 0.25rem;
    display: block;
}

.edokyu-info address {
    border-bottom: 1px solid #000;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.edokyu-info .mb-2 {
    border-bottom: 1px solid #000;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.edokyu-info .mb-2:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* Footer */
.edokyu-footer {
    background-color: #000;
    color: #fff;
}

.edokyu-footer img{
    margin-bottom: 200px;
    width: 100px;
}

/* Custom Button Hover Effects */
.btn-outline-secondary:hover {
    background-color: #000 !important;
    border-color: #000 !important;
    color: #fff !important;
}

.btn-outline-secondary:hover img {
    filter: brightness(0) invert(1);
}

.edokyu-btn-contact{
    size: 24px;
    text-decoration: none;
    color: #000;
    border-color: #999;
    border-width: 2px;
    border-radius: 0;
    padding: 14px;
}

.edokyu-mobile-show{
    display: none;
}

.edokyu-text-content{
    line-height: 2.5;
}

/* Brand Section with Parallax Effect */
.edokyu-brand {
    position: relative;
    overflow: hidden;
    background: url('../img/bg-parallax.png') no-repeat center bottom;
    background-size: cover;
    background-attachment: fixed;
    background-position: center bottom;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.edokyu-brand::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /*background: rgba(255, 255, 255, 0.6);*/
    z-index: 1;
}

.edokyu-brand .container-fluid {
    position: relative;
    z-index: 2;
}

.edokyu-policy {
    position: relative;
    overflow: hidden;
    background: url('../img/bg-parallax.png') no-repeat center bottom;
    background-size: cover;
    background-attachment: fixed;
    background-position: center bottom;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.edokyu-policy::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /*background: rgba(255, 255, 255, 0.6);*/
    z-index: 1;
}

.edokyu-policy .container-fluid {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.edokyu-brand h2{
    color:#666;
}

/* Responsive Design */
@media (min-width: 992px) {
    .edokyu-menu-image-wrap {
        width: 100%;
        aspect-ratio: 3 / 2;
        overflow: hidden;
    }
    
    /* Desktop specific fixes for product alignment */
    .edokyu-product-list .col-12.col-lg-4 {
        min-height: 450px; /* Tăng chiều cao cho desktop */
    }
    
    .edokyu-product-title-box {
        min-height: 100px; /* Tăng chiều cao title box cho desktop */
    }
    
    .edokyu-product-image {
        margin-top: auto; /* Đẩy ảnh xuống dưới title box */
        margin-bottom: 1rem;
    }
    
    /* Desktop: Product line decoration */
    .edokyu-product-line {
        min-height: 30px !important; /* Chiều cao lớn hơn cho desktop */
    }
    
    /* Desktop: Vertical text alignment */
    .edokyu-vertical-text-container .edokyu-vertical-text {
        text-align: start;
        margin: 0;
        padding-top: 2rem;
    }
    
    /* Desktop: Product Bottom Alignment */
    .edokyu-product-list .col-12.col-lg-4 {
        display: flex;
        flex-direction: column;
        height: 100%; /* Đảm bảo chiều cao đồng nhất */
        min-height: 500px; /* Tăng chiều cao tối thiểu cho desktop */
    }
    
    .edokyu-product-title-box {
        flex: 0 0 auto; /* Không co giãn */
        margin-bottom: 1rem;
        min-height: 120px; /* Tăng chiều cao cho desktop */
    }
    
    .edokyu-product-bottom {
        flex: 1 1 auto; /* Co giãn để lấp đầy không gian còn lại */
        display: flex;
        flex-direction: column;
        justify-content: flex-end; /* Căn sát bottom */
        align-items: center;
        width: 100%;
        margin-top: auto; /* Đẩy xuống dưới cùng */
    }
    
    .edokyu-product-bottom .edokyu-product-image {
        margin-bottom: 1rem;
    }
    
    .edokyu-product-bottom .edokyu-product-price {
        margin-top: 0.5rem;
        font-weight: bold;
    }
}
@media (max-width: 991.98px) {
    /* Reset to white background on mobile */
    .edokyu-brand {
        background: #fff;
        background-attachment: scroll;
    }
    
    .edokyu-brand::before {
        display: none;
    }
    
    /* Reset policy section on mobile */
    .edokyu-policy {
        background: #fff;
        background-attachment: scroll;
    }
    
    .edokyu-policy::before {
        display: none;
    }
    
    .edokyu-vertical-text {
        writing-mode: horizontal-tb;
        text-orientation: initial;
        max-height: none;
        padding: 1rem;
        line-height: 1.7;
    }

    .edokyu-menu-section-bg {
        padding: 1.5rem 1rem;
    }

    .edokyu-nav-mobile-slogan {
        font-size: 1.5rem;
        bottom: 60px;
    }
    
    /* Mobile: Reset alignment for natural flow */
    .edokyu-product-list .col-12.col-lg-4 {
        min-height: auto;
        flex-direction: column;
    }
    
    .edokyu-product-title-box {
        min-height: auto;
    }
    
    .edokyu-product-image {
        margin-top: 0;
    }
    
    /* Mobile: Product line decoration - ENHANCED */
    .edokyu-product-line {
        min-height: 40px !important; /* Tăng chiều cao cho mobile */
        max-height: 60px !important; /* Giới hạn chiều cao tối đa */
        
        margin: 1rem 0 !important; /* Thêm margin để nổi bật hơn */
    }
    
    /* Mobile: Vertical text alignment */
    .edokyu-vertical-text-container .edokyu-vertical-text {
        text-align: left;
        margin: 0;
        padding: 1rem 0;
    }

    .edokyu-mobile-hiden{
        display: none;
    }

    .edokyu-mobile-show{
        display: block;
    }

    .edokyu-product .edokyu-product-image {
        width: 100%;
        max-width: 220px;
    }
    
    .edokyu-product-bottom {
        display: block; /* Reset về block layout cho mobile */
        text-align: center;
        margin-top: 1rem; /* Thêm khoảng cách cho mobile */
    }
}

@media (max-width: 991.98px) {
    .edokyu-header {
        height: 90vh;
        background: url('../img/background-header-mobile.jpeg') no-repeat center center;
        background-size: cover;
    }
    
    .edokyu-about {
        background: #000 url('../img/background-about-section-mobile.png') no-repeat center center/cover;
    }    
    
    /* Small mobile: Product line decoration - FURTHER ENHANCED */
    .edokyu-product-line {
        min-height: 50px !important; /* Tăng thêm chiều cao cho mobile nhỏ */
        max-height: 80px !important;
        margin: 0 !important;
    }
}

/* Accessibility Improvements */
.edokyu-nav-btn-item:focus,
.edokyu-social-icons a:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .edokyu-nav-mobile-btn,
    .edokyu-social-icons {
        display: none !important;
    }
    
    .edokyu-header {
        height: auto;
        min-height: 200px;
    }
} 