/* =============================================
   Sunshine Smoke Shop - Main Stylesheet
   ============================================= */

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

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #0f0f1a 100%);
    min-height: 100vh;
    color: #fff;
    overflow-x: hidden;
}

/* Animated Background */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.bg-animation::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 20% 50%, rgba(255, 100, 50, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(255, 50, 100, 0.1) 0%, transparent 50%);
    animation: rotate 30s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Floating Particles */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.particle {
    position: absolute;
    background: rgba(255, 100, 50, 0.3);
    border-radius: 50%;
    animation: float linear infinite;
}

@keyframes float {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 0.8; }
    90% { opacity: 0.8; }
    100% { transform: translateY(-100vh) rotate(360deg); opacity: 0; }
}

/* Smoke Effect */
.smoke {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background: linear-gradient(to top, rgba(255,100,50,0.05), transparent);
    pointer-events: none;
    z-index: 1;
}

/* Top Bar */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.95);
    backdrop-filter: blur(10px);
    z-index: 1001;
    padding: 8px 20px;
    border-bottom: 1px solid rgba(255,99,71,0.3);
    display: flex;
    justify-content: flex-end;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 12px;
}

.top-bar a, .top-bar span {
    color: #ff6347;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.top-bar a:hover { color: white; }
.top-bar span { color: rgba(255,255,255,0.7); }

/* Navigation */
.navbar {
    position: fixed;
    top: 34px;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255,99,71,0.3);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    max-height: 45px;
    width: auto;
}

.hamburger {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: white;
    background: none;
    border: none;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.nav-links a {
    color: white;
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.nav-links a:hover, .nav-links a.active {
    color: #ff6347;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: rgba(255,99,71,0.2);
    padding: 0.3rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
}

.logout-btn {
    background: #ef4444;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    color: white;
    text-decoration: none;
}

.login-icon {
    background: #ff6347;
    padding: 0.3rem 1rem;
    border-radius: 25px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.85rem;
}

/* Profile Dropdown */
.profile-dropdown {
    position: relative;
    display: inline-block;
}

.profile-btn {
    background: rgba(255,99,71,0.2);
    padding: 0.3rem 1rem;
    border-radius: 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background: rgba(0,0,0,0.95);
    backdrop-filter: blur(10px);
    min-width: 200px;
    border-radius: 15px;
    border: 1px solid rgba(255,99,71,0.3);
    z-index: 1002;
    margin-top: 10px;
}

.profile-dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    color: white;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background: rgba(255,99,71,0.2);
    color: #ff6347;
}

/* Main Container */
.container {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    padding: 100px 20px 20px;
    min-height: calc(100vh - 200px);
}

/* Page Header */
.page-header {
    text-align: center;
    padding: 1rem 0;
    margin-bottom: 1rem;
}

.page-icon {
    font-size: 3rem;
    color: white;
    margin-bottom: 0.5rem;
}

.page-title {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #fff, #ff6347, #ff2e63);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.tagline {
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 1rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.section-title {
    font-size: 1.8rem;
    text-align: center;
    margin: 1.5rem 0;
    color: #ff6347;
}

/* Slideshow */
.slideshow-container {
    position: relative;
    max-width: 100%;
    margin: 20px 0 20px;
    overflow: hidden;
    height: 500px;
    border-radius: 20px;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    visibility: hidden;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    position: relative;
}

.slide-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.slide-content {
    position: absolute;
    bottom: 10%;
    left: 5%;
    right: auto;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
    padding: 1rem 1.5rem;
    border-radius: 15px;
    border-left: 4px solid #ff6347;
    max-width: 400px;
    width: 90%;
    z-index: 10;
}

.slide-content h2 {
    font-size: 1.5rem;
    margin-bottom: 0.3rem;
    color: #fff;
}

.slide-content p {
    margin-bottom: 0.8rem;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.9);
}

.slide-btn {
    display: inline-block;
    background: linear-gradient(135deg, #ff6347, #ff2e63);
    padding: 0.4rem 1.2rem;
    border-radius: 30px;
    color: white;
    text-decoration: none;
    font-size: 0.8rem;
}

.dots-container {
    text-align: center;
    padding: 0.5rem 0;
    position: absolute;
    bottom: 10px;
    width: 100%;
    z-index: 20;
}

.dot {
    cursor: pointer;
    height: 10px;
    width: 10px;
    margin: 0 4px;
    background-color: rgba(255,255,255,0.5);
    border-radius: 50%;
    display: inline-block;
}

.dot.active, .dot:hover {
    background-color: #ff6347;
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(0,0,0,0.5);
    color: white;
    font-size: 1.2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
}

.prev:hover, .next:hover {
    background: #ff6347;
}

.prev { left: 15px; }
.next { right: 15px; }

/* Filter Bar */
.filter-bar {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 60px;
    padding: 0.8rem 1rem;
    margin: 1rem 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
    border: 1px solid rgba(255,99,71,0.3);
}

.search-input {
    flex: 1;
    min-width: 200px;
    padding: 0.8rem 1.5rem;
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: 50px;
    color: white;
    font-size: 0.9rem;
    outline: none;
}

.category-btn {
    padding: 0.6rem 1.2rem;
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: 50px;
    color: white;
    cursor: pointer;
    font-size: 0.85rem;
    white-space: nowrap;
}

.category-btn:hover, .category-btn.active {
    background: #ff6347;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.product-card {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255,99,71,0.5);
}

.product-image {
    height: 200px;
    background: linear-gradient(135deg, #2a2a3e, #1a1a2e);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

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

.product-image .no-image {
    font-size: 4rem;
    opacity: 0.5;
}

.stock-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 0.2rem 0.7rem;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 600;
}

.stock-in-stock { background: #22c55e; color: white; }
.stock-low-stock { background: #f59e0b; color: white; }
.stock-out-of-stock { background: #ef4444; color: white; }

.product-info {
    padding: 1.2rem;
}

.product-name {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.product-brand {
    color: rgba(255,255,255,0.6);
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
}

.product-category {
    display: inline-block;
    background: rgba(255,99,71,0.2);
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.65rem;
    margin-bottom: 0.8rem;
}

.price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ff6347;
    margin: 0.5rem 0;
}

.original-price {
    text-decoration: line-through;
    color: #999;
    font-size: 0.8rem;
    margin-right: 0.5rem;
}

.discount-badge {
    background: #dc3545;
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 20px;
    font-size: 0.65rem;
    margin-left: 0.5rem;
}

.card-buttons {
    display: flex;
    gap: 0.8rem;
    margin-top: 1rem;
}

.detail-btn, .whatsapp-btn {
    flex: 1;
    padding: 0.6rem;
    border-radius: 50px;
    text-align: center;
    font-size: 0.8rem;
    text-decoration: none;
}

.detail-btn {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
}

.detail-btn:hover {
    background: #ff6347;
}

.whatsapp-btn {
    background: #25D366;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
}

.whatsapp-btn:hover {
    background: #128C7E;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.gallery-item {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-5px);
    border-color: rgba(255,99,71,0.5);
}

.gallery-image {
    height: 200px;
    background: linear-gradient(135deg, #2a2a3e, #1a1a2e);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

.gallery-info {
    padding: 0.8rem;
    text-align: center;
}

.gallery-info h3 {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
}

/* View More Button */
.view-more {
    text-align: center;
    margin: 2rem 0;
}

.view-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #ff6347, #ff2e63);
    padding: 12px 30px;
    border-radius: 50px;
    color: white;
    text-decoration: none;
    font-weight: 600;
}

.view-more-btn:hover {
    transform: scale(1.05);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

.pagination a, .pagination span {
    padding: 0.5rem 1rem;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    color: white;
    text-decoration: none;
    font-size: 0.85rem;
}

.pagination a:hover, .pagination .active {
    background: #ff6347;
}

.pagination .disabled {
    opacity: 0.5;
    pointer-events: none;
}

/* Product Detail */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    padding: 2rem;
    margin: 1rem 0;
}

.detail-image {
    background: linear-gradient(135deg, #2a2a3e, #1a1a2e);
    border-radius: 20px;
    min-height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

.detail-image .no-image {
    font-size: 5rem;
    opacity: 0.5;
}

.detail-info {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.detail-info h1 {
    font-size: 1.8rem;
    color: #fff;
}

.detail-brand, .detail-category {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
}

.detail-brand strong, .detail-category strong {
    color: #ff6347;
}

.detail-price {
    font-size: 2rem;
    color: #ff6347;
    font-weight: 700;
}

.original-price {
    text-decoration: line-through;
    color: #999;
    font-size: 1rem;
    margin-right: 0.8rem;
}

.stock-badge-detail {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.4rem 1.2rem;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
}

.stock-badge-detail.stock-in-stock { background: #22c55e; color: white; }
.stock-badge-detail.stock-low-stock { background: #f59e0b; color: #333; }
.stock-badge-detail.stock-out-of-stock { background: #ef4444; color: white; }

.detail-description {
    line-height: 1.8;
    margin: 0.8rem 0;
    color: rgba(255,255,255,0.85);
    background: rgba(0,0,0,0.2);
    padding: 1rem;
    border-radius: 15px;
}

.whatsapp-order-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #25D366;
    padding: 12px 28px;
    border-radius: 50px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    width: fit-content;
    margin-top: 0.5rem;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    color: #ff6347;
    text-decoration: none;
    padding: 8px 16px;
    background: rgba(255,99,71,0.15);
    border-radius: 50px;
}

/* Profile & Contact */
.profile-card, .contact-form, .contact-info, .messages-list {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 1.5rem;
    border: 1px solid rgba(255,99,71,0.3);
}

.profile-card {
    max-width: 600px;
    margin: 1rem auto;
}

.profile-card h2, .contact-form h2, .contact-info h2 {
    color: #ff6347;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.8rem;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 10px;
    color: white;
    font-size: 0.9rem;
}

.submit-btn {
    background: linear-gradient(135deg, #ff6347, #ff2e63);
    padding: 0.8rem;
    border: none;
    border-radius: 50px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
}

.contact-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 1.5rem 0;
}

.message-item {
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.message-subject {
    font-weight: 600;
    color: #22c55e;
    font-size: 0.9rem;
}

/* Admin Reply Highlight */
.admin-reply {
    background: #3a3a4a;
    border-left: 4px solid #25D366;
    padding: 0.8rem;
    margin-top: 0.8rem;
    border-radius: 10px;
    color: #e0e0e0;
}

.admin-reply strong {
    color: #25D366;
}

.delete-message-btn {
    color: #ef4444;
    font-size: 0.7rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.6rem;
    background: rgba(239,68,68,0.1);
    border-radius: 20px;
}

.delete-message-btn:hover {
    background: #ef4444;
    color: white;
}

.success-msg, .error-msg {
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    text-align: center;
}

.success-msg { background: #22c55e; color: white; }
.error-msg { background: #ef4444; color: white; }

/* Message Pagination */
.msg-pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.msg-pagination a, .msg-pagination span {
    padding: 0.4rem 0.8rem;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    color: white;
    text-decoration: none;
    font-size: 0.8rem;
}

.msg-pagination a:hover, .msg-pagination .active {
    background: #ff6347;
}

/* Footer */
.footer {
    text-align: center;
    padding: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 1.5rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.social-links a {
    color: white;
    font-size: 1.3rem;
}

.social-links a:hover {
    color: #ff6347;
}

/* =============================================
   Floating Phone Call Button (changed from WhatsApp)
   ============================================= */
.floating-wa {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #ff6347;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    animation: bounce 2s infinite;
    text-decoration: none;
    box-shadow: 0 5px 25px rgba(255,99,71,0.4);
    transition: background 0.3s ease, transform 0.3s ease;
}

.floating-wa:hover {
    background: #ff2e63;
    transform: scale(1.1);
    animation: none;
}

.floating-wa i {
    font-size: 1.8rem;
    color: white;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Loading Screen */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0a0a0a;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 1s ease;
}

.loading.hide {
    opacity: 0;
    pointer-events: none;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255,99,71,0.3);
    border-top-color: #ff6347;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Age Modal */
.age-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.age-modal.hide {
    display: none;
}

.age-card {
    background: linear-gradient(135deg, #1a1a2e, #0f0f1a);
    padding: 1.5rem;
    border-radius: 30px;
    text-align: center;
    max-width: 350px;
    border: 1px solid #ff6347;
}

.age-card h2 {
    color: #ff6347;
    font-size: 1.3rem;
}

/* Login Modal - Website Style */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 10001;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: linear-gradient(135deg, #1a1a2e, #0f0f1a);
    padding: 2rem;
    border-radius: 20px;
    max-width: 400px;
    width: 90%;
    border: 1px solid #ff6347;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.modal-content h2 {
    margin-bottom: 1.5rem;
    text-align: center;
    color: #ff6347;
    font-size: 1.5rem;
}

.modal-content input {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1rem;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 10px;
    color: white;
    font-size: 1rem;
}

.modal-content input:focus {
    outline: none;
    border-color: #ff6347;
    background: rgba(255,255,255,0.15);
}

.switch-modal {
    text-align: center;
    margin-top: 1rem;
    color: #ff6347;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.switch-modal:hover {
    text-decoration: underline;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 100000;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 40px;
    color: white;
    font-size: 40px;
    cursor: pointer;
}

.close-lightbox:hover {
    color: #ff6347;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .container { padding: 95px 20px 20px; }
    .slideshow-container { height: 400px; }
    .product-detail { grid-template-columns: 1fr; }
    .slide-content { max-width: 350px; }
    .slide-content h2 { font-size: 1.2rem; }
}

@media (max-width: 768px) {
    .top-bar {
        font-size: 10px;
        padding: 6px 15px;
        justify-content: center;
    }
    .navbar {
        top: 30px;
        padding: 10px 15px;
    }
    .hamburger {
        display: block;
    }
    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        padding-top: 1rem;
        gap: 0.8rem;
    }
    .nav-links.show {
        display: flex;
    }
    .nav-links a {
        width: 100%;
        justify-content: center;
    }
    .container {
        padding: 84px 15px 15px;
    }
    .slideshow-container {
        height: 300px;
        margin-top: 10px;
    }
    .slide-content {
        bottom: 8%;
        left: 5%;
        right: 5%;
        max-width: 90%;
        padding: 0.6rem 1rem;
    }
    .slide-content h2 {
        font-size: 0.9rem;
        margin-bottom: 0.2rem;
    }
    .slide-content p {
        font-size: 0.65rem;
        margin-bottom: 0.4rem;
    }
    .slide-btn {
        padding: 0.2rem 0.8rem;
        font-size: 0.65rem;
    }
    .prev, .next {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }
    .prev { left: 5px; }
    .next { right: 5px; }
    .logo img { max-height: 35px; }
    .page-title { font-size: 1.5rem; }
    .page-icon { font-size: 2rem; }
    .section-title { font-size: 1.3rem; }
    .product-detail { padding: 1rem; }
    .detail-info h1 { font-size: 1.3rem; }
    .detail-price { font-size: 1.5rem; }
    .detail-image { min-height: 220px; }
    .contact-section { grid-template-columns: 1fr; }
    .product-grid { grid-template-columns: 1fr; gap: 1rem; }
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }
    .gallery-image { height: 150px; }
    .filter-bar {
        flex-wrap: wrap;
        gap: 0.5rem;
        border-radius: 20px;
        padding: 0.8rem;
        justify-content: center;
    }
    .search-input {
        width: 100%;
        min-width: 100%;
        margin-bottom: 0.5rem;
    }
    .category-btn {
        flex: 1 1 calc(33.333% - 0.5rem);
        min-width: calc(33.333% - 0.5rem);
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 0.7rem;
        padding: 0.4rem 0.5rem;
    }
    .floating-wa {
        width: 45px;
        height: 45px;
        bottom: 15px;
        right: 15px;
    }
    .floating-wa i { font-size: 1.3rem; }
    .modal-content {
        padding: 1.5rem;
        max-width: 350px;
    }
    .modal-content h2 {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .container { padding: 84px 12px 12px; }
    .slideshow-container { height: 220px; }
    .slide-content { padding: 0.4rem 0.8rem; }
    .slide-content h2 { font-size: 0.75rem; }
    .slide-content p { display: none; }
    .product-image { height: 160px; }
    .price { font-size: 1.2rem; }
    .card-buttons { flex-direction: column; gap: 0.5rem; }
    .gallery-image { height: 120px; }
    .category-btn {
        flex: 1 1 calc(50% - 0.5rem);
        min-width: calc(50% - 0.5rem);
        font-size: 0.65rem;
    }
}