/* ========================================
   HAikou Gnord Trading Co., LTD - Website Styles
   Mobile-First Responsive Design
   ======================================== */

/* CSS Variables */
:root {
    --primary-color: #c19a6b;
    --primary-hover: #a67c4e;
    --secondary-color: #333;
    --text-color: #333;
    --text-light: #666;
    --bg-white: #fff;
    --bg-light: #f9f9f9;
    --bg-dark: #2c2c2c;
    --border-color: #ddd;
    --whatsapp-green: #25d366;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
    --container-max: 1200px;
    --border-radius: 5px;
}

/* Reset & Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-white);
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Utility Classes */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1rem;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ========================================
   HEADER & NAVIGATION
   ======================================== */

.site-header {
    background-color: #2c2c2c;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container,
.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0.25rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo img {
    height: 54px;
    width: auto;
    display: block;
}

/* Navigation */
.main-nav {
    display: none;
}

.main-nav.active {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #2c2c2c;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    padding: 1rem;
}

.main-nav ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.main-nav a {
    display: block;
    padding: 0.75rem 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.main-nav a:hover,
.main-nav a:focus {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #fff;
    transition: var(--transition);
}

/* Navigation Links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    transition: var(--transition);
    padding: 0.5rem 0;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: #fff;
}

.nav-links .nav-btn {
    padding: 0.5rem 1.25rem;
    border-radius: var(--border-radius);
}

.nav-links .nav-btn.login {
    background-color: transparent;
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.nav-links .nav-btn.login:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
    position: relative;
    height: 70vh;
    min-height: 500px;
    max-height: 800px;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

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

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

.slide.active {
    opacity: 1;
}

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

/* Slider Controls */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
}

.slider-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.slider-btn.prev {
    left: 1rem;
}

.slider-btn.next {
    right: 1rem;
}

.slider-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

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

.dot.active {
    background-color: white;
}

/* Hero Text */
.hero-text {
    position: absolute;
    bottom: 20%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: white;
    z-index: 5;
    width: 90%;
    max-width: 800px;
}

.hero-text h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-text p {
    font-size: 1.125rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* ========================================
   SECTIONS
   ======================================== */

.section {
    padding: 4rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--text-light);
    font-size: 1.125rem;
}

/* About Us Section */
.about-section {
    padding: 3rem 0 5rem;
}

.about-section .container {
    max-width: 980px;
}

.about-section h2 {
    margin-bottom: 1rem;
}

.about-section h3 {
    margin: 1.75rem 0 0.65rem;
}

.about-section p,
.about-section li {
    line-height: 1.75;
}

.about-section p {
    margin-bottom: 1rem;
}

.about-section ul {
    margin: 0.35rem 0 1.25rem;
}

.about-section li + li {
    margin-top: 0.65rem;
}

/* ========================================
   PRODUCTS SECTION
   ======================================== */

.products-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

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

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

.product-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.product-card h3 {
    padding: 1.5rem 1.5rem 0.5rem;
    font-size: 1.25rem;
    text-align: center;
}

.product-card p {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-light);
}

.product-card .btn {
    margin: 0 1.5rem 1.5rem;
    display: block;
    text-align: center;
}

/* ========================================
   BUTTONS
   ======================================== */

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

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

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

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

/* ========================================
   FOOTER
   ======================================== */

.site-footer {
    background-color: var(--bg-dark);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-info h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.footer-info address {
    font-style: normal;
    line-height: 1.4;
    font-size: 0.85rem;
}

.footer-info p {
    margin-bottom: 0.1rem;
}

.footer-links h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-link {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.footer-link:hover {
    color: var(--primary-color);
}

.social-links h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

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

.social-icons a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.social-icons a:hover {
    color: var(--primary-color);
}

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

.copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

/* ========================================
   WHATSAPP FLOAT BUTTON
   ======================================== */

.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: var(--whatsapp-green);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    transition: var(--transition);
    z-index: 1000;
}

.whatsapp-float:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

.whatsapp-text {
    font-weight: 500;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (min-width: 768px) {
    .mobile-menu-toggle {
        display: none;
    }
    
    .main-nav {
        display: block;
        position: static;
        box-shadow: none;
        padding: 0;
    }
    
    .main-nav ul {
        flex-direction: row;
        gap: 2rem;
    }
    
    .hero-text h1 {
        font-size: 3rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

@media (min-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .hero-text h1 {
        font-size: 3.5rem;
    }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.text-center {
    text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* ========================================
   PRODUCT DETAIL PAGE
   ======================================== */

.product-detail-section {
    padding: 2rem 0;
}

/* Breadcrumb Navigation */
.breadcrumb {
    margin-bottom: 1.5rem;
}

.breadcrumb ol {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.breadcrumb li {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

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

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

.breadcrumb li[aria-current="page"] {
    color: var(--text-color);
    font-weight: 500;
}

.breadcrumb-num {
    color: var(--primary-color);
    font-weight: 600;
    margin-right: 0.25rem;
}

.product-detail {
    padding: 2rem 0;
}

.product-detail-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.main-image {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

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

.thumbnail-list {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
}

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

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

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

.product-info h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.product-info h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

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

.product-info .description {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.product-specs {
    background-color: var(--bg-light);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
}

.product-specs h3 {
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.product-specs ul {
    list-style: disc;
    padding-left: 1.5rem;
}

.product-specs li {
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.product-description {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

.product-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

@media (min-width: 768px) {
    .product-detail-container {
        grid-template-columns: 1fr 1fr;
    }
}

/* ========================================
   LOGIN PAGE
   ======================================== */

.login-section {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
    background-color: var(--bg-light);
}

.login-container {
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 400px;
}

.login-container h1 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

.form-group {
    margin-bottom: 1rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.form-note {
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.contact-form .btn-submit {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

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

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    background-color: var(--bg-white);
}

.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    background-color: var(--bg-white);
    font-family: inherit;
    resize: vertical;
    box-sizing: border-box;
}

.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.error-message {
    color: #e74c3c;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: none;
}

.error-message.show {
    display: block;
}

/* ========================================
   DASHBOARD
   ======================================== */

.dashboard {
    padding: 2rem 0;
    min-height: calc(100vh - 200px);
}

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

.dashboard-header h1 {
    font-size: 1.75rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logout-btn {
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

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

.dashboard-nav {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.nav-tab {
    padding: 0.75rem 1.5rem;
    background-color: var(--bg-light);
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

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

.nav-tab.active {
    background-color: var(--primary-color);
    color: white;
}

.dashboard-content {
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.dashboard-section {
    display: none;
}

.dashboard-section.active {
    display: block;
}

/* ========================================
   TABLES
   ======================================== */

.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

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

th {
    background-color: var(--bg-light);
    font-weight: 600;
    color: var(--secondary-color);
}

tr:hover {
    background-color: var(--bg-light);
}

.table-actions {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    padding: 0.5rem;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.875rem;
}

.view-btn {
    background-color: #3498db;
    color: white;
}

.edit-btn {
    background-color: #f39c12;
    color: white;
}

.delete-btn {
    background-color: #e74c3c;
    color: white;
}

.action-btn:hover {
    opacity: 0.8;
}

/* ========================================
   MODALS
   ======================================== */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: var(--border-radius);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
}

.modal-close:hover {
    color: var(--secondary-color);
}

.modal h2 {
    margin-bottom: 1.5rem;
}

/* ========================================
   SCANNER
   ======================================== */

.scanner-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

#scanner-video {
    width: 100%;
    border-radius: var(--border-radius);
}

.scanner-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 100px;
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius);
}

/* ========================================
   FAQ SECTION
   ======================================== */

.faq-section {
    padding: 4rem 0;
    background-color: var(--bg-light);
}

.faq-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
    color: var(--secondary-color);
}

.faq-category {
    margin-bottom: 3rem;
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.faq-category h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary-color);
}

.faq-item {
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

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

.faq-question {
    width: 100%;
    padding: 1rem 0;
    background: none;
    border: none;
    text-align: left;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--secondary-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-icon {
    display: none;
}

.faq-answer {
    padding-bottom: 1rem;
}

.faq-answer p {
    color: var(--text-light);
    line-height: 1.8;
}

/* Commitment Section */
.commitment-section {
    background: linear-gradient(135deg, var(--bg-white) 0%, var(--bg-light) 100%);
}

.commitment-section h3 {
    color: var(--secondary-color);
    border-bottom-color: var(--secondary-color);
}

.commitment-section h4 {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin: 2rem 0 1rem;
}

.commitment-text {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1rem;
    font-style: italic;
}

.commitment-item {
    margin-bottom: 1.5rem;
    padding-left: 1rem;
    border-left: 3px solid var(--primary-color);
}

.commitment-item h5 {
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.commitment-item p {
    color: var(--text-light);
    line-height: 1.6;
}

/* ========================================
   FOOTER RIGHT SECTION
   ======================================== */

.footer-right {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
}

.footer-links-row {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
}

.social-links-row {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
}

.follow-us-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
}

/* ========================================
   PRODUCT DETAIL PAGE - IMAGE GALLERY (Vertical Layout)
   ======================================== */

.product-gallery-vertical {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
    width: 100%;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.thumbnails-sidebar {
    width: 64px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 560px;
    overflow: hidden;
}

.thumbnail-v {
    width: 64px;
    height: 104px;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    object-fit: cover;
    display: block;
    margin: 0;
    flex-shrink: 0;
}

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

.main-image-area {
    height: 560px;
    max-height: 560px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    background-color: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-image-area img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin: 0;
    display: block;
}

/* Hide scrollbar for thumbnails */
.thumbnails-sidebar::-webkit-scrollbar {
    width: 4px;
}

.thumbnails-sidebar::-webkit-scrollbar-track {
    background: var(--bg-light);
}

.thumbnails-sidebar::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 2px;
}

/* Hide scrollbar for thumbnails */
.thumbnails-container::-webkit-scrollbar {
    width: 4px;
}

.thumbnails-container::-webkit-scrollbar-track {
    background: var(--bg-light);
}

.thumbnails-container::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 2px;
}

/* ========================================
   WATERMARK PROTECTION
   ======================================== */

.watermark-protection {
    position: relative;
}

.watermark-canvas {
    display: none;
}

/* ========================================
   CELL POPUP
   ======================================== */

.cell-popup {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    max-width: 400px;
    word-wrap: break-word;
    white-space: normal;
    display: none;
    animation: fadeIn 0.3s ease;
    margin-top: 8px;
}

.cell-popup.show {
    display: block;
}

.cell-popup::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid var(--primary-color);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.product-name-cell {
    font-weight: 600;
    color: var(--secondary-color);
}

.note-cell {
    color: var(--text-light);
    font-style: italic;
}
