/* wwwroot/css/site.css - TestoPlus inspired theme */

:root {
    /* Primary Blue Colors (from logo) */
    --primary-color: #517db0; /* �Ķ��� */
    --primary-hover: #406497;
    --primary-light: #7fa6d6;
    --primary-lighter: #eaf1fa;
    --primary-dark: #2c5282; /* 가격용 진한 파란색 */

    /* Accent Color (Point: Orange) */
    --accent-color: #ffa83f; /* ��Ȳ�� */
    --accent-hover: #ff8c00;
    --orange-color: var(--accent-color); /* Legacy support for old vars */
    --orange-hover: var(--accent-hover); /* Legacy support for old vars */

    /* Price Color */
    --price-color: var(--primary-dark); /* 가격 전용 색상 */

    /* Gray Neutrals */
    --gray-50: #F8F9FA;
    --gray-100: #F0F2F5;
    --gray-200: #DDE2E6;
    --gray-300: #C1C7D0;
    --gray-400: #A1AAB5;
    --gray-500: #828C99;
    --gray-600: #636F7D;
    --gray-700: #45515E;
    --gray-800: #26323D;
    --gray-900: #101820;

    /* Theme Colors */
    --secondary-color: var(--gray-600);
    --success-color: #059669;
    --warning-color: var(--accent-color);
    --danger-color: #dc2626;
    --light-bg: #fff; /* ���� ��� */
    --border-color: var(--gray-200);

    /* Shadows */
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--gray-800);
    line-height: 1.6;
    background-color: #ffffff;
    font-size: 14px;
    font-weight: 400;
}

/* Primary Button Override */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

    .btn-primary:hover {
        background-color: var(--primary-hover);
        border-color: var(--primary-hover);
    }

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

    .btn-outline-primary:hover {
        background-color: var(--primary-color);
        border-color: var(--primary-color);
    }

.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

/* Layout */
.page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

/* Loading Spinner */
.loading-spinner {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Card Styles */
.card {
    border-radius: 10px;
    overflow: hidden;
}

.card-header {
    font-weight: 600;
}

/* Form Controls */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.25);
}

/* Table Styles */
.table th {
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid var(--border-color);
}

/* Breadcrumb */
.breadcrumb {
    background-color: transparent;
    padding: 0;
    margin-bottom: 1rem;
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
}

    .breadcrumb-item a:hover {
        text-decoration: underline;
    }

/* Responsive Images */
img {
    max-width: 100%;
    height: auto;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .display-4 {
        font-size: 2.5rem;
    }

    .lead {
        font-size: 1.1rem;
    }

    .card-body {
        padding: 1rem;
    }

    .table {
        font-size: 0.875rem;
    }

    .btn-lg {
        padding: 0.5rem 1rem;
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .display-4 {
        font-size: 2rem;
    }

    .table-responsive {
        font-size: 0.8rem;
    }
}

/* Blazor Specific */
#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

/* Loading Progress */
.loading-progress {
    position: relative;
    display: inline-block;
    width: 4rem;
    height: 4rem;
    margin: 2rem auto;
}

    .loading-progress circle {
        stroke: var(--primary-color);
    }

/* Utility Classes */
.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

.shadow {
    box-shadow: var(--shadow) !important;
}

.rounded {
    border-radius: 0.5rem !important;
}

.rounded-lg {
    border-radius: 1rem !important;
}

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .btn,
    .breadcrumb {
        display: none !important;
    }

    .container {
        width: 100%;
        max-width: none;
    }
}

/* TestoPlus-inspired Modern Design */

/* Navigation Styles */
.navbar {
    background-color: white !important;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    padding: 1rem 0;
    backdrop-filter: blur(10px);
}

.navbar-brand {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
    text-decoration: none;
}

.navbar-brand:hover {
    color: var(--primary-hover) !important;
}

.navbar-brand img {
    margin-right: 0.75rem;
}

.navbar-nav .nav-link {
    color: var(--gray-700) !important;
    font-weight: 600;
    padding: 0.75rem 1.25rem !important;
    transition: all 0.3s ease;
    border-radius: 0.5rem;
    margin: 0 0.25rem;
    position: relative;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 2px;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
    background-color: var(--primary-lighter);
    transform: translateY(-1px);
}

.navbar-nav .nav-link:hover::after {
    width: 80%;
}

.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
    background-color: var(--primary-lighter);
}

.navbar-nav .nav-link.active::after {
    width: 80%;
}

.dropdown-menu {
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
    margin-top: 0.5rem;
}

.dropdown-item {
    border-radius: 0.375rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: var(--gray-50);
    color: var(--primary-color);
    transform: translateX(4px);
}

/* Hero Section */
.hero-section {
    /* 배경과 색상은 동적으로 처리 - !important 제거 */
    position: relative;
    overflow: hidden;
    min-height: 55vh;
    padding: 3rem 0 !important;
    display: flex;
    align-items: center;
}

.hero-section .text-white {
    /* 텍스트 색상은 동적으로 처리 */
}

.hero-section h1 {
    /* 텍스트 색상은 동적으로 처리 */
    font-weight: 700;
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-section p {
    /* 텍스트 색상은 동적으로 처리 */
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* Force override any Bootstrap styles */
section.hero-section {
    /* 배경은 동적으로 처리 - !important 제거 */
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section .btn {
    box-shadow: 0 4px 14px 0 rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    font-weight: 600;
    padding: 0.875rem 2rem;
    border-radius: 0.5rem;
    text-transform: none;
}

.hero-section .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px 0 rgba(0, 0, 0, 0.3);
}

.hero-section .btn-light {
    background: white;
    color: var(--primary-color);
    border: none;
}

.hero-section .btn-light:hover {
    background: var(--gray-100);
    color: var(--primary-hover);
}

.hero-section .btn-outline-light {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.hero-section .btn-outline-light:hover {
    background: var(--orange-color);
    border-color: var(--orange-color);
    color: white;
}

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section p {
        font-size: 1.1rem;
    }
    
    .hero-section {
        min-height: 50vh;
        padding: 2rem 0 !important;
    }
}

/* Cards */
.card {
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    background-color: white;
}

.card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
    border-color: var(--primary-light);
}

.product-card {
    height: 100%;
    border: 1px solid var(--border-color);
    background: white;
}

.product-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.15);
    transform: translateY(-4px);
}

.product-card .card-img-wrapper {
    position: relative;
    overflow: hidden;
    height: 220px;
    background: var(--gray-50);
}

.product-card .card-img-top {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card:hover .card-img-top {
    transform: scale(1.1);
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    color: var(--gray-900);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.card-text {
    color: var(--gray-600);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.price {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--price-color);
}

/* Feature Cards */
.feature-card {
    background: white;
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    padding: 2rem;
    text-align: center;
}

.feature-card:hover {
    box-shadow: 0 12px 32px rgba(37, 99, 235, 0.15);
    transform: translateY(-6px);
    border-color: var(--primary-light);
}

.feature-card .icon-box {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--primary-color);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.feature-card h4 {
    color: var(--gray-900);
    font-weight: 600;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--gray-600);
    line-height: 1.6;
}

/* Category Cards */
.category-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    color: inherit;
    padding: 2rem;
    text-decoration: none;
    display: block;
    height: 100%;
}

.category-card:hover {
    box-shadow: 0 8px 32px rgba(37, 99, 235, 0.15);
    transform: translateY(-4px);
    border-color: var(--primary-color);
    text-decoration: none;
    color: inherit;
}

.category-card i {
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.category-card:hover i {
    color: var(--orange-color);
    transform: scale(1.1);
}

.category-card h4 {
    color: var(--gray-900);
    font-weight: 600;
    margin: 1rem 0 0.5rem;
}

.category-card p {
    color: var(--gray-600);
    margin: 0;
}

/* Buttons */
.btn {
    font-weight: 600;
    border-radius: 0.5rem;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

.btn-primary:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

/* Orange buttons for accent */
.btn-warning {
    background: var(--orange-color);
    border-color: var(--orange-color);
    color: white;
    box-shadow: 0 2px 4px rgba(234, 88, 12, 0.2);
}

.btn-warning:hover {
    background: var(--orange-hover);
    border-color: var(--orange-hover);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.3);
}

.btn-outline-warning {
    color: var(--orange-color);
    border-color: var(--orange-color);
    background: transparent;
}

.btn-outline-warning:hover {
    background: var(--orange-color);
    border-color: var(--orange-color);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.2);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
    border-radius: 0.75rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    border-radius: 0.375rem;
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: var(--gray-200);
    padding: 3rem 0 2rem 0;
    margin-top: auto;
}

.footer h5 {
    color: white;
    margin-bottom: 1rem;
}

.footer .company-details p {
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    line-height: 1.6;
}

.footer .text-muted {
    color: var(--gray-400) !important;
}

/* Footer link styling */
.footer a {
    color: #ffffff !important;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--accent-color) !important;
}

/* Phone and email links specific styling */
.footer .fas {
    color: rgba(255, 255, 255, 0.8);
    margin-right: 0.5rem;
}

.footer .company-details a[href^="tel:"] {
    color: #ffffff !important;
    font-weight: 600;
}

.footer .company-details a[href^="tel:"]:hover {
    color: var(--accent-color) !important;
}

.footer .company-details a[href^="mailto:"] {
    color: #ffffff !important;
    font-weight: 600;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--gray-900);
}

.display-4 {
    font-weight: 700;
    line-height: 1.1;
}

.lead {
    font-size: 1.125rem;
    font-weight: 400;
    color: var(--gray-600);
}

/* Forms */
.form-control {
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
    padding: 0.75rem 1rem;
    transition: all 0.2s ease;
    background-color: white;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
    outline: none;
}

/* Tables */
.table {
    border-collapse: separate;
    border-spacing: 0;
}

.table th {
    background-color: var(--gray-50);
    font-weight: 600;
    color: var(--gray-700);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem;
}

.table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.table tbody tr:hover {
    background-color: var(--gray-50);
}

/* Badges */
.badge {
    font-weight: 600;
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.badge.bg-success {
    background-color: var(--success-color) !important;
    color: white;
}

.badge.bg-warning {
    background-color: var(--orange-color) !important;
    color: white;
}

.badge.bg-danger {
    background-color: var(--danger-color) !important;
    color: white;
}

.bg-success-subtle {
    background-color: rgba(5, 150, 105, 0.1) !important;
    color: var(--success-color) !important;
    border: 1px solid rgba(5, 150, 105, 0.2);
}

.text-success {
    color: var(--success-color) !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

.text-danger {
    color: var(--danger-color) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 3rem 0;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .feature-card .icon-box {
        width: 60px;
        height: 60px;
    }
    
    .product-card .card-img-wrapper {
        height: 180px;
    }
}

/* Loading States */
.loading-skeleton {
    background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%);
    background-size: 200% 100%;
    animation: loading-skeleton 1.5s infinite;
    border-radius: 0.375rem;
}

@keyframes loading-skeleton {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Utility Classes */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hover-lift {
    transition: transform 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-4px);
}

/* Product Card Overlays and Effects */
.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(30, 58, 138, 0.8);
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.product-actions {
    display: flex;
    gap: 0.5rem;
}

.product-actions .btn {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.product-actions .btn:hover {
    transform: scale(1.1);
}

/* Feature Card Enhancements */
.feature-arrow {
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.feature-card:hover .feature-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Navigation improvements */
.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-collapse {
    border-top: 1px solid var(--border-color);
    margin-top: 1rem;
    padding-top: 1rem;
}

@media (min-width: 992px) {
    .navbar-collapse {
        border-top: none;
        margin-top: 0;
        padding-top: 0;
    }
}

/* Enhanced typography */
.display-6 {
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.2;
}

@media (min-width: 768px) {
    .display-6 {
        font-size: 2.5rem;
    }
}

/* Card body improvements */
.card-body {
    display: flex;
    flex-direction: column;
}

.card-body .mt-auto {
    margin-top: auto;
}

/* Better badge styles */
.bg-success-subtle {
    background-color: rgba(16, 185, 129, 0.1) !important;
}

.text-success {
    color: var(--success-color) !important;
}

/* Webkit backdrop filter support */
.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Cart Page Specific Styles */
.cart-item-card {
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    background: white;
    transition: all 0.3s ease;
}

.cart-item-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-light);
}

.options-section {
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: 0.5rem;
    border-top: 1px solid var(--border-color);
}

.options-section h6 {
    color: var(--gray-700);
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.options-table {
    margin-bottom: 0;
    font-size: 0.85rem;
}

.options-table th {
    background-color: white;
    border-bottom: 1px solid var(--border-color);
    padding: 0.5rem;
    font-weight: 600;
    color: var(--gray-600);
}

.options-table td {
    padding: 0.5rem;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.option-badge {
    background: var(--primary-color);
    color: white;
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-size: 0.7rem;
    font-weight: 600;
}

.price-inquiry-badge {
    background: linear-gradient(135deg, var(--orange-color), var(--orange-hover));
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
    text-align: center;
    min-width: 60px;
}

/* Order Summary Card */
.order-summary-card {
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    background: white;
}

.order-summary-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover)) !important;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.order-summary-header h5 {
    color: white !important;
    margin: 0;
    font-weight: 600;
    font-size: 1.1rem;
}

.order-summary-body {
    padding: 1.5rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gray-200);
    font-size: 0.95rem;
}

.summary-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.summary-row.total {
    border-top: 2px solid var(--primary-color);
    padding-top: 1rem;
    margin-top: 0.5rem;
    font-size: 1.1rem;
}

.summary-row span:first-child {
    color: var(--gray-700);
    font-weight: 500;
}

.summary-row span:last-child {
    font-weight: 600;
    text-align: right;
}

/* Page Header */
.page-header {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--border-color);
}

.header-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.page-title {
    color: var(--gray-900);
    font-weight: 700;
    font-size: 1.75rem;
    margin: 0;
}

.cart-summary-badge .badge {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
}

/* Empty Cart Styles */
.empty-cart-container {
    background: white;
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    padding: 3rem 2rem;
    margin: 2rem 0;
}

.empty-cart-icon {
    color: var(--gray-400);
}

/* Responsive adjustments for cart */
@media (max-width: 768px) {
    .cart-item-content .row {
        flex-direction: column;
        align-items: stretch !important;
    }
    
    .cart-item-content .col-md-2,
    .cart-item-content .col-md-3,
    .cart-item-content .col-md-4 {
        max-width: 100%;
        flex: 0 0 100%;
        margin-bottom: 1rem;
        padding: 0.5rem 1rem;
    }
    
    .cart-item-content .col-md-2 {
        display: flex;
        justify-content: center;
        align-items: center;
        min-height: auto;
    }
    
    .quantity-section,
    .total-section {
        text-align: center !important;
    }
    
    .input-group {
        max-width: 150px !important;
        margin: 0 auto !important;
    }
    
    .order-summary-card {
        margin-top: 2rem;
        position: static !important;
    }
    
    .page-header .d-flex {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 1rem;
    }
    
    .cart-summary-badge {
        align-self: flex-start;
    }
}

/* About Page Styles */
.about-hero {
    padding: 3rem 0 !important;
    background: linear-gradient(to bottom, rgba(37, 99, 235, 0.05), rgba(255, 255, 255, 0)) !important;
    border-radius: 1rem !important;
    margin-bottom: 2rem !important;
}

.stats-section {
    background: var(--gray-50) !important;
    border-radius: 1rem !important;
    padding: 3rem 0 !important;
}

.stat-card {
    background: white !important;
    border-radius: 1rem !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08) !important;
    transition: all 0.3s ease !important;
    border: 1px solid var(--border-color) !important;
    padding: 2rem !important;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.stat-icon i {
    font-size: 3rem;
}

.stat-number {
    font-size: 3rem;
    line-height: 1;
}

.stat-label {
    font-weight: 600;
    margin: 0;
}

.section-header {
    margin-bottom: 2rem;
}

.divider {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--orange-color));
    border-radius: 2px;
    margin-top: 1rem;
}

.info-card {
    background: white !important;
    border-radius: 1rem !important;
    padding: 2rem !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08) !important;
    border: 1px solid var(--border-color) !important;
    transition: all 0.3s ease !important;
}

.info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.info-header h4 {
    margin: 0;
    display: flex;
    align-items: center;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.info-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.info-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 1rem;
    font-weight: 500;
    color: var(--gray-900);
    line-height: 1.5;
}

.info-value a {
    color: var(--primary-color);
    transition: color 0.2s ease;
}

.info-value a:hover {
    color: var(--orange-color);
}

.map-container {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border-radius: 1rem;
    overflow: hidden;
}

.content-text {
    color: var(--gray-700);
    line-height: 1.8;
    font-size: 1rem;
}

.content-text h1,
.content-text h2,
.content-text h3,
.content-text h4,
.content-text h5,
.content-text h6 {
    color: var(--gray-900);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.content-text p {
    margin-bottom: 1rem;
}

.content-text ul,
.content-text ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.content-text li {
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .about-hero {
        padding: 2rem 0;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .stat-icon i {
        font-size: 2.5rem;
    }
    
    .info-card {
        padding: 1.5rem;
    }
    
    .info-item {
        gap: 0.25rem;
    }
    
    /* 모바일 검색창 개선 */
    .input-group-lg .form-control {
        font-size: 1.25rem !important;
        padding: 1rem 1.25rem !important;
        min-height: 56px !important; /* 더 큰 터치 영역 */
        border-radius: 0.5rem !important;
    }
    
    .input-group-lg .btn {
        padding: 1rem 1.5rem !important;
        min-height: 56px !important;
        font-size: 1.1rem !important;
        border-radius: 0 0.5rem 0.5rem 0 !important;
    }
    
    /* Search 페이지 전용 추가 스타일 */
    .container h1 {
        font-size: 1.75rem;
        text-align: center;
    }
    
    /* 사이드바 검색창 */
    .sidebar-categories .input-group .form-control {
        font-size: 1rem;
        padding: 0.5rem 0.75rem;
        min-height: 42px;
    }
    
    .sidebar-categories .input-group-text {
        padding: 0.5rem 0.75rem;
        min-height: 42px;
    }
}

/* 전용 모바일 검색창 스타일 - 더 구체적인 선택자 */
div.container div.row div.col-12 .mobile-search-enhanced .mobile-search-input.form-control {
    font-size: 1.3rem !important;
    padding: 1.2rem 1.5rem !important;
    min-height: 58px !important;
    height: 58px !important;
    border: 2px solid #007bff !important;
    border-radius: 0.5rem 0 0 0.5rem !important;
    line-height: 1.4 !important;
}

div.container div.row div.col-12 .mobile-search-enhanced .mobile-search-btn.btn {
    font-size: 1.2rem !important;
    padding: 1.2rem 1.8rem !important;
    min-height: 58px !important;
    height: 58px !important;
    border-radius: 0 0.5rem 0.5rem 0 !important;
    font-weight: 500 !important;
}


/* 아주 작은 모바일 화면 (480px 이하) 추가 개선 */
@media (max-width: 480px) {
    .input-group-lg .form-control {
        font-size: 1.3rem !important;
        padding: 1.2rem 1rem !important;
        min-height: 60px !important;
    }
    
    .input-group-lg .btn {
        padding: 1.2rem 1rem !important;
        min-height: 60px !important;
        font-size: 1.1rem !important;
    }
    
    /* 전용 모바일 검색창 더 큰 스타일 - 매우 구체적인 선택자 */
    div.container div.row div.col-12 .mobile-search-enhanced .mobile-search-input.form-control,
    input.mobile-search-input[type="text"] {
        font-size: 1.2rem !important;
        padding: 0.9rem 1rem !important;
        min-height: 50px !important;
        height: 50px !important;
        border: 2px solid #007bff !important;
        line-height: 1.3 !important;
        background-color: #ffffff !important;
        border-radius: 0.5rem 0 0 0.5rem !important;
        flex: 1 1 auto !important;
        width: auto !important;
        border-right: none !important;
        margin: 0 !important;
    }
    
    div.container div.row div.col-12 .mobile-search-enhanced .mobile-search-btn.btn,
    button.mobile-search-btn {
        font-size: 1.1rem !important;
        padding: 0 !important;
        min-height: 50px !important;
        height: 50px !important;
        font-weight: 600 !important;
        background-color: #007bff !important;
        border-color: #007bff !important;
        border-radius: 0 0.5rem 0.5rem 0 !important;
        width: 50px !important;
        min-width: 50px !important;
        max-width: 50px !important;
        flex: 0 0 50px !important;
        flex-shrink: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 !important;
    }
    
    .container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    .container h1 {
        font-size: 1.5rem;
        margin-bottom: 2rem !important;
    }
    
    /* 검색창 주변 여백 줄이기 */
    .row.justify-content-center.mb-5 {
        margin-bottom: 2rem !important;
    }
}

/* 모바일 검색창 화면 너비 80% 이상 사용 - 최고 우선순위 */
@media (max-width: 767px) {
    /* body와 전체 컨테이너 패딩 제거 */
    body {
        margin: 0 !important;
        padding: 0 !important;
    }
    
    /* 검색 페이지 전용 컨테이너 스타일 */
    .container {
        max-width: 100% !important;
        width: 100% !important;
        padding-left: 5px !important;
        padding-right: 5px !important;
        margin: 0 !important;
    }
    
    /* 검색창 로우 전체 너비 사용 */
    .container .row.justify-content-center {
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
    }
    
    /* 검색창 컬럼 전체 너비 사용 */
    .container .row.justify-content-center .col-12.col-md-10.col-lg-8 {
        max-width: 100% !important;
        flex: 0 0 100% !important;
        width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin: 0 !important;
    }
    
    /* input-group 전체 설정 - 화면 끝에서 끝까지 */
    .mobile-search-enhanced.input-group,
    .input-group.mobile-search-enhanced {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: stretch !important;
    }
    
    /* 검색 INPUT - 화면 너비의 85% 이상 사용 */
    .mobile-search-enhanced input[type="text"].mobile-search-input.form-control,
    .input-group.mobile-search-enhanced .mobile-search-input.form-control,
    input.form-control.mobile-search-input[type="text"] {
        font-size: 1.3rem !important;
        padding: 1rem 1rem !important;
        min-height: 50px !important;
        height: 50px !important;
        border: 2px solid var(--primary-color) !important;
        border-radius: 0.5rem 0 0 0.5rem !important;
        line-height: 1.3 !important;
        box-sizing: border-box !important;
        flex: 1 1 85% !important;
        width: 85% !important;
        min-width: 0 !important;
        max-width: none !important;
        background: #fff !important;
        border-right: none !important;
        margin: 0 !important;
    }
    
    /* 검색 BUTTON - 최소 너비로 제한 */
    .mobile-search-enhanced button.mobile-search-btn.btn,
    .input-group.mobile-search-enhanced .mobile-search-btn.btn,
    button.btn.mobile-search-btn {
        font-size: 1.1rem !important;
        padding: 0 !important;
        min-height: 50px !important;
        height: 50px !important;
        border-radius: 0 0.5rem 0.5rem 0 !important;
        box-sizing: border-box !important;
        font-weight: 600 !important;
        width: 45px !important;
        min-width: 45px !important;
        max-width: 45px !important;
        background-color: var(--primary-color) !important;
        border-color: var(--primary-color) !important;
        flex: 0 0 45px !important;
        flex-shrink: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 !important;
    }
}
