/* Mobipax Custom Theme - Main Stylesheet */

:root {
    --primary: #d4b896; /* Beige for backgrounds/accents */
    --primary-dark: #a6956f;
    --primary-light: #e8dcc8;
    --text: #000000; /* Black text */
    --text-light: #000000;
    --bg-light: #f5f1ed; /* Beige nuance */
    --white: #ffffff;
    --border: #ddd;
}

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

html {
    scroll-padding-top: 100px; /* Offset for fixed header when clicking anchor links */
}

html, body {
    height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--white);
}

a {
    color: var(--primary-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--text);
}

/* HEADER */
.header {
    background: var(--white);
    border-bottom: 2px solid var(--primary-light);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Add padding to body to prevent content from hiding under fixed header */
body {
    padding-top: 80px;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    color: var(--text);
    text-decoration: none;
}

.logo h1 {
    font-size: 1.8rem;
    color: var(--primary-dark);
    font-weight: 700;
}

.logo-tagline {
    margin-left: 15px;
    color: var(--text);
    font-size: 1rem;
    font-weight: 400;
    opacity: 0.8;
}

.nav-list {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-list a {
    color: var(--text);
    font-weight: 500;
    border-bottom: 3px solid transparent;
    padding-bottom: 5px;
    transition: all 0.3s ease;
}

.nav-list a:hover,
.nav-list a.active {
    color: var(--text);
    border-bottom-color: var(--primary);
}

/* MAIN CONTENT */
.main-content {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    width: 100%;
}

/* HOME PAGE */
.home-hero {
    text-align: center;
    margin-bottom: 60px;
}

.home-hero h1 {
    font-size: 3rem;
    color: var(--text);
    margin-bottom: 20px;
    line-height: 1.2;
}

.home-hero p {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 30px;
}

.home-cta {
    display: inline-block;
    background: var(--primary);
    color: var(--text);
    padding: 15px 40px;
    border-radius: 4px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.home-cta:hover {
    background: var(--primary-dark);
    color: var(--white);
}

.contact-info {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 8px;
    margin-top: 40px;
}

.contact-info h3 {
    color: var(--primary-dark);
    margin-bottom: 20px;
}

.contact-info ul {
    list-style: none;
}

.contact-info li {
    padding: 8px 0;
    color: var(--text);
}

/* PRODUCTS GRID */
.products-container {
    margin-top: 50px;
}

.category-section {
    margin-bottom: 60px;
}

.category-title {
    font-size: 2rem;
    color: var(--primary-dark);
    border-bottom: 3px solid var(--primary-light);
    padding-bottom: 15px;
    margin-bottom: 30px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.product-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(212,184,150,0.3);
    border-color: var(--primary);
}

.product-image {
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: var(--bg-light);
}

.product-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.product-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-category {
    font-size: 0.85rem;
    color: var(--text);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.product-title {
    font-size: 1.2rem;
    color: var(--text);
    margin-bottom: 10px;
    line-height: 1.3;
}

.product-title a {
    color: var(--text);
}

.product-title a:hover {
    color: var(--primary);
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    margin: 10px 0;
}

.product-availability {
    font-size: 0.9rem;
    color: #27ae60;
    margin-bottom: 15px;
}

.product-footer {
    margin-top: auto;
    display: flex;
    gap: 10px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-decoration: none;
    flex: 1;
}

.btn-primary {
    background: var(--primary);
    color: var(--text);
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: var(--white);
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-success {
    background: #25D366;
    color: var(--white);
    border: none;
}

.btn-success:hover {
    background: #128C7E;
    color: var(--white);
}

/* PRODUCT SINGLE PAGE */
.product-single {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}


.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 600px;
    margin: 0 auto;
}


.gallery-main {
    width: 100%;
    min-height: unset;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    background: none;
    border-radius: 8px;
    padding: 0;
    box-shadow: none;
}

.gallery-main .main-image {
    max-width: 100%;
    max-height: 500px;
    width: auto;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 24px 0 rgba(212,184,150,0.18), 0 1.5px 8px 0 rgba(0,0,0,0.10);
    /* border: 2px solid var(--primary); */
    background: none;
    transition: box-shadow 0.2s, border 0.2s;
}

.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 12px;
    margin-top: 15px;
    max-width: 100%;
}

.gallery-thumbs::-webkit-scrollbar {
    height: 6px;
}

.gallery-thumbs::-webkit-scrollbar-track {
    background: var(--bg-light);
    border-radius: 3px;
}

.gallery-thumbs::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}

.gallery-thumbs::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

.gallery-thumbs .thumb-image {
    width: 100%;
    height: 80px;
    min-width: 0;
    object-fit: cover;
    border-radius: 6px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
}
.gallery-thumbs .thumb-image.active,
.gallery-thumbs .thumb-image:hover {
    border: 2px solid var(--primary);
}

.gallery-image {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-light);
}

.gallery-image img {
    width: 100%;
    height: auto;
    display: block;
}

.product-details {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.product-details h1 {
    font-size: 2.5rem;
    color: var(--text);
    margin-bottom: 15px;
    line-height: 1.2;
}

.product-meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.meta-item {
    display: flex;
    justify-content: space-between;
}

.meta-label {
    font-weight: 600;
    color: var(--text);
}

.meta-value {
    color: var(--text);
}

.price-section {
    background: var(--bg-light);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.price-label {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 5px;
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.dimensions {
    background: var(--bg-light);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid var(--primary);
}

.dimensions h3 {
    color: var(--primary-dark);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.dimensions ul {
    list-style: none;
}

.dimensions li {
    padding: 8px 0;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
}

.dimensions li:last-child {
    border-bottom: none;
}

.product-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
}

.product-actions .btn {
    padding: 15px 20px;
    font-size: 1.05rem;
}

.product-description {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 8px;
    margin-top: 40px;
}

.product-description h2 {
    color: var(--primary-dark);
    margin: 20px 0 15px 0;
    font-size: 1.5rem;
}

.product-description h2:first-child {
    margin-top: 0;
}

.product-description h3 {
    color: var(--text);
    margin: 15px 0 10px 0;
    font-size: 1.15rem;
}

.product-description ul,
.product-description ol {
    margin: 15px 0;
    padding-left: 20px;
}

.product-description li {
    margin-bottom: 8px;
    color: var(--text);
}

.product-description p {
    margin-bottom: 15px;
    color: var(--text);
    line-height: 1.8;
}

/* FEATURED SECTION */
.featured-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid var(--primary-light);
}

.featured-title {
    text-align: center;
    font-size: 2rem;
    color: var(--text);
    margin-bottom: 40px;
}

.view-all-btn {
    text-align: center;
    margin-top: 40px;
}

.view-all-link {
    display: inline-block;
    background: var(--primary-dark);
    color: var(--white);
    padding: 15px 50px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.view-all-link:hover {
    background: var(--primary);
    color: var(--text);
    transform: translateY(-2px);
}

/* PAGES (ABOUT, CONTACT) */
.page-content {
    max-width: 800px;
    margin: 0 auto;
}

.page-title {
    font-size: 2.5rem;
    color: var(--primary-dark);
    margin-bottom: 30px;
    border-bottom: 3px solid var(--primary-light);
    padding-bottom: 15px;
}

.page-content h2 {
    font-size: 1.8rem;
    color: var(--primary-dark);
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-content h3 {
    font-size: 1.3rem;
    color: var(--text);
    margin-top: 20px;
    margin-bottom: 10px;
}

.page-content p {
    margin-bottom: 15px;
    line-height: 1.8;
    color: var(--text);
}

.page-content ul,
.page-content ol {
    margin: 15px 0;
    padding-left: 30px;
}

.page-content li {
    margin-bottom: 8px;
    color: var(--text);
}

.contact-section {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 8px;
    margin-top: 30px;
}

.contact-section h3 {
    color: var(--text);
    margin-bottom: 15px;
}

.contact-section a {
    color: var(--text);
    font-weight: 500;
}

.contact-section a:hover {
    color: var(--text);
}

/* FOOTER */
.footer {
    background: var(--primary-light);
    color: var(--text);
    margin-top: 80px;
    border-top: 3px solid var(--primary);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.footer-section h3 {
    color: var(--primary-dark);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.footer-section p,
.footer-section li {
    color: var(--text);
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 10px;
}

.footer-section a {
    color: var(--primary-dark);
    font-weight: 500;
}

.footer-section a:hover {
    color: var(--text);
}

.footer-bottom {
    text-align: center;
    padding: 20px;
    border-top: 1px solid var(--border);
    color: var(--text);
    background: var(--primary-light);
}

/* MOBILE MENU TOGGLE */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text);
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translateY(8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-8px);
}

/* MOBILE MENU TOGGLE */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text);
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translateY(8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-8px);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .header-container {
        flex-wrap: wrap;
        justify-content: space-between;
    }
    
    .mobile-menu-toggle {
        display: flex;
        order: 2;
    }
    
    .logo {
        order: 1;
    }
    
    .nav {
        order: 3;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        background: var(--white);
    }
    
    .nav.active {
        max-height: 500px;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        padding: 20px 0;
    }
    
    .nav-list a {
        display: block;
        padding: 10px 0;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .main-content {
        padding: 40px 15px;
    }
    
    .home-hero h1 {
        font-size: 2rem;
    }
    
    .product-single {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    
    .product-details {
        order: 2;
    }
    
    .product-details h1 {
        order: -1;
    }
    
    .product-actions {
        order: 1;
    }
    
    .product-description {
        order: 3;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 20px;
    }
    
    .product-image {
        height: 200px;
    }
    
    .page-title {
        font-size: 1.8rem;
    }
    
    .page-content h2 {
        font-size: 1.4rem;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .nav-list {
        gap: 10px;
        font-size: 0.9rem;
    }
    
    .home-hero h1 {
        font-size: 1.5rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .product-actions .btn {
        width: 100%;
    }
}
