﻿html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    font-family: 'Prompt', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    margin: 0;
    background: #ffffff;
    color: #2d3436;
    line-height: 1.6;
    overflow-x: hidden;
}


.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem rgba(24, 164, 220, 0.25);
}

html {
    position: relative;
    min-height: 100%;
}

/* Minimal Color Palette */
:root {
    --primary-color: #18a4dc;
    --primary-hover: #1490c6;
    --dark-color: #2d3436;
    --light-bg: #f8f9fa;
    --border-color: #e1e8ed;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 24px rgba(0, 0, 0, 0.1);
}

.bg-main {
    background-color: var(--primary-color);
}
.bg-cate {
    background-color: #ffffff;
}

.text-main {
    color: var(--primary-color);
}


/*==========================================
  MINIMAL HEADER STYLES
==========================================*/
.minimal-header {
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.navbar-brand:focus {
    outline: none !important;
    box-shadow: none !important;
}

.navbar-nav .nav-link {
    line-height: normal;
}

/* Social Icons in Header */
.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--light-bg);
    color: var(--dark-color);
    transition: all 0.3s ease;
    text-decoration: none;
    line-height: 1;
}

.social-icon i,
.social-icon svg {
    display: block;
    margin: 0;
    line-height: 1;
}

.social-icon:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Minimal Menu Bar */
.minimal-menu-bar {
    background: linear-gradient(135deg, #18a4dc 0%, #1490c6 100%);
    box-shadow: var(--shadow-sm);
}

.minimal-menu-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.minimal-menu-link:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white !important;
}

/* CTA Button */
.minimal-cta-btn {
    background: white;
    color: var(--primary-color);
    border: none;
    border-radius: 8px;
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.minimal-cta-btn:hover {
    background: var(--light-bg);
    color: var(--primary-hover);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.minimal-cta-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(24, 164, 220, 0.2);
}

/*==========================================
  MINIMAL FOOTER STYLES
==========================================*/
.minimal-footer {
    background: #f8f9fa;
    margin-top: 4rem;
}

.footer-links .footer-link {
    display: inline-block;
    padding: 0.25rem 0;
    transition: all 0.2s ease;
}

.footer-links .footer-link:hover {
    color: var(--primary-color) !important;
    padding-left: 4px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    color: var(--dark-color);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    line-height: 1;
}

.social-link i,
.social-link svg {
    display: block;
    margin: 0;
    line-height: 1;
}

.social-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}


/*==========================================
  MINIMAL CARDS & COMPONENTS
==========================================*/
.minimal-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(225, 232, 237, 0.6);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.minimal-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(24, 164, 220, 0.12);
    border-color: rgba(24, 164, 220, 0.2);
}

/* Goods Card - สำหรับแสดงสินค้า */
.minimal-goods-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(225, 232, 237, 0.6);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.minimal-goods-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(24, 164, 220, 0.12);
    border-color: rgba(24, 164, 220, 0.2);
}

/* Product Image Slider in Modal */
.product-image-slider {
    background: linear-gradient(to bottom, #f8f9fa, #ffffff);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.product-image-slider .carousel {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.product-image-slider .carousel-inner {
    height: 250px;
    background: linear-gradient(135deg, #fafbfc 0%, #ffffff 100%);
}

.product-image-slider .carousel-item {
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.product-image-slider .carousel-item img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    width: auto;
    height: auto;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

.product-image-slider .carousel-item img:hover {
    transform: scale(1.02);
}

/* Thumbnails */
.product-thumbnails {
    padding: 0 4px;
}

.product-thumbnails .thumbnail-img {
    height: 90px;
    width: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 3px solid #e9ecef;
    background: #ffffff;
    border-radius: 8px;
    padding: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.product-thumbnails .thumbnail-img:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(24, 164, 220, 0.2);
}

.product-thumbnails .thumbnail-img.active {
    border-color: var(--primary-color);
    box-shadow: 0 4px 16px rgba(24, 164, 220, 0.35);
    transform: translateY(-2px);
    background: linear-gradient(to bottom, #f8f9fa, #ffffff);
}

/* Carousel Controls */
.carousel-control-prev,
.carousel-control-next {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.9;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.carousel-control-prev {
    left: 16px;
}

.carousel-control-next {
    right: 16px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 16px rgba(24, 164, 220, 0.25);
    transform: translateY(-50%) scale(1.1);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: invert(1);
    opacity: 0.8;
}

.carousel-control-prev:hover .carousel-control-prev-icon,
.carousel-control-next:hover .carousel-control-next-icon {
    opacity: 1;
    filter: invert(0.4) sepia(1) saturate(5) hue-rotate(175deg);
}

.card {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    background: white;
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(24, 164, 220, 0.02), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.card:hover::before {
    opacity: 1;
}

.card:hover {
    box-shadow: 0 16px 40px rgba(24, 164, 220, 0.15);
    transform: translateY(-8px);
}

.card-img-top {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover .card-img-top {
    transform: scale(1.08);
}

/*==========================================
  HOME PAGE STYLES
==========================================*/
.slider-item {
    border-radius: 16px;
    overflow: hidden;
    height: auto;
    position: relative;
    box-shadow: var(--shadow-md);
}

.slider-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (min-width: 768px) {
    .slider-item {
        height: 450px;
    }
}

/* Owl Carousel Wrapper */
.fp-slider {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
}

/* Navigation Arrows */
.fp-slider .owl-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 1rem;
    z-index: 10;
    pointer-events: none;
}

.fp-slider .owl-nav button {
    width: 50px !important;
    height: 50px !important;
    background: rgba(255, 255, 255, 0.95) !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    pointer-events: all;
    border: none !important;
    color: var(--dark-color) !important;
    padding: 0 !important;
    line-height: 1 !important;
}

.fp-slider .owl-nav button span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 1.5rem;
    line-height: 1;
}

.fp-slider .owl-nav button:hover {
    background: var(--primary-color) !important;
    transform: scale(1.15);
    box-shadow: 0 8px 20px rgba(24, 164, 220, 0.3);
    color: white !important;
}

.fp-slider .owl-nav button i {
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Dots Pagination */
.fp-slider .owl-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.fp-slider .owl-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.fp-slider .owl-dot:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.6);
    transform: scale(1.2);
}

.fp-slider .owl-dot.active {
    background: var(--primary-color);
    width: 28px;
    border-radius: 10px;
    border-color: white;
    box-shadow: 0 2px 12px rgba(24, 164, 220, 0.5);
}

.responsive-img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.responsive-img-container {
    width: 100%;
    padding: 1rem;
    text-align: center;
    font-family: 'Tahoma', sans-serif;
    color: #333;
}
/*Index*/

.pagination .page-link {
    color: #12a1db;
    border: 1px solid #12a1db;
    border-radius: 6px;
    margin: 0 2px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.pagination .page-item.active .page-link {
    background-color: #12a1db;
    color: #fff;
    border-color: #12a1db;
    cursor: default; /* เปลี่ยน cursor เป็น default (ไม่ใช่ pointer) */
    pointer-events: none; /* ปิดการคลิก */
}

.pagination .page-link:hover {
    background-color: #e6f7fd;
    color: #0d8ac0;
}

/*==========================================
  MINIMAL BUTTONS
==========================================*/
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    border: none;
    border-radius: 10px;
    padding: 0.65rem 1.8rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(24, 164, 220, 0.2);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-hover), #0d8ac0);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(24, 164, 220, 0.3);
}

.btn-secondary {
    background: linear-gradient(135deg, #6c757d, #5a6268);
    border: none;
    border-radius: 10px;
    padding: 0.55rem 1.4rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: white;
    box-shadow: 0 2px 8px rgba(108, 117, 125, 0.2);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #5a6268, #495057);
    transform: translateY(-2px);
    color: white;
    box-shadow: 0 6px 16px rgba(108, 117, 125, 0.3);
}

.btn-sm {
    padding: 0.4rem 1rem;
    font-size: 0.875rem;
    border-radius: 6px;
}

/* ปุ่มหยิบใส่ตะกร้า */
.btn-add-to-cart {
    background: linear-gradient(135deg, #2d3436, #1e272e);
    color: #fff;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    padding: 0.6rem 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.btn-add-to-cart:hover {
    background: linear-gradient(135deg, #3d4446, #2e373e);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: white;
}

.btn-add-to-cart:active {
    transform: scale(0.97);
}

/* Badge Styles */
.badge {
    padding: 0.45rem 0.9rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 10px;
    padding: 0.55rem 1.4rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, transparent, rgba(24, 164, 220, 0.05));
    position: relative;
    overflow: hidden;
}

.btn-outline-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: var(--primary-color);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.btn-outline-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-outline-primary:hover {
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(24, 164, 220, 0.25);
}

.btn-outline-primary span,
.btn-outline-primary:hover span {
    position: relative;
    z-index: 1;
}

/*==========================================
  CATEGORY SIDEBAR
==========================================*/
.category-list {
    margin: 0;
    padding: 0;
}

.category-link {
    color: var(--dark-color);
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    position: relative;
}

.category-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: var(--primary-color);
    border-radius: 2px;
    transition: height 0.3s ease;
}

.category-link:hover {
    background: linear-gradient(90deg, rgba(24, 164, 220, 0.08), transparent);
    color: var(--primary-color);
    padding-left: 1.2rem !important;
}

.category-link:hover::before {
    height: 70%;
}

/*==========================================
  SECTION STYLES
==========================================*/
.minimal-divider {
    flex-grow: 1;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color) 0%, rgba(24, 164, 220, 0.5) 50%, transparent 100%);
    margin-left: 1.5rem;
    position: relative;
    overflow: hidden;
}

.minimal-divider::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/*==========================================
  CONTACT PAGE STYLES
==========================================*/
.contact-item {
    transition: all 0.3s ease;
}

.contact-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-bg);
    border-radius: 50%;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 1.1rem;
}

.contact-item:hover .contact-icon {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

/*==========================================
  FORM PLACEHOLDER STYLES
==========================================*/
.form-control::placeholder,
.form-select::placeholder,
textarea::placeholder {
    color: #9ca3af;
    opacity: 1;
    font-size: 0.9rem;
}

.form-control:focus::placeholder,
.form-select:focus::placeholder,
textarea:focus::placeholder {
    color: #d1d5db;
    opacity: 0.7;
}

/*==========================================
  ACTION BUTTONS STYLES
==========================================*/
.btn-action-edit {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
    padding: 0.375rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

.btn-action-edit:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.5);
    color: white;
}

.btn-action-edit:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
}

.btn-action-edit i {
    font-size: 0.875rem;
}

.btn-action-delete {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border: none;
    padding: 0.375rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

.btn-action-delete:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.5);
    color: white;
}

.btn-action-delete:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.3);
}

.btn-action-delete i {
    font-size: 0.875rem;
}