/* Shop Detail - Stussy Style */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    color: #1a1a1a;
    background: #fff;
    line-height: 1.6;
}

/* Main */
.shop-main {
    padding: 60px 20px 120px;
    min-height: calc(100vh - 300px);
    margin-top: 80px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

/* Gallery */
.product-gallery {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.main-image {
    width: 100%;
    padding-bottom: 100%;
    position: relative;
    background: #f8f8f8;
    overflow: hidden;
    margin-bottom: 16px;
}

.main-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: zoom-in;
}

.thumbnail-list {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.thumbnail-item {
    position: relative;
    padding-bottom: 100%;
    background: #f8f8f8;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s;
}

.thumbnail-item:hover {
    border-color: #000;
}

.thumbnail-item.active {
    border-color: #000;
}

.thumbnail-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Product Info - Stussy Style */
.product-detail-info {
    padding-top: 0;
}

.product-detail-title {
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 12px;
    color: #000;
}

.product-price-section {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e5e5e5;
}

.product-detail-price {
    font-size: 16px;
    font-weight: 400;
    color: #000;
}

/* Specs */
.product-specs {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e5e5e5;
}

.spec-item {
    display: flex;
    padding: 8px 0;
    font-size: 14px;
}

.spec-label {
    width: 80px;
    color: #666;
    font-weight: 400;
}

.spec-value {
    flex: 1;
    color: #000;
    font-weight: 400;
}

/* Add to Bag Section */
.add-to-bag-section {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e5e5e5;
}

.add-to-bag-btn {
    width: 100%;
    padding: 16px 24px;
    background: #000;
    color: #fff;
    border: none;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s;
}

.add-to-bag-btn:hover {
    background: #333;
}

.add-to-bag-btn:active {
    transform: scale(0.98);
}

.add-to-bag-btn.show-message {
    background: #666;
    cursor: default;
}

/* Bottom Sticky Button */
.bottom-sticky-button {
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    padding: 16px 0;
    margin-top: 32px;
    border-top: 1px solid #e5e5e5;
    z-index: 100;
    display: none;
}

.add-to-bag-btn-sticky {
    width: 100%;
    padding: 16px 24px;
    background: #000;
    color: #fff;
    border: none;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s;
}

.add-to-bag-btn-sticky:hover {
    background: #333;
}

.add-to-bag-btn-sticky:active {
    transform: scale(0.98);
}

.add-to-bag-btn-sticky.show-message {
    background: #666;
    cursor: default;
}

/* Accordion Sections */
.accordion-section {
    border-top: 1px solid #e5e5e5;
}

.accordion-section:last-child {
    border-bottom: 1px solid #e5e5e5;
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    cursor: pointer;
    user-select: none;
}

.accordion-title {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #000;
}

.accordion-icon {
    font-size: 20px;
    color: #000;
    transition: transform 0.3s;
}

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

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-content.active {
    max-height: 1000px;
}

.accordion-body {
    padding-bottom: 24px;
    font-size: 13px;
    line-height: 1.8;
    color: #666;
}

/* Description */
.description-content {
    white-space: pre-wrap;
}

/* Sticky Button Bar */
.sticky-button-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #e5e5e5;
    padding: 16px 20px;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.sticky-button-bar .container {
    max-width: 1400px;
    margin: 0 auto;
}

.sticky-button-bar .add-to-bag-btn {
    width: 100%;
    padding: 16px 24px;
    background: #000;
    color: #fff;
    border: none;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s;
    margin: 0;
}

.sticky-button-bar .add-to-bag-btn:hover {
    background: #333;
}

.sticky-button-bar .add-to-bag-btn:active {
    transform: scale(0.98);
}

.sticky-button-bar .add-to-bag-btn.show-message {
    background: #666;
    cursor: default;
}

/* Actions */
.product-actions {
    margin-top: 32px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.btn-contact,
.btn-kakaotalk {
    padding: 16px 24px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border: 1px solid #000;
    background: #fff;
    color: #000;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-contact:hover {
    background: #000;
    color: #fff;
}

.btn-kakaotalk {
    background: #FEE500;
    border-color: #FEE500;
    color: #000;
}

.btn-kakaotalk:hover {
    background: #F5DC00;
    border-color: #F5DC00;
}

/* Responsive */
@media (max-width: 992px) {
    .product-detail {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .product-gallery {
        position: static;
    }
    
    .thumbnail-list {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .shop-main {
        margin-top: 60px;
        padding: 40px 20px 100px;
    }
    
    .product-detail-title {
        font-size: 16px;
    }
    
    .thumbnail-list {
        grid-template-columns: repeat(3, 1fr);
    }
}
