/* 
Theme Name: Holsea WooCommerce Custom
Description: Custom styles for the Holsea WooCommerce redesign
*/

:root {
    --hs-color-primary: #1a1a1a;
    --hs-color-secondary: #666;
    --hs-color-accent: #d4Af37;
    /* Gold tone for elegance */
    --hs-color-bg: #f9f9f9;
    --hs-color-white: #ffffff;
    --hs-color-border: #e2e2e2;
    --hs-font-main: 'Noto Serif TC', serif;
    /* Assuming a serif for elegance */
    --hs-font-sans: 'Inter', sans-serif;
}

/* Base Shop Reset */
.holsea-shop-page,
.holsea-single-product-page {
    background-color: var(--hs-color-bg);
    color: var(--hs-color-primary);
    font-family: var(--hs-font-main);
    overflow-x: hidden;
    overflow-y: auto !important;
    /* Force scroll */
    width: 100%;
    height: auto !important;
    /* Force height */
}

/* Force body scroll override */
html.holsea-shop-page,
html.single-product,
body.holsea-shop-page,
body.single-product {
    overflow: auto !important;
    height: auto !important;
}


/* =========================================
   Header Shop
   ========================================= */
.holsea-shop-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.holsea-shop-brand {
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--hs-color-primary);
    text-decoration: none;
}

.holsea-shop-nav a {
    margin-left: 2rem;
    text-decoration: none;
    color: var(--hs-color-secondary);
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    transition: color 0.3s;
}

.holsea-shop-nav a:hover {
    color: var(--hs-color-primary);
}

/* =========================================
   Shop Container
   ========================================= */
.holsea-shop-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem;
    min-height: 80vh;
}

/* =========================================
   Filter Section
   ========================================= */
.holsea-shop-filter {
    margin-bottom: 4rem;
    text-align: center;
    position: relative;
    padding: 2rem 0;
}

.holsea-shop-filter::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 1px;
    background-color: var(--hs-color-primary);
}

.holsea-filter-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.holsea-filter-item a {
    text-decoration: none;
    color: var(--hs-color-secondary);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    padding-bottom: 5px;
    border-bottom: 1px solid transparent;
}

.holsea-filter-item a:hover,
.holsea-filter-item.active a {
    color: var(--hs-color-primary);
    border-bottom: 1px solid var(--hs-color-primary);
}

/* =========================================
   Product Grid
   ========================================= */
.holsea-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 3rem;
}

.holsea-product-card {
    position: relative;
    display: flex;
    flex-direction: column;
}


.holsea-product-image-wrapper {
    position: relative;
    overflow: hidden;
    /* aspect-ratio: 3/4; removed to prevent cutting */
    background-color: transparent;
    margin-bottom: 1.5rem;
}

.holsea-product-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s ease;
}

.holsea-product-card:hover .holsea-product-image-wrapper img {
    transform: scale(1.05);
}

.holsea-product-info {
    text-align: center;
}

.holsea-product-title {
    font-size: 1.1rem;
    margin: 0 0 0.5rem;
    font-weight: 500;
}

.holsea-product-price {
    font-family: var(--hs-font-sans);
    color: var(--hs-color-secondary);
    font-size: 0.95rem;
}

.holsea-add-to-cart-btn {
    margin-top: 1rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    background: var(--hs-color-primary);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    cursor: pointer;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    align-self: center;
}

.holsea-product-card:hover .holsea-add-to-cart-btn {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   Single Product
   ========================================= */
.holsea-single-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    padding-top: 2rem;
}

.holsea-single-gallery {
    display: grid;
    gap: 1rem;
}

.holsea-single-main-image {
    width: 100%;
    height: auto;
    display: block;
}

.holsea-single-info {
    padding-top: 2rem;
}

.holsea-single-title {
    font-size: 2.5rem;
    font-weight: 300;
    border-bottom: 1px solid var(--hs-color-border);
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
}

.holsea-single-price {
    font-size: 1.5rem;
    font-family: var(--hs-font-sans);
    margin-bottom: 2rem;
    display: block;
}

.holsea-single-description {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--hs-color-secondary);
    margin-bottom: 3rem;
}

.holsea-single-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    border-top: 1px solid var(--hs-color-border);
    padding-top: 2rem;
}

.holsea-qty-input {
    width: 60px;
    padding: 0.8rem;
    text-align: center;
    border: 1px solid var(--hs-color-border);
}

.holsea-add-btn {
    background: var(--hs-color-primary);
    color: white;
    border: none;
    padding: 1rem 3rem;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: background 0.3s;
}

.holsea-add-btn:hover {
    background: #000;
}

/* =========================================
   Footer Shop
   ========================================= */
.holsea-shop-footer {
    background-color: #fff;
    padding: 5rem 2rem 2rem;
    margin-top: 6rem;
    border-top: 1px solid var(--hs-color-border);
}

.holsea-footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
}

.holsea-footer-col h4 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    color: var(--hs-color-primary);
}

.holsea-footer-col ul {
    list-style: none;
    padding: 0;
}

.holsea-footer-col li {
    margin-bottom: 0.8rem;
}

.holsea-footer-col a {
    text-decoration: none;
    color: var(--hs-color-secondary);
    transition: color 0.3s;
}

.holsea-footer-col a:hover {
    color: var(--hs-color-primary);
}

.holsea-footer-bottom {
    max-width: 1400px;
    margin: 4rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid var(--hs-color-border);
    display: flex;
    justify-content: space-between;
    color: #999;
    font-size: 0.8rem;
}

/* Mobile */
@media (max-width: 768px) {
    .holsea-product-grid {
        grid-template-columns: 1fr;
    }

    .holsea-single-layout {
        grid-template-columns: 1fr;
    }

    .holsea-footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .holsea-footer-bottom {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
}