/* Soukhin Shaharanji - Global Stylesheet */

@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&family=Playfair+Display:wght@700&display=swap');

:root {
    --primary-color: #FF8C00;
    --accent-color: #7A1E2C;
    --white: #FFFFFF;
    --light-gray: #F5F5F5;
    --dark-gray: #333333;
    --medium-gray: #888888;
    --success: #28A745;
    --error: #DC3545;
    --warning: #FFC107;
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
    
    --transition: all 0.3s ease;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --border-radius: 4px;
    --card-radius: 8px;

    /* Fluid Spacing & Sizing */
    --section-padding: clamp(3rem, 8vw, 6rem);
    --container-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    font-size: clamp(14px, 1.2vw, 16px);
    color: var(--dark-gray);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 1rem;
    line-height: 1.2;
}

h1 { font-size: clamp(2.2rem, 6vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 5vw, 2.5rem); }
h3 { font-size: clamp(1.4rem, 4vw, 1.8rem); }

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
    display: inline-block;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.container {
    width: 94%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1rem;
}

/* Layout Utilities */
.section {
    padding: var(--section-padding) 0;
}

.section-title {
    text-align: center;
    margin-bottom: clamp(2rem, 6vw, 4rem);
}

/* Grid Systems */
.grid-auto {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 2rem;
}

/* Responsive Table Pattern */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1.5rem;
}

.responsive-stack-table {
    width: 100%;
    border-collapse: collapse;
}

@media (max-width: 768px) {
    .responsive-stack-table thead {
        display: none;
    }
    .responsive-stack-table tr {
        display: block;
        margin-bottom: 1.5rem;
        border: 1px solid #eee;
        border-radius: var(--card-radius);
        padding: 1rem;
        background: var(--white);
        box-shadow: 0 2px 5px rgba(0,0,0,0.02);
    }
    .responsive-stack-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: right;
        padding: 0.8rem 0;
        border-bottom: 1px solid #f5f5f5;
    }
    .responsive-stack-table td:last-child {
        border-bottom: none;
    }
    .responsive-stack-table td::before {
        content: attr(data-label);
        font-weight: 700;
        text-align: left;
        margin-right: 1rem;
        color: var(--accent-color);
        font-size: 0.85rem;
        text-transform: uppercase;
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 2.2rem;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    border-radius: var(--border-radius);
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-align: center;
    min-height: 46px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #e67e00; /* Darkened 10% */
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(255, 140, 0, 0.3);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
}

.btn-secondary:hover {
    background-color: var(--accent-color);
    color: var(--white);
}

/* Header & Navbar */
header {
    background-color: var(--accent-color);
    color: var(--white);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    color: var(--white);
    margin-bottom: 0;
    font-size: 1.5rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--white);
    font-weight: 600;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-icons {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-icons i {
    font-size: 1.2rem;
}

.avatar-small {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.2);
}

.user-menu {
    display: flex;
    align-items: center;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.hero-content h1 {
    color: var(--white);
    font-size: 3.5rem;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s 0.3s forwards;
}

.hero-content .btn {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s 0.6s forwards;
}

/* Categories Section */
.section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.category-card {
    position: relative;
    border-radius: var(--card-radius);
    overflow: hidden;
    height: 300px;
    box-shadow: var(--shadow);
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.category-card:hover img {
    transform: scale(1.1);
}

.category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: var(--white);
}

/* Product Cards */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--white);
    border-radius: var(--card-radius);
    padding: 1rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.product-image {
    height: 250px;
    margin-bottom: 1rem;
    border-radius: var(--card-radius);
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--dark-gray);
    font-family: var(--font-body);
}

.price {
    color: var(--accent-color);
    font-weight: 700;
    font-size: 1.2rem;
}

.old-price {
    text-decoration: line-through;
    color: var(--medium-gray);
    font-size: 0.9rem;
    margin-right: 0.5rem;
}

/* Footer */
footer {
    background-color: var(--accent-color);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-family: var(--font-body);
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.social-links a:hover {
    background: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
/* Note: Most responsive styles are managed in responsive.css */
@media (max-width: 991px) {
    h1 { font-size: 2rem; }
}

@media (max-width: 575px) {
    .category-grid { grid-template-columns: 1fr; }
    .product-grid { grid-template-columns: 1fr; }
}
