/* Faith Store - Complete Stylesheet */

/* === VARIABLES === */
:root {
    /* Base Background - Soft Peach */
    --base-bg: #FEF5EE;
    
    /* Primary Colors - Spiritual Brown & Gold */
    --primary: #8B6F47;        /* Warm Brown */
    --primary-dark: #6B4423;   /* Dark Brown */
    --secondary: #C9974A;      /* Spiritual Gold */
    
    /* Status Colors */
    --success: #48bb78;
    --danger: #f56565;
    --warning: #ed8936;
    --info: #4299e1;
    
    /* Neutral Colors */
    --light: #FEF5EE;          /* Same as base */
    --dark: #3E3028;           /* Deep Brown */
    --gray: #8B7355;           /* Warm Gray */
    --border: #E8D5C4;         /* Soft Border */
    
    /* Effects */
    --shadow: 0 4px 6px rgba(139, 111, 71, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(139, 111, 71, 0.15);
    --transition: all 0.3s ease;
}

/* === RESET & BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background: var(--base-bg);
}

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

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

a:hover {
    color: var(--primary-dark);
}

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

/* === NAVBAR === */
.navbar {
    background: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
}

.nav-brand i {
    margin-right: 8px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    color: var(--dark);
    font-weight: 500;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.cart-link {
    position: relative;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -12px;
    background: var(--danger);
    color: white;
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: bold;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--dark);
    transition: var(--transition);
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        gap: 0;
        padding: 1rem;
        box-shadow: var(--shadow-lg);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: var(--transition);
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }
    
    .nav-menu li {
        width: 100%;
        text-align: center;
        padding: 0.5rem 0;
    }
}

/* === MAIN CONTENT === */
.main-content {
    min-height: calc(100vh - 200px);
}

/* === HERO === */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Hero with video background */
.hero.hero-with-video {
    background: transparent;
}

.hero-video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.hero-video-background iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw; /* 16:9 aspect ratio */
    min-height: 100vh;
    min-width: 177.77vh; /* 16:9 aspect ratio */
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

/* Play button for videos with sound - positioned in bottom right corner */
.hero-video-play-btn {
    position: absolute;
    bottom: 30px;
    right: 30px;
    z-index: 3;
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary);
    padding: 15px 25px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 12px;
    backdrop-filter: blur(10px);
}

.hero-video-play-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.hero-video-play-btn i {
    font-size: 24px;
    color: var(--primary);
    animation: pulse 2s infinite;
}

.hero-video-play-btn span {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark);
    white-space: nowrap;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.15);
        opacity: 0.8;
    }
}

/* Responsive adjustments for play button */
@media (max-width: 768px) {
    .hero-video-play-btn {
        bottom: 20px;
        right: 20px;
        padding: 12px 20px;
    }
    
    .hero-video-play-btn i {
        font-size: 20px;
    }
    
    .hero-video-play-btn span {
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .hero-video-play-btn span {
        display: none; /* Hide text on very small screens, show only icon */
    }
    
    .hero-video-play-btn {
        padding: 12px;
        border-radius: 50%;
        width: 50px;
        height: 50px;
        justify-content: center;
    }
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    text-decoration: none;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

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

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.btn-disabled {
    background: var(--gray);
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-icon,
.btn-icon-danger {
    background: none;
    border: none;
    font-size: 1.25rem;
    padding: 0.5rem;
    cursor: pointer;
    color: var(--primary);
}

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

.btn-text-success,
.btn-text-danger,
.btn-text-warning {
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    font-weight: 500;
}

.btn-text-success { color: var(--success); }
.btn-text-danger { color: var(--danger); }
.btn-text-warning { color: var(--warning); }

/* === SECTIONS === */
.features,
.devotional-preview,
.featured-products,
.cta {
    padding: 60px 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--dark);
}

/* === FEATURES GRID === */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

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

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}

.feature-card h3 {
    margin-bottom: 1rem;
    color: var(--dark);
}

.feature-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 1rem;
    font-weight: 500;
}

/* === PRODUCTS GRID === */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card {
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
}

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

.product-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

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

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.875rem;
    font-weight: bold;
    color: white;
}

.badge-featured { background: var(--primary); }
.badge-danger { background: var(--danger); }
.badge-success { background: var(--success); }
.badge-warning { background: var(--warning); }

.product-info {
    padding: 1.5rem;
}

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

.product-info h3 {
    margin: 0.5rem 0;
    font-size: 1.125rem;
}

.product-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
    margin: 1rem 0;
}

/* === DEVOTIONAL CARDS === */
.devotional-card {
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 2rem;
    margin-bottom: 2rem;
    display: flex;
    gap: 2rem;
}

.devotional-date {
    background: var(--primary);
    color: white;
    width: 80px;
    height: 80px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.date-day {
    font-size: 2rem;
    font-weight: bold;
    line-height: 1;
}

.date-month {
    font-size: 0.875rem;
    text-transform: uppercase;
}

.devotional-body {
    flex: 1;
}

.devotional-body h2 {
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.devotional-meta {
    color: var(--gray);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.devotional-verse {
    background: var(--light);
    padding: 1rem;
    border-left: 4px solid var(--primary);
    font-style: italic;
    margin: 1rem 0;
}

/* === PRAYER WALL === */
.prayer-grid {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 2rem;
}

.prayer-form-container,
.prayer-list-container {
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 2rem;
}

.prayer-filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    background: var(--light);
    color: var(--dark);
    font-size: 0.875rem;
    font-weight: 500;
    border: 2px solid transparent;
}

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

.prayer-card {
    background: var(--light);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.prayer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.prayer-author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.prayer-category {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    color: white;
}

.category-health { background: #48bb78; }
.category-family { background: #ed8936; }
.category-finances { background: #4299e1; }
.category-guidance { background: #9f7aea; }
.category-thanksgiving { background: #f6ad55; }
.category-other { background: #718096; }

.prayer-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.btn-pray {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-pray:hover {
    background: var(--primary-dark);
}

/* === FORMS === */
.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="url"],
input[type="file"],
select,
textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    cursor: pointer;
}

/* === CART === */
.cart-items {
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 2rem;
}

.cart-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.cart-item-image {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
}

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

.cart-item-info {
    flex: 1;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.quantity-input {
    display: flex;
    border: 2px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
}

.qty-btn {
    background: var(--light);
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-weight: bold;
}

.quantity-input input {
    width: 60px;
    text-align: center;
    border: none;
    padding: 0.5rem;
}

.cart-summary {
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 2rem;
    position: sticky;
    top: 100px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

.summary-total {
    font-size: 1.25rem;
    font-weight: bold;
    border-bottom: none;
}

/* === FLASH MESSAGES === */
.flash-message {
    position: fixed;
    top: 100px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    z-index: 9999;
    animation: slideIn 0.3s ease;
    transition: opacity 0.3s ease;
}

.flash-success { background: var(--success); color: white; }
.flash-error { background: var(--danger); color: white; }
.flash-warning { background: var(--warning); color: white; }
.flash-info { background: var(--info); color: white; }

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* === ADMIN LAYOUT === */
.admin-layout {
    display: flex;
    min-height: 100vh;
    background: var(--base-bg);
}

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

.admin-brand {
    padding: 0 1.5rem;
    margin-bottom: 2rem;
    font-size: 1.5rem;
    font-weight: bold;
}

.admin-menu {
    list-style: none;
}

.admin-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 1rem 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.admin-menu a:hover,
.admin-menu a.active {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.menu-separator {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 1rem 0;
}

.admin-content {
    margin-left: 250px;
    flex: 1;
    padding: 2rem;
    background: var(--base-bg);
}

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

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    display: flex;
    gap: 1rem;
    align-items: center;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.stat-info h3 {
    font-size: 2rem;
    margin-bottom: 0.25rem;
}

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

.admin-card {
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

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

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

.admin-table th {
    font-weight: 600;
    color: var(--gray);
    font-size: 0.875rem;
    text-transform: uppercase;
}

.table-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

/* === MODAL === */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.modal-content {
    background: white;
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-large {
    max-width: 900px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--gray);
}

.modal-content form {
    padding: 1.5rem;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding: 1.5rem;
    border-top: 1px solid var(--border);
}

/* === FOOTER === */
.footer {
    background: var(--dark);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-col h3,
.footer-col h4 {
    margin-bottom: 1rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 0.5rem;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-col a:hover {
    color: white;
}

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

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

.social-links a:hover {
    background: var(--primary);
}

.footer-contact-info {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-contact-info p {
    margin: 8px 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-contact-info i {
    color: var(--accent);
    width: 16px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* === UTILITY CLASSES === */
.text-center { text-align: center; }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-muted { color: var(--gray); }
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--gray);
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.separator {
    margin: 0 8px;
    color: var(--border);
}

/* === PAGINATION === */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.pagination-link,
.pagination-number {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    border: 2px solid var(--border);
}

.pagination-number.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* === AUTH PAGES === */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    padding: 2rem;
}

.auth-card {
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    max-width: 450px;
    width: 100%;
    padding: 2rem;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

/* === SUCCESS/ERROR PAGES === */
.success-page,
.cancel-page,
.error-page {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-content,
.cancel-content,
.error-content {
    text-align: center;
    max-width: 600px;
}

.success-icon {
    font-size: 5rem;
    color: var(--success);
    margin-bottom: 1rem;
}

.cancel-icon {
    font-size: 5rem;
    color: var(--danger);
    margin-bottom: 1rem;
}

.error-icon {
    font-size: 5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .prayer-grid {
        grid-template-columns: 1fr;
    }
    
    .devotional-card {
        flex-direction: column;
    }
    
    .cart-item {
        flex-direction: column;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .admin-nav {
        width: 200px;
    }
    
    .admin-content {
        margin-left: 200px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .admin-nav {
        display: none;
    }
    
    .admin-content {
        margin-left: 0;
    }
}

/* === ALERTS === */
.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert-success {
    background: #c6f6d5;
    color: #22543d;
}

.alert-error {
    background: #fed7d7;
    color: #c53030;
}

.alert-warning {
    background: #feebc8;
    color: #7c2d12;
}

.alert-info {
    background: #bee3f8;
    color: #2c5282;
}

/* === PRODUCT DETAIL PAGE === */
.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 30px;
}

.product-gallery {
    position: relative;
}

.gallery-main {
    position: relative;
    width: 100%;
    max-width: 600px;
    height: 500px;
    background: #f8f8f8;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.product-detail-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
}

.gallery-thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.gallery-thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    opacity: 0.6;
}

.gallery-thumbnail:hover {
    opacity: 1;
    transform: scale(1.05);
}

.gallery-thumbnail.active {
    border-color: var(--primary);
    opacity: 1;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.gallery-nav:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.gallery-prev {
    left: 15px;
}

.gallery-next {
    right: 15px;
}

.gallery-nav i {
    color: var(--primary);
    font-size: 20px;
}

/* Product detail info section */
.product-detail-info {
    padding: 20px 0;
}

.product-category {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    margin-bottom: 15px;
}

.product-price-large {
    font-size: 2.5rem;
    color: var(--primary);
    font-weight: bold;
    margin: 20px 0;
}

.product-description {
    line-height: 1.8;
    color: var(--gray);
    margin: 20px 0;
    font-size: 16px;
}

.product-stock {
    margin: 20px 0;
    font-size: 16px;
}

.stock-available {
    color: var(--success);
    font-weight: 600;
}

.stock-unavailable {
    color: var(--danger);
    font-weight: 600;
}

.add-to-cart-form {
    margin-top: 30px;
}

.quantity-selector {
    margin-bottom: 20px;
}

.quantity-selector label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--dark);
}

.quantity-input {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-input input {
    width: 80px;
    text-align: center;
    padding: 12px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
}

.qty-btn {
    width: 45px;
    height: 45px;
    border: 2px solid var(--border);
    background: white;
    border-radius: 8px;
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    color: var(--primary);
    transition: all 0.3s ease;
}

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

.product-features {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid var(--border);
    flex-wrap: wrap;
}

.product-features .feature {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--gray);
}

.product-features .feature i {
    color: var(--primary);
    font-size: 20px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--gray);
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb i {
    font-size: 10px;
}

.related-products {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid var(--border);
}

.related-products h2 {
    margin-bottom: 30px;
    color: var(--primary);
}

/* Responsive adjustments for product detail */
@media (max-width: 968px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .gallery-main {
        height: 400px;
        max-width: 100%;
    }
    
    .gallery-thumbnails {
        max-width: 100%;
    }
}

@media (max-width: 576px) {
    .gallery-main {
        height: 300px;
    }
    
    .product-price-large {
        font-size: 2rem;
    }
    
    .gallery-thumbnail {
        width: 60px;
        height: 60px;
    }
    
    .product-features {
        flex-direction: column;
        gap: 15px;
    }
}

/* === IMAGE ZOOM LIGHTBOX === */
.image-lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    animation: zoomIn 0.3s ease;
    box-shadow: 0 0 50px rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 45px;
    color: white;
    font-size: 50px;
    font-weight: 300;
    transition: all 0.3s ease;
    cursor: pointer;
    z-index: 10000;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    backdrop-filter: blur(10px);
}

.lightbox-close:hover,
.lightbox-close:focus {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.lightbox-caption {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 18px;
    padding: 15px 30px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 25px;
    backdrop-filter: blur(10px);
    max-width: 80%;
    text-align: center;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    padding: 20px;
    cursor: pointer;
    font-size: 30px;
    transition: all 0.3s ease;
    z-index: 10000;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

.lightbox-counter {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 16px;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

/* Mobile adjustments for lightbox */
@media (max-width: 768px) {
    .lightbox-content {
        max-width: 95%;
        max-height: 80vh;
    }
    
    .lightbox-close {
        top: 15px;
        right: 15px;
        font-size: 40px;
        width: 50px;
        height: 50px;
    }
    
    .lightbox-nav {
        width: 50px;
        height: 50px;
        font-size: 24px;
        padding: 15px;
    }
    
    .lightbox-prev {
        left: 15px;
    }
    
    .lightbox-next {
        right: 15px;
    }
    
    .lightbox-caption {
        bottom: 15px;
        font-size: 14px;
        padding: 10px 20px;
        max-width: 90%;
    }
    
    .lightbox-counter {
        top: 15px;
        font-size: 14px;
        padding: 8px 16px;
    }
}

@media (max-width: 576px) {
    .lightbox-content {
        max-width: 100%;
        max-height: 70vh;
    }
    
    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .lightbox-close {
        width: 40px;
        height: 40px;
        font-size: 30px;
    }
}

