/*
Theme Name: Monkyboy Inventory
Theme URI: https://monkyboy.fr
Author: Monkyboy
Author URI: https://monkyboy.fr
Description: Thème WooCommerce avec interface d'inventaire fantasy pour boutique de mode
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: monkeyboy
Tags: woocommerce, e-commerce, dark, fantasy, game-ui

This theme styles a WooCommerce shop with a game inventory interface.
*/

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: linear-gradient(135deg, #151515 0%, #0f0f0f 50%, #151515 100%);
    font-family: 'Rajdhani', sans-serif;
    color: #c4b89a;
    min-height: 100vh;
    position: relative;
}

/* Lock scroll only on inventory page */
body.monkeyboy-inventory-page {
    height: 100vh;
    overflow: hidden;
}

a {
    color: #d4a856;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #f0c060;
}

/* Mini Navigation */
.mini-nav {
    position: fixed;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 1000;
}

/* Reposition nav to top-right on pages other than home and product detail */
body:not(.monkeyboy-inventory-page):not(.single-product) .mini-nav {
    top: 15px;
    right: 15px;
    transform: none;
    flex-direction: row;
}

.nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: linear-gradient(145deg, #2a231a 0%, #1a1510 100%);
    border: 1px solid #4a3f2f;
    border-radius: 3px;
    color: #8a7a60;
    transition: all 0.2s ease;
    position: relative;
}

.nav-icon svg {
    width: 18px;
    height: 18px;
}

.nav-icon:hover {
    color: #d4a856;
    border-color: #d4a856;
    box-shadow: 0 0 10px rgba(212, 168, 86, 0.3);
}

.cart-icon {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #d4a856;
    color: #1a1510;
    font-size: 0.5rem;
    font-weight: 700;
    min-width: 12px;
    height: 12px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Main Content */
.site-main {
    min-height: calc(100vh - 150px);
}

/* Site Footer */
.site-footer {
    background: transparent;
    padding: 10px;
    text-align: center;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 50;
}

/* Static footer on non-inventory pages so it doesn't overlap content */
body:not(.monkeyboy-inventory-page):not(.single-product) .site-footer {
    position: static;
    background: linear-gradient(180deg, transparent 0%, rgba(15, 13, 10, 0.8) 30%, #0f0d0a 100%);
    padding: 25px 10px 15px;
    margin-top: 40px;
}

.site-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-text {
    color: #5a4d3a;
    font-size: 0.75rem;
}

/* WooCommerce General Styles */
.woocommerce {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* WooCommerce Buttons */
.woocommerce .button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button {
    background: linear-gradient(180deg, #4a3d2e 0%, #3a3020 100%);
    border: 1px solid #6a5a42;
    border-radius: 5px;
    color: #f0d080;
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    letter-spacing: 1px;
    padding: 12px 25px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
}

.woocommerce .button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce a.button:hover {
    background: linear-gradient(180deg, #5a4d3a 0%, #4a3d2e 100%);
    color: #ffe0a0;
    border-color: #b8a070;
    box-shadow: 0 0 15px rgba(180, 140, 80, 0.3);
}

.woocommerce .button.alt,
.woocommerce button.button.alt {
    background: linear-gradient(180deg, #d4a856 0%, #b8860b 100%);
    color: #1a1510;
    border-color: #d4a856;
}

.woocommerce .button.alt:hover,
.woocommerce button.button.alt:hover {
    background: linear-gradient(180deg, #f0c060 0%, #d4a856 100%);
    color: #1a1510;
}

/* WooCommerce Forms */
.woocommerce form .form-row {
    margin-bottom: 15px;
}

.woocommerce form .form-row label {
    color: #b8a070;
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    letter-spacing: 1px;
    margin-bottom: 5px;
    display: block;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
    background: linear-gradient(145deg, #110f0b 0%, #0a0908 100%);
    border: 2px solid #2d251c;
    border-radius: 5px;
    color: #c4b89a;
    padding: 12px 15px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    width: 100%;
    transition: border-color 0.2s ease;
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus {
    outline: none;
    border-color: #b8a070;
    box-shadow: 0 0 10px rgba(180, 140, 80, 0.2);
}

/* WooCommerce Tables */
.woocommerce table.shop_table {
    background: linear-gradient(180deg, #1e1a15 0%, #151210 100%);
    border: 2px solid #3d3428;
    border-radius: 8px;
    border-collapse: separate;
    overflow: hidden;
}

.woocommerce table.shop_table th {
    background: rgba(0, 0, 0, 0.3);
    color: #d4a856;
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    letter-spacing: 1px;
    padding: 15px;
    border-bottom: 1px solid #3d3428;
}

.woocommerce table.shop_table td {
    padding: 15px;
    border-bottom: 1px solid rgba(61, 52, 40, 0.5);
    color: #c4b89a;
}

.woocommerce table.shop_table tbody tr:last-child td {
    border-bottom: none;
}

/* WooCommerce Notices */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    background: linear-gradient(145deg, #2d251c 0%, #1a1510 100%);
    border: 2px solid #5a4d3a;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 20px;
    color: #c4b89a;
}

.woocommerce-message {
    border-left: 4px solid #1eff00;
}

.woocommerce-info {
    border-left: 4px solid #0070dd;
}

.woocommerce-error {
    border-left: 4px solid #e63946;
}

/* Page Titles */
.woocommerce-page .page-title,
.woocommerce h1,
.woocommerce h2 {
    font-family: 'Cinzel', serif;
    color: #d4a856;
    text-shadow: 0 0 20px rgba(255, 150, 50, 0.3);
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.woocommerce h3 {
    font-family: 'Cinzel', serif;
    color: #b8a070;
    letter-spacing: 1px;
}

/* Footer Menu */
.footer-links {
    margin-bottom: 6px;
}

.footer-menu {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    flex-wrap: nowrap;
    margin: 0;
    padding: 0;
}

.footer-menu li {
    display: flex;
    align-items: center;
}

.footer-menu li:not(:last-child)::after {
    content: '·';
    color: #5a4d3a;
    margin: 0 10px;
    font-size: 0.85rem;
}

.footer-menu li a {
    color: #5a4d3a;
    font-size: 0.7rem;
    font-family: 'Rajdhani', sans-serif;
    text-decoration: none;
    transition: color 0.2s ease;
    letter-spacing: 0.5px;
}

.footer-menu li a:hover {
    color: #d4a856;
}

/* Page Content (legal pages, etc.) */
.page-content .entry-content {
    padding-bottom: 60px;
}

.page-content .entry-content h2 {
    font-family: 'Cinzel', serif;
    color: #d4a856;
    font-size: 1.4rem;
    letter-spacing: 1.5px;
    margin-top: 35px;
    margin-bottom: 15px;
    text-shadow: 0 0 15px rgba(255, 150, 50, 0.2);
}

.page-content .entry-content h3 {
    font-family: 'Cinzel', serif;
    color: #b8a070;
    font-size: 1.1rem;
    letter-spacing: 1px;
    margin-top: 25px;
    margin-bottom: 10px;
}

.page-content .entry-content p {
    color: #c4b89a;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 12px;
}

.page-content .entry-content ul,
.page-content .entry-content ol {
    margin: 10px 0 15px 20px;
    color: #c4b89a;
    font-size: 0.95rem;
    line-height: 1.7;
}

.page-content .entry-content ul li::marker {
    color: #d4a856;
}

.page-content .entry-content ol li::marker {
    color: #d4a856;
}

.page-content .entry-content a {
    color: #d4a856;
    text-decoration: underline;
    text-decoration-color: rgba(212, 168, 86, 0.3);
    text-underline-offset: 2px;
}

.page-content .entry-content a:hover {
    color: #f0c060;
    text-decoration-color: rgba(240, 192, 96, 0.5);
}

.page-content .entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid #3d3428;
    border-radius: 5px;
}

.page-content .entry-content table th {
    background: rgba(0, 0, 0, 0.3);
    color: #d4a856;
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    padding: 10px 15px;
    text-align: left;
    border-bottom: 1px solid #3d3428;
}

.page-content .entry-content table td {
    padding: 10px 15px;
    border-bottom: 1px solid rgba(61, 52, 40, 0.3);
    color: #c4b89a;
    font-size: 0.9rem;
}

.page-content .entry-content strong {
    color: #d4a856;
}

/* Responsive */
@media (max-width: 768px) {
    .site-footer {
        padding: 8px;
    }

    .footer-text {
        font-size: 0.7rem;
    }

    .footer-menu li a {
        font-size: 0.65rem;
    }

    .footer-menu li:not(:last-child)::after {
        margin: 0 6px;
    }

    .page-content .entry-content h2 {
        font-size: 1.2rem;
    }

    .page-content .entry-content h3 {
        font-size: 1rem;
    }

    .page-content .entry-content p,
    .page-content .entry-content ul,
    .page-content .entry-content ol {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .site-footer {
        padding: 6px;
    }

    .footer-text {
        font-size: 0.65rem;
    }

    .footer-menu li a {
        font-size: 0.6rem;
    }

    .footer-menu li:not(:last-child)::after {
        margin: 0 4px;
        font-size: 0.7rem;
    }

    .page-content .entry-content {
        padding-bottom: 50px;
    }

    .page-content .entry-content h2 {
        font-size: 1.1rem;
    }

    .page-content .entry-content p,
    .page-content .entry-content ul,
    .page-content .entry-content ol {
        font-size: 0.85rem;
    }

    /* WooCommerce mobile */
    .woocommerce {
        padding: 15px 10px;
    }

    .woocommerce .button,
    .woocommerce button.button,
    .woocommerce a.button {
        padding: 10px 15px;
        font-size: 0.8rem;
    }

    .woocommerce table.shop_table th,
    .woocommerce table.shop_table td {
        padding: 10px;
        font-size: 0.85rem;
    }
}

@media (max-height: 500px) and (orientation: landscape) {
    .site-footer {
        padding: 4px;
    }

    .footer-text {
        font-size: 0.6rem;
    }

    .footer-menu li a {
        font-size: 0.55rem;
    }
}
