:root {
    --primary-color: #1e3c72;
    --primary-light: #2a5298;
    --secondary-color: #667eea;
    --accent-color: #d4af37;
    --white: #ffffff;
    --light-bg: #e8f4fc;
    --light-gray: #dcebf7;
    --gray: #6c757d;
    --dark: #212529;
    --danger: #dc3545;
    --success: #28a745;
    --warning: #ffc107;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

html, body {
    height: 100%;
}

body {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--light-bg);
}

.main-content {
    min-height: 400px;
    display: block;
}

section {
    display: block;
}

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

ul {
    list-style: none;
}

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

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

.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 20px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    color: var(--red);
}

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

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

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

.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
}

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

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

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

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

.btn-icon {
    background: var(--white);
    border: 1px solid var(--light-gray);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

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

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

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    font-size: 14px;
    font-family: inherit;
    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(30, 60, 114, 0.1);
}

.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
}

.form-check input {
    width: auto;
}

.alert {
    padding: 15px 20px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.main-header {
    background: var(--white);
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    background: var(--primary-color);
    color: var(--white);
    padding: 10px 0;
    font-size: 14px;
}

.header-top-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-info {
    display: flex;
    gap: 20px;
}

.contact-info span {
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.header-social a:hover {
    color: var(--accent-color);
}

.header-main {
    padding: 20px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.logo {
    display: flex;
    flex-direction: column;
}

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

.logo-subtext {
    font-size: 12px;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 3px;
}

.main-nav ul {
    display: flex;
    gap: 30px;
}

.main-nav a {
    font-weight: 500;
    color: var(--dark);
    position: relative;
}

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

.main-nav a:hover::after {
    width: 100%;
}

.main-nav .dropdown {
    position: relative;
}

.main-nav .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #0d47fa;
    min-width: 200px;
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    padding: 10px 0;
    z-index: 1000;
}

.main-nav .dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
}

.main-nav .dropdown-menu li {
    padding: 8px 20px;
}

.main-nav .dropdown-menu a {
    font-size: 14px;
    color: #fff;
    display: block;
}

.main-nav .dropdown-menu a:hover {
    background: #0a38c7;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-box {
    position: relative;
}

.search-box input {
    width: 250px;
    padding: 10px 40px 10px 15px;
    border: 1px solid var(--light-gray);
    border-radius: 25px;
    font-size: 14px;
}

.search-box button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray);
    cursor: pointer;
}

.user-menu {
    position: relative;
}

.user-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

.user-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--white);
    min-width: 200px;
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    padding: 10px 0;
}

.user-dropdown:hover .user-dropdown-menu {
    opacity: 1;
    visibility: visible;
}

.user-dropdown-menu li {
    padding: 10px 20px;
}

.user-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.btn-login {
    padding: 10px 20px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: var(--border-radius);
    font-weight: 500;
}

.cart-btn {
    position: relative;
    font-size: 20px;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--accent-color);
    color: var(--white);
    font-size: 10px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-section {
    position: relative;
    height: 600px;
    overflow: hidden;
    display: block;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.hero-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 100%);
}

.hero-content {
    position: relative;
    color: var(--white);
    max-width: 600px;
    padding-top: 80px;
}

.hero-category {
    display: inline-block;
    background: var(--accent-color);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
}

.hero-description {
    font-size: 18px;
    margin-bottom: 20px;
    opacity: 0.9;
}

.hero-price {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.hero-price .original-price {
    text-decoration: line-through;
    font-size: 20px;
    opacity: 0.8;
}

.hero-price .final-price {
    font-size: 32px;
    font-weight: 700;
    color: var(--accent-color);
}

.hero-price .discount-tag {
    background: var(--danger);
    color: var(--white);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.2);
    border: none;
    border-radius: 50%;
    color: var(--white);
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
}

.hero-nav:hover {
    background: var(--primary-color);
}

.hero-nav.prev {
    left: 20px;
}

.hero-nav.next {
    right: 20px;
}

.hero-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: var(--transition);
}

.hero-dot.active,
.hero-dot:hover {
    background: var(--accent-color);
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 36px;
    color: var(--dark);
    margin-bottom: 10px;
}

.section-header p {
    color: var(--gray);
}

.categories-section,
.featured-products-section,
.new-arrivals-section {
    padding: 80px 0;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.category-card {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.category-image {
    height: 250px;
    background: var(--light-gray);
}

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

.category-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: var(--white);
}

.category-info h3 {
    font-size: 20px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.product-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

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

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

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

.discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--danger);
    color: var(--white);
    padding: 5px 10px;
    border-radius: var(--border-radius);
    font-size: 12px;
    font-weight: 600;
}

.product-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 1;
    transition: var(--transition);
}

.product-card:hover .product-actions {
    opacity: 1;
}

.product-info {
    padding: 20px;
}

.product-category {
    font-size: 12px;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-info h3 {
    font-size: 16px;
    margin: 10px 0;
    font-weight: 500;
}

.product-info h3 a {
    color: var(--dark);
}

.product-info h3 a:hover {
    color: var(--primary-color);
}

.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.original-price {
    text-decoration: line-through;
    color: var(--gray);
    font-size: 14px;
}

.final-price {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
}

.product-rating .fa-star {
    color: var(--light-gray);
}

.product-rating .fa-star.filled {
    color: var(--warning);
}

.product-stock {
    font-size: 12px;
    padding: 5px 10px;
    border-radius: var(--border-radius);
    display: inline-block;
}

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

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

.newsletter-section {
    background: var(--primary-color);
    padding: 80px 0;
    color: var(--white);
    text-align: center;
}

.newsletter-content h2 {
    margin-bottom: 15px;
}

.newsletter-content p {
    margin-bottom: 30px;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    gap: 15px;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: var(--border-radius);
}

.main-footer {
    background: var(--dark);
    color: var(--white);
    padding-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    padding-bottom: 40px;
}

.footer-section h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.8;
}

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

.footer-section ul a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.footer-section ul a:hover {
    color: var(--accent-color);
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-social a:hover {
    background: var(--accent-color);
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
}

.contact-list i {
    color: var(--accent-color);
    margin-top: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    text-align: center;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.page-header {
    background: var(--light-bg);
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 36px;
    margin-bottom: 10px;
}

.page-header p {
    color: var(--gray);
}

.auth-section {
    padding: 80px 0;
}

.auth-container {
    display: flex;
    max-width: 900px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
}

.auth-box {
    flex: 1;
    padding: 50px;
}

.register-box {
    flex: 1;
    background: #ffe6e6;
    color: #1a1a1a;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h2 {
    margin-bottom: 10px;
}

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

.demo-credentials {
    margin-top: 30px;
    padding: 20px;
    background: var(--light-bg);
    border-radius: var(--border-radius);
    font-size: 13px;
}

.demo-credentials h4 {
    margin-bottom: 10px;
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
}

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

.products-section {
    padding: 60px 0;
}

.products-layout {
    display: flex;
    gap: 40px;
}

.category-layout {
    display: flex;
    gap: 40px;
}

.category-sidebar {
    width: 250px;
    flex-shrink: 0;
}

.category-sidebar h3 {
    font-size: 18px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.subcategory-list {
    list-style: none;
}

.subcategory-list li {
    margin-bottom: 8px;
}

.subcategory-list a {
    display: block;
    padding: 10px 15px;
    border-radius: var(--border-radius);
    color: var(--dark);
    transition: var(--transition);
    font-size: 14px;
}

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

.category-main {
    flex: 1;
}

.category-section {
    padding: 40px 0;
}

.products-sidebar {
    width: 250px;
    flex-shrink: 0;
}

.filter-section {
    margin-bottom: 30px;
}

.filter-section h3 {
    font-size: 18px;
    margin-bottom: 15px;
}

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

.filter-list a {
    display: block;
    padding: 10px;
    border-radius: var(--border-radius);
    color: var(--dark);
}

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

.price-filter-form {
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-filter-form input {
    width: 80px;
    padding: 8px;
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
}

.products-main {
    flex: 1;
}

.product-detail-section {
    padding: 60px 0;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.product-gallery .main-image {
    height: 500px;
    background: var(--light-gray);
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 20px;
}

.product-gallery .main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail-grid {
    display: flex;
    gap: 15px;
}

.thumbnail {
    width: 80px;
    height: 80px;
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

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

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

.product-info-box h1 {
    font-size: 28px;
    margin-bottom: 15px;
}

.product-info-box .product-rating {
    margin-bottom: 20px;
    font-size: 14px;
}

.product-info-box .product-price {
    margin-bottom: 20px;
}

.discount-percent {
    background: var(--danger);
    color: var(--white);
    padding: 5px 10px;
    border-radius: var(--border-radius);
    font-size: 12px;
    margin-left: 10px;
}

.product-description {
    color: var(--gray);
    margin-bottom: 20px;
    line-height: 1.8;
}

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

.option-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 10px;
}

.size-options {
    display: flex;
    gap: 10px;
}

.size-option {
    cursor: pointer;
}

.size-option input {
    display: none;
}

.size-option span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    font-size: 14px;
}

.size-option input:checked + span {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.color-options {
    display: flex;
    gap: 10px;
}

.color-option {
    cursor: pointer;
}

.color-option input {
    display: none;
}

.color-option span {
    display: flex;
    align-items: center;
    padding: 8px 15px;
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    font-size: 14px;
}

.color-option input:checked + span {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 15px;
}

.quantity-selector button {
    width: 40px;
    height: 40px;
    border: 1px solid var(--light-gray);
    background: var(--white);
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 18px;
}

.quantity-selector input {
    width: 60px;
    text-align: center;
}

.stock-status {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 14px;
}

.stock-status.in {
    color: var(--success);
}

.stock-status.out {
    color: var(--danger);
}

.product-info-box .product-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    position: static;
    opacity: 1;
}

.product-meta {
    border-top: 1px solid var(--light-gray);
    padding-top: 20px;
}

.product-meta p {
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--gray);
}

.product-meta strong {
    color: var(--dark);
}

.reviews-section,
.comments-section {
    padding: 60px 0;
    border-top: 1px solid var(--light-gray);
}

.review-form,
.comment-form {
    margin-bottom: 40px;
}

.review-form h3,
.comment-form h3 {
    margin-bottom: 15px;
}

.review-form form,
.comment-form form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 500px;
}

.rating-select .stars {
    display: flex;
    flex-direction: row-reverse;
    gap: 5px;
}

.rating-select input {
    display: none;
}

.rating-select label {
    cursor: pointer;
    font-size: 24px;
    color: var(--light-gray);
}

.rating-select input:checked ~ label,
.rating-select label:hover,
.rating-select label:hover ~ label {
    color: var(--warning);
}

.reviews-list,
.comments-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.review-card,
.comment-card {
    padding: 20px;
    background: var(--light-bg);
    border-radius: var(--border-radius);
}

.review-header,
.comment-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.reviewer-avatar,
.commenter-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.review-info h4,
.comment-info h4 {
    margin-bottom: 5px;
}

.review-date,
.comment-date {
    font-size: 12px;
    color: var(--gray);
}

.review-content,
.comment-content {
    color: var(--dark);
    line-height: 1.6;
}

.comment-card.reply {
    margin-left: 40px;
    background: var(--white);
    border: 1px solid var(--light-gray);
}

.comment-actions {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.comment-actions button {
    background: none;
    border: none;
    color: var(--gray);
    cursor: pointer;
    font-size: 13px;
}

.comment-actions button:hover {
    color: var(--primary-color);
}

.cart-section,
checkout-section,
orders-section,
wishlist-section,
friends-section,
profile-section {
    padding: 60px 0;
}

.cart-layout {
    display: flex;
    gap: 40px;
}

.cart-items {
    flex: 1;
}

.cart-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 50px;
    gap: 20px;
    padding: 15px;
    background: var(--light-bg);
    font-weight: 600;
    border-radius: var(--border-radius);
}

.cart-item {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 50px;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid var(--light-gray);
    align-items: center;
}

.item-product {
    display: flex;
    align-items: center;
    gap: 15px;
}

.item-product img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--border-radius);
}

.item-product h3 {
    font-size: 14px;
    font-weight: 500;
}

.item-product p {
    font-size: 12px;
    color: var(--gray);
}

.item-quantity input {
    width: 60px;
    padding: 8px;
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    text-align: center;
}

.item-action button {
    background: none;
    border: none;
    color: var(--danger);
    cursor: pointer;
    font-size: 18px;
}

.cart-summary {
    width: 350px;
    background: var(--light-bg);
    padding: 30px;
    border-radius: var(--border-radius);
    height: fit-content;
}

.cart-summary h3 {
    margin-bottom: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--light-gray);
}

.summary-row.total {
    font-size: 18px;
    font-weight: 600;
    border-bottom: none;
    margin-top: 20px;
}

.cart-summary .btn {
    margin-top: 20px;
}

.empty-cart,
.empty-orders,
.empty-wishlist {
    text-align: center;
    padding: 80px 0;
}

.empty-cart i,
.empty-orders i,
.empty-wishlist i {
    font-size: 64px;
    color: var(--light-gray);
    margin-bottom: 20px;
}

.empty-cart h2,
.empty-orders h2,
.empty-wishlist h2 {
    margin-bottom: 10px;
}

.empty-cart p,
.empty-orders p,
.empty-wishlist p {
    color: var(--gray);
    margin-bottom: 30px;
}

.order-card {
    background: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    overflow: hidden;
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: var(--light-bg);
}

.order-info h3 {
    font-size: 16px;
    margin-bottom: 5px;
}

.order-date {
    font-size: 13px;
    color: var(--gray);
}

.order-status {
    padding: 5px 15px;
    border-radius: var(--border-radius);
    font-size: 12px;
    font-weight: 500;
}

.order-status.pending {
    background: #fff3cd;
    color: #856404;
}

.order-status.processing {
    background: #cce5ff;
    color: #004085;
}

.order-status.shipped {
    background: #d4edda;
    color: #155724;
}

.order-status.delivered {
    background: #d4edda;
    color: #155724;
}

.order-status.cancelled {
    background: #f8d7da;
    color: #721c24;
}

.order-items {
    padding: 20px;
}

.order-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--light-gray);
}

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

.order-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--border-radius);
}

.order-item .item-details {
    flex: 1;
}

.order-item h4 {
    font-size: 14px;
    margin-bottom: 5px;
}

.order-item p {
    font-size: 12px;
    color: var(--gray);
}

.order-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-top: 1px solid var(--light-gray);
}

.order-total {
    font-size: 18px;
    font-weight: 600;
}

.profile-layout {
    display: flex;
    gap: 40px;
}

.profile-sidebar {
    width: 250px;
}

.profile-avatar {
    text-align: center;
    margin-bottom: 30px;
}

.profile-avatar img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
}

.profile-menu a {
    display: block;
    padding: 12px 20px;
    border-radius: var(--border-radius);
    margin-bottom: 5px;
    color: var(--dark);
}

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

.profile-menu a i {
    margin-right: 10px;
    width: 20px;
}

.profile-main {
    flex: 1;
}

.profile-card {
    background: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    padding: 30px;
    margin-bottom: 30px;
}

.profile-card h2 {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--light-gray);
}

.friends-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.friends-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.friend-card {
    text-align: center;
    padding: 20px;
    background: var(--light-bg);
    border-radius: var(--border-radius);
}

.friend-card img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
}

.friend-card h3 {
    font-size: 16px;
    margin-bottom: 5px;
}

.friend-card p {
    font-size: 13px;
    color: var(--gray);
    margin-bottom: 15px;
}

.request-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--light-bg);
    border-radius: var(--border-radius);
    margin-bottom: 15px;
}

.request-card img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.request-info {
    flex: 1;
}

.request-info h3 {
    font-size: 14px;
    margin-bottom: 3px;
}

.request-actions {
    display: flex;
    gap: 10px;
}

.user-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    margin-bottom: 10px;
}

.user-card img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.user-info {
    flex: 1;
}

.user-info h3 {
    font-size: 14px;
    margin-bottom: 3px;
}

.user-info p {
    font-size: 12px;
    color: var(--gray);
}

.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    max-width: 500px;
    width: 90%;
    position: relative;
    animation: modalSlide 0.3s ease;
}

.modal-content.large {
    max-width: 800px;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
}

@keyframes modalSlide {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 250px;
    background: var(--dark);
    color: var(--white);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-logo {
    font-size: 20px;
    font-weight: 700;
}

.admin-logo span {
    color: var(--accent-color);
}

.sidebar-nav {
    padding: 20px 0;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: rgba(255, 255, 255, 0.7);
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.sidebar-nav .badge {
    background: var(--danger);
    color: var(--white);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    margin-left: auto;
}

.admin-main {
    flex: 1;
    margin-left: 250px;
    padding: 30px;
    background: var(--light-bg);
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.admin-header h1 {
    font-size: 28px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--white);
    padding: 25px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.stat-info h3 {
    font-size: 24px;
    margin-bottom: 5px;
}

.stat-info p {
    color: var(--gray);
    font-size: 14px;
}

.admin-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.content-card {
    background: var(--white);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.content-card h3 {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--light-gray);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--light-gray);
}

.admin-table th {
    background: var(--light-bg);
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-table .table-image {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: var(--border-radius);
}

.status-badge {
    padding: 4px 10px;
    border-radius: var(--border-radius);
    font-size: 12px;
    font-weight: 500;
}

.status-badge.active {
    background: #d4edda;
    color: #155724;
}

.status-badge.inactive {
    background: #f8d7da;
    color: #721c24;
}

.status-badge.pending {
    background: #fff3cd;
    color: #856404;
}

.templates-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.template-card {
    padding: 20px;
    background: var(--light-bg);
    border-radius: var(--border-radius);
    text-align: center;
    border: 2px solid transparent;
}

.template-card.active {
    border-color: var(--success);
}

.template-card h4 {
    margin-bottom: 10px;
}

.template-card p {
    font-size: 13px;
    color: var(--gray);
    margin-bottom: 15px;
}

.active-badge {
    background: var(--success);
    color: var(--white);
    padding: 5px 15px;
    border-radius: var(--border-radius);
    font-size: 12px;
}

@media (max-width: 992px) {
    .header-content {
        flex-wrap: wrap;
    }
    
    .main-nav {
        display: none;
    }
    
    .categories-grid,
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .product-detail-grid {
        grid-template-columns: 1fr;
    }
    
    .products-layout {
        flex-direction: column;
    }
    
    .products-sidebar {
        width: 100%;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cart-layout {
        flex-direction: column;
    }
    
    .cart-summary {
        width: 100%;
    }
    
    .profile-layout {
        flex-direction: column;
    }
    
    .profile-sidebar {
        width: 100%;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .admin-content-grid {
        grid-template-columns: 1fr;
    }
    
    .friends-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .categories-grid,
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-content h1 {
        font-size: 32px;
    }
    
    .auth-container {
        flex-direction: column;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .cart-header {
        display: none;
    }
    
    .cart-item {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}
