/*
Theme Name: Aleeza Storee Theme
Theme URI: https://aleezastoree.com
Description: Astra Child Theme for Aleeza Storee
Author: Aleeza Team
Author URI: https://aleezastoree.com
Template: astra
Version: 1.0.0
Text Domain: aleezastoree-theme
*/

/* ===================================================
   1. GLOBAL CONTAINER KUNCI TENGAH (1200px)
   =================================================== */
html body #page,
html body .site,
html body .site-content,
html body .ast-container,
html body .site-header,
html body .site-footer,
html body .site-below-footer-wrap,
html body .site-primary-footer-wrap,
html body footer {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
    width: 100%;
}

/* ===================================================
   2. JUDUL HALAMAN (ORDERS / AKUN SAYA)
   =================================================== */
html body .entry-header,
html body .entry-title,
html body .ast-single-post-order,
html body h1.entry-title {
    max-width: 1200px;
    margin: 24px auto 16px auto;
    padding: 0;
    color: #0f172a;
    font-size: 24px;
    font-weight: 700;
    text-align: left;
}

/* ===================================================
   3. DASHBOARD AKUN WOOCOMMERCE
   =================================================== */
html body.woocommerce-account .woocommerce {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    max-width: 1200px;
    margin: 20px auto 48px auto;
    width: 100%;
}

/* Sidebar Navigasi Kiri */
html body.woocommerce-account .woocommerce-MyAccount-navigation {
    width: 260px;
    flex: 0 0 260px;
    margin-right: 32px;
}

html body.woocommerce-account .woocommerce-MyAccount-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

html body.woocommerce-account .woocommerce-MyAccount-navigation ul li {
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #f1f5f9;
}

html body.woocommerce-account .woocommerce-MyAccount-navigation ul li:last-child {
    border-bottom: none;
}

html body.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
    display: block;
    padding: 14px 20px;
    color: #334155;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

html body.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover {
    background-color: #f8fafc;
    color: #059669;
    padding-left: 24px;
}

html body.woocommerce-account .woocommerce-MyAccount-navigation ul .is-active a {
    background-color: #ecfdf5;
    color: #059669;
    border-left-color: #059669;
    font-weight: 700;
}

/* Konten Dashboard */
html body.woocommerce-account .woocommerce-MyAccount-content {
    flex: 1 1 auto;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

/* Tombol */
html body.woocommerce-account .button,
html body.woocommerce-account input.button,
html body.woocommerce-account button.button {
    background-color: #059669;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 10px 22px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

html body.woocommerce-account .button:hover,
html body.woocommerce-account input.button:hover,
html body.woocommerce-account button.button:hover {
    background-color: #047857;
}

/* Tabel Pesanan */
html body.woocommerce-account table.shop_table {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    border-collapse: collapse;
}

html body.woocommerce-account table.shop_table th {
    background-color: #f8fafc;
    color: #0f172a;
    font-weight: 700;
    padding: 12px 16px;
    border-bottom: 1px solid #e2e8f0;
}

html body.woocommerce-account table.shop_table td {
    padding: 14px 16px;
    border-bottom: 1px solid #f1f5f9;
}

/* ===================================================
   4. DETAIL PRODUK (SINGLE PRODUCT 2 KOLOM)
   =================================================== */
html body.single-product #primary,
html body.single-product .site-content,
html body.single-product .ast-container,
html body.single-product main#main {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 15px;
    width: 100%;
}

html body.single-product div.product {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
}

/* Kolom Kiri: Galeri Gambar (Maks 400px) */
html body.single-product div.product div.images,
html body.single-product .woocommerce-product-gallery {
    width: 400px;
    max-width: 400px;
    flex: 0 0 400px;
    margin: 0;
}

html body.single-product div.product div.images img,
html body.single-product .woocommerce-product-gallery img {
    max-width: 400px;
    max-height: 400px;
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    padding: 8px;
}

/* Kolom Kanan: Summary & Tombol */
html body.single-product div.product div.summary {
    width: calc(100% - 440px);
    max-width: calc(100% - 440px);
    flex: 1 1 auto;
    margin: 0;
    padding-left: 30px;
}

/* Tabs Deskripsi Lengkap Bawah */
html body.single-product div.product .woocommerce-tabs,
html body.single-product div.product .related.products {
    width: 100%;
    margin-top: 40px;
    clear: both;
}

/* ===================================================
   5. RESPONSIF MOBILE
   =================================================== */
@media (max-width: 768px) {
    html body.woocommerce-account .woocommerce {
        flex-direction: column;
    }

    html body.woocommerce-account .woocommerce-MyAccount-navigation {
        width: 100%;
        flex: 1 1 100%;
        margin-right: 0;
        margin-bottom: 20px;
    }

    html body.single-product div.product {
        flex-direction: column;
    }

    html body.single-product div.product div.images,
    html body.single-product .woocommerce-product-gallery,
    html body.single-product div.product div.summary {
        width: 100%;
        max-width: 100%;
        flex: 1 1 100%;
        padding-left: 0;
    }
}