/* css/style.css - LiteTech */

/* Basic Reset & Defaults */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-text-color: #1d1d1f; /* Apple's primary text */
    --secondary-text-color: #515154; /* Slightly darker secondary for better contrast */
    --background-color: #ffffff;
    --alt-background-color: #f5f5f7; /* Apple's light grey bg */
    --border-color: #d2d2d7;
    --accent-color: #007aff; /* Apple's blue */
    --accent-color-darker: #0066cc;
    --container-width: 1080px;
    --header-height: 48px; /* Approximate Apple header height */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --border-radius-base: 8px; /* Consistent border radius */
    --border-radius-large: 18px; /* For larger elements like cards */
}

/* HTML & Body for Layout & Sticky Footer */
html {
    height: 100%;
    scroll-behavior: smooth;
    width: 100%; /* ADD THIS LINE */
    overflow-x: hidden; /* ADD THIS LINE - prevent horizontal scroll/shift globally */
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: var(--font-family);
    color: var(--primary-text-color);
    background-color: var(--background-color);
    line-height: 1.65; /* Increased slightly for readability */
    font-size: 16px; /* Base size, Apple uses around 17px on iOS for body */
    -webkit-font-smoothing: antialiased; /* Smoother fonts on WebKit */
    -moz-osx-font-smoothing: grayscale; /* Smoother fonts on Firefox */
    width: 100%; /* ADD THIS LINE */
    overflow-x: hidden; /* ADD THIS LINE - prevent horizontal scroll/shift globally */
}

main {
    flex-grow: 1; 
}

.main-header,
.main-footer {
    flex-shrink: 0;
}


/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600; 
    line-height: 1.3;
    margin-bottom: 0.75em;
    color: var(--primary-text-color);
}

h1 { font-size: 2.4rem; } /* Slightly reduced for modern feel */
h2 { font-size: 1.75rem; }
h3 { font-size: 1.25rem; }

p {
    margin-bottom: 1.2em; /* Slightly more spacing */
    color: var(--secondary-text-color);
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.2s ease-in-out, opacity 0.2s ease-in-out;
}

a:hover {
    color: var(--accent-color-darker);
    text-decoration: none; /* Apple generally avoids underlines on hover for links */
}

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

/* Utility Classes */
.section-padding {
    padding: 60px 20px;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
    font-weight: 600;
}

.page-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.6rem; /* Adjusted */
    font-weight: 700;
}

.alt-background {
    background-color: var(--alt-background-color);
}

.loading, .error {
    text-align: center;
    color: var(--secondary-text-color);
    padding: 40px;
    font-style: italic;
}
.error {
    color: #ff3b30; /* Apple's red */
    font-weight: 500;
}

/* Header & Navigation */
.main-header {
    background-color: rgba(255, 255, 255, 0.8); /* Apple-like translucency */
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(0,0,0,0.07); /* More subtle border */
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-nav {
    display: flex;
    justify-content: space-between; 
    align-items: center;
    width: 100%;
    max-width: var(--container-width);
    padding: 0 20px;
    position: relative; 
}

.main-nav .logo {
    display: flex;
    align-items: center;
    color: var(--primary-text-color);
    text-decoration: none;
    flex-shrink: 0; 
}
.main-nav .logo:hover {
    opacity: 0.8;
    text-decoration: none;
}
.main-nav .logo img {
    height: 25px;
    width: auto;
    display: block;
}

.nav-links-container {
    display: flex; 
    align-items: center;
    position: static;
    transform: none;
    width: auto;
    height: auto;
    background-color: transparent;
    flex-direction: row; 
    padding: 0; 
    transition: none; 
}

.nav-links {
    list-style: none;
    display: flex;
    flex-direction: row; 
    gap: 30px; 
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-links a {
    color: var(--primary-text-color);
    text-decoration: none;
    font-size: 0.9rem; 
    font-weight: 400; /* Regular weight for nav links */
    transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-color);
    text-decoration: none;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 80px 20px 80px; /* Symmetrical padding */
    position: relative; 
    overflow: hidden;
    background-image: url('https://litetech.com.vn/images/hero.webp');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.hero-content {
    position: relative; 
    z-index: 2;
    max-width: 650px; 
    margin: 0 auto; 
}

.hero-content h1 {
    font-size: 3.2rem; /* Adjusted */
    font-weight: 700;
    margin-bottom: 0.5em;
    color: #ffffff; 
    text-shadow: 0 1px 3px rgba(0,0,0,0.2); /* Subtle shadow for readability */
}

.hero-content p {
    font-size: 1.15rem; /* Adjusted */
    color: rgba(255, 255, 255, 0.9); /* Slightly transparent white */
    margin-bottom: 30px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.15);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.15); /* Darker overlay for better contrast */
    z-index: 1; 
}

.cta-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    padding: 12px 28px; /* Slightly wider */
    border-radius: var(--border-radius-large); /* Consistent large radius */
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s ease, transform 0.1s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.cta-button:hover {
    background-color: var(--accent-color-darker);
    color: white;
    text-decoration: none;
    transform: translateY(-1px) scale(1.02); /* Subtle lift and scale */
}

/* Categories Section */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 25px;
    max-width: var(--container-width);
    margin: 0 auto;
}

.category-item {
    text-align: center;
    padding: 20px;
    background-color: var(--alt-background-color);
    border-radius: var(--border-radius-large); /* Consistent large radius */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: block; 
    color: var(--primary-text-color);
}
.category-item:hover {
     transform: translateY(-5px);
     box-shadow: 0 8px 20px rgba(0, 0, 0, 0.07); /* Softer shadow */
     text-decoration: none;
}

.category-image {
    width: 100%; /* Make image responsive within its container */
    height: 100px;
    object-fit: contain;
    margin: 0 auto 15px;
}

.category-item h3 {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0;
}


.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: var(--container-width);
    margin: 0 auto;
}

.product-card {
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-large); 
    overflow: hidden;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
     transform: translateY(-5px);
     box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08); /* Softer shadow */
}

.product-card a {
    text-decoration: none;
    color: var(--primary-text-color);
    display: flex;
    flex-direction: column;
    flex-grow: 1; 
}
.product-card a:hover {
    text-decoration: none;
}

.product-image-container {
    background-color: var(--background-color);
    padding: 15px; /* Added padding */
    height: 220px; /* Increased height */
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid var(--border-color); /* Subtle separator */
}

.product-image {
    max-height: 100%; 
    max-width: 100%;
    object-fit: contain;
    border-radius: var(--border-radius-base); /* Small radius for image inside */
}

.product-info {
    padding: 15px; /* Consistent padding */
    flex-grow: 1; 
    display: flex;
    flex-direction: column;
    justify-content: space-between; 
}

.product-info h3 {
    font-size: 1.05rem; /* Slightly smaller for card title */
    font-weight: 500; /* Medium weight */
    margin-bottom: 8px;
}

.product-condition {
    font-size: 0.8rem;
    color: var(--secondary-text-color);
    margin-bottom: 5px; 
}

.product-price {
    font-size: 1.1rem;
    font-weight: 600; /* Bolder price */
    color: var(--primary-text-color); /* Price in primary color */
    margin-top: auto; /* Pushes price to bottom */
}

.product-color-info {
    display: flex; 
    justify-content: center; 
    align-items: center; 
    gap: 8px; 
    margin-top: 8px; 
    margin-bottom: 10px; /* Reduced bottom margin */
}

.color-swatch {
    display: inline-block;
    width: 14px; 
    height: 14px;
    border-radius: 50%; 
    border: 1px solid rgba(0, 0, 0, 0.15); 
    flex-shrink: 0; 
}

.color-name {
    font-size: 0.8rem; 
    color: var(--secondary-text-color); 
    line-height: 1; 
}

.view-all-link {
    text-align: center;
    margin-top: 40px;
}
.view-all-link a {
    font-weight: 500;
}

/* Why Choose Us Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    max-width: var(--container-width);
    margin: 0 auto;
    text-align: center;
}

.feature-item {
    padding: 20px;
}

.feature-icon {
    width: 48px; /* Adjusted */
    height: 48px;
    margin: 0 auto 15px;
    stroke: var(--accent-color); 
}

.feature-item h3 {
    font-size: 1.15rem; /* Adjusted */
    margin-bottom: 10px;
    color: var(--primary-text-color);
}

.feature-item p {
    font-size: 0.9rem; /* Adjusted */
    color: var(--secondary-text-color);
}

/* Shop Page Specific */
.shop-controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    max-width: var(--container-width);
    margin: 0 auto 40px;
    padding: 20px; /* Increased padding */
    background-color: var(--alt-background-color);
    border-radius: var(--border-radius-large); /* Consistent large radius */
}

.shop-controls label {
    margin-right: 10px; /* Increased margin */
    font-weight: 500;
    color: var(--primary-text-color); /* Stronger label color */
}

.shop-controls select {
    padding: 10px 15px; /* Increased padding */
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-base);
    background-color: #fff;
    font-family: inherit;
    font-size: 0.95rem;
    cursor: pointer;
    appearance: none; 
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%23515154' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3E%3C/svg%3E"); /* Custom arrow with updated color */
    background-repeat: no-repeat;
    background-position: right 12px center; /* Adjusted position */
    background-size: 1em;
    padding-right: 35px; /* Adjusted for new padding */
    min-width: 200px; /* Ensure select has a decent width */
}
.shop-controls select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(0, 122, 255, 0.2);
}


/* Product Detail Page */
.product-detail-page {
    max-width: var(--container-width);
    margin: 0 auto; 
}

.product-detail-layout {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Keep 50/50 for desktop */
    gap: 50px;
    align-items: flex-start;
}

.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 15px; 
}

.main-image-wrapper {
    position: relative;
    background-color: var(--alt-background-color);
    border-radius: var(--border-radius-large);
    overflow: hidden; /* CRUCIAL for slide effect */
    min-height: 450px;
    display: flex;
    cursor: zoom-in;
}

/* NEW: Gallery Slider Styles */
.gallery-slider {
    display: flex; /* Aligns images horizontally */
    height: 100%; /* Take .lightbox-image-wrapperfull height of wrapper */
    transition: transform 0.5s cubic-bezier(0.645, 0.045, 0.355, 1); /* Smooth slide transition */
    /* Width will be set by JS (100% * number of images) */
}

.gallery-slider img {
    width: 100%; /* Each image takes the width of the .main-image-wrapper */
    height: 100%; /* Take full height */
    object-fit: contain; /* Or 'cover' depending on preference */
    flex-shrink: 0; /* Prevent images from shrinking */
    /* No border-radius needed here if .main-image-wrapper has it */
    /* cursor: grab; */ /* Already handled by JS or specific element */
    /* draggable="false"; */ /* Already handled by JS */
}

.lightbox-image-wrapper { /* NEW: If lightbox also gets a slider */
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lightbox-slider { /* NEW: For lightbox */
    display: flex;
    height: 100%;
    transition: transform 0.5s cubic-bezier(0.645, 0.045, 0.355, 1);
}
.lightbox-slider img { /* Styles for images within the lightbox slider */
    width: 100%; /* Each image in slider takes 100% of some defined lightbox width */
    height: 100%;
    object-fit: contain;
    flex-shrink: 0;
    /* cursor: grab; */ /* If lightbox images are also draggable */
    /* draggable: false; */
}



#main-product-image {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: var(--border-radius-base);
    cursor: grab;
}

/* Lightbox Styles */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.85); /* Darker overlay */
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    cursor: zoom-out; /* Indicate overlay click closes */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}
.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease;
}
.lightbox-container {
    position: relative;
    background-color: transparent; /* No bg for container, image is the content */
    padding: 0; /* No padding for container */
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    cursor: default;
}
.lightbox-image {
    display: block;
    max-width: 100%; /* Relative to lightbox-container */
    max-height: 100%; /* Relative to lightbox-container */
    object-fit: contain;
    border-radius: var(--border-radius-base); /* Optional: radius for enlarged image */
    box-shadow: 0 10px 30px rgba(0,0,0,0.4); /* Shadow for depth */
}
.lightbox-close {
    position: fixed; 
    top: 25px;       
    right: 25px;      
    background-color: rgba(30, 30, 30, 0.8); 
    backdrop-filter: blur(5px) saturate(180%);
    -webkit-backdrop-filter: blur(5px) saturate(180%);
    color: #fff;
    border: none; /* No border needed with backdrop */
    border-radius: 50%;
    width: 36px; 
    height: 36px;
    font-size: 1.6rem; 
    font-weight: 300; /* Lighter X */
    line-height: 34px; 
    text-align: center;
    cursor: pointer;
    z-index: 2001;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
    transition: transform 0.2s ease, background-color 0.2s ease;
}
.lightbox-close:hover {
    transform: scale(1.1);
    background-color: rgba(50, 50, 50, 0.9);
}

/* Gallery Arrows */
.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background-color: rgba(255, 255, 255, 0.7); 
    border: none;
    border-radius: 50%;
    width: 44px; /* Larger arrows */
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease, opacity 0.2s ease, transform 0.1s ease;
    color: var(--primary-text-color); 
    backdrop-filter: blur(8px) saturate(180%); 
    -webkit-backdrop-filter: blur(8px) saturate(180%);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.gallery-arrow:hover:not(:disabled) {
    background-color: rgba(250, 250, 250, 0.9); 
    transform: translateY(-50%) scale(1.05);
}
.gallery-arrow:disabled {
    opacity: 0.3;
    cursor: default;
}
.gallery-arrow svg {
    width: 20px; 
    height: 20px;
}
.gallery-arrow.prev { left: 15px; }
.gallery-arrow.next { right: 15px; }

/* Thumbnail Gallery */
.thumbnail-gallery {
    display: flex;
    flex-wrap: wrap; 
    justify-content: center; 
    gap: 12px; /* Increased gap */
}
.thumbnail-image {
    width: 70px; /* Larger thumbnails */
    height: 70px;
    object-fit: cover; 
    border: 2px solid transparent; 
    border-radius: var(--border-radius-base); /* Consistent radius */
    cursor: pointer;
    opacity: 0.6; /* Dimmer non-active */
    transition: border-color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}
.thumbnail-image:hover {
    opacity: 0.85;
    transform: scale(1.05);
}
.thumbnail-image.active {
    border-color: var(--accent-color); 
    opacity: 1;
    transform: scale(1.05);
    box-shadow: 0 0 0 2px var(--accent-color); /* Outer glow for active */
}

.product-detail-info h1 {
    font-size: 2.2rem;
    font-weight: 600; /* Slightly less bold than 700 */
    margin-bottom: 10px;
}
.product-detail-price {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--primary-text-color);
}
.product-detail-condition {
    font-size: 0.95rem; /* Adjusted */
    margin-bottom: 8px; 
    color: var(--secondary-text-color);
}
.product-detail-condition strong {
   color: var(--primary-text-color);
   font-weight: 500;
}
.product-detail-description {
    margin-bottom: 25px; /* Adjusted */
    line-height: 1.7;
    color: var(--primary-text-color);
    font-size: 0.95rem;
}
.product-detail-specs h2 {
    font-size: 1.3rem; /* Adjusted */
    font-weight: 500;
    margin-top: 30px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}
.product-detail-specs ul {
    list-style: none;
    padding-left: 0;
}
.product-detail-specs li {
    margin-bottom: 8px; /* Adjusted */
    font-size: 0.9rem;
    color: var(--secondary-text-color);
    position: relative;
    padding-left: 20px; /* Increased padding for icon */
}
/* In css/style.css */

.product-detail-specs li::before {
    content: ''; 
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: var(--accent-color);
    border-radius: 50%;
    position: absolute;
    left: 0;
    
    /* Increase this value to move the dot lower */
    /* Start with small increments from your last attempt */
    
    /* If 0.6em was still too high, try: */
    /* top: 0.62em; */
    /* top: 0.65em; */
    /* top: 0.68em; */
    top: 0.8em; /* Let's try this as a more significant jump down */
    /* top: 0.75em; */
    /* top: 0.8em; */ /* This is likely too much, but shows the direction */

    transform: translateY(-50%);
}
.product-detail-color-info {
    display: flex;
    align-items: center;
    gap: 10px; /* Increased gap */
    margin-top: 10px;
    margin-bottom: 15px; 
}
.product-detail-warranty {
    font-size: 0.95rem; 
    color: var(--secondary-text-color); 
    margin-top: 0; 
    margin-bottom: 20px; /* Adjusted */
    line-height: 1.6;
}
.product-detail-warranty strong {
    font-weight: 500; /* Medium weight */
    color: var(--primary-text-color); 
    margin-right: 8px; 
}

/* NEW: Product Assurances Section */
.product-assurances {
    margin-top: 20px;
    margin-bottom: 25px;
    padding: 15px;
    background-color: var(--alt-background-color);
    border-radius: var(--border-radius-base);
    border: 1px solid var(--border-color);
}

.product-assurances h4 {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 12px;
    color: var(--primary-text-color);
}

.product-assurances ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.product-assurances li {
    display: flex;
    align-items: flex-start; 
    font-size: 0.9rem;
    color: var(--secondary-text-color);
    margin-bottom: 10px; 
    line-height: 1.5;
}

.product-assurances li:last-child {
    margin-bottom: 0;
}

.product-assurances li svg {
    fill: var(--accent-color); 
    width: 16px; 
    height: 16px;
    margin-right: 10px; 
    flex-shrink: 0;
    margin-top: 3px; /* Adjust for vertical alignment with text */
}
.product-detail-color-info .color-label {
    font-size: 0.95rem; 
    font-weight: 500; 
    color: var(--primary-text-color); 
    margin-right: 5px; 
}
.product-detail-color-info .color-swatch {
    width: 20px; /* Larger swatch */
    height: 20px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
}
.product-detail-color-info .color-name {
    font-size: 0.95rem;
    color: var(--secondary-text-color); 
    line-height: 1;
}
.product-contact-info {
    margin-top: 30px; 
    margin-bottom: 20px; 
    padding: 25px; /* Add padding */
    border: 1px solid var(--border-color); /* Add border */
    border-radius: var(--border-radius-large); /* Rounded corners */
    background-color: var(--alt-background-color); /* Light background */
}
.product-contact-info h4 {
    font-size: 1.15rem; /* Slightly larger */
    font-weight: 500;
    color: var(--primary-text-color);
    margin-bottom: 15px; 
}
.product-contact-info .contact-line {
    display: flex; 
    align-items: center; 
    gap: 10px; /* Increased gap */
    font-size: 0.95rem;
    color: var(--secondary-text-color); 
    margin-bottom: 12px; /* Increased margin */
}
.product-contact-info .contact-line svg {
    flex-shrink: 0; 
    fill: var(--accent-color); /* Accent color for icons */
    width: 18px; /* Consistent icon size */
    height: 18px;
}
.product-contact-info .contact-line a {
    color: var(--accent-color); 
    font-weight: 400; /* Regular weight for links */
    text-decoration: none;
}
.product-contact-info .contact-line a:hover {
    color: var(--accent-color-darker);
    text-decoration: none;
}
.product-detail-info .back-button {
    display: inline-block; /* Allow margin */
    margin-top: 25px; 
}



/* Static Pages (About, Contact) */
.static-page {
    max-width: 850px; /* Slightly wider for contact page structure */
    margin: 0 auto;
}

.page-banner {
    width: 100%;
    max-height: 350px; /* Slightly taller banner */
    object-fit: cover;
    border-radius: var(--border-radius-large);
    margin-bottom: 35px; /* Increased margin */
}

/* Styles for content directly inside .page-content (About page) */
.page-content h2:not(.contact-page-layout h2) { /* Target H2s not in contact layout */
    font-size: 1.6rem;
    font-weight: 500;
    margin-top: 35px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}
.page-content p:not(.contact-page-layout p), 
.page-content ul:not(.contact-page-layout ul) li {
    color: var(--primary-text-color); 
    font-size: 0.95rem; /* Consistent text size */
}
.page-content ul:not(.contact-page-layout ul) {
    list-style-position: outside; /* Common style */
    padding-left: 20px; /* Standard indent */
}
.page-content ul:not(.contact-page-layout ul) li {
     margin-bottom: 0.6em;
}

/* --- NEW STYLES FOR contact.html LAYOUT & ELEMENTS --- */
.contact-page-layout {
    display: flex;
    flex-direction: column;
    gap: 40px; /* Space between sections */
}

.contact-intro-section p {
    font-size: 1.05rem; /* Slightly larger intro text */
    color: var(--primary-text-color);
    text-align: center;
    margin-bottom: 10px;
}

.contact-channels-section,
.transaction-info-section {
    padding: 25px;
    background-color: var(--alt-background-color);
    border-radius: var(--border-radius-large);
    border: 1px solid var(--border-color);
}

.contact-channels-section h2,
.transaction-info-section h2 {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--primary-text-color);
    margin-top: 0;
    margin-bottom: 25px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.contact-list {
    list-style: none;
    padding-left: 0;
}

.contact-list li {
    display: flex;
    align-items: flex-start; /* Align icon to top of multi-line text */
    margin-bottom: 18px; /* Increased spacing */
    font-size: 0.95rem;
}

.contact-list li .contact-icon {
    width: 20px;
    height: 20px;
    margin-right: 15px; /* More space for icon */
    flex-shrink: 0;
    margin-top: 3px; 
    color: var(--accent-color); /* Use accent color for icons */
}
.contact-list li .social-icon {
    color: var(--primary-text-color); /* Social icons can be more neutral */
}
.contact-list li .social-icon:hover {
    color: var(--accent-color);
}


.contact-list li div { /* Wrapper for text content next to icon */
    flex-grow: 1;
}
.contact-list li strong {
    display: block; /* Make strong take full width above link if needed */
    font-weight: 500;
    color: var(--primary-text-color);
    margin-bottom: 3px; /* Space between label and value */
}
.contact-list li a {
    color: var(--accent-color);
    font-weight: 400;
    text-decoration: none;
    word-break: break-word; /* Prevent long emails/links from breaking layout */
}
.contact-list li a:hover {
    color: var(--accent-color-darker);
}
.contact-note {
    font-size: 0.85rem;
    color: var(--secondary-text-color);
    margin-left: 5px;
}
.contact-hours {
    list-style: none;
    padding-left: 0;
    margin-top: 5px;
    font-size: 0.9rem;
    color: var(--secondary-text-color);
}
.contact-hours li {
    margin-bottom: 3px;
    display: block; /* Simple list items */
}

.transaction-subsection {
    margin-bottom: 30px;
}
.transaction-subsection:last-child {
    margin-bottom: 0;
}
.transaction-subsection h3 {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--primary-text-color);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}
.subsection-icon {
    width: 22px;
    height: 22px;
    margin-right: 10px;
    color: var(--accent-color);
}
.subsection-note {
    font-size: 0.9rem;
    color: var(--secondary-text-color);
    margin-bottom: 15px;
    font-style: italic;
}

.indented-list,
.ordered-list {
    list-style-position: outside;
    padding-left: 25px; /* Indent list */
    font-size: 0.95rem;
}
.indented-list li,
.ordered-list li {
    margin-bottom: 10px;
    color: var(--primary-text-color);
}
.indented-list { list-style-type: disc; }
.ordered-list { list-style-type: decimal; }

.contact-closing-note {
    text-align: center;
    font-size: 0.95rem;
    color: var(--secondary-text-color);
    margin-top: 20px;
    padding: 20px;
    background-color: var(--alt-background-color);
    border-radius: var(--border-radius-base);
}
/* --- END OF NEW CONTACT STYLES --- */


/* Footer */
.main-footer {
    background-color: var(--alt-background-color);
    color: var(--secondary-text-color);
    text-align: center;
    padding: 25px 20px; /* Increased padding */
    margin-top: 60px;
    font-size: 0.85rem;
    border-top: 1px solid var(--border-color);
    flex-shrink: 0;
}
.footer-content {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}
.main-footer p {
    margin-bottom: 8px; /* Increased margin */
    color: var(--secondary-text-color);
}
.footer-social-links {
    margin: 10px 0;
    display: flex; 
    justify-content: center; 
    gap: 20px; /* Increased gap */
}
.footer-social-links a {
    display: inline-block;
    color: var(--secondary-text-color);
    transition: color 0.2s ease, transform 0.2s ease; 
}
.footer-social-links a:hover {
    color: var(--accent-color);
    text-decoration: none;
    transform: scale(1.1); /* Subtle scale on hover */
}
.footer-social-links svg {
    vertical-align: middle;
    width: 22px; /* Slightly larger footer icons */
    height: 22px;
    fill: currentColor; 
}

/* Mobile Menu Styles */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 5px; 
    cursor: pointer;
    z-index: 1100; 
    position: absolute;
    right: 15px; 
    top: 50%;
    transform: translateY(-50%);
}
.mobile-menu-toggle svg {
    width: 24px;
    height: 24px;
    stroke: var(--primary-text-color);
    display: block; 
}
.mobile-menu-close {
    display: none; 
    background: none;
    border: none;
    padding: 15px;
    cursor: pointer;
    margin-top: 30px; 
}
.mobile-menu-close svg {
    width: 24px;
    height: 24px;
    stroke: var(--primary-text-color);
    display: block;
}
.nav-links-container { /* Keep desktop default for transition */
    transition: transform 0.3s ease-in-out; 
}
.main-nav .logo { /* Desktop default positioning */
    position: static;
    transform: none;
    margin-right: auto; /* Pushes nav links to the right on desktop */
}

/* Blog Styles */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}
.blog-post {
    background-color: #fff;
    border-radius: var(--border-radius-large); /* Consistent large radius */
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05); /* Softer shadow */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex; /* For equal height content */
    flex-direction: column;
}
.blog-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}
.blog-post-link {
    text-decoration: none;
    color: var(--primary-text-color);
    display: flex; /* For equal height content */
    flex-direction: column;
    flex-grow: 1;
}
.blog-post-image-container {
    height: 220px; /* Increased height */
    overflow: hidden;
}
.blog-post-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.blog-post:hover .blog-post-image {
    transform: scale(1.03); /* Subtle scale */
}
.blog-post-content {
    padding: 25px; /* Increased padding */
    flex-grow: 1; /* Allow content to grow */
    display: flex;
    flex-direction: column;
}
.blog-post-content h2 {
    font-size: 1.25rem; /* Adjusted */
    font-weight: 500;
    margin-bottom: 10px;
}
.blog-post-meta {
    font-size: 0.8rem; /* Adjusted */
    color: var(--secondary-text-color);
    margin-bottom: 12px; /* Adjusted */
}
.blog-post-excerpt {
    font-size: 0.9rem; /* Adjusted */
    color: var(--secondary-text-color);
    margin-bottom: 15px;
    flex-grow: 1; /* Pushes read-more down if content is short */
}
.read-more {
    color: var(--accent-color);
    font-weight: 500;
    font-size: 0.9rem;
    margin-top: auto; /* Pushes to bottom */
    align-self: flex-start; /* Align to left */
}
.read-more:hover {
    color: var(--accent-color-darker);
}

/* Blog Post Detail Styles */
.blog-post-detail {
    max-width: 750px; /* Slightly narrower for readability */
    margin: 0 auto;
}
.blog-post-header {
    margin-bottom: 35px; /* Adjusted */
    text-align: center;
}
.blog-post-title {
    font-size: 2.2rem; /* Adjusted */
    font-weight: 600;
    margin-bottom: 15px;
}
.blog-post-meta { /* Shared with list, ensure consistency or make specific */
    font-size: 0.9rem; 
    color: var(--secondary-text-color);
    margin-bottom: 30px;
}
.blog-post-featured-image {
    width: 100%;
    max-height: 450px; /* Adjusted */
    object-fit: cover;
    border-radius: var(--border-radius-large);
    margin-bottom: 30px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}
.blog-post-body {
    line-height: 1.75; /* Increased for readability */
    font-size: 1rem; /* Base size for article body */
}
.blog-post-body p {
    margin-bottom: 1.5em;
    color: var(--primary-text-color);
}
.blog-post-body img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius-base);
    margin: 30px auto; /* Center images */
    display: block;
    box-shadow: 0 5px 15px rgba(0,0,0,0.07);
}
.blog-post-footer {
    margin-top: 40px; /* Adjusted */
    padding-top: 25px; /* Adjusted */
    border-top: 1px solid var(--border-color);
}
.blog-post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px; /* Increased gap */
    align-items: center;
}
.blog-post-tags span:first-child {
    color: var(--secondary-text-color);
    margin-right: 5px;
    font-size: 0.9rem;
}
.tag {
    background-color: var(--alt-background-color);
    padding: 5px 15px; /* Adjusted padding */
    border-radius: var(--border-radius-large); /* Pill shape */
    font-size: 0.8rem; /* Adjusted */
    color: var(--primary-text-color);
    transition: background-color 0.2s ease;
}
.tag:hover {
    background-color: #e9e9ed; /* Slightly darker on hover */
    color: var(--accent-color);
}


/* Responsive Design */
@media (max-width: 768px) {
    body { font-size: 15px; } /* Adjust base font for smaller screens */
    h1 { font-size: 2rem; }
    .page-title { font-size: 2.2rem; }
    .hero-content h1 { font-size: 2.5rem; }
    .hero-content p { font-size: 1rem; }
    .section-padding { padding: 40px 15px; }

    /* Mobile Header/Nav */
    .main-header { height: auto; /* Allow header to grow with logo if needed */ }
    .main-nav {
        padding: 10px 15px; /* Consistent padding */
        /* No flex-direction change needed for .main-nav itself */
    }
    .main-image-wrapper {
        min-height: 250px; /* Keep existing min-height */
        width: 100%; /* Ensure wrapper takes full container width */
        overflow: hidden; /* Reinforce overflow to prevent image leakage */
    }

    .gallery-slider {
        width: 100%; /* Ensure slider takes full width of wrapper */
        height: 100%; /* Ensure slider takes full height of wrapper */
    }

    .gallery-slider img {
        width: 100%; /* Each image takes full width of wrapper */
        height: 100%; /* Each image takes full height of wrapper */
        object-fit: contain; /* Keep images proportional */
        flex-shrink: 0; /* Prevent shrinking */
        min-width: 100%; /* Ensure no gaps */
    }

    /* Ensure thumbnails are responsive and don't affect main image sizing */
    .thumbnail-image {
        width: 60px;
        height: 60px;
        object-fit: cover; /* Keep thumbnails consistent */
    }
    .mobile-menu-toggle { display: block; }
    .nav-links-container {
        position: fixed;
        top: 0;
        left: 0; 
        width: 100%;
        height: 100vh; 
        background-color: rgba(255, 255, 255, 0.95); /* Slightly more opaque for mobile */
        backdrop-filter: blur(15px) saturate(180%);
        -webkit-backdrop-filter: blur(15px) saturate(180%);
        z-index: 1050; 
        display: flex; 
        flex-direction: column; 
        justify-content: center; 
        align-items: center; 
        padding: 40px 20px 20px; 
        transform: translateX(100%); 
        transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1); /* Smoother transition */
        overflow-y: auto; 
    }
    .nav-links-container.active { transform: translateX(0); }
    .nav-links {
        flex-direction: column; 
        align-items: center; 
        gap: 20px; /* Reduced gap for mobile links */
        width: 100%; 
        text-align: center; 
    }
    .nav-links a {
        font-size: 1.3rem; /* Larger touch targets */
        padding: 12px 0; /* More padding */
        width: 100%; 
        font-weight: 500;
    }
    .mobile-menu-close {
        display: flex; /* Use flex for better centering of SVG */
        align-items: center;
        justify-content: center;
        position: absolute; /* Position relative to nav-links-container */
        top: 20px;
        right: 20px;
        padding: 10px;
        background-color: rgba(230,230,230,0.5);
        border-radius: 50%;
    }
    body.no-scroll { overflow: hidden; }

    /* General Layouts */
    .product-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
    .category-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 15px;}
    .features-grid { grid-template-columns: 1fr 1fr; gap: 20px; }

    .shop-controls { flex-direction: column; align-items: stretch; }
    .shop-controls > div { width: 100%; text-align: left; margin-bottom: 15px;}
    .shop-controls > div:last-child { margin-bottom: 0; }
    .shop-controls select { width: 100%; } 

    .product-detail-layout { grid-template-columns: 1fr; gap: 30px; }
    .main-image-wrapper { min-height: 300px; }
    #main-product-image { max-height: 350px; cursor: zoom-in; } /* Enable zoom on mobile */
    .gallery-arrow { width: 38px; height: 38px; }
    .gallery-arrow svg { width: 16px; height: 16px; }
    .gallery-arrow.prev { left: 10px; }
    .gallery-arrow.next { right: 10px; }
    .thumbnail-image { width: 60px; height: 60px; }

    .blog-grid { grid-template-columns: 1fr; }
    .blog-post-title { font-size: 1.8rem; }
    .blog-post-body { font-size: 0.95rem; }

    /* Contact Page on Mobile */
    .contact-page-layout { gap: 30px; }
    .contact-channels-section, .transaction-info-section { padding: 20px; }
    .contact-channels-section h2, .transaction-info-section h2 { font-size: 1.3rem; margin-bottom: 20px; }
    .contact-list li { margin-bottom: 15px; }
    .transaction-subsection h3 { font-size: 1.1rem; }
}

@media (max-width: 480px) {
    h1 { font-size: 1.8rem; }
    .page-title { font-size: 2rem; }
    .hero { padding: 60px 15px 60px; } /* Reduced padding */
    .hero-content h1 { font-size: 2.2rem; }

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

    .nav-links { gap: 15px;} 
    .nav-links a { font-size: 1.2rem; }

    .main-footer { margin-top: 40px; } 
    .footer-social-links { gap: 15px; }
    .footer-social-links svg { width: 20px; height: 20px; }

    .shop-controls label { margin-bottom: 5px; display: block; } /* Stack label above select */
    .shop-controls select { font-size: 0.9rem; padding: 8px 12px; padding-right: 30px; }

    /* Contact page further adjustments for very small screens */
    .contact-intro-section p { font-size: 1rem; }
    .contact-list li .contact-icon { margin-right: 10px; width: 18px; height: 18px; }
    .subsection-icon { width: 20px; height: 20px; margin-right: 8px; }
    .indented-list, .ordered-list { padding-left: 20px; }
}

.product-stock-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 99px; /* Pill shape */
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 15px;
}

.product-stock-status svg {
    width: 16px;
    height: 16px;
}

/* Kiểu cho "Còn hàng" */
.product-stock-status.in-stock {
    background-color: #e6f6e6; /* Greenish background */
    color: #008000; /* Green text */
}

.product-stock-status.in-stock svg {
    fill: #008000;
}

/* Kiểu cho "Hết hàng" */
.product-stock-status.out-of-stock {
    background-color: #f5f5f7; /* Grey background */
    color: #515154; /* Grey text */
}

.product-stock-status.out-of-stock svg {
    fill: #515154;
}

.post-content-area .post-title {
    font-size: 2.5rem; /* Tăng cỡ chữ cho tiêu đề bài viết */
    margin-bottom: 0.5rem;
}

.post-content-area .post-meta {
    color: #666;
    margin-bottom: 2rem;
}

.post-body p {
    line-height: 1.7;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.post-body .post-image-figure {
    margin: 2rem 0;
    text-align: center;
}

.post-body .post-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}