/* Style system for LokArt Store */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-color: #253447; /* Slate Dark Blue */
    --primary-dark: #1a2533;
    --primary-light: #33465e;
    --accent-color: #d97706; /* Golden/Amber for stars and buttons */
    --text-color: #334155;
    --text-light: #64748b;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    --success-color: #10b981;
    --error-color: #ef4444;
    --font-sans: 'Outfit', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--bg-light);
    color: var(--text-color);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Header / Navbar */
header {
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--primary-light);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.2rem;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-color);
    position: relative;
    padding: 0.2rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-auth {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.btn-login {
    font-weight: 500;
    color: var(--text-color);
    padding: 0.5rem 1rem;
}

.btn-login:hover {
    color: var(--primary-color);
}

.btn-signup, .btn-primary {
    background-color: var(--primary-color);
    color: var(--bg-white) !important;
    padding: 0.6rem 1.4rem;
    border-radius: 9999px;
    font-weight: 500;
    transition: var(--transition);
    border: 1px solid var(--primary-color);
    cursor: pointer;
}

.btn-signup:hover, .btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color) !important;
    border: 1.5px solid var(--primary-color);
    padding: 0.6rem 1.4rem;
    border-radius: 9999px;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--bg-white) !important;
}

.username-display {
    font-weight: 600;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.username-display::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--success-color);
}

.btn-logout {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-light);
    padding: 0.4rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.btn-logout:hover {
    background-color: var(--error-color);
    color: var(--bg-white);
    border-color: var(--error-color);
}

/* Hero Section */
.hero {
    background-color: var(--primary-color);
    color: var(--bg-white);
    padding: 7rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 70% 30%, rgba(51, 70, 94, 0.4) 0%, transparent 60%);
    pointer-events: none;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.2rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Breadcrumb Banner */
.breadcrumb-banner {
    background-color: var(--primary-color);
    color: var(--bg-white);
    padding: 4rem 2rem;
    text-align: center;
}

.breadcrumb-banner h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.breadcrumbs {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
}

.breadcrumbs a {
    color: var(--bg-white);
}

.breadcrumbs span {
    margin: 0 0.5rem;
    color: rgba(255, 255, 255, 0.4);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    flex-grow: 1;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 0.8rem auto 0;
    border-radius: 2px;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
}

.product-card {
    background-color: var(--bg-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.product-img-wrapper {
    position: relative;
    background-color: #f8fafc;
    height: 280px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.product-img-wrapper img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: var(--transition);
}

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

.product-info {
    background-color: var(--primary-color);
    color: var(--bg-white);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    flex-grow: 1;
    position: relative;
}

.product-info h3 {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.2px;
}

.product-price {
    font-size: 1.2rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.stars {
    color: #fbbf24; /* Yellow Stars */
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.6rem;
}

.btn-add-cart {
    background-color: var(--bg-white);
    color: var(--primary-color);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
}

.btn-add-cart:hover {
    background-color: var(--accent-color);
    color: var(--bg-white);
    transform: scale(1.1);
}

/* Learn More Container */
.btn-container-center {
    display: flex;
    justify-content: center;
    margin-top: 3.5rem;
}

/* Category Filter Bar */
.category-filter {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    padding: 0.6rem 1.6rem;
    border-radius: 9999px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-color);
}

.filter-btn:hover, .filter-btn.active {
    background-color: var(--primary-color);
    color: var(--bg-white);
    border-color: var(--primary-color);
}

/* Reviews Section */
.reviews-section {
    background-color: #f1f5f9;
    padding: 5rem 2rem;
}

.review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.review-card {
    background-color: var(--bg-white);
    border-radius: 16px;
    padding: 2.2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 280px;
    transition: var(--transition);
}

.review-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.quote-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    opacity: 0.15;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.review-text {
    font-size: 1rem;
    color: var(--text-color);
    font-style: italic;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.reviewer-profile {
    background-color: var(--primary-color);
    color: var(--bg-white);
    margin: 0 -2.2rem -2.2rem -2.2rem;
    padding: 1.2rem 2.2rem;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.reviewer-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.2);
}

.reviewer-details h4 {
    font-size: 1rem;
    font-weight: 700;
}

.reviewer-details .stars {
    font-size: 0.85rem;
}

/* About Page Content */
.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-images-layout {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.about-images-layout h2 {
    font-size: 4rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
}

.about-img-main {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    height: 300px;
}

.about-img-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-img-secondary {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    align-self: flex-end;
    width: 70%;
    height: 200px;
}

.about-img-secondary img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-text {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
    font-size: 1.05rem;
    color: var(--text-color);
    text-align: justify;
}

.about-text h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    font-weight: 800;
    line-height: 1.2;
}

.about-text p {
    line-height: 1.7;
}

/* Cart Page */
.cart-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.cart-table-card {
    background-color: var(--bg-white);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.cart-empty {
    text-align: center;
    padding: 4rem 2rem;
}

.cart-empty h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.cart-item {
    display: grid;
    grid-template-columns: 100px 2fr 1fr 1.2fr 0.5fr;
    gap: 1.5rem;
    align-items: center;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-img {
    height: 100px;
    background-color: #f8fafc;
    border-radius: 8px;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-img img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.cart-item-info h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.2rem;
}

.cart-item-info p {
    font-size: 0.85rem;
    color: var(--text-light);
}

.cart-item-price {
    font-size: 1.05rem;
    font-weight: 600;
}

.cart-item-qty {
    display: flex;
    align-items: center;
}

.qty-btn {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-light);
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

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

.qty-input {
    width: 44px;
    height: 32px;
    text-align: center;
    border: none;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    font-size: 0.95rem;
    font-weight: 600;
    font-family: var(--font-sans);
}

.btn-remove-item {
    background: transparent;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-remove-item:hover {
    color: var(--error-color);
}

.cart-summary-card {
    background-color: var(--bg-white);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.cart-summary-card h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 800;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.8rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.summary-row.total {
    border-top: 1.5px dashed var(--border-color);
    padding-top: 1rem;
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-top: 1.5rem;
    margin-bottom: 2rem;
}

.btn-checkout {
    width: 100%;
    padding: 1rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
}

/* Auth Screens */
.auth-container {
    max-width: 460px;
    margin: 5rem auto;
    padding: 2.5rem;
    background-color: var(--bg-white);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.auth-container h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    text-align: center;
}

.auth-container p.subtitle {
    color: var(--text-light);
    text-align: center;
    margin-bottom: 2.2rem;
    font-size: 0.95rem;
}

.form-group {
    margin-bottom: 1.4rem;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(51, 70, 94, 0.15);
}

.auth-footer-text {
    text-align: center;
    margin-top: 1.8rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.auth-footer-text a {
    color: var(--primary-color);
    font-weight: 600;
}

.auth-footer-text a:hover {
    text-decoration: underline;
}

.alert {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-weight: 500;
    font-size: 0.95rem;
}

.alert-success {
    background-color: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-error {
    background-color: #fef2f2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--bg-white);
    padding: 4rem 2rem 2rem 2rem;
    margin-top: auto;
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 3rem;
}

.footer-info h2 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.footer-info p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
    max-width: 320px;
    font-size: 0.95rem;
}

.social-links {
    display: flex;
    gap: 1.2rem;
}

.social-links a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: var(--transition);
}

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

.footer-col h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
}

.footer-col h3::after {
    content: '';
    display: block;
    width: 30px;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.3);
    margin-top: 0.4rem;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-col ul a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.footer-col ul a:hover {
    color: var(--bg-white);
    padding-left: 4px;
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.contact-item svg {
    width: 18px;
    height: 18px;
    opacity: 0.8;
}

.footer-bottom {
    max-width: 1200px;
    margin: 2rem auto 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
}

/* Responsive Grid / Media Queries */
@media (max-width: 968px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .cart-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    .nav-links {
        gap: 1.2rem;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* Custom Product Detail Page Styles */
.detail-thumbnails .thumbnail-item {
    transition: var(--transition);
}
.detail-thumbnails .thumbnail-item:hover {
    opacity: 1 !important;
    border-color: var(--primary-color) !important;
}

/* Checkout Radio Inputs custom sizing */
input[type="radio"] {
    cursor: pointer;
}

