body {
    font-family: 'Poppins', sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #f8f9fa;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
}

:root {
    --primary-color: #007bff; /* Kway-like blue */
    --secondary-color: #6c757d;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --text-color: #333;
    --heading-color: #212529;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    color: var(--heading-color);
    font-weight: 700;
}

.site-name {
    font-size: 1.8rem; /* Desktop */
}

.hero-section h1 {
    font-size: 3.5rem; /* Desktop */
}

.display-3 {
    font-size: 3.5rem; /* Desktop */
}

.display-5 {
    font-size: 2.5rem; /* Desktop */
}

@media (min-width: 768px) and (max-width: 1023px) {
    .site-name {
        font-size: 1.5rem; /* Tablet */
    }
    .hero-section h1 {
        font-size: 2.8rem; /* Tablet */
    }
    .display-3 {
        font-size: 2.8rem; /* Tablet */
    }
    .display-5 {
        font-size: 2.2rem; /* Tablet */
    }
}

@media (max-width: 767px) {
    .site-name {
        font-size: .8rem; /* Mobile */
    }
    .hero-section h1 {
        font-size: 1.8rem; /* Mobile */
    }
    .display-3 {
        font-size: 1.8rem; /* Mobile */
    }
    .display-5 {
        font-size: 1.5rem; /* Mobile */
    }
    .navbar-brand .site-logo {
        height: 30px;
        width: auto;
    }
}

/* Global styles */
.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);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-light {
    background-color: var(--light-color);
    border-color: var(--light-color);
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.btn-light:hover {
    background-color: #e2e6ea;
    border-color: #e2e6ea;
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn {
    text-decoration: none !important; /* Remove underline from buttons */
    white-space: normal;
    word-break: break-word;
}

.navbar-brand .site-logo {
    height: 40px;
    width: auto;
}

.navbar-nav .nav-link {
    color: var(--dark-color);
    font-weight: 600;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color);
}

.navbar-toggler {
    border: none;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.offcanvas-header {
    background-color: var(--primary-color);
    color: white;
}

.offcanvas-header .btn-close {
    filter: invert(1);
}

.offcanvas-body {
    padding: 1.5rem;
}

.offcanvas-body .navbar-nav .nav-link {
    padding: 0.75rem 1rem;
    border-radius: 0.25rem;
}

.offcanvas-body .navbar-nav .nav-link:hover {
    background-color: rgba(0, 123, 255, 0.1);
}

.offcanvas-body .btn {
    width: 100%;
}

/* Hero Section */
.hero-section {
    min-height: 80vh;
    padding-top: 5rem;
    padding-bottom: 5rem;
    overflow: hidden;
}

.hero-bg-img {
    z-index: 0;
}

.hero-overlay {
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-section .container {
    z-index: 2;
}

.hero-section h1, .hero-section p {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-section .img-fluid {
    max-height: 500px;
    width: auto;
    object-fit: contain;
}

/* Animations */
@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scale-in {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slide-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate__fade-in-up {
    animation: fade-in-up 1s ease-out forwards;
    opacity: 0; /* Initial state */
}

.animate__scale-in {
    animation: scale-in 1.2s ease-out forwards;
    opacity: 0; /* Initial state */
}

.animate__fade-in {
    animation: fade-in 1s ease-out forwards;
    opacity: 0;
}

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

.animate__delay-1s {
    animation-delay: 1s;
}

.animate__delay-2s {
    animation-delay: 2s;
}

.animate__delay-100ms {
    animation-delay: 0.1s;
}

.animate__delay-200ms {
    animation-delay: 0.2s;
}

.animate__delay-300ms {
    animation-delay: 0.3s;
}

/* Product Showcase Slider */
.product-showcase-section .carousel-item img {
    height: 500px; /* Fixed height for carousel images */
    object-fit: fill;
    width: 100%;
}

.carousel-control-prev, .carousel-control-next {
    width: 5%;
}

.carousel-control-prev .material-symbols-outlined,
.carousel-control-next .material-symbols-outlined {
    font-size: 2rem;
    color: var(--primary-color);
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    padding: 0.5rem;
    transition: background-color 0.3s ease;
}

.carousel-control-prev:hover .material-symbols-outlined,
.carousel-control-next:hover .material-symbols-outlined {
    background-color: rgba(255, 255, 255, 1);
}

.carousel-indicators [data-bs-target] {
    background-color: var(--primary-color);
}

/* Clothing Items Grid */
.clothing-items-section .card-img-top {
    height: 350px; /* Uniform height for product images */
    object-fit: fill !important;
}

.clothing-items-section .card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.clothing-items-section .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15) !important;
}

/* Features/Benefits Section & Why Us */
.features-section .card, .why-us-section .card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.features-section .card:hover, .why-us-section .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15) !important;
}

.features-section .material-symbols-outlined,
.why-us-section .material-symbols-outlined {
    transition: transform 0.3s ease, color 0.3s ease;
}

.features-section .card:hover .material-symbols-outlined,
.why-us-section .card:hover .material-symbols-outlined {
    transform: scale(1.1);
    color: #0056b3 !important;
}

/* Sizing Table */
.sizing-section .table thead {
    background-color: var(--primary-color);
    color: white;
}

.sizing-section .table-primary th {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Footer */
.footer-section a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: rgba(255, 255, 255, 0.75);
}

.footer-section .material-symbols-outlined {
    font-size: 1.2rem;
    vertical-align: middle;
}

.email-break-all {
    word-break: break-all;
}

/* Cart and Checkout Modals */
.modal-header.bg-primary {
    background-color: var(--primary-color) !important;
}

.modal-header.bg-success {
    background-color: #28a745 !important;
}

.modal-title {
    color: white;
}

.btn-close-white {
    filter: invert(1);
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 0.25rem;
    margin-right: 1rem;
}

.cart-item-details {
    flex-grow: 1;
}

.cart-item-details h6 {
    margin-bottom: 0.25rem;
}

.cart-item-details .text-muted {
    font-size: 0.875rem;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-item-controls select {
    width: 60px;
}

.cart-item-controls .btn-danger {
    font-size: 0.8rem;
    padding: 0.3rem 0.6rem;
}

.modal-body .table th, .modal-body .table td {
    vertical-align: middle;
}

@media (max-width: 576px) {
    .cart-item {
        flex-wrap: wrap;
        text-align: center;
        justify-content: center;
    }
    .cart-item-img {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
    .cart-item-details {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    .cart-item-controls {
        width: 100%;
        justify-content: center;
    }
}

/* Ensure images in modals are centered or full width */
.modal-body img {
    max-width: 100%;
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive adjustments for menu */
@media (max-width: 1200px) {
    .navbar-nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .navbar-nav .nav-item {
        flex-shrink: 0;
    }
    .navbar-collapse {
        display: none !important;
    }
    .navbar-toggler {
        display: block !important;
    }
}

@media (min-width: 1201px) {
    .navbar-toggler {
        display: none !important;
    }
    .offcanvas {
        visibility: hidden !important;
    }
    .navbar-collapse {
        display: flex !important;
        flex-basis: auto;
    }
}

@media (max-width: 767px) {
    .hero-section {
        min-height: 80vh;
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
    .hero-section .row {
        flex-direction: column-reverse; /* Image first on mobile */
    }
    .hero-section .col-md-6 {
        text-align: center !important;
    }
    .hero-section .img-fluid {
        max-height: 300px;
        margin-bottom: 2rem;
    }
    .product-showcase-section .carousel-item .row {
        flex-direction: column;
    }
    .product-showcase-section .carousel-item img {
        height: 250px;
    }
    .clothing-items-section .card-img-top {
        height: 250px;
    }
}
/*
 * Styles for the main content block container
 * Provides top margin for separation and internal padding for content spacing.
 */
.infoGuardBlock {
    margin-top: 2.5rem; /* External spacing from the element above */
    padding: 1.5rem 2rem; /* Internal padding: top/bottom 1.5rem, left/right 2rem */
    /* You might want to add background-color, border, or max-width here if needed */
}

/*
 * Heading 1 styles
 * Moderate font size for main section titles within the block.
 */
.infoGuardBlock h1 {
    font-size: 2rem; /* Not excessively large */
    line-height: 1.2;
    margin-top: 1.5rem; /* Space above the heading */
    margin-bottom: 0.75rem; /* Space below the heading */
    font-weight: 700; /* Bold font weight */
}

/*
 * Heading 2 styles
 * Slightly smaller than h1, for sub-sections.
 */
.infoGuardBlock h2 {
    font-size: 1.75rem;
    line-height: 1.3;
    margin-top: 1.25rem;
    margin-bottom: 0.7rem;
    font-weight: 700;
}

/*
 * Heading 3 styles
 * Further refined for deeper sub-sections.
 */
.infoGuardBlock h3 {
    font-size: 1.5rem;
    line-height: 1.4;
    margin-top: 1rem;
    margin-bottom: 0.6rem;
    font-weight: 700;
}

/*
 * Heading 4 styles
 * For minor headings or callouts.
 */
.infoGuardBlock h4 {
    font-size: 1.25rem;
    line-height: 1.5;
    margin-top: 0.9rem;
    margin-bottom: 0.5rem;
    font-weight: 600; /* Slightly less bold */
}

/*
 * Heading 5 styles
 * Smallest heading, often used for labels or very minor divisions.
 */
.infoGuardBlock h5 {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-top: 0.8rem;
    margin-bottom: 0.4rem;
    font-weight: 600;
}

/*
 * Paragraph styles
 * Standard body text with good readability.
 */
.infoGuardBlock p {
    font-size: 1rem; /* Base font size for readability */
    line-height: 1.6; /* Good line spacing for body text */
    margin-top: 0; /* No top margin by default, let previous element define spacing */
    margin-bottom: 1rem; /* Space between paragraphs */
}

/*
 * Unordered list styles
 * Provides default bullet points and spacing.
 */
.infoGuardBlock ul {
    list-style-type: disc; /* Default bullet style */
    margin-top: 1rem; /* Space above the list */
    margin-bottom: 1rem; /* Space below the list */
    padding-left: 1.5rem; /* Indentation for bullet points */
}

/*
 * List item styles
 * Provides spacing between individual list items.
 */
.infoGuardBlock li {
    font-size: 1rem; /* Inherit or explicitly set font size */
    line-height: 1.6; /* Consistent line spacing */
    margin-bottom: 0.5rem; /* Space between list items */
}
