/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #fa4515 0%, #fa4515 100%);
    min-height: 100vh;
    color: #333;
}

/* Login Screen */
.login-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.login-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #fa4515 0%, #fa4515 100%);
    z-index: 1;
}

.floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 120px;
    height: 120px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.shape-3 {
    width: 60px;
    height: 60px;
    top: 30%;
    right: 20%;
    animation-delay: 4s;
}

.shape-4 {
    width: 100px;
    height: 100px;
    bottom: 20%;
    left: 20%;
    animation-delay: 1s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.login-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 50px 40px;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.2);
    width: 100%;
    max-width: 420px;
    text-align: center;
    position: relative;
    z-index: 2;
    animation: slideUp 0.8s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-header .logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
    animation: logoGlow 2s ease-in-out infinite alternate;
}

@keyframes logoGlow {
    from { filter: drop-shadow(0 0 5px rgba(250, 69, 21, 0.3)); }
    to { filter: drop-shadow(0 0 15px rgba(250, 69, 21, 0.6)); }
}

.login-header .logo i {
    font-size: 2.5rem;
    color: #fa4515;
}

.logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.logo-fallback {
    font-size: 2.5rem;
    color: #fa4515;
}

.login-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin: 0;
    background: linear-gradient(135deg, #fa4515, #fa4515);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-header p {
    color: #666;
    margin-bottom: 10px;
    font-size: 1.1rem;
    font-weight: 500;
}

.login-subtitle {
    margin-bottom: 40px;
}

.typing-text {
    color: #888;
    font-size: 0.9rem;
    animation: typing 3s steps(40) infinite;
    white-space: nowrap;
    overflow: hidden;
    border-right: 2px solid #fa4515;
}

@keyframes typing {
    0% { width: 0; }
    50% { width: 100%; }
    100% { width: 0; }
}

.form-group {
    margin-bottom: 30px;
    text-align: left;
}

.input-container {
    position: relative;
    margin-bottom: 8px;
}


.input-container input {
    width: 100%;
    padding: 18px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.input-container input:focus {
    outline: none;
    border-color: #fa4515;
    background: white;
    box-shadow: 0 0 0 4px rgba(250, 69, 21, 0.1);
    transform: translateY(-2px);
}

.input-container input:focus + .input-border {
    opacity: 1;
    transform: scaleX(1);
}


.input-border {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #fa4515, #f7931e);
    border-radius: 1px;
    opacity: 0;
    transform: scaleX(0);
    transition: all 0.3s ease;
    z-index: 1;
}

.input-hint {
    color: #888;
    font-size: 0.85rem;
    margin-left: 5px;
    animation: fadeIn 0.5s ease-out;
    position: relative;
    z-index: 1;
    margin-top: 5px;
}

.login-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #fa4515 0%, #f7931e 100%);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(250, 69, 21, 0.3);
}

.login-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(250, 69, 21, 0.4);
}

.login-btn:active {
    transform: translateY(-1px);
}

.login-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.login-btn:hover::before {
    left: 100%;
}

.btn-text {
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.btn-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: all 0.3s ease;
}

.login-btn.loading .btn-text {
    opacity: 0;
}

.login-btn.loading .btn-loader {
    opacity: 1;
}

.loader {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.login-footer {
    margin-top: 30px;
}

.security-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
    animation: fadeIn 1s ease-out 0.5s both;
}

.security-badge i {
    color: #4CAF50;
    font-size: 1rem;
}

/* Main App */
.main-app {
    min-height: 100vh;
    background: #f8f9fa;
}

.hidden {
    display: none !important;
}

/* Header */
.app-header {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.header-left .logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 1.2rem;
    color: #fa4515;
}

.header-left .logo i {
    font-size: 1.5rem;
}

.header-left .logo-img {
    height: 30px;
    width: auto;
    object-fit: contain;
}

.header-left .logo-fallback {
    font-size: 1.5rem;
    color: #fa4515;
}

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

.search-container {
    position: relative;
    display: none;
}

.search-container i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
}

.search-container input {
    padding: 8px 12px 8px 35px;
    border: 1px solid #ddd;
    border-radius: 20px;
    width: 250px;
    font-size: 14px;
}

.notifications {
    position: relative;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.notifications:hover {
    background-color: #f0f0f0;
}

.notification-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: #fa4515;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Cart Icon */
.cart-icon {
    position: relative;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background-color 0.2s;
    margin-left: 10px;
}

.cart-icon:hover {
    background-color: #f0f0f0;
}

.cart-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: #fa4515;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logout-btn {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.logout-btn:hover {
    background-color: #f0f0f0;
}

/* Welcome Section */
.welcome-section {
    background: 
        linear-gradient(135deg, rgba(32, 32, 32, 0.8) 100%, rgba(247, 147, 30, 0.8) 100%),
        url('assets/hero-tiendas.jpg') center/cover no-repeat,
        linear-gradient(135deg, #fa4515 0%, #f7931e 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Temporary background pattern until hero-tiendas.jpg is uploaded */
.welcome-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    z-index: 1;
}

.welcome-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    animation: shimmer 3s infinite;
    z-index: 2;
}

.welcome-section h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out;
    position: relative;
    z-index: 3;
}

.welcome-section p {
    opacity: 0.95;
    font-size: 1.2rem;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out 0.3s both;
    position: relative;
    z-index: 3;
    max-width: 600px;
}


@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Main Content */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    padding-bottom: 100px; /* Space for bottom nav */
}

/* Adjust padding for mobile without bottom nav */
@media (max-width: 767px) {
    .main-content {
        padding: 15px;
        padding-bottom: 20px;
    }
    
    .quick-access {
        margin-bottom: 20px;
    }
    
    .welcome-section {
        padding: 40px 15px;
        min-height: 150px;
    }
    
    .welcome-section h2 {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }
    
    .welcome-section p {
        font-size: 1rem;
    }
}

/* Quick Access */
.quick-access {
    margin-bottom: 30px;
}

.quick-access h3 {
    margin-bottom: 20px;
    color: #333;
    font-size: 1.3rem;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}


.card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    text-align: center;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.quick-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    transform: scale(1);
    position: relative;
    overflow: hidden;
}

.quick-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(250, 69, 21, 0.1), transparent);
    transition: left 0.5s;
}

.quick-card:hover::before {
    left: 100%;
}

.quick-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #fa4515;
}

.quick-card i {
    font-size: 2rem;
    color: #fa4515;
    margin-bottom: 10px;
}

.quick-card h4 {
    font-size: 1rem;
    margin-bottom: 5px;
    color: #333;
}

.quick-card p {
    font-size: 0.8rem;
    color: #666;
}

/* Content Sections */
.content-section {
    margin-bottom: 30px;
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.5s ease-out;
}

.content-section.show {
    opacity: 1;
    transform: translateX(0);
}

.content-section.hidden {
    display: none;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.section-header h3 {
    color: #333;
    font-size: 1.3rem;
}

.filter-tabs {
    display: flex;
    gap: 10px;
}

.filter-tab {
    padding: 8px 16px;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.filter-tab:hover {
    border-color: #fa4515;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(250, 69, 21, 0.2);
}

.filter-tab.active {
    background: #fa4515;
    color: white;
    border-color: #fa4515;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(250, 69, 21, 0.3);
}

/* Folders Grid */
.folders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.folder-item {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease-out forwards;
}

.folder-item:nth-child(1) { animation-delay: 0.1s; }
.folder-item:nth-child(2) { animation-delay: 0.2s; }
.folder-item:nth-child(3) { animation-delay: 0.3s; }
.folder-item:nth-child(4) { animation-delay: 0.4s; }
.folder-item:nth-child(5) { animation-delay: 0.5s; }
.folder-item:nth-child(6) { animation-delay: 0.6s; }
.folder-item:nth-child(7) { animation-delay: 0.7s; }
.folder-item:nth-child(8) { animation-delay: 0.8s; }

.folder-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #fa4515;
}

.folder-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #fa4515, #f7931e);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    color: white;
    font-size: 1.5rem;
}

.folder-info h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: #333;
}

.folder-info p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.folder-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #888;
}

.folder-count {
    background: #f0f0f0;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 500;
}

/* YouTube-style Video Previews */
.inductions-container {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 15px;
    max-width: 100%;
}

.video-preview {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 100%;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease-out forwards;
}

.video-preview:nth-child(1) { animation-delay: 0.1s; }
.video-preview:nth-child(2) { animation-delay: 0.2s; }
.video-preview:nth-child(3) { animation-delay: 0.3s; }
.video-preview:nth-child(4) { animation-delay: 0.4s; }
.video-preview:nth-child(5) { animation-delay: 0.5s; }
.video-preview:nth-child(6) { animation-delay: 0.6s; }
.video-preview:nth-child(7) { animation-delay: 0.7s; }
.video-preview:nth-child(8) { animation-delay: 0.8s; }

.video-preview:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.video-thumbnail-container {
    position: relative;
    width: 100%;
    height: 180px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 8px;
}

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

.video-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.video-thumbnail-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #fa4515, #f7931e);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    opacity: 0.8;
}

.tip-thumbnail-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #fa4515, #f7931e);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    opacity: 0.8;
}

.video-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.video-preview:hover .video-play-button {
    background: #fa4515;
    transform: translate(-50%, -50%) scale(1.1);
}

.video-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.video-info {
    padding: 15px;
}

.video-title {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-description {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.video-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #888;
}

.video-meta span:last-child {
    color: #fa4515;
    font-weight: 500;
    transition: all 0.3s ease;
}

.video-meta span:last-child:hover {
    color: #e03d0f;
    transform: translateY(-1px);
}

/* 9:16 Vertical Videos for Tips - Gallery Style */
.tips-container {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 15px;
    max-width: 100%;
    padding: 0 10px;
}

.tip-video {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    aspect-ratio: 9/16;
    position: relative;
    height: 280px;
    width: 100%;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease-out forwards;
}

.tip-video:nth-child(1) { animation-delay: 0.1s; }
.tip-video:nth-child(2) { animation-delay: 0.2s; }
.tip-video:nth-child(3) { animation-delay: 0.3s; }
.tip-video:nth-child(4) { animation-delay: 0.4s; }
.tip-video:nth-child(5) { animation-delay: 0.5s; }
.tip-video:nth-child(6) { animation-delay: 0.6s; }
.tip-video:nth-child(7) { animation-delay: 0.7s; }
.tip-video:nth-child(8) { animation-delay: 0.8s; }

.tip-video:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.tip-thumbnail {
    position: relative;
    width: 100%;
    height: 100%;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 16px;
}

.tip-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
}

.tip-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    opacity: 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.tip-video:hover .tip-play-overlay {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
    background: rgba(250, 69, 21, 0.9);
}

.tip-duration {
    position: absolute;
    bottom: 60px;
    right: 12px;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 6px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.tip-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    color: white;
    padding: 25px 15px 15px;
    border-radius: 0 0 16px 16px;
}

.tip-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0 0 6px 0;
    line-height: 1.3;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tip-category {
    font-size: 0.8rem;
    color: #ffd700;
    margin: 0;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tip-thumbnail-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #fa4515, #f7931e);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    opacity: 0.9;
    border-radius: 16px;
}

.resource-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
    cursor: pointer;
}

.resource-item:hover {
    transform: translateY(-5px);
}

.resource-thumbnail {
    height: 120px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #666;
}

.resource-info {
    padding: 15px;
}

.resource-info h4 {
    font-size: 0.9rem;
    margin-bottom: 5px;
    color: #333;
}

.resource-info p {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 10px;
}

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

.btn-primary, .btn-secondary {
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: #fa4515;
    color: white;
}

.btn-secondary {
    background: #f0f0f0;
    color: #666;
}

.btn-primary:hover, .btn-secondary:hover {
    transform: translateY(-1px);
}

/* Inductions - Removed duplicate styles, using grid above */

.induction-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    gap: 20px;
    align-items: center;
}

.video-thumbnail {
    width: 80px;
    height: 80px;
    background: #f0f0f0;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #fa4515;
    cursor: pointer;
    transition: all 0.2s;
}

.video-thumbnail:hover {
    background: #fa4515;
    color: white;
}

.induction-info {
    flex: 1;
}

.induction-info h4 {
    margin-bottom: 5px;
    color: #333;
}

.induction-info p {
    color: #666;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.induction-meta {
    display: flex;
    gap: 15px;
    font-size: 0.8rem;
    color: #666;
}

.induction-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Tips - Removed duplicate styles, using gallery grid above */

.tip-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

.tip-header h4 {
    color: #333;
}

.tip-category {
    background: #fa4515;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
}

.tip-card p {
    color: #666;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

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

/* POP Products Catalog */
.pop-catalog-container {
    margin-bottom: 40px;
}

.pop-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.pop-product-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    position: relative;
}

.pop-product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    border-color: #fa4515;
}

.pop-product-image {
    width: 100%;
    height: 200px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 3rem;
    position: relative;
    overflow: hidden;
}

.pop-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.product-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: #f8f9fa;
    color: #666;
    font-size: 3rem;
}

.pop-product-info {
    padding: 20px;
}

.pop-product-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.pop-product-description {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 12px;
    line-height: 1.4;
}

.pop-product-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 0.8rem;
}

.product-category {
    background: #fa4515;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 500;
}

.product-dimensions {
    color: #666;
    font-weight: 500;
}

.pop-product-price {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fa4515;
}

.price-label {
    font-size: 0.8rem;
    color: #666;
}

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

.pop-product-btn {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.pop-product-btn.primary {
    background: linear-gradient(135deg, #fa4515, #f7931e);
    color: white;
}

.pop-product-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(250, 69, 21, 0.3);
}

.pop-product-btn.secondary {
    background: #f8f9fa;
    color: #666;
    border: 1px solid #e0e0e0;
}

.pop-product-btn.secondary:hover {
    background: #e9ecef;
    color: #333;
}

/* Purchase Modal */
.purchase-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.purchase-modal.hidden {
    display: none;
}

.purchase-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease-out;
}

.purchase-modal-content {
    background: white;
    border-radius: 20px;
    max-width: 700px;
    width: 100%;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    animation: slideInScale 0.4s ease-out;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
}

.purchase-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 25px;
    border-bottom: 1px solid #eee;
    background: linear-gradient(135deg, #fa4515, #f7931e);
    color: white;
}

.purchase-modal-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.purchase-modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.purchase-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.purchase-modal-body {
    padding: 30px;
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.product-preview {
    text-align: center;
    margin-bottom: 25px;
    flex-shrink: 0;
}

.product-preview img {
    max-width: 100%;
    max-height: 250px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.purchase-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    flex: 1;
}

.purchase-option {
    text-align: center;
    padding: 25px 20px;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 200px;
}

.purchase-option:hover {
    border-color: #fa4515;
    background: #fafafa;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(250, 69, 21, 0.1);
}

.purchase-option h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 1.1rem;
}

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

.price {
    font-size: 2rem;
    font-weight: 700;
    color: #fa4515;
    display: block;
    margin-bottom: 5px;
}

.price-label {
    font-size: 0.9rem;
    color: #666;
}

.divider {
    position: relative;
    text-align: center;
    margin: 10px 0;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e0e0e0;
}

.divider span {
    background: white;
    padding: 0 15px;
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
}

.code-input-group {
    display: flex;
    gap: 10px;
    margin: 15px 0;
}

.code-input-group input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.code-input-group input:focus {
    outline: none;
    border-color: #fa4515;
}

.code-status {
    margin-top: 10px;
    padding: 10px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    display: none;
}

.code-status.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.code-status.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

.code-status.loading {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
    display: block;
}

.purchase-btn {
    background: linear-gradient(135deg, #fa4515, #f7931e);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
    box-shadow: 0 4px 15px rgba(250, 69, 21, 0.2);
}

.purchase-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(250, 69, 21, 0.4);
    background: linear-gradient(135deg, #e03d0f, #e67e22);
}

.code-input-group button {
    background: #f8f9fa;
    color: #666;
    border: 1px solid #e0e0e0;
    padding: 12px 16px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 120px;
}

.code-input-group button:hover {
    background: #e9ecef;
    color: #333;
    border-color: #fa4515;
}

/* Product Detail Page */
.product-detail-page {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #f8f9fa;
    z-index: 1000;
    overflow-y: auto;
}

.product-detail-page.hidden {
    display: none;
}

.product-detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
}

.product-detail-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.back-btn {
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    color: #666;
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.back-btn:hover {
    background: #fa4515;
    color: white;
    border-color: #fa4515;
    transform: translateX(-3px);
}

.product-detail-header h2 {
    color: #333;
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
}

.product-detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.product-detail-image {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.product-detail-image img {
    max-width: 100%;
    max-height: 400px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
}

.product-detail-info {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.product-detail-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.product-detail-description h3,
.product-detail-specs h3 {
    color: #333;
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.product-detail-description p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 25px;
}

.specs-grid {
    display: grid;
    gap: 12px;
    margin-bottom: 25px;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.spec-label {
    font-weight: 600;
    color: #333;
}

.spec-value {
    color: #666;
}

.product-detail-price {
    background: white;
    border: 3px solid #fa4515;
    color: #333;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 30px;
    box-shadow: 0 8px 25px rgba(250, 69, 21, 0.2);
}

.price-section .price {
    font-size: 2.5rem;
    font-weight: 700;
    display: block;
    margin-bottom: 5px;
    color: #fa4515;
}

.price-section .price-label {
    font-size: 1rem;
    color: #666;
    opacity: 0.9;
}

.product-detail-actions {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.free-code-section {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    border: 2px solid #e0e0e0;
}

.free-code-section h4 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.free-code-section p {
    color: #666;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

/* Suggestions Original Section */
.suggestions-original {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 2px solid #f0f0f0;
}

.suggestions-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.suggestion-form {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.suggestion-form h4 {
    margin-bottom: 20px;
    color: #333;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #333;
    font-weight: 500;
}

.form-group select,
.form-group textarea,
.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
}

.form-group textarea {
    height: 100px;
    resize: vertical;
}

.suggestions-list {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.suggestions-list h4 {
    margin-bottom: 20px;
    color: #333;
}

.suggestion-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.suggestion-content h5 {
    color: #333;
    margin-bottom: 5px;
}

.suggestion-content p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.suggestion-date {
    font-size: 0.8rem;
    color: #999;
}

.suggestion-status {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

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

.suggestion-status.approved {
    background: #d4edda;
    color: #155724;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    display: flex;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

/* Hide bottom nav on mobile */
@media (max-width: 767px) {
    .bottom-nav {
        display: none;
    }
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 5px;
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    color: #666;
}

.nav-item.active {
    color: #fa4515;
}

.nav-item i {
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.nav-item span {
    font-size: 0.7rem;
    font-weight: 500;
}

/* Responsive Design */
@media (min-width: 768px) {
    .search-container {
        display: block;
    }
    
    .cards-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .resources-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .bottom-nav {
        display: none;
    }
    
    .main-content {
        padding-bottom: 20px;
    }
}

@media (max-width: 1000px) {
    .pop-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        max-width: 100%;
        margin: 0;
        padding: 0 15px;
    }
    
    .purchase-modal-content {
        max-width: 90vw;
        margin: 20px;
    }
    
    .purchase-options {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .purchase-option {
        min-height: 180px;
    }
}

@media (max-width: 767px) {
    .header-right {
        gap: 10px;
    }
    
    .user-menu span {
        display: none;
    }
    
    .welcome-section h2 {
        font-size: 1.5rem;
    }
    
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .induction-card {
        flex-direction: column;
        text-align: center;
    }
    
    .video-thumbnail {
        width: 100px;
        height: 100px;
    }
    
    /* Responsive adjustments for new containers */
    .inductions-container {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 12px;
    }
    
    .video-preview {
        max-width: 100%;
    }
    
    .tips-container {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 12px;
        padding: 0 5px;
    }
    
    .tip-video {
        height: 280px;
    }
    
    .video-thumbnail-container {
        height: 140px;
    }
    
    .folders-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }
    
    /* Quick Access 2x2 Grid for Mobile */
    .cards-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 0;
        margin: 0;
    }
    
    .quick-card {
        padding: 15px 10px;
        text-align: center;
        min-height: 100px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    .quick-card i {
        font-size: 1.5rem;
        margin-bottom: 8px;
        color: #fa4515;
    }
    
    .quick-card h4 {
        font-size: 0.8rem;
        margin-bottom: 4px;
        font-weight: 600;
        line-height: 1.2;
    }
    
    .quick-card p {
        font-size: 0.7rem;
        line-height: 1.2;
        color: #666;
    }
    
    /* POP Products Responsive for tablets */
    .pop-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        max-width: 100%;
        margin: 0;
    }
    
    .pop-product-actions {
        flex-direction: row;
        gap: 8px;
    }
    
    .pop-product-btn {
        flex: 1;
        font-size: 0.8rem;
        padding: 10px 12px;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 10px;
        padding-bottom: 15px;
    }
    
    .welcome-section {
        padding: 30px 10px;
        min-height: 120px;
    }
    
    .welcome-section h2 {
        font-size: 1.5rem;
    }
    
    .welcome-section p {
        font-size: 0.9rem;
    }
    
    .quick-card {
        padding: 12px 8px;
        min-height: 90px;
    }
    
    .quick-card i {
        font-size: 1.3rem;
        margin-bottom: 6px;
    }
    
    .quick-card h4 {
        font-size: 0.75rem;
        margin-bottom: 3px;
    }
    
    .quick-card p {
        font-size: 0.65rem;
    }
    
    .cards-grid {
        gap: 10px;
    }
    .inductions-container {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px;
    }
    
    .video-preview {
        max-width: 100%;
        margin: 0;
    }
    
    .tips-container {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px;
        padding: 0 5px;
    }
    
    .folders-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .video-thumbnail-container {
        height: 120px;
    }
    
    .tip-video {
        height: 250px;
    }
    
    /* POP Products Responsive */
    .pop-products-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        max-width: 100%;
        margin: 0;
        padding: 0 10px;
    }
    
    .pop-product-card {
        margin: 0;
    }
    
    .pop-product-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .pop-product-btn {
        width: 100%;
        padding: 12px 16px;
    }
    
    .pop-product-image {
        height: 160px;
    }
    
    .pop-product-details {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .product-category {
        font-size: 0.7rem;
        padding: 3px 6px;
    }
    
    .product-dimensions {
        font-size: 0.7rem;
    }
    
    .content-section {
        margin-bottom: 25px;
    }
    
    .section-header {
        margin-bottom: 15px;
    }
    
    .section-header h3 {
        font-size: 1.2rem;
    }
    
    .purchase-modal-content {
        margin: 10px;
        max-width: calc(100vw - 20px);
        max-height: 90vh;
    }
    
    .purchase-modal-body {
        padding: 20px;
    }
    
    .purchase-options {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .purchase-option {
        min-height: 150px;
        padding: 20px 15px;
    }
    
    .product-preview img {
        max-height: 200px;
    }
    
    .code-input-group {
        flex-direction: column;
        gap: 8px;
    }
    
    .code-input-group input {
        width: 100%;
    }
    
    .price {
        font-size: 1.8rem;
    }
    
    /* Product Detail Responsive */
    .product-detail-container {
        padding: 15px;
    }
    
    .product-detail-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .product-detail-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .product-detail-header h2 {
        font-size: 1.5rem;
    }
    
    .product-detail-image {
        padding: 15px;
    }
    
    .product-detail-image img {
        max-height: 250px;
    }
    
    .product-detail-info {
        padding: 20px;
    }
    
    .product-detail-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .product-detail-price {
        padding: 20px;
    }
    
    .price-section .price {
        font-size: 2rem;
    }
    
    .free-code-section {
        padding: 20px;
    }
}

/* Loading States */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: #666;
}

.loading i {
    margin-right: 10px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Animations */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

/* Cart Modal */
.cart-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-modal.hidden {
    display: none;
}

.cart-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.cart-container {
    position: relative;
    background: white;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideInUp 0.3s ease;
}

@keyframes slideInUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.cart-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.close-cart {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-cart:hover {
    background: #f0f0f0;
    color: #fa4515;
}

.cart-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px solid #e0e0e0;
}

.cart-item-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

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

.cart-item-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.cart-item-price {
    color: #fa4515;
    font-weight: 600;
    font-size: 1.1rem;
}

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

.quantity-btn {
    background: #fa4515;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: all 0.3s ease;
}

.quantity-btn:hover {
    background: #e03d12;
    transform: scale(1.1);
}

.quantity-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.quantity-display {
    font-weight: 600;
    color: #333;
    min-width: 30px;
    text-align: center;
}

.remove-item {
    background: #ff4757;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.remove-item:hover {
    background: #ff3742;
    transform: scale(1.1);
}

.cart-empty {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.cart-empty i {
    font-size: 3rem;
    color: #ddd;
    margin-bottom: 20px;
}

.cart-empty p {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #333;
}

.cart-empty span {
    color: #999;
}

.cart-footer {
    padding: 20px;
    border-top: 2px solid #f0f0f0;
    background: #f8f9fa;
    border-radius: 0 0 20px 20px;
}

.cart-total {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.2rem;
    color: #333;
}

.cart-total strong {
    color: #fa4515;
    font-size: 1.5rem;
}

.order-btn {
    width: 100%;
    background: #25d366;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.order-btn:hover {
    background: #20c55a;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
}

/* Coupon Styles */
.coupon-section {
    margin-bottom: 15px;
    padding: 15px;
    background: #fff;
    border-radius: 10px;
    border: 2px solid #f0f0f0;
}

.coupon-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.coupon-input-group input {
    flex: 1;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.coupon-input-group input:focus {
    outline: none;
    border-color: #D0F601;
}

.coupon-input-group button {
    padding: 12px 20px;
    background: #D0F601;
    color: #0F1014;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.coupon-input-group button:hover {
    background: #b8e600;
    transform: translateY(-1px);
}

.coupon-message {
    font-size: 14px;
    margin-bottom: 8px;
    padding: 8px 12px;
    border-radius: 6px;
    display: none;
}

.coupon-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.coupon-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

.coupon-discount {
    background: #e8f5e8;
    color: #155724;
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid #c3e6cb;
    font-weight: 600;
    text-align: center;
}

.coupon-discount span {
    color: #28a745;
}

.add-to-cart-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
}

.add-to-cart-btn:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(108, 117, 125, 0.3);
}

/* Verification Modal */
.verification-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.verification-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
}

.verification-container {
    position: relative;
    background: white;
    border-radius: 20px;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
    transform: scale(0.8);
    opacity: 0;
    transition: all 0.3s ease;
    overflow: hidden;
}

.verification-content {
    padding: 40px 30px;
    text-align: center;
}

.verification-icon {
    font-size: 4rem;
    color: #25d366;
    margin-bottom: 20px;
    animation: bounceIn 0.6s ease;
}

@keyframes bounceIn {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.verification-content h3 {
    color: #333;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.verification-content p {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 15px;
    line-height: 1.5;
}

.verification-details {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid #25d366;
    font-weight: 600;
    color: #333;
}

.verification-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    justify-content: center;
}

.verification-actions .btn-secondary {
    background: #6c757d;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.verification-actions .btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.verification-actions .btn-primary {
    background: #25d366;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.verification-actions .btn-primary:hover {
    background: #20c55a;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
}

/* Code Status Styles */
.code-status {
    margin-top: 15px;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    display: none;
    align-items: center;
    gap: 8px;
}

.code-status.error {
    background: #ffe6e6;
    color: #d63031;
    border: 2px solid #fab1a0;
}

.code-status.success {
    background: #d1f2eb;
    color: #00b894;
    border: 2px solid #55efc4;
}

.code-status.loading {
    background: #e3f2fd;
    color: #0984e3;
    border: 2px solid #74b9ff;
}

/* Responsive for verification modal */
@media (max-width: 480px) {
    .verification-container {
        width: 95%;
        margin: 20px;
    }
    
    .verification-content {
        padding: 30px 20px;
    }
    
    .verification-actions {
        flex-direction: column;
    }
    
    .verification-actions .btn-secondary,
    .verification-actions .btn-primary {
        width: 100%;
        justify-content: center;
    }
}
