/* File: assets/css/style.css */

/*--------------------------------------------------------------
# Variables and Utility Classes
--------------------------------------------------------------*/
:root {
    /* Base Colors - Modern Palette */
    --primary-color: #5e72e4;
    --primary-light: #7385f2;
    --primary-dark: #4355c5;
    --secondary-color: #11cdef;
    --accent-color: #fb6340;
    
    /* Text Colors */
    --text-color: #344767;
    --text-light: #7b809a;
    --text-dark: #252f40;
    --text-white: #ffffff;
    
    /* Background Colors */
    --bg-color: #ffffff;
    --bg-alt: #f8f9fa;
    --bg-light: #f4f5f7;
    
    /* Border Colors */
    --border-color: #e2e8f0;
    --border-light: #edf2f7;
    
    /* Status Colors */
    --success-color: #2dce89;
    --info-color: #11cdef;
    --warning-color: #fb6340;
    --danger-color: #f5365c;
    
    /* Shadow */
    --shadow-sm: 0 2px 5px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-xxl: 3rem;
    
    /* Fonts */
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Montserrat', sans-serif;
    
    /* Font Sizes */
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-md: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-xxl: 1.5rem;
    --font-size-heading: 2rem;
    
    /* Border Radius */
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;
    --border-radius-pill: 50px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Container Width */
    --container-width: 1200px;
    --container-padding: 1rem;
    
    /* Z-index layers */
    --z-dropdown: 1000;
    --z-sticky: 1010;
    --z-fixed: 1020;
    --z-modal: 1030;
    --z-popover: 1040;
    --z-tooltip: 1050;
    --z-toast: 1060;
    
    /* Theme transition */
    --theme-transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/*--------------------------------------------------------------
# Dark Theme Variables
--------------------------------------------------------------*/
[data-theme="dark"] {
    /* Base Colors - Dark Mode */
    --primary-color: #6f83ff;
    --primary-light: #8a9bff;
    --primary-dark: #5a66c5;
    --secondary-color: #32d8ff;
    --accent-color: #ff7a5c;
    
    /* Text Colors */
    --text-color: #e2e8f0;
    --text-light: #a0aec0;
    --text-dark: #f8f9fa;
    
    /* Background Colors */
    --bg-color: #1a202c;
    --bg-alt: #2d3748;
    --bg-light: #4a5568;
    
    /* Border Colors */
    --border-color: #4a5568;
    --border-light: #2d3748;
    
    /* Status Colors - Adjusted for dark mode */
    --success-color: #48bb78;
    --info-color: #4fd1e1;
    --warning-color: #f6ad55;
    --danger-color: #fc8181;
    
    /* Shadow */
    --shadow-sm: 0 2px 5px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/*--------------------------------------------------------------
# Reset & Base Styles
--------------------------------------------------------------*/
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: var(--font-size-md);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    transition: var(--theme-transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-light);
}

ul, ol {
    list-style: none;
}

button, 
input, 
select, 
textarea {
    font: inherit;
    color: inherit;
}

button, 
input[type="submit"], 
input[type="reset"], 
input[type="button"] {
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: var(--space-md);
    color: var(--text-dark);
    transition: var(--theme-transition);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-bottom: var(--space-md);
}

/*--------------------------------------------------------------
# Layout
--------------------------------------------------------------*/
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col {
    flex: 1 0 0%;
    padding: 0 15px;
}

/* Grid system */
.grid {
    display: grid;
    gap: var(--space-md);
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .grid-4 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .grid-3, 
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .grid-2, 
    .grid-3, 
    .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .col {
        flex: 0 0 100%;
    }
}

/*--------------------------------------------------------------
# Utility Classes
--------------------------------------------------------------*/
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-left {
    text-align: left;
}

.text-primary {
    color: var(--primary-color);
}

.text-secondary {
    color: var(--secondary-color);
}

.text-accent {
    color: var(--accent-color);
}

.text-light {
    color: var(--text-light);
}

.text-dark {
    color: var(--text-dark);
}

.text-white {
    color: var(--text-white);
}

.bg-primary {
    background-color: var(--primary-color);
    color: white;
}

.bg-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.bg-accent {
    background-color: var(--accent-color);
    color: white;
}

.bg-light {
    background-color: var(--bg-light);
}

.bg-alt {
    background-color: var(--bg-alt);
}

.fw-light {
    font-weight: 300;
}

.fw-normal {
    font-weight: 400;
}

.fw-medium {
    font-weight: 500;
}

.fw-bold {
    font-weight: 700;
}

.d-none {
    display: none !important;
}

.d-block {
    display: block !important;
}

.d-flex {
    display: flex !important;
}

.align-items-center {
    align-items: center;
}

.justify-content-center {
    justify-content: center;
}

.justify-content-between {
    justify-content: space-between;
}

.flex-column {
    flex-direction: column;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.my-0 {
    margin-top: 0;
    margin-bottom: 0;
}

.m-0 {
    margin: 0;
}

.p-0 {
    padding: 0;
}

.mt-1 {
    margin-top: 0.25rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-3 {
    margin-top: 1rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.mt-5 {
    margin-top: 3rem;
}

.mb-1 {
    margin-bottom: 0.25rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 1rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mb-5 {
    margin-bottom: 3rem;
}

/*--------------------------------------------------------------
# Components
--------------------------------------------------------------*/

/* Buttons */
.btn {
    display: inline-block;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
    padding: 0.75rem 1.5rem;
    font-size: var(--font-size-md);
    line-height: 1.5;
    border-radius: var(--border-radius-md);
    transition: all var(--transition-normal);
    box-shadow: 0 4px 6px rgba(50, 50, 93, 0.11), 0 1px 3px rgba(0, 0, 0, 0.08);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: var(--font-size-sm);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: var(--font-size-lg);
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: 1px solid transparent;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 7px 14px rgba(50, 50, 93, 0.1), 0 3px 6px rgba(0, 0, 0, 0.08);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
    border: 1px solid transparent;
}

.btn-secondary:hover {
    background-color: #0fb8d4;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 7px 14px rgba(50, 50, 93, 0.1), 0 3px 6px rgba(0, 0, 0, 0.08);
}

.btn-outline-primary {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-1px);
}

.btn-outline-secondary {
    background-color: transparent;
    color: var(--secondary-color);
    border: 1px solid var(--secondary-color);
}

.btn-outline-secondary:hover {
    background-color: var(--secondary-color);
    color: white;
    transform: translateY(-1px);
}

.btn-danger {
    background-color: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background-color: #e03057;
    transform: translateY(-1px);
}

.btn-success {
    background-color: var(--success-color);
    color: white;
}

.btn-success:hover {
    background-color: #26af74;
    transform: translateY(-1px);
}

.btn-block {
    display: block;
    width: 100%;
}

/* Forms */
.form-group {
    margin-bottom: var(--space-lg);
}

.form-label {
    display: block;
    margin-bottom: var(--space-sm);
    font-weight: 500;
}

.form-control {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: var(--font-size-md);
    line-height: 1.5;
    color: var(--text-color);
    background-color: var(--bg-color);
    background-clip: padding-box;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control:focus {
    border-color: var(--primary-color);
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(94, 114, 228, 0.25);
}

.form-check {
    position: relative;
    display: block;
    padding-left: 1.25rem;
}

.form-check-input {
    position: absolute;
    margin-top: 0.3rem;
    margin-left: -1.25rem;
}

.form-check-label {
    margin-bottom: 0;
}

/* Card */
.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    word-wrap: break-word;
    background-color: var(--bg-color);
    background-clip: border-box;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.card-img {
    width: 100%;
    border-top-left-radius: var(--border-radius-lg);
    border-top-right-radius: var(--border-radius-lg);
}

.card-body {
    flex: 1 1 auto;
    padding: var(--space-lg);
}

.card-title {
    margin-bottom: var(--space-md);
    font-size: var(--font-size-xl);
}

.card-text {
    margin-bottom: var(--space-md);
}

.card-footer {
    padding: var(--space-md) var(--space-lg);
    background-color: var(--bg-light);
    border-top: 1px solid var(--border-color);
}

/* Alerts */
.alert {
    position: relative;
    padding: var(--space-md) var(--space-lg);
    margin-bottom: var(--space-lg);
    border: 1px solid transparent;
    border-radius: var(--border-radius-md);
}

.alert-success {
    color: #0d462e;
    background-color: #d1f0e0;
    border-color: #b8e5ca;
}

.alert-info {
    color: #0c5460;
    background-color: #d1ecf1;
    border-color: #bee5eb;
}

.alert-warning {
    color: #856404;
    background-color: #fff3cd;
    border-color: #ffeeba;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

/* Pagination */
.pagination {
    display: flex;
    padding-left: 0;
    list-style: none;
    border-radius: 0.25rem;
}

.page-link {
    position: relative;
    display: block;
    padding: 0.5rem 0.75rem;
    margin-left: -1px;
    line-height: 1.25;
    color: var(--primary-color);
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
}

.page-link:hover {
    color: var(--primary-light);
    text-decoration: none;
    background-color: var(--bg-light);
    border-color: var(--border-color);
}

.page-item.active .page-link {
    z-index: 1;
    color: #fff;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.page-item.disabled .page-link {
    color: var(--text-light);
    pointer-events: none;
    cursor: auto;
    background-color: var(--bg-color);
    border-color: var(--border-color);
}

/*--------------------------------------------------------------
# Header & Navigation
--------------------------------------------------------------*/
.site-header {
    background-color: var(--bg-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: var(--z-sticky);
    transition: var(--theme-transition);
    padding: 0.75rem 0;
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    max-height: 45px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-left: 0.5rem;
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-menu li {
    margin-left: 2rem;
}

.nav-menu a {
    color: var(--text-color);
    font-weight: 500;
    position: relative;
    font-size: var(--font-size-md);
    padding: 0.5rem 0;
    transition: var(--theme-transition);
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width var(--transition-normal);
}

.nav-menu a:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
}

.social-icons-header {
    display: flex;
    align-items: center;
    margin-right: 1.5rem;
}

.social-icons-header a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin-left: 0.75rem;
    color: var(--text-color);
    transition: var(--transition-normal);
}

.social-icons-header a:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.search-box {
    display: flex;
    align-items: center;
    margin-right: 1.5rem;
    background-color: var(--bg-light);
    border-radius: 50px;
    padding: 0.5rem 0.75rem;
    transition: var(--theme-transition);
    width: 300px;
}

.search-box input {
    background: transparent;
    border: none;
    outline: none;
    padding: 0.25rem 0.5rem;
    width: 100%;
    color: var(--text-color);
}

.search-box button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 0.4rem 1.25rem;
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition-normal);
}

.search-box button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
}

.account-actions {
    display: flex;
    align-items: center;
}

.account-actions a {
    font-weight: 500;
    color: var(--text-color);
    margin-left: 1rem;
    transition: var(--transition-normal);
}

.account-actions a:hover {
    color: var(--primary-color);
}

.account-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--bg-light);
    margin-left: 1rem;
    overflow: hidden;
    transition: var(--transition-normal);
}

.account-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Theme Toggle Switch - Updated */
.theme-switch-wrapper {
    display: flex;
    align-items: center;
    margin-left: 1.5rem;
}

.theme-switch {
    position: relative;
    width: 60px;
    height: 30px;
}

.theme-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
    box-shadow: inset 0 0 5px rgba(0,0,0,0.2);
}

.slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--primary-color);
}

input:checked + .slider:before {
    transform: translateX(30px);
}

.theme-icons {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 0 10px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.sun-icon, .moon-icon {
    font-size: 14px;
    color: #f1c40f;
}

.moon-icon {
    color: #f5f6fa;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: var(--z-fixed);
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 3px 0;
    transition: all var(--transition-normal);
}

/* Hero Section - Updated to be seamless */
.hero-section {
    background: linear-gradient(135deg, #a29bfe 0%, #6c5ce7 100%);
    padding-top: 6rem; /* Account for fixed header */
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 3rem 0;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-title span {
    display: block;
    font-size: 4.5rem;
    color: white;
    position: relative;
}

.hero-title span::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background-color: var(--accent-color);
    z-index: -1;
}

.hero-description {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    font-size: 1.125rem;
    padding: 1rem 2rem;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.hero-btn i {
    margin-left: 0.5rem;
}

.hero-image {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    max-width: 50%;
    z-index: 1;
}

.paw-pattern {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
    opacity: 0.1;
    pointer-events: none;
}

.pet-card {
    position: absolute;
    background-color: white;
    border-radius: 12px;
    padding: 0.75rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    z-index: 2;
    transition: all 0.3s ease;
}

.pet-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.pet-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.pet-card h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.pet-card p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--primary-color);
    font-weight: 700;
}

.pet-card .rating {
    color: var(--accent-color);
    font-size: 0.75rem;
    margin: 0.25rem 0;
}

.pet-card-1 {
    top: 30%;
    right: 25%;
    transform: rotate(5deg);
}

.pet-card-2 {
    bottom: 20%;
    right: 30%;
    transform: rotate(-3deg);
}

.animal-illustration {
    position: absolute;
    z-index: 1;
}

.animal-1 {
    bottom: 10%;
    left: 10%;
    max-width: 200px;
}

.animal-2 {
    top: 15%;
    right: 15%;
    max-width: 150px;
}

@media (max-width: 992px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--bg-color);
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 40px 40px;
        box-shadow: var(--shadow-lg);
        transition: right var(--transition-normal);
        z-index: var(--z-fixed);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu li {
        margin: 1rem 0;
        width: 100%;
    }
    
    .nav-menu a {
        display: block;
        width: 100%;
        padding: 0.5rem 0;
    }
    
    .mobile-menu-toggle.active .bar:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .mobile-menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active .bar:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    .search-box {
        display: none;
    }
    
    .social-icons-header {
        display: none;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-title span {
        font-size: 3rem;
    }
    
    .hero-image {
        opacity: 0.5;
    }
    
    .pet-card {
        transform: scale(0.8);
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-title span {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-btn {
        font-size: 1rem;
        padding: 0.75rem 1.5rem;
    }
    
    .pet-card {
        display: none;
    }
/*--------------------------------------------------------------
# Featured Categories
--------------------------------------------------------------*/
.featured-categories {
   padding: var(--space-xxl) 0;
   background-color: var(--bg-color);
   transition: var(--theme-transition);
}

.section-title {
   text-align: center;
   margin-bottom: var(--space-xl);
   position: relative;
}

.section-title h2 {
   position: relative;
   display: inline-block;
   padding-bottom: var(--space-sm);
   margin-bottom: var(--space-sm);
   color: var(--text-dark);
   font-weight: 700;
}

.section-title h2::after {
   content: '';
   position: absolute;
   bottom: 0;
   left: 50%;
   transform: translateX(-50%);
   width: 80px;
   height: 3px;
   background-color: var(--primary-color);
}

.section-title p {
   color: var(--text-light);
   font-size: var(--font-size-lg);
   max-width: 700px;
   margin: 0 auto;
}

.category-grid {
   display: grid;
   grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
   gap: var(--space-lg);
   margin-bottom: var(--space-xl);
}

.category-card {
   border-radius: var(--border-radius-lg);
   overflow: hidden;
   box-shadow: 0 7px 14px rgba(50, 50, 93, 0.1), 0 3px 6px rgba(0, 0, 0, 0.08);
   transition: transform var(--transition-normal), box-shadow var(--transition-normal);
   background-color: var(--bg-color);
   border: 1px solid var(--border-light);
}

.category-card:hover {
   transform: translateY(-5px);
   box-shadow: 0 15px 30px rgba(50, 50, 93, 0.15), 0 5px 15px rgba(0, 0, 0, 0.1);
}

.category-img {
   height: 200px;
   overflow: hidden;
}

.category-img img {
   width: 100%;
   height: 100%;
   object-fit: cover;
   transition: transform var(--transition-normal);
}

.category-card:hover .category-img img {
   transform: scale(1.05);
}

.category-content {
   padding: var(--space-lg);
}

.category-title {
   font-size: var(--font-size-xl);
   margin-bottom: var(--space-sm);
   color: var(--text-dark);
   font-weight: 600;
}

.category-desc {
   color: var(--text-light);
   margin-bottom: var(--space-md);
   line-height: 1.6;
}

/*--------------------------------------------------------------
# Featured Products
--------------------------------------------------------------*/
.featured-products {
   padding: var(--space-xxl) 0;
   background-color: var(--bg-alt);
   transition: var(--theme-transition);
}

.product-grid {
   display: grid;
   grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
   gap: var(--space-lg);
   margin-bottom: var(--space-xl);
}

.product-card {
   border-radius: var(--border-radius-lg);
   overflow: hidden;
   box-shadow: 0 5px 15px rgba(0,0,0,0.05);
   transition: transform var(--transition-normal), box-shadow var(--transition-normal);
   background-color: var(--bg-color);
   border: 1px solid var(--border-light);
}

.product-card:hover {
   transform: translateY(-5px);
   box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}

.product-img {
   position: relative;
   height: 250px;
   overflow: hidden;
}

.product-img img {
   width: 100%;
   height: 100%;
   object-fit: cover;
   transition: transform var(--transition-normal);
}

.product-card:hover .product-img img {
   transform: scale(1.05);
}

.out-of-stock-badge {
   position: absolute;
   top: var(--space-md);
   right: var(--space-md);
   background-color: var(--danger-color);
   color: white;
   padding: 4px 10px;
   border-radius: var(--border-radius-pill);
   font-size: var(--font-size-xs);
   font-weight: 600;
   z-index: 1;
   box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.product-content {
   padding: var(--space-lg);
}

.product-title {
   font-size: var(--font-size-lg);
   margin-bottom: var(--space-sm);
   line-height: 1.3;
   height: 2.6em;
   overflow: hidden;
   display: -webkit-box;
   -webkit-line-clamp: 2;
   -webkit-box-orient: vertical;
   color: var(--text-dark);
   font-weight: 600;
}

.product-price {
   display: flex;
   align-items: center;
   margin-bottom: var(--space-md);
}

.current-price {
   font-size: var(--font-size-lg);
   font-weight: 700;
   color: var(--primary-color);
}

.old-price {
   font-size: var(--font-size-sm);
   color: var(--text-light);
   text-decoration: line-through;
   margin-left: var(--space-sm);
}

.no-categories, .no-products {
   text-align: center;
   padding: var(--space-xl) 0;
   color: var(--text-light);
   font-style: italic;
}

/*--------------------------------------------------------------
# Benefits Section
--------------------------------------------------------------*/
.benefits-section {
   padding: var(--space-xxl) 0;
   background-color: var(--bg-color);
   transition: var(--theme-transition);
}

.benefits-grid {
   display: grid;
   grid-template-columns: repeat(4, 1fr);
   gap: var(--space-lg);
}

.benefit-item {
   text-align: center;
   padding: var(--space-lg);
   background-color: var(--bg-color);
   border-radius: var(--border-radius-lg);
   box-shadow: 0 7px 14px rgba(50, 50, 93, 0.1), 0 3px 6px rgba(0, 0, 0, 0.08);
   transition: transform var(--transition-normal), box-shadow var(--transition-normal);
   border: 1px solid var(--border-light);
}

.benefit-item:hover {
   transform: translateY(-5px);
   box-shadow: 0 15px 30px rgba(50, 50, 93, 0.15), 0 5px 15px rgba(0, 0, 0, 0.1);
}

.benefit-icon {
   margin-bottom: var(--space-md);
   font-size: 2.5rem;
   color: var(--primary-color);
}

.benefit-item h3 {
   font-size: var(--font-size-lg);
   margin-bottom: var(--space-sm);
   color: var(--text-dark);
   font-weight: 600;
}

.benefit-item p {
   color: var(--text-light);
   line-height: 1.6;
}

/*--------------------------------------------------------------
# Newsletter Section
--------------------------------------------------------------*/
.newsletter-section {
   padding: var(--space-xxl) 0;
   background-color: var(--primary-color);
   color: white;
}

.newsletter-content {
   text-align: center;
   max-width: 600px;
   margin: 0 auto;
}

.newsletter-content h2 {
   color: white;
   margin-bottom: var(--space-sm);
   font-weight: 700;
}

.newsletter-content p {
   margin-bottom: var(--space-lg);
   opacity: 0.9;
}

.newsletter-form .form-group {
   display: flex;
   max-width: 500px;
   margin: 0 auto;
}

.newsletter-form input[type="email"] {
   flex: 1;
   padding: 15px 20px;
   border: none;
   border-radius: var(--border-radius-pill) 0 0 var(--border-radius-pill);
   font-size: var(--font-size-md);
   box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.newsletter-form button {
   padding: 15px 25px;
   background-color: var(--accent-color);
   color: white;
   border: none;
   border-radius: 0 var(--border-radius-pill) var(--border-radius-pill) 0;
   cursor: pointer;
   font-weight: 600;
   font-size: var(--font-size-md);
   transition: background-color var(--transition-normal);
   box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.newsletter-form button:hover {
   background-color: #e64c2e;
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.site-footer {
   background-color: var(--bg-alt);
   color: var(--text-color);
   padding: var(--space-xxl) 0 var(--space-md);
   margin-top: var(--space-xxl);
   transition: var(--theme-transition);
}

.footer-content {
   display: grid;
   grid-template-columns: repeat(4, 1fr);
   gap: var(--space-lg);
}

.footer-section h3 {
   position: relative;
   margin-bottom: var(--space-lg);
   font-size: var(--font-size-lg);
   color: var(--text-dark);
   font-weight: 600;
   padding-bottom: var(--space-sm);
}

.footer-section h3::after {
   content: '';
   display: block;
   width: 50px;
   height: 2px;
   background-color: var(--primary-color);
   margin-top: 10px;
}

.footer-section p {
   margin-bottom: var(--space-md);
   color: var(--text-light);
   line-height: 1.6;
}

.footer-section ul li {
   margin-bottom: var(--space-sm);
}

.footer-section a {
   color: var(--text-color);
   transition: color var(--transition-fast);
}

.footer-section a:hover {
   color: var(--primary-color);
}

.social-icons {
   display: flex;
   gap: var(--space-sm);
   margin-top: var(--space-md);
}

.social-icons a {
   display: inline-flex;
   align-items: center;
   justify-content: center;
   width: 36px;
   height: 36px;
   background-color: var(--bg-light);
   color: var(--text-color);
   border-radius: 50%;
   transition: all var(--transition-normal);
}

.social-icons a:hover {
   transform: translateY(-3px);
   background-color: var(--primary-color);
   color: white;
}

.footer-bottom {
   margin-top: var(--space-xl);
   padding-top: var(--space-md);
   border-top: 1px solid var(--border-color);
   display: flex;
   flex-wrap: wrap;
   justify-content: space-between;
   align-items: center;
   font-size: var(--font-size-sm);
   color: var(--text-light);
}

.footer-links a {
   margin-left: var(--space-md);
   color: var(--text-light);
}

.footer-links a:hover {
   color: var(--primary-color);
}

/* Subscribe to Newsletter in Footer */
.footer-newsletter {
   margin-top: var(--space-md);
}

.footer-newsletter h4 {
   margin-bottom: var(--space-sm);
   font-size: var(--font-size-md);
   color: var(--text-dark);
}

.footer-newsletter-form {
   display: flex;
}

.footer-newsletter-form input[type="email"] {
   flex: 1;
   padding: 10px;
   border: 1px solid var(--border-color);
   border-right: none;
   border-radius: var(--border-radius-sm) 0 0 var(--border-radius-sm);
   background-color: var(--bg-color);
   color: var(--text-color);
}

.footer-newsletter-form button {
   background-color: var(--primary-color);
   color: white;
   padding: 10px;
   border: none;
   border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
   cursor: pointer;
   transition: background-color var(--transition-normal);
}

.footer-newsletter-form button:hover {
   background-color: var(--primary-dark);
}

/* Responsive footer */
@media (max-width: 992px) {
   .footer-content {
       grid-template-columns: repeat(2, 1fr);
   }
}

@media (max-width: 576px) {
   .footer-content {
       grid-template-columns: 1fr;
   }
   
   .footer-bottom {
       flex-direction: column;
       text-align: center;
   }
   
   .footer-links {
       margin-top: var(--space-sm);
   }
   
   .footer-links a {
       margin: 0 var(--space-sm);
   }
}

/* Responsive Adjustments */
@media (max-width: 992px) {
   .benefits-grid {
       grid-template-columns: repeat(2, 1fr);
   }
   
   .slide-title {
       font-size: 2.5rem;
   }
   
   .slide-description {
       font-size: 1.1rem;
   }
}

@media (max-width: 768px) {
   .hero-slider {
       height: 60vh;
   }
   
   .slide-title {
       font-size: 2rem;
   }
   
   .category-grid {
       grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
   }
   
   .header-actions {
       display: none;
   }
}

@media (max-width: 576px) {
   .hero-slider {
       height: 50vh;
   }
   
   .slide-title {
       font-size: 1.75rem;
   }
   
   .slide-description {
       font-size: 1rem;
   }
   
   .slide-btn {
       font-size: var(--font-size-md);
       padding: 10px 20px;
   }
   
   .benefits-grid {
       grid-template-columns: 1fr;
   }
   
   .newsletter-form .form-group {
       flex-direction: column;
   }
   
   .newsletter-form input[type="email"],
   .newsletter-form button {
       width: 100%;
       border-radius: var(--border-radius-pill);
   }
   
   .newsletter-form button {
       margin-top: var(--space-sm);
   }
}