/**
 * Just U Creations - Custom Styles
 * Clean, modern design optimized for performance
 */

/* CSS Variables for easy theming */
:root {
    --primary-color: #d63384;
    --primary-dark: #b32770;
    --secondary-color: #6c757d;
    --accent-color: #ffc107;
    --text-dark: #212529;
    --text-light: #6c757d;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #dee2e6;
    --success-color: #28a745;
    --error-color: #dc3545;
    --font-main: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --transition: all 0.3s ease;
}

/* Reset and Base Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.site-header {
    background: var(--bg-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.logo-section .logo img {
    max-height: 60px;
    width: auto;
}

.logo-text {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    letter-spacing: 1px;
}

.logo-text:hover {
    color: var(--primary-dark);
}

.main-nav {
    list-style: none;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin: 0;
    padding: 0;
    gap: 30px;
}

.main-nav li {
    display: inline-block;
}

.main-nav a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    padding: 5px 0;
    border-bottom: 2px solid transparent;
}

.main-nav a:hover {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    transition: var(--transition);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 80px 20px;
    text-align: center;
}

.hero-content h1 {
    font-size: 3em;
    margin: 0 0 20px 0;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.5em;
    margin-bottom: 15px;
    opacity: 0.9;
}

.hero-buttons {
    margin-top: 30px;
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    text-align: center;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(214, 51, 132, 0.3);
}

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

.btn-secondary:hover {
    background: transparent;
    color: white;
    border-color: white;
}

.btn-small {
    padding: 8px 20px;
    font-size: 0.9em;
}

.btn-large {
    padding: 15px 40px;
    font-size: 1.1em;
}

.btn-block {
    display: block;
    width: 100%;
}

/* Sections */
.section-title {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 50px;
    color: var(--text-dark);
    font-weight: 600;
}

.categories-section,
.featured-section,
.about-preview-section,
.products-section,
.about-content,
.what-we-do,
.values-section {
    padding: 60px 0;
}

.categories-section {
    background: var(--bg-light);
}

/* Category Cards */
.category-card {
    margin-bottom: 30px;
}

.category-card a {
    display: block;
    text-decoration: none;
    color: var(--text-dark);
    background: white;
    border-radius: 10px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.category-card a:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.category-image {
    height: 250px;
    overflow: hidden;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.category-card a:hover .category-image img {
    transform: scale(1.1);
}

.category-card h3 {
    padding: 20px;
    margin: 0;
    font-size: 1.5em;
}

.category-card p {
    padding: 0 20px 20px 20px;
    margin: 0;
    color: var(--text-light);
}

/* Product Cards */
.product-card {
    margin-bottom: 30px;
}

.product-card > a {
    display: block;
    text-decoration: none;
    color: var(--text-dark);
}

.product-image {
    position: relative;
    height: 300px;
    overflow: hidden;
    border-radius: 10px;
    background: var(--bg-light);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.out-of-stock-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--error-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 500;
}

.product-card h3 {
    margin: 15px 0 5px 0;
    font-size: 1.2em;
}

.product-category {
    color: var(--text-light);
    font-size: 0.9em;
    margin: 0 0 10px 0;
}

.product-price {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.1em;
    margin: 10px 0;
}

.product-excerpt {
    color: var(--text-light);
    margin: 10px 0;
    font-size: 0.95em;
}

/* Product Detail Page */
.breadcrumb {
    padding: 20px 0;
    font-size: 0.9em;
    color: var(--text-light);
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.product-detail {
    margin-top: 30px;
}

.main-image {
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
    background: var(--bg-light);
}

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

.image-thumbnails {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.thumbnail:hover,
.thumbnail.active {
    border-color: var(--primary-color);
}

.product-info h1 {
    font-size: 2.5em;
    margin: 0 0 10px 0;
}

.product-price-section {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 20px 0;
}

.product-price-section .price {
    font-size: 2em;
    color: var(--primary-color);
    font-weight: 700;
}

.stock-status {
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 500;
}

.in-stock {
    background: #d4edda;
    color: #155724;
}

.out-of-stock {
    background: #f8d7da;
    color: #721c24;
}

.product-description {
    margin: 30px 0;
    line-height: 1.8;
}

.product-actions {
    margin: 30px 0;
}

.product-info-box {
    background: var(--bg-light);
    padding: 25px;
    border-radius: 10px;
    margin-top: 30px;
}

.product-info-box h3 {
    margin-top: 0;
}

.product-info-box ul {
    list-style: none;
    padding: 0;
}

.product-info-box li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.product-info-box li:last-child {
    border-bottom: none;
}

.related-products {
    margin-top: 60px;
    padding-top: 60px;
    border-top: 2px solid var(--border-color);
}

/* Sidebar */
.sidebar {
    padding-right: 30px;
}

.filter-section {
    background: white;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.filter-section h3 {
    margin-top: 0;
}

.category-filter {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-filter li {
    margin-bottom: 10px;
}

.category-filter a {
    display: block;
    padding: 10px 15px;
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 5px;
    transition: var(--transition);
}

.category-filter a:hover,
.category-filter a.active {
    background: var(--primary-color);
    color: white;
}

.cta-box {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
}

.cta-box h3 {
    margin-top: 0;
}

.no-products {
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-light);
    border-radius: 10px;
}

/* About Page */
.page-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 60px 20px;
    text-align: center;
}

.page-header h1 {
    font-size: 3em;
    margin: 0 0 15px 0;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.service-card {
    text-align: center;
    padding: 30px 20px;
}

.icon-circle {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    font-size: 2em;
    color: white;
}

.service-card h3 {
    margin: 15px 0;
}

.value-box {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
}

.value-box h3 {
    color: var(--primary-color);
    margin-top: 0;
}

/* Contact Page */
.contact-info-box {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 10px;
}

.contact-method {
    display: flex;
    gap: 20px;
    margin: 30px 0;
    align-items: flex-start;
}

.contact-method i {
    font-size: 2em;
    color: var(--primary-color);
    flex-shrink: 0;
}

.contact-method h3 {
    margin: 0 0 5px 0;
    font-size: 1.1em;
}

.contact-method p {
    margin: 0;
}

.contact-method a {
    color: var(--primary-color);
    text-decoration: none;
}

.contact-method a:hover {
    text-decoration: underline;
}

/* Forms */
.contact-form {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: inherit;
    font-size: 1em;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(214, 51, 132, 0.1);
}

.form-note {
    color: var(--text-light);
    font-size: 0.9em;
    margin-top: 10px;
}

.success-message {
    background: #d4edda;
    color: #155724;
    padding: 40px;
    border-radius: 10px;
    text-align: center;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.error-message h3 {
    margin-top: 0;
}

.enquiry-product {
    background: var(--bg-light);
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    border-left: 4px solid var(--primary-color);
}

/* Footer */
.site-footer {
    background: var(--text-dark);
    color: white;
    padding: 60px 0 0 0;
    margin-top: 60px;
}

.footer-content {
    margin-bottom: 40px;
}

.footer-section h3 {
    color: white;
    margin-top: 0;
    margin-bottom: 20px;
}

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

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

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    font-size: 1.2em;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 20px 0;
    text-align: center;
    font-size: 0.9em;
}

.footer-bottom p {
    margin: 5px 0;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 80px 20px;
    text-align: center;
    margin-top: 60px;
}

.cta-section h2 {
    font-size: 2.5em;
    margin: 0 0 20px 0;
}

.market-schedule {
    font-size: 1.2em;
    margin: 20px 0 30px 0;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

/* Responsive Design */
@media (max-width: 960px) {
    .main-nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .hero-content h1 {
        font-size: 2em;
    }

    .section-title {
        font-size: 2em;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .sidebar {
        padding-right: 0;
    }
}

@media (max-width: 600px) {
    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        display: block;
        width: 100%;
    }

    .contact-form {
        padding: 20px;
    }
}

/* Print Styles */
@media print {
    .site-header,
    .site-footer,
    .btn,
    .mobile-menu-toggle {
        display: none;
    }
}
