/* General styles */
* {
    font-family: 'Rubik', sans-serif;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* Body styles */
body {
    font-family: 'Rubik', sans-serif;
    color: #000000;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-y: auto;
    width: 100%;
    min-height: 100vh;
}
/* Custom Scrollbar for All Scrollable Elements */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-thumb {
    background-color: #000000;;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #034a80;;
}
@media (max-width: 480px) {
    ::-webkit-scrollbar {
        width: 1px;
    }
}

/* Header styles */
header {
    padding: 10px 20px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
    transition: padding 0.3s ease;
    background-color: #ffffff;
    color: #000000;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

/* Menu button (burger menu) */
.menu-button {
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    display: none;
}

.menu-button .fa-bars {
    font-size: 24px;
    color: #000000;
}

@media (max-width: 768px) {
    .menu-button {
        display: block;
    }
}

/* Logo styles */
.logo h2 {
    font-size: 24px;
    color: #000000;
    margin: 0;
}

.logo .big-letter {
    font-size: 35px;
}

@media (max-width: 768px) {
    .logo h2 {
        font-size: 20px;
    }
    
    .logo .big-letter {
        font-size: 28px;
    }
}

/* Navbar styles */
.navbar ul {
    display: flex;
    list-style: none;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.navbar ul li a {
    text-decoration: none;
    color: #000000;
    font-size: 18px;
    font-weight: 500;
    padding: 5px 10px;
    transition: color 0.3s ease;
}

.navbar ul li a:hover {
    color: #555555;
}

@media (max-width: 768px) {
    .navbar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 70%;
        height: 100vh;
        background-color: #ffffff;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        z-index: 1001;
        transition: left 0.3s ease;
        padding-top: 60px;
    }
    
    .navbar.active {
        left: 0;
    }
    
    .navbar ul {
        flex-direction: column;
        gap: 0;
        padding: 20px;
    }
    
    .navbar ul li {
        border-bottom: 1px solid #f0f0f0;
    }
    
    .navbar ul li a {
        display: block;
        padding: 15px 10px;
        font-size: 16px;
    }
}

/* User actions container */
.user-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px; /* Spacing between icons */
    position: relative;
    padding-right: 20px;
}

/* Shared icon styles */
.search-icon,
.bag-icon {
    width: 24px; /* Set width for all icons */
    height: 24px; /* Set height for all icons */
    stroke: #000000; /* Default stroke color */
    cursor: pointer; /* Pointer cursor for interactivity */
    display: inline-block; /* Ensure proper inline rendering */
    transition: all 0.2s ease-in-out; /* Smooth transition for hover effects */
}

/* Hover effects for all icons */
.search-icon:hover,
.bag-icon:hover {
    stroke: #555555; /* Darker stroke color on hover */
    transform: scale(1.1); /* Slight enlargement on hover */
    transition: all 0.2s ease-in-out; /* Smooth hover effect */
}

/* Cart actions container */
.cart-actions {
    position: relative;
}

/* Cart badge styling */
.cart-badge {
    color: #000000; /* Black text color */
    font-size: 14px;
    position: absolute;
    bottom: 4px; /* Adjusted alignment */
    right: -15px; /* Offset for proper positioning */
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .user-actions {
        gap: 15px;
        padding-right: 15px;
    }
    
    .search-icon,
    .bag-icon {
        width: 20px;
        height: 20px;
    }
    
    .cart-badge {
        font-size: 12px;
        right: -10px;
    }
}


/* Hero Section Styles */
.hero {
    position: relative;
    height: 100vh; /* Full screen height */
    width: -webkit-fill-available;
    background-image: url('../images/home/hero.webp'); /* Hero background image */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center; /* Center content vertically */
    justify-content: space-between; /* Text on left and right as in image */
    padding: 40px; /* Padding for proper spacing */
    color: #fff; /* White text for visibility */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Subtle dark overlay */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.hero-text {
    max-width: 500px; /* Restrict text width */
    margin-left: 40px;
}

.hero-text h1 {
    font-size: 3rem; /* Bold, prominent heading */
    margin-bottom: 20px;
    font-weight: bold;
}

.hero-text p {
    font-size: 1.5rem; /* Slightly larger paragraph */
    margin-bottom: 30px;
    font-weight: 300;
}

.shop-now-btn {
    background-color: #000; /* Black button background */
    color: #fff;
    border: 2px solid #fff;
    padding: 15px 30px;
    font-size: 1rem;
    cursor: pointer;
    text-transform: uppercase;
    border-radius: 0; /* Sleek, no radius */
    transition: all 0.3s ease;
}

.shop-now-btn:hover {
    background-color: #fff;
    color: #000;
    border-color: #000;
}

.hero-details {
    text-align: right;
    margin-right: 40px;
    font-size: 1rem;
    line-height: 1.8;
}

.hero-details p:nth-child(1) {
    font-size: 1.2rem;
    font-weight: bold;
    text-transform: uppercase;
}

.hero-details p {
    opacity: 0.8; /* Subtle, less prominent text */
    font-style: italic;
}

@media (max-width: 768px) {
    .hero {
        height: 70vh;
        padding: 20px;
    }
    
    .hero-content {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
    }
    
    .hero-text {
        margin-left: 0;
        max-width: 100%;
    }
    
    .hero-text h1 {
        font-size: 2rem;
        margin-bottom: 15px;
    }
    
    .hero-text p {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    
    .shop-now-btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
    
    .hero-details {
        display: none;
    }
}


.shop-now-btn {
    display: inline-block;
    background-color: #000; /* Solid black background */
    color: #fff; /* White text for contrast */
    border: 2px solid #000; /* Match the border with the background */
    padding: 12px 24px; /* Balanced padding */
    font-size: 1rem; /* Moderate font size */
    font-weight: bold; /* Text stands out */
    text-transform: uppercase; /* All caps */
    border-radius: 8px; /* Modern rounded corners */
    letter-spacing: 2px; /* Spaced-out letters */
    cursor: pointer; /* Pointer cursor */
    transition: all 0.3s ease; /* Smooth hover effect */
}

.shop-now-btn:hover {
    background-color: #2f2f2f; /* Slightly lighter black */
    color: #fff; /* Keep text white */
    border-color: #2f2f2f; /* Match border with the lighter background */
    transform: scale(1.05); /* Slightly larger on hover */
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2); /* Subtle shadow for hover */
}

@media (max-width: 768px) {
    .shop-now-btn {
        padding: 10px 20px;
        font-size: 0.85rem;
        letter-spacing: 1px;
    }
}



/* Shop by Categories Section */
.shop-by-category {
    padding: 60px 20px;
    text-align: center;
    font-family: Arial, sans-serif;
}

.shop-by-category h2 {
    font-size: 28px;
    font-weight: 600;
    color: #333;
    margin-bottom: 40px;
}

.categories {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.category {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 150px;
    cursor: pointer;
}

.category img {
    width: 120px;
    height: 120px;
    border-radius: 50%; /* Circular image */
    object-fit: cover; /* Ensures images fit nicely */
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    transition: transform 0.3s ease;
}

.category:hover img {
    transform: scale(1.05); /* Slight zoom effect on hover */
}

.category p {
    font-size: 16px;
    color: #333;
    margin-top: 15px;
    font-weight: 500;
}

.show-all-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 120px;
    height: 120px;
    background-color: #ffffff; /* Black background for the icon */
    color: #000000; /* White icon color */
    border-radius: 50%; /* Circular icon container */
    font-size: 32px; /* Icon size */
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.show-all-icon:hover {
    background-color: #555; /* Slightly lighter black on hover */
    color: #fff;
    transform: scale(1.05); /* Slight zoom effect */
}

@media (max-width: 768px) {
    .shop-by-category {
        padding: 40px 15px;
    }
    
    .shop-by-category h2 {
        font-size: 22px;
        margin-bottom: 30px;
    }
    
    .categories {
        gap: 20px;
        justify-content: center;
    }
    
    .category {
        width: 120px;
    }
    
    .category img,
    .show-all-icon {
        width: 90px;
        height: 90px;
    }
    
    .show-all-icon {
        font-size: 24px;
    }
    
    .category p {
        font-size: 14px;
        margin-top: 10px;
    }
}

/* General Footer Styles */
footer {
    background-color: #000000;
    color: #ccc;
    padding: 20px 0;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    flex-wrap: wrap;
}

/* Left Section: Logo and Tagline */
.footer-left {
    display: flex;
    flex-direction: column; /* Stack items vertically */
    align-items: flex-start; /* Align text to the left */
    margin-bottom: 20px; /* Space out the section */
}

.logo-footer {
    font-size: 24px; /* Increase font size for better visibility */
    font-weight: bold;
    color: white;
}

.logo-footer h2 {
    color: white;
    margin: 0;
}

.tagline {
    font-size: 14px;
    color: #999;
    margin-top: 5px; /* Adds spacing below the logo */
}

/* Right Section: Menu */
.footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 20px;
}

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-menu li {
    margin-bottom: 10px;
}

.footer-menu li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-menu li a:hover {
    color: #fff;
}

/* Bottom Section: Copyright, Links, Social Icons */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 10px 40px;
    margin-top: 20px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 20px;
}

.footer-links li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links li a:hover {
    color: #fff;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: #ccc;
    font-size: 18px;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: #fff;
}

@media (max-width: 768px) {
    .footer-container {
        padding: 0 20px;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .footer-right {
        align-items: center;
    }
    
    .footer-menu {
        justify-content: center;
        gap: 10px;
    }
    
    .footer-bottom {
        padding: 10px 20px;
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .footer-bottom p {
        order: 3;
    }
    
    .footer-links {
        order: 2;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .social-icons {
        order: 1;
    }
}
#notification-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    z-index: 1000;
    text-align: center;
}

.notification {
    display: inline-block;
    padding: 10px 20px;
    background-color: #28a745;
    color: #fff;
    border-radius: 5px;
    font-size: 14px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    opacity: 1;
    transition: opacity 0.5s ease-out, top 0.5s ease-out;
}

.notification.fade-out {
    opacity: 0;
}

/* Main content area */
main {
    width: 100%;
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Mobile-specific improvements */
@media (max-width: 480px) {
    body {
        font-size: 14px;
    }
    
    header {
        padding: 8px 15px;
    }
}

/* Tablet improvements */
@media (min-width: 481px) and (max-width: 768px) {
    header {
        padding: 10px 20px;
    }
}

/* Touch-friendly improvements for mobile */
@media (hover: none) and (pointer: coarse) {
    .category,
    .product-item,
    .add-item-to-cart-button,
    .shop-now-btn,
    .checkout-btn {
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
    }
    
    button,
    a {
        min-height: 44px;
        min-width: 44px;
    }
}

/* Shop Page Header */
.shop-header {
    position: relative;
    background-image: url('../images/shop-header-bg.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 100px 20px;
    text-align: center;
    color: #fff;
    width: 100%;
}

.shop-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.shop-header-content {
    position: relative;
    z-index: 2;
}

.shop-header-content h1 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 15px;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.shop-header-content p {
    font-size: 1.3rem;
    font-weight: 300;
    opacity: 0.95;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
    .shop-header {
        padding: 70px 20px;
    }
    
    .shop-header-content h1 {
        font-size: 2.2rem;
    }
    
    .shop-header-content p {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .shop-header {
        padding: 60px 15px;
    }
    
    .shop-header-content h1 {
        font-size: 1.8rem;
    }
    
    .shop-header-content p {
        font-size: 1rem;
    }
}

/* Mobile menu overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

/* Policy Modal Styles */
.policy-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    overflow: auto;
    animation: fadeIn 0.3s ease;
}

.policy-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.policy-modal-content {
    background-color: #ffffff;
    margin: 20px;
    padding: 30px;
    border-radius: 8px;
    max-width: 700px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.policy-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 32px;
    font-weight: bold;
    color: #000;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
}

.policy-close:hover {
    color: #555;
}

.policy-modal-content h2 {
    font-size: 28px;
    color: #000;
    margin: 0 0 20px 0;
    padding-right: 40px;
    font-weight: 600;
}

.policy-text {
    color: #333;
    line-height: 1.7;
}

.policy-text p {
    margin: 0 0 15px 0;
    font-size: 15px;
}

.policy-text h3 {
    font-size: 18px;
    color: #000;
    margin: 25px 0 12px 0;
    font-weight: 600;
}

.policy-text strong {
    color: #000;
}

/* Responsive styles for policy modals */
@media (max-width: 768px) {
    .policy-modal-content {
        padding: 25px 20px;
        margin: 15px;
        max-height: 90vh;
    }
    
    .policy-modal-content h2 {
        font-size: 24px;
        margin-bottom: 15px;
    }
    
    .policy-text h3 {
        font-size: 16px;
        margin: 20px 0 10px 0;
    }
    
    .policy-text p {
        font-size: 14px;
        margin-bottom: 12px;
    }
    
    .policy-close {
        font-size: 28px;
        top: 12px;
        right: 15px;
    }
}

@media (max-width: 480px) {
    .policy-modal-content {
        padding: 20px 15px;
        margin: 10px;
        width: 95%;
        max-height: 92vh;
    }
    
    .policy-modal-content h2 {
        font-size: 20px;
        padding-right: 35px;
    }
    
    .policy-text h3 {
        font-size: 15px;
    }
    
    .policy-text p {
        font-size: 13px;
    }
}

/* Loading States */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    width: 100%;
    min-height: 300px;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    margin-top: 20px;
    font-size: 16px;
    color: #666;
}

/* Skeleton Loading for Product Cards */
.skeleton-product {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
    border-radius: 8px;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-image {
    width: 100%;
    height: 150px;
    background: #e0e0e0;
    border-radius: 8px 8px 0 0;
}

.skeleton-text {
    height: 16px;
    background: #e0e0e0;
    margin: 10px;
    border-radius: 4px;
}

.skeleton-button {
    height: 40px;
    background: #e0e0e0;
    margin: 10px;
    border-radius: 6px;
}

/* Focus Styles for Accessibility */
*:focus-visible {
    outline: 2px solid #000;
    outline-offset: 2px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #000;
    outline-offset: 2px;
}

/* Skip to main content link for screen readers */
.skip-to-main {
    position: absolute;
    left: -9999px;
    z-index: 999;
    padding: 10px;
    background-color: #000;
    color: #fff;
    text-decoration: none;
}

.skip-to-main:focus {
    left: 50%;
    transform: translateX(-50%);
    top: 10px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    button,
    .add-item-to-cart-button,
    .checkout-btn {
        border: 2px solid currentColor;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Screen reader only content */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}
