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

html,
body {
    font-family: "Noto Sans KR", sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    overflow-x: hidden;
    max-width: 100%;
}

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

/* Header */
header {
    background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    height: 62px;
}

.logo a {
    display: block;
}

.logo img {
    height: 100%;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: #007bff;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

/* Admin Pages General */
.admin-container {
    margin-top: 100px;
    padding: 20px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.admin-hero {
    margin-top: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.admin-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.admin-form {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

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

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

.admin-form-group input[type="text"],
.admin-form-group input[type="number"],
.admin-form-group input[type="file"],
.admin-form-group textarea,
.admin-form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

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

.admin-form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 30px;
}

.admin-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    transition: all 0.3s;
}

.admin-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.admin-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.admin-btn-secondary {
    background: #6c757d;
    color: white;
}

.admin-btn-secondary:hover {
    background: #5a6268;
}

/* Admin Login Page */
.admin-login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
}

.admin-login-form {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 400px;
}

.admin-login-form h1 {
    text-align: center;
    margin-bottom: 10px;
    color: #333;
    font-size: 2rem;
}

.admin-login-form p {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
}

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

.admin-login-form label {
    display: block;
    margin-bottom: 5px;
    color: #555;
    font-weight: 500;
}

.admin-login-form input[type="text"],
.admin-login-form input[type="password"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.admin-login-form input[type="text"]:focus,
.admin-login-form input[type="password"]:focus {
    outline: none;
    border-color: #667eea;
}

.admin-login-form button[type="submit"] {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.2s;
}

.admin-login-form button[type="submit"]:hover {
    transform: translateY(-2px);
}

.admin-login-form .back-link {
    display: block;
    text-align: center;
    margin-top: 20px;
    color: #667eea;
    text-decoration: none;
}

.admin-login-form .back-link:hover {
    text-decoration: underline;
}

.flash-message {
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 5px;
}

.flash-message.error {
    background-color: #fee;
    color: #c33;
    border: 1px solid #fcc;
}

.flash-message.success {
    background-color: #efe;
    color: #3c3;
    border: 1px solid #cfc;
}

/* Main Content */
main {
    margin-top: 90px;
}

/* Page Hero Sections */
.products-hero,
.contact-hero,
.about-hero {
    margin-top: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 0;
    text-align: center;
}

.products-hero h1,
.contact-hero h1,
.about-hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.products-hero p,
.contact-hero p,
.about-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Category Filter */
/* Desktop Category Filter */
.category-filter {
    padding: 40px 0;
    background: #f8f9fa;
}

.category-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.category-tab {
    padding: 12px 25px;
    border: none;
    background: white;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.category-tab.active,
.category-tab:hover {
    background: #007bff;
    color: white;
    transform: translateY(-2px);
}

/* Products Section */
.products-section {
    padding: 60px 0;
}

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

.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

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

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

.product-card .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.product-card .product-info {
    padding: 25px;
}

.product-card .product-info h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: #333;
}

.product-card .product-info p {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

.product-card .product-category {
    margin-bottom: 20px;
}

.product-card .category-tag {
    display: inline-block;
    background: #007bff;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
}

/* Flash Messages */
.flash-messages {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 1001;
    max-width: 400px;
}

.flash-message {
    background: white;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: slideIn 0.3s ease-out;
}

.flash-message.success {
    border-left: 4px solid #28a745;
}

.flash-message.error {
    border-left: 4px solid #dc3545;
}

.flash-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #666;
    margin-left: 10px;
}

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

/* Hero Slider */
.hero-slider {
    position: relative;
    width: 100vw;
    height: 100vh;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

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

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.slide.active {
    opacity: 1;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.slide-bg::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.slide-content {
    position: relative;
    z-index: 3;
}

.slide-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.slide-content h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.slide-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.logo-container img {
    max-height: 120px;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3));
}

.slider-nav {
    display: none;
}

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

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

.hero-slider .dot.active {
    width: 36px;
    height: 12px;
    border-radius: 20px;
    background: white;
}

/* Service Categories */
.service-categories {
    padding: 80px 0;
    background: #f8f9fa;
}

.category-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 30px;
    margin-top: 40px;
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE 10+ */
    padding-bottom: 24px; /* 그림자 공간 확보 */
}
.category-grid::-webkit-scrollbar {
    display: none;
}

.category-item {
    flex: 0 0 220px;
    text-align: center;
    padding: 30px 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.category-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.category-item h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #333;
    word-break: keep-all;
    overflow-wrap: break-word;
    white-space: normal;
}

.category-item p {
    color: #666;
    font-size: 0.9rem;
    word-break: keep-all;
    overflow-wrap: break-word;
    white-space: normal;
}

@media (min-width: 900px) {
    .category-grid {
        justify-content: center;
        overflow-x: visible;
    }
    .category-item {
        flex: 0 1 220px;
    }
}

/* Featured Products */
.featured-products {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #333;
}

.products-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.product-showcase-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

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

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

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

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

.product-info {
    padding: 25px;
}

.product-info h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: #333;
}

.product-info p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* Gallery Section */
.gallery-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.gallery-item {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.gallery-item:hover {
    transform: scale(1.02);
}

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

/* Custom Rental Features */
.custom-rental-features {
    padding: 80px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.feature-item {
    text-align: center;
    padding: 30px 20px;
}

.feature-icon {
    font-size: 3rem;
    color: #007bff;
    margin-bottom: 20px;
}

.feature-item h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #333;
}

.feature-item p {
    color: #666;
    line-height: 1.6;
}

/* Self Made Section */
.self-made-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.self-made-content {
    text-align: center;
    margin-top: 40px;
}

.self-made-content p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.self-made-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.self-made-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

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

.self-made-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.self-made-item h3 {
    padding: 20px 20px 10px;
    font-size: 1.3rem;
    color: #333;
}

.self-made-item p {
    padding: 0 20px 20px;
    color: #666;
    line-height: 1.6;
}

.design-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.design-item {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

/* Instagram Section */
.instagram-section {
    padding: 80px 0;
}

.instagram-content {
    text-align: center;
    margin-top: 40px;
}

.instagram-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.instagram-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

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

.instagram-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.instagram-item:hover img {
    transform: scale(1.05);
}

.instagram-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(240, 148, 51, 0.9) 0%, 
        rgba(230, 104, 60, 0.9) 25%, 
        rgba(220, 39, 67, 0.9) 50%, 
        rgba(204, 35, 102, 0.9) 75%, 
        rgba(188, 24, 136, 0.9) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.instagram-item:hover .instagram-overlay {
    opacity: 1;
}

.instagram-content {
    text-align: center;
    padding: 1rem;
    color: white;
}

.instagram-overlay i {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    display: block;
}

.instagram-caption {
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0.5rem 0;
    font-weight: 400;
}

.instagram-time {
    font-size: 0.8rem;
    opacity: 0.9;
    font-weight: 300;
}

.instagram-link {
    text-align: center;
    margin-top: 30px;
}

.instagram-link a {
    display: inline-block;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 500;
    transition: transform 0.3s;
}

.instagram-link a:hover {
    transform: translateY(-2px);
    color: white;
}

/* Indoor Outdoor Section */
.indoor-outdoor-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.location-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.location-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.location-card:hover {
    transform: translateY(-5px);
}

.location-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #333;
}

.location-card p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.location-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
}

/* Contact CTA */
.contact-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.phone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: 500;
}

.phone i {
    font-size: 1.5rem;
}

.account,
.hours {
    text-align: center;
}

.account h4,
.hours h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.account p,
.hours p {
    margin-bottom: 5px;
    opacity: 0.9;
}

.contact-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background: #007bff;
    color: white;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 500;
    transition: background 0.3s, transform 0.3s;
}

.btn-primary:hover {
    background: #0056b3;
    transform: translateY(-2px);
    color: white;
}

.btn-secondary {
    display: inline-block;
    background: #6c757d;
    color: white;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 500;
    transition: background 0.3s, transform 0.3s;
}

.btn-secondary:hover {
    background: #545b62;
    transform: translateY(-2px);
    color: white;
}

.btn-large {
    padding: 15px 30px;
    font-size: 1.1rem;
}

/* Product Detail Styles */
.product-detail-hero {
    margin-top: 80px;
    padding: 30px 0;
    background: #f8f9fa;
}

.breadcrumb {
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: #007bff;
    text-decoration: none;
}

.breadcrumb span {
    color: #666;
}

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

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

.product-images {
    position: sticky;
    top: 100px;
}

.main-image {
    margin-bottom: 20px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

.image-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.gallery-thumb {
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s;
}

.gallery-thumb:hover {
    transform: scale(1.05);
}

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

.product-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #333;
}

.category-tag {
    display: inline-block;
    background: #007bff;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.product-description {
    margin-bottom: 30px;
    line-height: 1.8;
    color: #666;
}

.product-specs,
.product-features {
    margin-bottom: 30px;
}

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

.product-specs ul,
.product-features ul {
    list-style: none;
    padding-left: 0;
}

.product-specs li,
.product-features li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    color: #666;
}

.product-features li {
    position: relative;
    padding-left: 20px;
}

.product-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
}

.rental-info {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 30px;
}

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

.rental-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.rental-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #666;
}

.rental-item i {
    color: #007bff;
    width: 20px;
}

.contact-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Product Details Tabs */
.product-details-tabs {
    padding: 60px 0;
    background: #f8f9fa;
}

.tabs-container {
    max-width: 800px;
    margin: 0 auto;
}

.tab-buttons {
    display: flex;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.tab-btn {
    flex: 1;
    background: none;
    border: none;
    padding: 15px 20px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    color: #666;
    transition: all 0.3s;
}

.tab-btn.active {
    background: #007bff;
    color: white;
}

.tab-btn:hover:not(.active) {
    background: #f8f9fa;
}

.tab-content {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

.tab-panel h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #333;
}

.description-content {
    line-height: 1.8;
    color: #666;
}

.description-content img {
    display: block;
    margin: 20px auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 100%;
    height: auto;
}

/* 원본 크기 유지하되 화면을 넘지 않도록 */
.description-content figure.image img {
    width: auto !important;
    height: auto !important;
    max-width: 100%;
    max-height: none;
}

/* CKEditor 이미지 스타일 */
.description-content figure.image {
    display: table;
    margin: 20px auto;
}

.description-content figure.image img {
    margin: 0;
}

.description-content figure.image.image_resized {
    max-width: 100%;
    display: table;
}

.description-content figure.image.image-style-side {
    float: right;
    margin-left: 20px;
    max-width: 50%;
}

.description-content figure.image.image-style-align-left {
    float: left;
    margin-right: 20px;
}

.description-content figure.image.image-style-align-center {
    margin-left: auto;
    margin-right: auto;
}

.description-content figure.image.image-style-align-right {
    float: right;
    margin-left: 20px;
}

/* 드래그 핸들이 있는 이미지 */
.description-content .image-inline {
    max-width: 100%;
}

.description-content p {
    margin-bottom: 16px;
}

.description-content h1,
.description-content h2,
.description-content h3 {
    margin-top: 24px;
    margin-bottom: 16px;
    color: #333;
}

.description-content ul,
.description-content ol {
    margin: 16px 0;
    padding-left: 24px;
}

.description-content li {
    margin-bottom: 8px;
}

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

.specs-table th,
.specs-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.specs-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.rental-guide {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.rental-step {
    display: flex;
    align-items: center;
    gap: 20px;
}

.step-number {
    width: 40px;
    height: 40px;
    background: #007bff;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.step-content h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: #333;
}

.step-content p {
    color: #666;
    line-height: 1.6;
}

.reviews-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.review-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
}

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

.reviewer-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.reviewer-name {
    font-weight: 600;
    color: #333;
}

.review-date {
    font-size: 0.9rem;
    color: #666;
}

.review-rating {
    color: #ffc107;
}

.review-content {
    color: #666;
    line-height: 1.6;
}

.no-reviews {
    text-align: center;
    color: #666;
    font-style: italic;
}

/* Related Products */
.related-products {
    padding: 60px 0;
}

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

.related-product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.related-product-card:hover {
    transform: translateY(-5px);
}

.related-product-card .product-image {
    height: 200px;
}

.related-product-card .product-info {
    padding: 20px;
}

.related-product-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #333;
}

.related-product-card p {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

/* Footer */
footer {
    background: #333;
    color: white;
    padding: 40px 0 20px;
}

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

.footer-section h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #fff;
}

.footer-section p,
.footer-section a {
    color: #ccc;
    text-decoration: none;
    line-height: 1.6;
    margin-bottom: 8px;
    display: block;
}

.footer-section a:hover {
    color: #007bff;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    color: #ccc;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-slider {
        height: 80vh;
        width: 100%;
    }

    .slide-content h1 {
        font-size: 2rem;
    }

    .slide-content h2 {
        font-size: 1.8rem;
    }

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

    .product-images {
        position: static;
    }

    .contact-actions {
        flex-direction: column;
    }

    .tab-buttons {
        flex-direction: column;
    }

    .slider-nav {
        padding: 0 15px;
    }

    .prev-btn,
    .next-btn {
        padding: 10px;
        font-size: 18px;
    }

    .products-hero h1,
    .contact-hero h1,
    .about-hero h1 {
        font-size: 2rem;
    }

    .contact-cta h2 {
        font-size: 1.8rem;
    }

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

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .section-title {
        font-size: 2rem;
    }

    .product-title {
        font-size: 2rem;
    }

    .contact-cta h2 {
        font-size: 1.5rem;
    }

    .related-products-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }

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

    .location-options {
        grid-template-columns: 1fr;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .category-tabs {
        flex-direction: column;
        align-items: center;
    }
}

/* About Page Styles */
.about-hero {
    margin-top: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.about-hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.about-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.company-story {
    padding: 80px 0;
}

.story-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.story-text h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #333;
}

.story-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #666;
    margin-bottom: 20px;
}

.story-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.vision-mission {
    padding: 80px 0;
    background: #f8f9fa;
}

.vm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.vm-card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.vm-card:hover {
    transform: translateY(-5px);
}

.vm-icon {
    font-size: 3rem;
    color: #007bff;
    margin-bottom: 20px;
}

.vm-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #333;
}

.vm-card p {
    color: #666;
    line-height: 1.6;
}

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

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-icon {
    font-size: 2.5rem;
    color: #007bff;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #333;
}

.service-card p {
    color: #666;
    line-height: 1.6;
}

.why-choose-us {
    padding: 80px 0;
    background: #f8f9fa;
}

.reasons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.reason-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.reason-card:hover {
    transform: translateY(-5px);
}

.reason-number {
    font-size: 2rem;
    font-weight: bold;
    color: #007bff;
    margin-bottom: 15px;
}

.reason-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #333;
}

.reason-card p {
    color: #666;
    line-height: 1.6;
}

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

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.team-member {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.team-member:hover {
    transform: translateY(-5px);
}

.member-image {
    height: 250px;
    overflow: hidden;
}

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

.member-info {
    padding: 25px;
}

.member-info h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
    color: #333;
}

.position {
    color: #007bff;
    font-weight: 500;
    margin-bottom: 15px;
}

.description {
    color: #666;
    line-height: 1.6;
}

.statistics {
    padding: 80px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

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

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Contact Page Styles */
.contact-hero {
    margin-top: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.contact-hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.contact-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.contact-info-section {
    padding: 80px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.contact-card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.contact-card:hover {
    transform: translateY(-5px);
}

.contact-icon {
    font-size: 2.5rem;
    color: #007bff;
    margin-bottom: 20px;
}

.contact-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #333;
}

.contact-number {
    font-size: 1.2rem;
    font-weight: bold;
    color: #007bff;
    margin-bottom: 10px;
}

.contact-card p {
    color: #666;
    margin-bottom: 5px;
}

.company-info {
    padding: 80px 0;
    background: #f8f9fa;
}

.company-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.company-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

.info-item {
    margin-bottom: 10px;
    color: #666;
}

.business-hours {
    padding: 80px 0;
}

.hours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.hours-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.hours-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #333;
}

.time {
    font-size: 1.2rem;
    font-weight: bold;
    color: #007bff;
    margin-bottom: 10px;
}

.hours-card p {
    color: #666;
}

.contact-form-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

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

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

.form-group textarea {
    resize: vertical;
}

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

.map-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

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

.map-info p {
    margin-bottom: 10px;
    color: #666;
}

.map-buttons {
    margin-top: 20px;
}

.map-buttons a {
    margin-right: 10px;
}

.map-placeholder {
    background: #f8f9fa;
    border: 2px dashed #ddd;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: #666;
}

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

.faq-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.faq-question {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background 0.3s;
}

.faq-question:hover {
    background: #f8f9fa;
}

.faq-question h3 {
    font-size: 1.1rem;
    color: #333;
    margin: 0;
}

.faq-question i {
    color: #007bff;
    transition: transform 0.3s;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 20px 20px;
    color: #666;
    line-height: 1.6;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

/* Safety First Section */
.safety-first {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.safety-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.safety-text h2 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 2rem;
    font-weight: 700;
}

.safety-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 1.5rem;
}

.safety-badges {
    display: flex;
    gap: 20px;
    margin-top: 2rem;
}

.safety-badges .badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    padding: 15px 20px;
    border-radius: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    font-weight: 600;
    color: #2c3e50;
}

.safety-badges .badge i {
    font-size: 1.2rem;
    color: #e74c3c;
}

.safety-image {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.safety-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

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

/* Animation Classes for About Page */
.animate-fade-in {
    opacity: 0;
    transition: opacity 0.8s ease-out;
}

.animate-fade-in.animate {
    opacity: 1;
}

.animate-slide-up {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.animate-slide-up.animate {
    opacity: 1;
    transform: translateY(0);
}

.animate-count-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.animate-count-up.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Services Section Enhanced */
.services-section {
    padding: 100px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #e74c3c, #f39c12);
    transition: left 0.3s ease;
}

.service-card:hover::before {
    left: 0;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.service-icon {
    font-size: 3rem;
    color: #e74c3c;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #2c3e50;
    font-weight: 700;
}

.service-card p {
    color: #666;
    line-height: 1.6;
    font-size: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .safety-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .safety-text h2 {
        font-size: 2rem;
    }
    
    .safety-text p {
        font-size: 1rem;
    }
    
    .safety-badges {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .safety-badges .badge {
        padding: 12px 16px;
        font-size: 0.9rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .service-card {
        padding: 30px 25px;
    }
    
    .service-icon {
        font-size: 2.5rem;
    }

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

    .map-container {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 20px;
    }

    .vm-grid,
    .services-grid,
    .reasons-grid,
    .team-grid,
    .stats-grid,
    .contact-grid,
    .company-grid,
    .hours-grid {
        grid-template-columns: 1fr;
    }

    .self-made-grid,
    .instagram-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 480px) {
    .safety-first {
        padding: 60px 0;
    }
    
    .safety-text h2 {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }
    
    .safety-badges {
        flex-direction: column;
        align-items: center;
    }
    
    .safety-badges .badge {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }
}

/* Admin Page Styles */
.admin-hero {
    margin-top: 80px;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.admin-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.admin-hero p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.admin-dashboard {
    padding: 40px 0;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.admin-stat-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.admin-stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #007bff;
    margin-bottom: 10px;
}

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

.admin-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.admin-action-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.admin-action-card:hover {
    transform: translateY(-3px);
}

.admin-action-card h3 {
    margin-bottom: 15px;
    color: #333;
}

.admin-action-card p {
    color: #666;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.admin-table {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

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

.admin-table th,
.admin-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.admin-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.admin-table tr:hover {
    background: #f8f9fa;
}

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

.admin-btn {
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-block;
    transition: background 0.3s;
}

.admin-btn-primary {
    background: #007bff;
    color: white;
}

.admin-btn-primary:hover {
    background: #0056b3;
}

.admin-btn-secondary {
    background: #6c757d;
    color: white;
}

.admin-btn-secondary:hover {
    background: #545b62;
}

.admin-btn-danger {
    background: #dc3545;
    color: white;
}

.admin-btn-danger:hover {
    background: #c82333;
}

.admin-form {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.admin-form-group {
    margin-bottom: 1.5rem;
}

.admin-form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.admin-form-group input[type="text"],
.admin-form-group input[type="number"],
.admin-form-group input[type="email"],
.admin-form-group input[type="password"],
.admin-form-group select,
.admin-form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.admin-form-group input[type="file"] {
    padding: 0.5rem 0;
}

.admin-form-group input[type="checkbox"] {
    margin-right: 0.5rem;
}

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

.admin-form-group input:focus,
.admin-form-group select:focus,
.admin-form-group textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.admin-form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.admin-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-block;
    text-align: center;
}

.admin-btn-primary {
    background: #007bff;
    color: white;
}

.admin-btn-primary:hover {
    background: #0056b3;
    transform: translateY(-1px);
}

.admin-btn-secondary {
    background: #6c757d;
    color: white;
}

.admin-btn-secondary:hover {
    background: #545b62;
    transform: translateY(-1px);
}

.admin-btn-danger {
    background: #dc3545;
    color: white;
}

.admin-btn-danger:hover {
    background: #c82333;
    transform: translateY(-1px);
}

.admin-btn-success {
    background: #28a745;
    color: white;
}

.admin-btn-success:hover {
    background: #218838;
    transform: translateY(-1px);
}

/* Admin Table Styles */
.admin-table {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.admin-table h3 {
    margin-bottom: 1.5rem;
    color: #333;
}

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

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

.admin-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.admin-table tr:hover {
    background: #f8f9fa;
}

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

/* Responsive Admin */
@media (max-width: 768px) {
    .admin-form {
        padding: 1rem;
    }

    .admin-form-actions {
        flex-direction: column;
    }

    .admin-table {
        padding: 1rem;
        overflow-x: auto;
    }

    .admin-table table {
        min-width: 600px;
    }

    .admin-table .actions {
        flex-direction: column;
        gap: 0.25rem;
    }
}

/* Blog Section */
.blog-section {
    padding: 4rem 0;
    background: #f8f9fa;
}

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

.blog-item {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.blog-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.blog-image {
    height: 200px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
    background: #f8f9fa;
}

.blog-image img[src*="placeholder"] {
    object-fit: contain;
    padding: 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.blog-item:hover .blog-image img {
    transform: scale(1.05);
}

.blog-content {
    padding: 1.5rem;
}

.blog-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #333;
    line-height: 1.4;
}

.blog-content p {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.blog-date {
    font-size: 0.9rem;
    color: #999;
    margin-bottom: 1rem;
}

.blog-link {
    display: inline-block;
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.blog-link:hover {
    color: #0056b3;
    text-decoration: underline;
}

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

.blog-more .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Responsive Blog */
@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .blog-content {
        padding: 1rem;
    }

    .blog-content h3 {
        font-size: 1.1rem;
    }
}

/* About Page Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

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

@keyframes countUp {
    from {
        transform: scale(0.5);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.animate-fade-in {
    animation: fadeIn 1s ease-out forwards;
}

.animate-fade-in-delay {
    animation: fadeIn 1s ease-out 0.3s forwards;
    opacity: 0;
}

.animate-fade-in-delay-2 {
    animation: fadeIn 1s ease-out 0.6s forwards;
    opacity: 0;
}

.animate-slide-in-left {
    animation: slideInLeft 1s ease-out forwards;
}

.animate-slide-in-left-delay {
    animation: slideInLeft 1s ease-out 0.3s forwards;
    opacity: 0;
}

.animate-slide-in-left-delay-2 {
    animation: slideInLeft 1s ease-out 0.6s forwards;
    opacity: 0;
}

.animate-slide-in-left-delay-3 {
    animation: slideInLeft 1s ease-out 0.9s forwards;
    opacity: 0;
}

.animate-slide-in-right {
    animation: slideInRight 1s ease-out forwards;
}

.animate-slide-up {
    animation: slideUp 1s ease-out forwards;
    opacity: 0;
}

.animate-count-up {
    animation: countUp 0.8s ease-out forwards;
}

/* Hero Background Styles */
.hero-with-bg {
    position: relative;
    min-height: 35vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

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

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.3s ease;
    will-change: transform;
    backface-visibility: hidden;
}

/* About/Products/Contact 페이지의 hero 이미지는 꽉 채우기 */
.about-hero .hero-bg-image,
.products-hero .hero-bg-image,
.contact-hero .hero-bg-image {
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 2;
}

/* About/Products/Contact 페이지의 hero 오버레이는 투명 */
.about-hero .hero-overlay,
.products-hero .hero-overlay,
.contact-hero .hero-overlay {
    background: transparent;
}

.hero-with-bg .container {
    position: relative;
    z-index: 3;
    color: white;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero-with-bg .section-title {
    color: white;
    font-size: 3rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    margin-bottom: 1.5rem;
}

.hero-with-bg .hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

/* About Page Specific Styles */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
}

.hero-stat {
    text-align: center;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.hero-stat .stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    color: #e74c3c;
    margin-bottom: 0.5rem;
}

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

.safety-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-top: 2rem;
}

.safety-badges {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #e74c3c;
    color: white;
    border-radius: 20px;
    font-size: 0.9rem;
}

.reviews-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.review-card {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.review-card:hover {
    transform: translateY(-5px);
}

.review-rating {
    color: #ffc107;
    margin-bottom: 1rem;
}

.review-text {
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: #555;
}

.reviewer-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.reviewer-name {
    font-weight: bold;
    color: #333;
}

.review-date {
    color: #999;
    font-size: 0.9rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: #fff;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

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

.feature-card h3 {
    margin-bottom: 1rem;
    color: #333;
    font-size: 1.3rem;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.feature-badge {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    display: inline-block;
}

/* Statistics Enhanced */
.stats-grid .stat-item {
    background: #fff;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.stats-grid .stat-item:hover {
    transform: translateY(-5px);
}

.stats-grid .stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: #e74c3c;
    display: block;
    margin-bottom: 0.5rem;
}

.stats-grid .stat-label {
    color: #666;
    font-size: 1rem;
}

/* Certificate Section Styles */
.certificates {
    background: #f8f9fa;
    padding: 4rem 0;
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.cert-card {
    background: #fff;
    padding: 2.5rem 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    border: 2px solid transparent;
}

.cert-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-color: #e74c3c;
}

.cert-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

.cert-card h3 {
    margin-bottom: 1rem;
    color: #333;
    font-size: 1.4rem;
    font-weight: 700;
}

.cert-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.cert-badge {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    padding: 0.7rem 1.5rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: bold;
    display: inline-block;
    box-shadow: 0 3px 10px rgba(39, 174, 96, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsive */
@media (max-width: 768px) {
    .safety-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .reviews-showcase {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .cert-grid {
        grid-template-columns: 1fr;
    }

    .hero-with-bg .section-title {
        font-size: 2rem;
    }

    .hero-with-bg .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-with-bg {
        min-height: 30vh;
    }

    .hero-bg-image {
        object-position: center 30%;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1rem;
        margin-top: 1.5rem;
    }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575px) {
    .hero-with-bg {
        min-height: 25vh;
    }

    .hero-with-bg .section-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .hero-with-bg .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .hero-bg-image {
        object-position: center 40%;
    }

    .hero-stat {
        padding: 0.8rem 1.5rem;
    }

    .hero-stat .stat-number {
        font-size: 2rem;
    }

    .hero-stat .stat-label {
        font-size: 0.8rem;
    }
}

/* Feature Image Section - bouncebrothers style */
.feature-image-section {
    padding: 4rem 0;
    background: #f8f9fa;
}

.feature-image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-image-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    background: #fff;
    min-height: 350px;
}

.feature-image-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.feature-image-wrapper {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.feature-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.feature-image-item:hover .feature-image-wrapper img {
    transform: scale(1.05);
}

.feature-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(231, 76, 60, 0.8), rgba(192, 57, 43, 0.8));
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-image-item:hover .feature-image-overlay {
    opacity: 1;
}

.feature-image-overlay .btn {
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    padding: 0.8rem 2rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    transform: translateY(20px);
}

.feature-image-item:hover .feature-image-overlay .btn {
    transform: translateY(0);
    background: white;
}

.feature-image-content {
    padding: 2rem;
    text-align: center;
}

.feature-image-content h3 {
    font-size: 1.4rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.feature-image-content p {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Responsive adjustments for feature images */
@media (max-width: 768px) {
    .feature-image-section {
        padding: 3rem 0;
    }
    
    .feature-image-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        margin-top: 2rem;
    }
    
    .feature-image-item {
        min-height: 300px;
    }
    
    .feature-image-wrapper {
        height: 200px;
    }
    
    .feature-image-content {
        padding: 1.5rem;
    }
    
    .feature-image-content h3 {
        font-size: 1.2rem;
    }
    
    .feature-image-content p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .feature-image-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature-image-item {
        min-height: 320px;
    }
    
    .feature-image-wrapper {
        height: 220px;
    }
}

/* Home Product Sliders Styles */
.home-product-sliders {
    padding: 4rem 0;
    background: #f8f9fa;
}

.products-slider-section {
    margin-bottom: 4rem;
}

.products-slider-section:last-child {
    margin-bottom: 0;
}

.slider-container {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
}

.products-slider {
    overflow: hidden;
    border-radius: 15px;
}

.products-track {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    transition: transform 0.5s ease;
    margin-top: 2rem;
}

.product-slide {
    min-width: 0; /* Prevent grid items from growing beyond container */
}

/* Fixed height for consistent product cards in sliders */
.products-slider .product-card {
    height: 450px; /* Fixed height for all slider cards - increased for price */
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

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

.products-slider .product-card .product-image {
    height: 200px; /* Fixed image height */
    overflow: hidden;
    flex-shrink: 0;
}

.products-slider .product-card .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.products-slider .product-card .no-image {
    width: 100%;
    height: 100%;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 0.9rem;
}

.products-slider .product-card .product-info {
    padding: 1.25rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.products-slider .product-card .product-info h3 {
    font-size: 1.1rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    /* Limit title to 2 lines */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.products-slider .product-card .product-info .category {
    font-size: 0.85rem;
    color: #e74c3c;
    font-weight: 500;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.products-slider .product-card .product-info .price {
    font-size: 1.1rem;
    color: #2c3e50;
    font-weight: bold;
    margin-bottom: 0.5rem;
    padding: 0.3rem 0.6rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    display: inline-block;
    border-left: 3px solid #e74c3c;
}

.products-slider .product-card .product-info .description {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: 1rem;
    /* Fixed height for description with 2 lines max */
    height: 2.7rem; /* 1.5 line-height × 0.9rem × 2 lines */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.products-slider .product-card .product-actions {
    margin-top: auto;
    padding-top: 0.5rem;
}

.products-slider .product-card .btn-view {
    display: inline-block;
    background: #e74c3c;
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: center;
}

.products-slider .product-card .btn-view:hover {
    background: #c0392b;
    transform: translateY(-2px);
}

/* Slider Dots */
.slider-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.slider-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dots .dot.active,
.slider-dots .dot:hover {
    background: #e74c3c;
    transform: scale(1.2);
}

/* Responsive adjustments for product sliders */
@media (max-width: 1200px) {
    .products-track {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }
}

@media (max-width: 768px) {
    .products-track {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .products-slider .product-card {
        height: 400px; /* Increased for mobile to accommodate price */
    }
    
    .products-slider .product-card .product-image {
        height: 180px;
    }
    
    .products-slider .product-card .product-info {
        padding: 1rem;
    }
    
    .products-slider .product-card .product-info h3 {
        font-size: 1rem;
    }
    
    .products-slider .product-card .product-info .price {
        font-size: 1rem;
        padding: 0.25rem 0.5rem;
    }
    
    .products-slider .product-card .product-info .description {
        font-size: 0.85rem;
        height: 2.55rem; /* Adjust for smaller font */
    }
}

@media (max-width: 480px) {
    .products-track {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .products-slider .product-card {
        height: 420px; /* Increased for small mobile to accommodate price */
        max-width: 300px;
        margin: 0 auto;
    }
    
    .products-slider .product-card .product-info .price {
        font-size: 0.95rem;
        padding: 0.2rem 0.4rem;
    }
}

/* Products Page Styles */
.products-section {
    padding: 4rem 0;
    background: #f8f9fa;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.products-grid .product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.products-grid .product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.products-grid .product-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

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

.products-grid .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.products-grid .product-card:hover .product-image img {
    transform: scale(1.1);
}

.products-grid .product-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.products-grid .product-info h3 {
    font-size: 1.3rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.products-grid .product-category {
    margin-bottom: 1rem;
}

.products-grid .category-tag {
    display: inline-block;
    background: #e74c3c;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.products-grid .product-price {
    font-size: 1.3rem;
    color: #2c3e50;
    font-weight: bold;
    margin-bottom: 1rem;
    padding: 0.5rem 0.8rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 10px;
    border-left: 4px solid #e74c3c;
    display: inline-block;
}

.products-grid .product-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.products-grid .btn-primary {
    margin-top: auto;
    text-align: center;
    padding: 0.8rem 1.5rem;
    background: #e74c3c;
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.products-grid .btn-primary:hover {
    background: #c0392b;
    transform: translateY(-2px);
}

/* Load More Button */
.load-more-section {
    margin-top: 3rem;
    text-align: center;
}

#load-more-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

#load-more-btn:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

#load-more-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Responsive Design for Products Page */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .products-section {
        padding: 2rem 0;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .products-grid .product-image {
        height: 200px;
    }
    
    .products-grid .product-info {
        padding: 1rem;
    }
    
    .products-grid .product-info h3 {
        font-size: 1.1rem;
    }
    
    .products-grid .product-price {
        font-size: 1.1rem;
        padding: 0.4rem 0.6rem;
    }
    
    .products-grid .product-description {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    .products-grid .product-image {
        height: 180px;
    }
    
    .products-grid .product-info {
        padding: 0.8rem;
    }
    
    .products-grid .product-info h3 {
        font-size: 1rem;
    }
    
    .products-grid .product-price {
        font-size: 1rem;
        padding: 0.3rem 0.5rem;
    }
}

/* Lazy Loading Animations for Products */
.products-grid .product-card.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.products-grid .product-card.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Category Filter Styles */
.category-filter {
    padding: 2rem 0;
    background: white;
    border-bottom: 1px solid #e9ecef;
}

.category-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.category-tab {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    color: #6c757d;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.category-tab:hover {
    background: #e9ecef;
    border-color: #dee2e6;
    color: #495057;
}

.category-tab.active {
    background: #e74c3c;
    border-color: #e74c3c;
    color: white;
}

/* Mobile Category Tabs - Horizontal Scrolling */
@media screen and (max-width: 768px) {
    .category-filter .container .category-tabs {
        justify-content: flex-start !important;
        gap: 0.8rem !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        padding: 0 1rem !important;
        scrollbar-width: none !important; /* Firefox */
        -ms-overflow-style: none !important; /* IE 10+ */
        scroll-behavior: smooth !important;
        -webkit-overflow-scrolling: touch !important;
    }
    
    .category-filter .container .category-tabs::-webkit-scrollbar {
        display: none !important; /* Chrome, Safari, Opera */
        width: 0 !important;
        height: 0 !important;
    }
    
    .category-filter .container .category-tabs .category-tab {
        flex-shrink: 0 !important;
        flex-grow: 0 !important;
        padding: 0.6rem 1.2rem !important;
        font-size: 0.85rem !important;
        white-space: nowrap !important;
        min-width: auto !important;
        width: auto !important;
    }
    
    /* First and last tab extra padding for better UX */
    .category-filter .container .category-tabs .category-tab:first-child {
        margin-left: 0.5rem;
    }
    
    .category-filter .container .category-tabs .category-tab:last-child {
        margin-right: 0.5rem;
    }
}

/* Extra Small Mobile (480px and below) - Enhanced horizontal scrolling */
@media screen and (max-width: 480px) {
    .category-filter .container .category-tabs {
        justify-content: flex-start !important;
        gap: 0.6rem !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        padding: 0 0.8rem !important;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
        scroll-behavior: smooth !important;
        /* Enhanced touch scrolling for iOS */
        -webkit-overflow-scrolling: touch !important;
    }
    
    .category-filter .container .category-tabs::-webkit-scrollbar {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
    }
    
    .category-filter .container .category-tabs .category-tab {
        flex-shrink: 0 !important;
        flex-grow: 0 !important;
        padding: 0.5rem 1rem !important;
        font-size: 0.8rem !important;
        white-space: nowrap !important;
        min-width: auto !important;
        width: auto !important;
        border-radius: 20px !important;
        /* Improved touch target size */
        min-height: 44px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    /* More prominent first and last tab margins for small screens */
    .category-filter .container .category-tabs .category-tab:first-child {
        margin-left: 0.8rem;
    }
    
    .category-filter .container .category-tabs .category-tab:last-child {
        margin-right: 0.8rem;
    }
}

/* Very Small Mobile (360px and below) - Compact layout */
@media screen and (max-width: 360px) {
    .category-filter .container .category-tabs {
        justify-content: flex-start !important;
        gap: 0.5rem !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        padding: 0 0.5rem !important;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
        scroll-behavior: smooth !important;
        -webkit-overflow-scrolling: touch !important;
    }
    
    .category-filter .container .category-tabs::-webkit-scrollbar {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
    }
    
    .category-filter .container .category-tabs .category-tab {
        flex-shrink: 0 !important;
        flex-grow: 0 !important;
        padding: 0.4rem 0.8rem !important;
        font-size: 0.75rem !important;
        white-space: nowrap !important;
        min-width: auto !important;
        width: auto !important;
        min-height: 40px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .category-filter .container .category-tabs .category-tab:first-child {
        margin-left: 0.5rem;
    }
    
    .category-filter .container .category-tabs .category-tab:last-child {
        margin-right: 0.5rem;
    }
}
