/*
Theme Name: Joie Custom
Version: 1.0.1
Description: Custom WooCommerce theme for Joie Designs Co.
*/

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #1a1a1a;
    font-size: 15px;
    line-height: 1.6;
    background: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* ============================================
   ANNOUNCEMENT BAR
   ============================================ */
.announcement-bar {
    background: #faf8f5;
    text-align: center;
    padding: 12px 20px;
    font-size: 12px;
    color: #6b6b6b;
    border-bottom: 1px solid #f0ece6;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 500;
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 48px;
    max-width: 1440px;
    margin: 0 auto;
}

.site-logo {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 24px;
    color: #1a1a1a;
    letter-spacing: 2px;
    font-weight: 400;
}

.site-nav {
    display: flex;
    gap: 32px;
    align-items: center;
}

.site-nav a {
    color: #4a4a4a;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 500;
    transition: color 0.2s ease;
}

.site-nav a:hover {
    color: #8b7355;
}

.cart-count {
    font-weight: 400;
}

/* ============================================
   HERO BANNER
   ============================================ */
.hero-banner {
    position: relative;
    overflow: hidden;
}

.hero-banner-bg {
    min-height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    text-align: center;
    padding: 60px 20px;
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.hero-label {
    font-size: 13px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #8b7355;
    margin-bottom: 16px;
    font-weight: 500;
}

.hero-title {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 44px;
    font-weight: 400;
    color: #1a1a1a;
    margin-bottom: 16px;
    letter-spacing: 2.5px;
    line-height: 1.2;
}

.hero-desc {
    color: #666;
    font-size: 16px;
    margin-bottom: 28px;
    line-height: 1.6;
}

.btn-primary {
    display: inline-block;
    padding: 14px 42px;
    background: #1a1a1a;
    color: white;
    font-size: 13px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #333;
    transform: translateY(-1px);
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
    padding: 70px 0;
}

.section-alt {
    background: #faf8f5;
}

.section-header {
    padding: 0 20px 40px;
    text-align: center;
}

.section-title {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 28px;
    font-weight: 400;
    letter-spacing: 2px;
    margin-bottom: 10px;
    color: #1a1a1a;
}

.section-subtitle {
    color: #8b7355;
    font-size: 14px;
    letter-spacing: 0.5px;
    font-weight: 400;
}

/* ============================================
   PRODUCT GRID
   ============================================ */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 48px;
}

.product-grid-featured {
    grid-template-columns: repeat(4, 1fr);
}

.product-card {
    text-align: center;
    cursor: pointer;
}

.product-card .image-wrap {
    background: #f9f7f4;
    border-radius: 4px;
    margin-bottom: 16px;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.product-card .image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.product-card:hover .image-wrap img {
    transform: scale(1.06);
}

.image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0ece6;
    font-size: 12px;
    color: #bbb;
}

.product-name {
    font-size: 14px;
    font-weight: 400;
    color: #333;
    margin-bottom: 6px;
    line-height: 1.4;
    padding: 0 8px;
    transition: color 0.2s ease;
}

.product-card:hover .product-name {
    color: #8b7355;
}

.product-price,
.joie-price {
    color: #8b7355;
    font-size: 14px;
    font-weight: 500;
}

.product-price .amount,
.joie-price .amount {
    color: #8b7355;
}

.product-price del,
.joie-price del {
    opacity: 0.5;
    margin-right: 6px;
}

.product-price ins,
.joie-price ins {
    text-decoration: none;
}

/* ============================================
   REVIEWS
   ============================================ */
.reviews-section {
    text-align: center;
    padding: 70px 20px;
    max-width: 800px;
    margin: 0 auto;
}

.review-count {
    color: #999;
    font-size: 14px;
    margin-bottom: 44px;
}

.review-card {
    margin-bottom: 40px;
}

.review-stars {
    color: #f5a623;
    font-size: 20px;
    margin-bottom: 14px;
    letter-spacing: 4px;
}

.review-text {
    font-size: 16px;
    color: #555;
    line-height: 1.8;
    margin-bottom: 8px;
    font-style: italic;
}

.review-author {
    font-size: 13px;
    color: #999;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: #faf8f5;
    border-top: 1px solid #f0ece6;
    margin-top: 60px;
}

.footer-content {
    max-width: 1440px;
    margin: 0 auto;
    padding: 60px 48px 40px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
}

.footer-logo {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 20px;
    color: #333;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.footer-tagline {
    color: #999;
    font-size: 14px;
    line-height: 1.6;
}

.footer-heading {
    font-size: 13px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #1a1a1a;
    margin-bottom: 16px;
    font-weight: 600;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col a {
    color: #666;
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer-col a:hover {
    color: #8b7355;
}

.footer-bottom {
    text-align: center;
    padding: 24px 20px;
    color: #999;
    font-size: 13px;
    border-top: 1px solid #f0ece6;
}

/* ============================================
   SHOP PAGE
   ============================================ */
.page-wrap {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 48px 60px;
}

.woocommerce-result-count,
.woocommerce-ordering {
    display: none !important;
}

ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 28px !important;
    margin: 0 !important;
    padding: 0 !important;
}

ul.products li.product {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    width: auto !important;
    clear: none !important;
    float: none !important;
}

ul.products li.product a {
    display: block;
    text-align: center;
}

ul.products li.product a img {
    margin: 0 !important;
    width: 100% !important;
    background: #f9f7f4;
    border-radius: 4px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    transition: transform 0.5s ease;
}

ul.products li.product:hover a img {
    transform: scale(1.06);
}

ul.products li.product .woocommerce-loop-product__title {
    font-size: 14px !important;
    font-weight: 400 !important;
    color: #333 !important;
    padding: 12px 8px 4px !important;
    line-height: 1.4 !important;
}

ul.products li.product .price {
    color: #8b7355 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    padding: 0 8px !important;
}

ul.products li.product .button {
    display: none !important;
}

/* Pagination */
.woocommerce-pagination {
    text-align: center;
    padding: 40px 0;
}

.woocommerce-pagination ul.page-numbers {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.woocommerce-pagination ul.page-numbers li {
    display: inline;
}

.woocommerce-pagination ul.page-numbers a,
.woocommerce-pagination ul.page-numbers span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid #e0ddd8;
    border-radius: 50%;
    font-size: 13px;
    color: #666;
    transition: all 0.2s ease;
}

.woocommerce-pagination ul.page-numbers a:hover,
.woocommerce-pagination ul.page-numbers span.current {
    background: #1a1a1a;
    color: white;
    border-color: #1a1a1a;
}

/* ============================================
   SINGLE PRODUCT PAGE
   ============================================ */
.single-product .page-wrap {
    padding-top: 40px;
}

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

.single-product div.product .woocommerce-product-gallery {
    width: 100% !important;
    float: none !important;
}

.single-product div.product .woocommerce-product-gallery .woocommerce-product-gallery__image {
    background: #f9f7f4;
    border-radius: 4px;
}

.single-product div.product .summary {
    width: 100% !important;
    float: none !important;
    margin-top: 0 !important;
}

.single-product div.product .summary .product_title {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 28px;
    font-weight: 400;
    margin-bottom: 12px;
    color: #1a1a1a;
}

.single-product div.product .summary .price {
    font-size: 22px;
    color: #8b7355;
    margin-bottom: 16px;
}

.single-product div.product .woocommerce-product-rating {
    margin-bottom: 20px;
}

.single-product div.product .woocommerce-product-rating .star-rating {
    color: #f5a623;
    font-size: 16px;
}

.single-product div.product .woocommerce-product-details__short-description {
    color: #555;
    line-height: 1.8;
    margin-bottom: 28px;
}

.single-product div.product form.cart {
    margin-bottom: 30px;
}

.single-product div.product form.cart .quantity {
    display: none;
}

.single-product div.product form.cart .button {
    width: 100%;
    padding: 16px;
    background: #1a1a1a;
    color: white;
    border: none;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    font-weight: 500;
    border-radius: 0;
    transition: background 0.3s ease;
}

.single-product div.product form.cart .button:hover {
    background: #333;
}

/* Product meta */
.single-product div.product .product_meta {
    border-top: 1px solid #f0ece6;
    padding-top: 20px;
    margin-top: 20px;
}

.single-product div.product .product_meta .posted_in,
.single-product div.product .product_meta .tagged_as {
    font-size: 13px;
    color: #999;
}

.single-product div.product .product_meta a {
    color: #8b7355;
}

/* Related products */
.related.products {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #f0ece6;
}

.related.products h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 24px;
    font-weight: 400;
    text-align: center;
    margin-bottom: 32px;
    letter-spacing: 1px;
}

/* ============================================
   CART PAGE
   ============================================ */
.woocommerce-cart .page-wrap {
    padding-top: 40px;
}

.woocommerce-cart-form .shop_table {
    border: none;
    border-collapse: collapse;
}

.woocommerce-cart-form .shop_table th {
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #8b7355;
    padding: 12px;
    border-bottom: 2px solid #f0ece6;
}

.woocommerce-cart-form .shop_table td {
    padding: 16px 12px;
    border-bottom: 1px solid #f0ece6;
}

.cart_totals h2 {
    font-family: Georgia, serif;
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 20px;
}

.checkout-button,
.wc-proceed-to-checkout .button {
    width: 100%;
    padding: 16px;
    background: #1a1a1a !important;
    color: white !important;
    border: none;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    font-weight: 500;
    border-radius: 0 !important;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .product-grid,
    ul.products {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .site-header {
        padding: 16px 20px;
        flex-direction: column;
        gap: 16px;
    }

    .site-nav {
        gap: 20px;
    }

    .hero-banner-bg {
        min-height: 350px;
    }

    .hero-title {
        font-size: 30px;
    }

    .hero-content {
        padding: 40px 20px;
    }

    .section {
        padding: 40px 0;
    }

    .section-title {
        font-size: 22px;
    }

    .product-grid,
    ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px !important;
        padding: 0 16px !important;
    }

    .page-wrap {
        padding: 0 16px 40px !important;
    }

    .single-product div.product {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        padding: 40px 20px 20px;
        gap: 30px;
    }

    .reviews-section {
        padding: 40px 16px;
    }

    .review-text {
        font-size: 14px;
    }

    .site-nav a {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .product-grid,
    ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }

    .hero-title {
        font-size: 24px;
    }

    .announcement-bar {
        font-size: 10px;
        padding: 10px 14px;
    }

    .btn-primary {
        padding: 12px 32px;
        font-size: 12px;
    }
}
