/* ============================================
   GLOBAL STYLES & RESET
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #d4af7a;
    --primary-dark: #b58d4b;
    --primary-light: #f5e6d3;
    --secondary: #FF6B9D;
    --success: #4CAF50;
    --danger: #F44336;
    --warning: #FF9800;
    --info: #2196F3;
    --dark: #2c2b28;
    --dark-text: #2C3E50;
    --gray: #6c6359;
    --light-bg: #faf6ef;
    --border-light: #e9e0d3;
    --border-color: #E8E8E8;
    --shadow-sm: 0 8px 20px rgba(0,0,0,0.03), 0 2px 6px rgba(0,0,0,0.05);
    --shadow-md: 0 12px 28px rgba(0,0,0,0.08);
    --shadow-lg: 0 20px 40px rgba(0,0,0,0.1);
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--dark);
    background-color: #FFFFFF;
    line-height: 1.6;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
header {
    background-color: #FFFFFF;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background: rgba(255,255,255,0.98);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0;
    min-height: 70px;
}

/* Logo styling - prevents navbar height increase */
.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
    line-height: 1;
}

.logo-img {
    height: 40px;
    width: auto;
    max-height: 40px;
    object-fit: contain;
    display: block;
}

/* Navigation Links */
.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--dark);
    font-weight: 500;
    text-decoration: none;
    padding: 0.5rem 0;
    display: inline-block;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary);
}

/* Navigation Icons */
.nav-icons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.icon-link {
    position: relative;
    font-size: 1.3rem;
    color: var(--dark);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: color 0.3s ease;
}

.icon-link:hover {
    color: var(--primary);
}

/* Search Input */
.search-input {
    padding: 0.5rem 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    width: 180px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    outline: none;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    width: 220px;
    box-shadow: 0 0 0 3px rgba(212, 175, 122, 0.1);
}

/* Cart Badge */
.badge {
    position: absolute;
    top: -8px;
    right: -12px;
    background-color: var(--danger);
    color: white;
    border-radius: 50%;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 0 4px;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.25s;
    border: 1px solid transparent;
    text-align: center;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(180, 130, 70, 0.2);
}

.btn-secondary {
    background: var(--dark);
    color: white;
    border-color: var(--dark);
}

.btn-secondary:hover {
    background: #3a3734;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary-dark);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.btn-small {
    padding: 0.4rem 1.2rem;
    font-size: 0.8rem;
}

.btn-success {
    background-color: var(--success);
    color: white;
}

.btn-danger {
    background-color: var(--danger);
    color: white;
}

.btn-block {
    width: 100%;
    text-align: center;
}

.nav-icons .btn-small {
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
    margin-left: 0.25rem;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero-landing {
    background: linear-gradient(135deg, #fff7ed 0%, #fff2e2 100%);
    padding: 4rem 0 5rem 0;
    position: relative;
    overflow: hidden;
}

.hero-badge {
    display: inline-block;
    background: rgba(212, 175, 122, 0.15);
    backdrop-filter: blur(2px);
    padding: 0.3rem 1rem;
    border-radius: 40px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
}

.hero-tag {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gray);
    margin-bottom: 1rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--dark);
    max-width: 700px;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: #4f4b45;
    margin: 1.5rem 0 2rem;
    max-width: 580px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ============================================
   PRODUCTS GRID
   ============================================ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.product-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background-color: var(--light-bg);
}

.product-info {
    padding: 1.2rem;
}

.product-name {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.product-price {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.product-rating {
    font-size: 0.8rem;
    color: #f39c12;
    margin-bottom: 0.5rem;
}

.product-description {
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.product-actions {
    display: flex;
    gap: 0.5rem;
}

.product-actions .btn {
    flex: 1;
    font-size: 0.8rem;
    padding: 0.5rem 0.8rem;
}

/* ============================================
   FEATURES SECTION
   ============================================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
}

.feature-card {
    text-align: center;
    background: white;
    padding: 1.8rem 1rem;
    border-radius: 28px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

/* ============================================
   FORMS
   ============================================ */
.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="file"],
select,
textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(212, 175, 122, 0.1);
}

/* ============================================
   ALERTS
   ============================================ */
.alert {
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateY(-10px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.alert-success {
    background-color: #D4EDDA;
    color: #155724;
    border: 1px solid #C3E6CB;
}

.alert-danger {
    background-color: #F8D7DA;
    color: #721C24;
    border: 1px solid #F5C6CB;
}

.alert-warning {
    background-color: #FFF3CD;
    color: #856404;
    border: 1px solid #FFEAA7;
}

.alert-info {
    background-color: #D1ECF1;
    color: #0C5460;
    border: 1px solid #BEE5EB;
}

/* ============================================
   CART & CHECKOUT
   ============================================ */
.cart-thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 12px;
}

.cart-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 1rem;
    background: white;
}

.cart-item-info {
    flex: 1;
}

.cart-summary {
    background-color: var(--light-bg);
    padding: 2rem;
    border-radius: 20px;
    position: sticky;
    top: 100px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-weight: 500;
}

.summary-row.total {
    font-size: 1.3rem;
    color: var(--primary);
    border-top: 2px solid var(--border-color);
    padding-top: 1rem;
    margin-top: 1rem;
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
    display: flex;
    gap: 0.5rem;
    margin: 2rem 0;
    justify-content: center;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--dark);
}

.pagination a:hover {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

.pagination .active span {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* ============================================
   TABLES
   ============================================ */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

thead {
    background-color: var(--light-bg);
    font-weight: 600;
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

tbody tr:hover {
    background-color: var(--light-bg);
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    background: #1e1c19;
    color: #cdc6bc;
    text-align: center;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    text-align: left;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: white;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #cdc6bc;
}

.footer-section a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #AAA;
}

/* ============================================
   SECTION TITLES
   ============================================ */
.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 3rem;
    font-weight: 600;
    color: var(--dark);
}

/* ============================================
   CONTACT DETAILS
   ============================================ */
.contact-details {
    margin-top: 1rem;
    font-size: 0.75rem;
    background: var(--light-bg);
    padding: 0.6rem;
    border-radius: 16px;
    text-align: left;
}

.contact-line {
    margin: 4px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.contact-line i {
    width: 20px;
    color: var(--primary);
}

/* ============================================
   SLIDER / CAROUSEL
   ============================================ */
.slider-section {
    background: linear-gradient(120deg, #fff8ef 0%, #fff3e6 100%);
    padding: 4rem 0;
    margin: 2rem 0 3rem 0;
    border-radius: 48px;
}

.slider-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden;
}

.slider-track {
    display: flex;
    transition: transform 0.4s ease;
    gap: 2rem;
}

.testimonial-card {
    flex: 0 0 calc(33.33% - 1.33rem);
    background: white;
    border-radius: 28px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.quote-icon {
    font-size: 2rem;
    color: var(--primary);
    opacity: 0.4;
    margin-bottom: 1rem;
}

.testimonial-text {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: #4a4743;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    border-top: 1px solid var(--border-light);
    padding-top: 1rem;
}

.author-avatar {
    width: 44px;
    height: 44px;
    background: #e6d5be;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--primary);
    z-index: 10;
    transition: all 0.3s;
}

.slider-btn:hover {
    background: var(--primary);
    color: white;
}

.btn-left { left: -20px; }
.btn-right { right: -20px; }

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.dot {
    width: 8px;
    height: 8px;
    background: #d9cfbf;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background: var(--primary);
    width: 28px;
}

/* ============================================
   NEWSLETTER
   ============================================ */
.newsletter {
    background: linear-gradient(135deg, #faf6ef, #fff7ed);
    padding: 4rem 0;
    text-align: center;
}

.newsletter-box {
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.newsletter-form input {
    flex: 1;
    padding: 0.8rem 1.2rem;
    border-radius: 60px;
    border: 1px solid var(--border-light);
    font-family: inherit;
    outline: none;
}

.newsletter-form input:focus {
    border-color: var(--primary);
}

/* ============================================
   ADMIN DASHBOARD
   ============================================ */
.admin-sidebar {
    width: 250px;
    background-color: var(--dark);
    color: white;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    overflow-y: auto;
}

.admin-main {
    margin-left: 250px;
    padding: 2rem;
}

.sidebar-menu {
    list-style: none;
    padding: 2rem 0;
}

.sidebar-menu li {
    margin: 0;
}

.sidebar-menu a {
    display: block;
    padding: 1rem 1.5rem;
    color: white;
    transition: all 0.3s ease;
}

.sidebar-menu a:hover {
    background-color: var(--primary);
    color: white;
}

.sidebar-menu a.active {
    background-color: var(--primary);
    border-left: 4px solid var(--secondary);
}

.stat-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 1rem;
}

.stat-card h3 {
    color: #777;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.stat-card .value {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary);
}

/* ============================================
   EMPTY STATE
   ============================================ */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 24px;
    border: 1px solid var(--border-light);
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.empty-state p {
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: 1.5rem;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 992px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .search-input {
        width: 140px;
    }
    
    .search-input:focus {
        width: 160px;
    }
    
    .nav-links {
        gap: 1.2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .logo-img {
        height: 32px;
    }
    
    .search-input {
        width: 120px;
    }
    
    .nav-icons {
        gap: 0.7rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 1rem;
    }
    
    .product-image {
        height: 160px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .cart-summary {
        position: static;
        margin-top: 1.5rem;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    table {
        font-size: 0.85rem;
    }
    
    th, td {
        padding: 0.5rem;
    }
    
    .testimonial-card {
        flex: 0 0 calc(100% - 1rem);
    }
    
    .slider-btn {
        display: none;
    }
    
    .admin-sidebar {
        width: 100px;
    }
    
    .admin-main {
        margin-left: 0;
        padding: 1rem;
    }
    
    .sidebar-menu a {
        padding: 1rem 0.5rem;
        text-align: center;
        font-size: 0.8rem;
    }
    
    .features-grid {
        gap: 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .hero-buttons .btn {
        text-align: center;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-icons {
        gap: 0.5rem;
    }
    
    .search-input {
        width: 100px;
    }
}