/* ========================================
   frontend.css - waankuenta Frontend Styles
   ======================================== */

/* ===== Variables & Base Styles ===== */
:root {
    --primary-color: #2E5C4E;
    --primary-color-rgb: 46, 92, 78;
    --secondary-color: #FFD966;
    --text-color: #333;
    --light-bg: #f8f9fa;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --border-radius: 8px;
    --box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
    --navbar-height: 70px;
    --sidebar-width: 280px;
}

body {
    font-family: 'Sarabun', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: var(--navbar-height);
}

/* ===== Typography ===== */
h1 { font-size: clamp(1.8rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 3vw, 2rem); }
h4 { font-size: clamp(1rem, 2.5vw, 1.5rem); }
h5 { font-size: clamp(0.9rem, 2vw, 1.2rem); }
p { font-size: clamp(0.9rem, 2vw, 1rem); }

/* ===== Container ===== */
.container {
    max-width: var(--container-width, 1200px);
    width: 100%;
    margin: 0 auto;
    padding-left: clamp(0.75rem, 3vw, 1rem);
    padding-right: clamp(0.75rem, 3vw, 1rem);
}

/* ===== Navbar Fixed ===== */
.navbar-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--navbar-height);
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1030;
    transition: transform 0.3s ease;
}

.navbar-fixed .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.navbar-fixed.navbar-hidden {
    transform: translateY(-100%);
}

/* Left Section */
.navbar-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
    padding: 8px;
    border-radius: 5px;
}

.menu-toggle:hover {
    background: rgba(var(--primary-color-rgb), 0.1);
}

.navbar-brand {
    font-family: 'Prompt', sans-serif;
    font-weight: 700;
    font-size: clamp(1.2rem, 4vw, 1.8rem);
    text-decoration: none;
    color: var(--primary-color);
    white-space: nowrap;
}

.navbar-brand img {
    max-height: 45px;
    width: auto;
    vertical-align: middle;
}

/* Desktop Menu */
.desktop-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex: 1 1 auto;
}

.desktop-menu .nav-link {
    color: var(--text-color);
    font-weight: 500;
    padding: 8px 16px;
    text-decoration: none;
    transition: all 0.3s;
    position: relative;
    white-space: nowrap;
    border-radius: 5px;
}

.desktop-menu .nav-link:hover {
    color: var(--primary-color);
    background: rgba(var(--primary-color-rgb), 0.05);
}

.desktop-menu .nav-link.active {
    color: var(--primary-color);
    font-weight: 600;
}

.desktop-menu .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* Right Section */
.navbar-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex: 0 0 auto;
}

.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    transition: all 0.3s;
    cursor: pointer;
}

.btn-icon:hover {
    background: var(--primary-color);
    color: white;
}

.btn-icon.dropdown-toggle::after {
    display: none;
}

/* Cart Badge */
#cartCount {
    font-size: 0.7rem;
    padding: 0.2rem 0.4rem;
    background-color: #dc3545;
    color: white;
    border-radius: 50%;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

#cartCount.update {
    transform: scale(1.2);
}

/* Dropdown Menu */
.dropdown-menu {
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 0.5rem 0;
    margin-top: 10px;
}

.dropdown-item {
    padding: 0.5rem 1.5rem;
    transition: all 0.3s;
}

.dropdown-item:hover {
    background: rgba(var(--primary-color-rgb), 0.1);
    color: var(--primary-color);
}

.dropdown-item i {
    width: 20px;
    color: var(--primary-color);
}

/* ===== Sidebar Navigation (Mobile) ===== */
.sidebar-nav {
    position: fixed;
    top: var(--navbar-height);
    left: -100%;
    width: var(--sidebar-width);
    height: calc(100vh - var(--navbar-height));
    background: white;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1020;
    overflow-y: auto;
    padding: 20px;
}

.sidebar-nav.show {
    left: 0;
}

.sidebar-nav .section-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 1rem;
    padding-left: 1rem;
    letter-spacing: 0.5px;
}

.sidebar-nav .nav-link {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: var(--text-color);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s;
    font-weight: 500;
    margin-bottom: 4px;
}

.sidebar-nav .nav-link i {
    width: 24px;
    margin-right: 12px;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.sidebar-nav .nav-link:hover {
    background: rgba(var(--primary-color-rgb), 0.1);
    color: var(--primary-color);
    transform: translateX(5px);
}

.sidebar-nav .nav-link.active {
    background: var(--primary-color);
    color: white;
}

.sidebar-nav .nav-link.active i {
    color: white;
}

.sidebar-nav hr {
    margin: 20px 0;
    border-color: #eee;
}

/* Sidebar Overlay */
.sidebar-overlay {
    position: fixed;
    top: var(--navbar-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1010;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.show {
    display: block;
    opacity: 1;
}

/* ===== Search Modal ===== */
.modal-content {
    border: none;
    border-radius: 15px;
}

.modal-header {
    border-bottom: 1px solid #eee;
    padding: 1rem 1.5rem;
}

.modal-body {
    padding: 1.5rem;
}

.modal .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(var(--primary-color-rgb), 0.25);
}

/* ===== Hero Section ===== */
.hero-section {
    min-height: 500px;
    height: 80vh;
    max-height: 800px;
    display: flex;
    align-items: center;
    position: relative;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    overflow: hidden;
}

.hero-section .container {
    width: 100%;
    z-index: 2;
    position: relative;
}

.hero-section h1 {
    font-size: clamp(2rem, 5vw, 4rem);
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease;
}

.hero-section p {
    font-size: clamp(1rem, 2vw, 1.5rem);
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-section .btn {
    animation: fadeInUp 1s ease 0.4s both;
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
}

.hero-section .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.hero-section .position-absolute {
    pointer-events: none;
}

/* ===== Features Section ===== */
.features-section {
    padding: clamp(2rem, 5vw, 4rem) 0;
}

.feature-icon {
    width: clamp(60px, 10vw, 80px);
    height: clamp(60px, 10vw, 80px);
    line-height: clamp(60px, 10vw, 80px);
    border-radius: 50%;
    background-color: rgba(var(--primary-color-rgb), 0.1);
    margin: 0 auto;
    transition: var(--transition);
}

.feature-icon i {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
}

/* ===== Product Cards ===== */
.product-card {
    transition: var(--transition);
    border: none;
    border-radius: 8px;
    overflow: hidden;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow) !important;
}

.product-card:hover img {
    transform: scale(1.05);
}

.product-card .product-image-wrapper {
    aspect-ratio: 1/1;
    overflow: hidden;
    background-color: #f8f9fa;
}

.product-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.product-card .card-body {
    padding: clamp(0.75rem, 2vw, 1.25rem);
}

.product-card .card-title {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
}

.badge-new, .badge-sale {
    display: inline-block;
    padding: 3px 6px;
    font-size: 9px;
    font-weight: 600;
    border-radius: 3px;
    margin-right: 4px;
}

.badge-new { background: #ff6b6b; color: white; }
.badge-sale { background: #f39c12; color: white; }

/* ===== Category Cards ===== */
.category-card {
    transition: var(--transition);
    border: none;
    overflow: hidden;
    height: 100%;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow) !important;
}

.category-card:hover img {
    transform: scale(1.1);
}

.category-card img {
    height: clamp(100px, 20vw, 150px);
    object-fit: cover;
    transition: transform 0.5s;
}

.category-card .card-body {
    padding: clamp(0.5rem, 1.5vw, 1rem);
}

.category-card .card-title {
    font-size: clamp(0.9rem, 2vw, 1rem);
}

/* ===== Promotion Banner ===== */
.promotion-section .card {
    margin: 0 1rem;
}

.promotion-section .card-body {
    padding: clamp(1.5rem, 4vw, 3rem);
}

.promotion-section h2 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
}

/* ===== Testimonials ===== */
.testimonials-section .card {
    height: 100%;
}

.testimonials-section .card-body {
    padding: clamp(1rem, 3vw, 1.5rem);
}

/* ===== Newsletter ===== */
.newsletter-section {
    padding: clamp(2rem, 5vw, 3rem) 0;
}

.newsletter-section h3 {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
}

.newsletter-section .form-control {
    height: clamp(45px, 8vw, 50px);
    font-size: clamp(0.9rem, 2vw, 1rem);
}

.newsletter-section .btn {
    height: clamp(45px, 8vw, 50px);
    padding: 0 clamp(1rem, 3vw, 2rem);
    font-size: clamp(0.9rem, 2vw, 1rem);
    white-space: nowrap;
}

/* ===== Blog Section ===== */
.blog-section .card {
    height: 100%;
}

.blog-section .card-img-top {
    height: clamp(150px, 25vw, 200px);
    object-fit: cover;
}

/* ===== Footer ===== */
footer {
    background: #1a1a1a !important;
    padding: clamp(2rem, 5vw, 3rem) 0 1rem;
}

footer h5 {
    color: white;
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

footer h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-color);
}

footer ul {
    padding-left: 0;
    list-style: none;
}

footer li {
    margin-bottom: 0.75rem;
    font-size: clamp(0.85rem, 2vw, 0.95rem);
    color: #aaa;
}

footer li i {
    width: 20px;
    color: var(--primary-color);
}

footer a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s;
}

footer a:hover {
    color: var(--primary-color);
}

footer .btn-outline-light {
    border-color: #444;
    color: #aaa;
}

footer .btn-outline-light:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* ===== Loading Spinner ===== */
.spinner-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.spinner {
    width: clamp(40px, 8vw, 50px);
    height: clamp(40px, 8vw, 50px);
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Grid System ===== */
.row {
    margin-left: -0.5rem;
    margin-right: -0.5rem;
}

.row > [class*="col-"] {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.col-2-4 {
    flex: 0 0 20%;
    max-width: 20%;
}

/* ===== Pagination ===== */
.pagination .page-link {
    color: var(--primary-color);
    border: none;
    margin: 0 2px;
    border-radius: 5px;
    padding: 6px 10px;
    font-size: 0.85rem;
}

.pagination .page-link:hover {
    background-color: rgba(var(--primary-color-rgb), 0.1);
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    color: white;
}

/* ===== Form Controls ===== */
.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(var(--primary-color-rgb), 0.25);
}

.input-group-text {
    background-color: #f8f9fa;
    border-color: #dee2e6;
}

/* ===== Breadcrumb ===== */
.breadcrumb {
    background-color: #f8f9fa;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
}

/* ===== Alert ===== */
.alert-success {
    background-color: rgba(var(--primary-color-rgb), 0.1);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* ===== Utility Classes ===== */
.text-primary { color: var(--primary-color) !important; }
.bg-primary { background-color: var(--primary-color) !important; }

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: rgba(var(--primary-color-rgb), 0.9);
    border-color: rgba(var(--primary-color-rgb), 0.9);
}

.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);
    color: white;
}

/* ===== Responsive Styles ===== */
@media (min-width: 576px) {
    .col-2-4 {
        flex: 0 0 20%;
        max-width: 20%;
    }
}

@media (min-width: 768px) {
    .row {
        margin-left: -0.75rem;
        margin-right: -0.75rem;
    }
    .row > [class*="col-"] {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    .badge-new, .badge-sale {
        padding: 4px 8px;
        font-size: 10px;
    }
}

@media (min-width: 992px) {
    .row {
        margin-left: -1rem;
        margin-right: -1rem;
    }
    .row > [class*="col-"] {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media (max-width: 1199px) {
    .col-2-4 {
        flex: 0 0 25%;
        max-width: 25%;
    }
}

@media (max-width: 991px) {
    .col-2-4 {
        flex: 0 0 33.333%;
        max-width: 33.333%;
    }
    
    .desktop-menu .nav-link {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
    
    .navbar-brand {
        font-size: 1.3rem;
    }
    
    .navbar-brand img {
        max-height: 40px;
    }
}

@media (max-width: 767px) {
    .col-2-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .desktop-menu {
        display: none;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .navbar-left {
        min-width: auto;
    }
    
    .navbar-right {
        min-width: auto;
        gap: 5px;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
        max-width: 150px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .navbar-brand img {
        max-height: 35px;
    }
    
    .btn-icon {
        width: 36px;
        height: 36px;
    }
    
    .sidebar-nav {
        width: min(280px, 85%);
    }
    
    .dropdown-menu {
        position: fixed !important;
        top: 60px !important;
        right: 10px !important;
        left: auto !important;
        width: 200px;
    }
    
    .btn, .nav-link, .dropdown-item, 
    .product-card .btn, .page-link,
    .sidebar-nav .nav-link, .btn-icon {
        min-height: 30px;
        min-width: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .hero-section {
        min-height: 400px;
        height: 60vh;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    .hero-section .btn {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .product-card .card-body {
        padding: 12px;
    }
    
    .product-card .card-title {
        font-size: 0.95rem;
    }
    
    .product-badge {
        top: 5px;
        left: 5px;
    }
    
    .badge-new, .badge-sale {
        padding: 3px 6px;
        font-size: 9px;
    }
    
    .breadcrumb {
        font-size: 0.8rem;
        padding: 0.5rem 0.8rem;
    }
    
    footer {
        padding: 30px 0 15px;
    }
    
    footer h5 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    footer .col-md-4 {
        margin-bottom: 25px;
    }
    
    footer .btn-outline-light {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1rem;
        max-width: 120px;
    }
    
    .navbar-brand img {
        max-height: 30px;
    }
    
    .btn-icon {
        width: 30px;
        height: 30px;
    }
    
    .navbar-right {
        gap: 3px;
    }
    
    #cartCount {
        min-width: 16px;
        height: 16px;
        font-size: 0.65rem;
    }
    
    .sidebar-nav {
        width: 85%;
    }
    
    .features-section .col-6 {
        padding: 0 0.5rem;
    }
    
    .feature-icon {
        width: 50px;
        height: 50px;
        line-height: 50px;
    }
    
    .feature-icon i {
        font-size: 1.5rem;
    }
    
    .product-card .card-body {
        padding: 8px;
    }
    
    .product-card .card-title {
        font-size: 0.85rem;
    }
    
    .product-card .price {
        font-size: 0.9rem;
    }
    
    .hero-section {
        min-height: 350px;
        height: 50vh;
    }
    
    .hero-section h1 {
        font-size: 1.8rem;
    }
    
    .newsletter-section .row {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .newsletter-section .col-md-6,
    .newsletter-section .col-md-auto {
        width: 100%;
        padding: 0;
    }
    
    .newsletter-section .btn {
        width: 100%;
    }
    
    #backToTop {
        bottom: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
    }
    
    footer h5 {
        font-size: 1rem;
    }
    
    footer p, footer li {
        font-size: 0.85rem;
    }
    
    footer .btn-outline-light {
        width: 34px;
        height: 34px;
    }
}

@media (min-width: 769px) {
    .sidebar-nav,
    .sidebar-overlay,
    .menu-toggle {
        display: none !important;
    }
}

/* ===== Print Styles ===== */
@media print {
    .navbar-fixed,
    footer,
    .btn,
    .newsletter-section,
    #backToTop,
    .sidebar-nav,
    .sidebar-overlay,
    .modal {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
        padding-top: 0;
    }
    
    .container {
        width: 100%;
        max-width: none;
        padding: 0;
    }
}

/* ################################## */
/* ===== Products Page Specific Styles ===== */
.product-card {
    transition: all 0.2s ease;
    border-radius: 8px;
    overflow: hidden;
}

.product-card:active {
    transform: scale(0.98);
}

.product-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
}

.badge-new, .badge-sale {
    display: inline-block;
    padding: 3px 6px;
    font-size: 9px;
    font-weight: 600;
    border-radius: 3px;
    margin-right: 4px;
}

.badge-new { background: #ff6b6b; color: white; }
.badge-sale { background: #f39c12; color: white; }

/* Product Image */
.product-image-wrapper {
    aspect-ratio: 1/1;
    overflow: hidden;
    background-color: #f8f9fa;
}

/* Pagination */
.pagination .page-link {
    color: var(--primary-color);
    border: none;
    margin: 0 2px;
    border-radius: 5px;
    padding: 6px 10px;
    font-size: 0.85rem;
}

.pagination .page-link:hover {
    background-color: rgba(var(--primary-color-rgb), 0.1);
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    color: white;
}

/* Tablet */
@media (min-width: 768px) {
    .product-card .card-body { padding: 12px; }
    .product-card .card-title { font-size: 0.95rem; }
    .badge-new, .badge-sale { padding: 4px 8px; font-size: 10px; }
}

/* Desktop */
@media (min-width: 992px) {
    .product-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(0,0,0,0.1) !important;
    }
    
    .product-card .card-body { padding: 15px; }
    .product-card .card-title { font-size: 1rem; }
}

/* Mobile */
@media (max-width: 767.98px) {
    .btn, 
    .form-control,
    .form-select,
    .page-link {
        min-height: 44px;
    }
    
    .btn-sm {
        min-height: 38px;
        font-size: 0.9rem;
    }
    
    .product-card .btn {
        min-height: 28px;
        width: 28px;
        height: 28px;
    }
}

/* Small Mobile */
@media (max-width: 575.98px) {
    .product-card .card-body {
        padding: 8px;
    }
    
    .product-card .card-title {
        font-size: 0.85rem;
    }
    
    .badge-new, .badge-sale {
        padding: 2px 4px;
        font-size: 8px;
    }
    
    .col-6 {
        padding: 0 4px;
    }
    
    .row.g-2 {
        margin-left: -4px;
        margin-right: -4px;
    }
}

/* Medium Screen */
@media (min-width: 768px) and (max-width: 991.98px) {
    .product-card .card-body {
        padding: 10px;
    }
    
    .product-card .card-title {
        font-size: 0.9rem;
    }
}

/* ################################## */
/* ===== Product Detail Page Specific Styles ===== */

/* Product Gallery */
.product-gallery-main {
    min-height: 300px;
    max-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
}

.product-gallery-main img {
    max-height: 300px;
    max-width: 100%;
    object-fit: contain;
}

.product-gallery-thumb {
    cursor: pointer;
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.product-gallery-thumb:hover {
    border-color: var(--primary-color);
    opacity: 0.8;
}

.product-gallery-thumb img {
    max-height: 60px;
    max-width: 100%;
    object-fit: contain;
}

/* Product Info */
.product-title {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 600;
    margin-bottom: 1rem;
}

.product-sku {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.product-rating {
    margin-bottom: 1rem;
}

.product-price {
    margin-bottom: 1.5rem;
}

.product-price .old-price {
    font-size: 1.2rem;
    color: #6c757d;
    text-decoration: line-through;
    margin-right: 1rem;
}

.product-price .current-price {
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary-color);
}

.product-price .sale-price {
    font-size: 2rem;
    font-weight: 600;
    color: #dc3545;
}

.product-section-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.product-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #495057;
}

.product-flavor-notes {
    color: var(--primary-color);
    font-weight: 500;
}

/* Quantity Input */
.quantity-input {
    width: 130px;
}

.quantity-input .btn {
    width: 40px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-input input {
    height: 44px;
    text-align: center;
}

/* Share Buttons */
.share-btn {
    width: 36px;
    height: 36px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 5px;
}

/* Related Products */
.related-products-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

/* Responsive */
@media (min-width: 768px) {
    .product-title { font-size: 2rem; }
    .product-section-title { font-size: 1.2rem; }
    .related-products-title { font-size: 1.5rem; }
}

@media (min-width: 992px) {
    .product-title { font-size: 2.2rem; }
}

@media (max-width: 767.98px) {
    .product-gallery-main {
        min-height: 250px;
    }
    
    .product-gallery-main img {
        max-height: 250px;
    }
    
    .product-title {
        font-size: 1.5rem;
        margin-top: 1rem;
    }
    
    .product-price .current-price,
    .product-price .sale-price {
        font-size: 1.6rem;
    }
    
    .btn, 
    .form-control,
    .input-group-text {
        min-height: 44px;
    }
    
    .btn i {
        font-size: 1.2rem;
    }
    
    .quantity-input {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .product-card:active {
        transform: scale(0.98);
    }
}

@media (min-width: 768px) {
    .product-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(0,0,0,0.1) !important;
    }
}

/* ################################## */