/* =========================================
   Product Detail Page Styles 
   (2-Column Layout for Single Product)
   ========================================= */

/* Base & Layout */
.product-detail-wrapper {
    max-width: 1200px;
    margin: 210px auto 80px; /* ヘッダーの高さ(160px) + 余白50px */
    padding: 0 20px;
    display: flex;
    gap: 40px;
}

/* -----------------------------
   Left Column (Sidebar)
   ----------------------------- */
.pd-sidebar {
    width: 280px;
    flex-shrink: 0;
}

/* Sidebar Headings */
.pd-sidebar h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #f0eae1; /* 淡いベージュ */
    color: #3b2a26;
    letter-spacing: 0.05em;
}

/* Category List */
.pd-category-list {
    list-style: none;
    padding: 0;
    margin: 0 0 40px;
}

.pd-category-list li {
    margin-bottom: 10px;
}

.pd-category-list a {
    display: block;
    padding: 12px 16px;
    background-color: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.pd-category-list a:hover {
    background-color: #f9f6f0;
    border-color: #dcd0c0;
    color: #00aeee; /* アクセント色（暫定） */
}

/* Recommend / Thumbnail Cards */
.pd-card-list {
    list-style: none;
    padding: 0;
    margin: 0 0 40px;
}

.pd-card-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    background: transparent; /* 白背景をなくす */
    border: none;
    border-bottom: 1px dashed #dcd0c0; /* 下線だけの表現に */
    padding: 10px 5px;
    border-radius: 0;
    transition: background-color 0.3s;
    text-decoration: none;
    color: #333;
}

.pd-card-item:hover {
    box-shadow: none;
    background-color: rgba(0,0,0,0.02); /* ほんの少しだけホバー感を出す */
}

.pd-card-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    background-color: #f7f7f7;
    border-radius: 6px;
    padding: 4px;
}

.pd-card-title {
    font-size: 0.85rem;
    line-height: 1.4;
    font-weight: 500;
    margin: 0;
}

/* 7 Categories with Icons */
.pd-icon-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}

.pd-icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: calc(50% - 5px);
    background: rgba(255, 255, 255, 0.7); /* 白ベースの不透明度70% */
    border: 1px solid rgba(255, 255, 255, 0.5); /* 馴染む枠線 */
    padding: 15px 10px;
    border-radius: 8px;
    text-decoration: none;
    color: #555;
    transition: all 0.2s;
}

.pd-icon-item:hover {
    background: rgba(255, 255, 255, 0.95);
    color: #3b2a26;
    border-color: #eee;
}

.pd-icon-item span.icon {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.pd-icon-item span.label {
    font-size: 0.8rem;
    font-weight: 700;
}


/* -----------------------------
   Right Column (Main Content)
   ----------------------------- */
.pd-main {
    flex-grow: 1;
    min-width: 0; /* flexbox bug fix */
}

/* Top: First View (Image + Info) */
.pd-first-view {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.pd-image-wrap {
    background: transparent; /* 背景を透明に */
    border: 2px solid #dcd0c0; /* 枠線だけにする */
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.pd-image-wrap img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.pd-info-wrap {
    display: flex;
    flex-direction: column;
}

.pd-brand-name {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 5px;
    font-weight: 700;
}

.pd-product-title {
    font-size: 1.8rem;
    color: #3b2a26;
    margin-top: 0;
    margin-bottom: 15px;
    line-height: 1.3;
}

/* Trust Icons (無添加, グレインフリー etc) */
.pd-trust-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.pd-trust-icon {
    background: #f0eae1;
    color: #6a5a4a;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 700;
}

.pd-price {
    font-size: 1.6rem;
    font-weight: 700;
    color: #e54c5e; /* 目立つ色 */
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px dashed #ddd;
}

.pd-size-select {
    margin-bottom: 25px;
}

.pd-size-label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.pd-size-options {
    display: flex;
    flex-wrap: wrap; /* 5つ並んだ際などの折り返し対応 */
    gap: 10px;
}

.pd-size-option {
    padding: 10px 16px;
    border: 2px solid #ccc;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}

.pd-size-option:hover,
.pd-size-option.active {
    border-color: #00aeee; /* アクティブ色 */
    color: #00aeee;
    background: #f0faff;
}

/* Buy Button */
.pd-btn-buy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background-color: #00c4b5; /* エメラルドグリーン系 */
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    padding: 16px 20px;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.3s, transform 0.2s;
    box-shadow: 0 4px 10px rgba(0, 196, 181, 0.3);
}

.pd-btn-buy:hover {
    background-color: #00a598;
    transform: translateY(-2px);
    color: #fff;
}


/* Content Sections */
.pd-section {
    margin-bottom: 60px;
}

.pd-section-title {
    font-size: 1.4rem;
    color: #3b2a26;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0eae1;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Features List */
.pd-feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pd-feature-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.05rem;
    margin-bottom: 12px;
    line-height: 1.5;
    background: rgba(255, 255, 255, 0.7); /* 背景の白を70%の不透明度に */
    padding: 12px 15px;
    border-radius: 8px;
    border: none;
}

/* Description text */
.pd-desc-text {
    line-height: 1.8;
    color: #444;
    font-size: 1rem;
}

/* Data Table (成分・給与量など) */
.pd-data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.pd-data-table th,
.pd-data-table td {
    padding: 12px 15px;
    border: 1px solid #ddd;
    text-align: left;
    font-size: 0.95rem;
}

.pd-data-table th {
    background-color: #f9f6f0;
    font-weight: 700;
    width: 30%;
    color: #555;
}

.pd-data-table td {
    background-color: rgba(255, 255, 255, 0.7); /* 白背景を70%に */
}

/* Target Dogs (向いている犬) */
.pd-target-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pd-target-list li {
    background: #eef7eb; /* 薄いグリーン */
    padding: 15px;
    border-radius: 8px;
    position: relative;
    padding-left: 40px;
    font-weight: 500;
    color: #3c5a31;
}

.pd-target-list li::before {
    content: "✓";
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    color: #5b8c46;
    font-weight: bold;
}

/* FAQ */
.pd-faq-list {
    margin-top: 20px;
}

.pd-faq-item {
    margin-bottom: 15px;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
}

.pd-faq-q {
    background: #f9f9f9;
    padding: 15px 20px;
    font-weight: 700;
    cursor: pointer;
    position: relative;
}

.pd-faq-q::before {
    content: "Q.";
    color: #00aeee;
    margin-right: 8px;
    font-size: 1.1rem;
}

.pd-faq-a {
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.7); /* 白背景を70%に */
    border-top: 1px solid #eee;
    line-height: 1.6;
    color: #444;
}

.pd-faq-a::before {
    content: "A.";
    color: #e54c5e;
    font-weight: 700;
    margin-right: 8px;
    font-size: 1.1rem;
}

/* Related Products (Bottom) */
.pd-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}


/* -----------------------------
   Responsive Area
   ----------------------------- */
@media screen and (max-width: 860px) {
    .product-detail-wrapper {
        flex-direction: column;
    }

    .pd-sidebar {
        width: 100%;
        order: 2; /* スマホ時はサイドバーを下にする */
        margin-top: 40px;
    }

    .pd-main {
        order: 1;
    }

    .pd-first-view {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .pd-target-list {
        grid-template-columns: 1fr;
    }
}
