:root {
            --primary-color: #D64545;
            --secondary-color: #2C3E50;
            --accent-color: #F0C869;
            --background-color: #F5F5F5;
            --text-color: #333;
        }
        body {
            scroll-behavior: smooth;
            font-family: 'Noto Sans JP', sans-serif;
            line-height: 1.6;
            color: var(--text-color);
            background-color: var(--background-color);
            margin: 0;
            padding: 0;
        }
       
        footer {
            background-color: var(--secondary-color);
            color: #fff;
            padding: 3em 0;
            margin-top: 3em;
            text-align: center;
        }
        .footer-content {
            max-width: 1200px;
            margin: auto auto;
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 2em;
        }
        .footer-contact {
            margin-bottom: 2em;
        }
        .footer-contact h4, .footer-map h4 {
            font-size: 1.2em;
            margin-bottom: 1em;
            position: relative;
            padding-bottom: 0.5em;
            display: inline-block;

        }
        .footer-contact h4::after, .footer-map h4::after {
            content: '';
            position: absolute;
            left: 50%;
            bottom: 0;
            width: 50px;
            height: 2px;
            background-color: var(--accent-color);
            transform: translateX(-50%);
        }
        .footer-contact p {
            margin-bottom: 0.5em;
        }
        .social-links {
            display: flex;
            display: none;
            gap: 1em;
            margin-top: 1em;
            justify-content: center;
        }
        .social-links a {
            color: #fff;
            text-decoration: none;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background-color: rgba(255, 255, 255, 0.1);
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background-color 0.3s ease;
        }
        .social-links a:hover {
            background-color: var(--accent-color);
        }
        .social-links svg {
            width: 20px;
            height: 20px;
            fill: currentColor;
        }
        .footer-map {
            width: 100%;
            max-width: 600px;
        }
        .footer-map h4 {
            font-size: 1.2em;
            margin-bottom: 1em;
        }
        .footer-map iframe {
            width: 100%;
            height: 250px;
            border: none;
            border-radius: 10px;
        }
        h1 {
            margin: 2em 0 1em;
            font-size: 2.8rem;
            text-align: center;
            color: var(--primary-color);
            text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
        }
        .filter-section {
            background-color:   #455a64;
            padding: 0.5rem;
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
            margin-bottom: 2em;
        }
        .filter-button {
            background-color: var(--accent-color);
            border: none;
            color: var(--secondary-color);
            padding: 0.7rem 1.5rem;
            margin: 1rem;
            cursor: pointer;
            transition: all 0.3s ease;
            font-family: 'Noto Sans JP', sans-serif;
            font-weight: bold;
            border-radius: 25px;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        }
        .filter-button:hover, .filter-button.active {
            background-color: var(--primary-color);
            color: #fff;
            transform: translateY(-2px);
        }
        .collection-section {
            padding: 4rem 2rem;
            max-width: 1200px;
            margin: 0 auto;
        }

        .collection-title {
            text-align: center;
            color: var(--primary-color);
            font-size: 2.5rem;
            margin-bottom: 2rem;
            text-transform: uppercase;
            letter-spacing: 2px;
        }

        .collection-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 2.5rem;
            justify-content: space-between;
        }

        .collection-item {
            margin: auto;
            width: 100%;
            max-width: 400px;
            min-height: 600px;
            background-color: #fff;
            border-radius: 15px;
            overflow: hidden;
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
            transition: all 0.3s ease;
            cursor: pointer;
            display: flex;
            flex-direction: column;
        }

        .collection-item:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
        }

        .collection-item img {
            width: 100%;
            height: 400px;
            object-fit: cover;
            transition: transform 0.3s ease;
        }

        .collection-item:hover img {
            transform: scale(1.05);
        }

        .collection-info {
            padding: 1.5rem;
            flex-grow: 1;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
        }

        .collection-info h3 {
            margin: 0 0 0.8rem;
            color: var(--secondary-color);
            font-size: 1.4rem;
            transition: color 0.3s ease;
        }

        .collection-item:hover .collection-info h3 {
            color: var(--primary-color);
        }

        .collection-info p {
            margin: 0;
            font-size: 1rem;
            color: #666;
        }

        .price {
            font-weight: bold;
            color: var(--primary-color);
            margin-top: 1rem;
            font-size: 1.2rem;
        }

        .modal {
            display: none;
            position: fixed;
            z-index: 1000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            overflow: auto;
            background-color: rgba(0,0,0,0.8);
            backdrop-filter: blur(5px);
        }

        .modal-content {
            background-color: var(--background-color);
            margin: 5% auto;
            padding: 40px;
            width: 80%;
            max-width: 800px;
            border-radius: 15px;
            box-shadow: 0 20px 40px rgba(0,0,0,0.2);
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .close {
            color: var(--primary-color);
            position: absolute;
            top: 20px;
            right: 30px;
            font-size: 40px;
            font-weight: bold;
            transition: color 0.3s ease;
        }

        .close:hover,
        .close:focus {
            color: var(--secondary-color);
            text-decoration: none;
            cursor: pointer;
        }

        #modalProductImage {
            max-width: 100%;
            max-height: 400px;
            object-fit: contain;
            border-radius: 10px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.2);
            margin-bottom: 20px;
        }

        #modalProductName {
            font-size: 2.5em;
            color: var(--primary-color);
            margin-bottom: 10px;
            text-align: center;
        }

        #modalProductDescription {
            font-size: 1.2em;
            text-align: center;
            max-width: 600px;
            margin-bottom: 20px;
            color: var(--text-color);
        }

        #modalProductPrice {
            font-size: 1.8em;
            font-weight: bold;
            color: var(--secondary-color);
            margin-bottom: 20px;
        }

        .size-selection {
            margin-bottom: 20px;
        }

        .size-selection label {
            font-size: 1.2em;
            margin-right: 10px;
            color: var(--text-color);
        }

        #size-select {
            font-size: 1.1em;
            padding: 10px 15px;
            border-radius: 5px;
            border: 1px solid var(--secondary-color);
            background-color: white;
            color: var(--text-color);
        }

        .add-to-cart {
            background-color: var(--primary-color);
            color: white;
            border: none;
            padding: 15px 30px;
            font-size: 1.2em;
            font-weight: bold;
            border-radius: 30px;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .add-to-cart:hover {
            background-color: var(--secondary-color);
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        }

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

        .modal-content {
            animation: fadeIn 0.3s ease-out;
        }

        .product-images {
        position: relative;
        }

        .main-image {
            width: 100%;
            height: auto;
        }

        .prev-image, .next-image, .modal-prev-image, .modal-next-image {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background-color: rgba(0, 0, 0, 0.5);
            color: white;
            border: none;
            padding: 10px;
            cursor: pointer;
        }

        .prev-image, .modal-prev-image {
            left: 10px;
        }

        .next-image, .modal-next-image {
            right: 10px;
        }

        .modal-thumbnail-container {
            display: flex;
            justify-content: center;
            margin-top: 20px;
        }

        .modal-thumbnail {
            width: 60px;
            height: 60px;
            object-fit: cover;
            margin: 0 5px;
            cursor: pointer;
            border: 2px solid transparent;
            transition: border-color 0.3s ease;
        }

        .modal-thumbnail:hover, .modal-thumbnail.active {
            border-color: var(--primary-color);
        }

        .modal-arrows-container {
            position: absolute;
            top: 50%;
            left: 0;
            right: 0;
            transform: translateY(-50%);
        }

        .gender-selection {
            margin-bottom: 20px;
        }

        .gender-selection label {
            margin-right: 20px;
            cursor: pointer;
        }

        .gender-selection input[type="radio"] {
            margin-right: 5px;
        }

        .modal-image-container {
            position: relative;
            max-width: 100%;
            margin-bottom: 20px;
        }

        .modal-prev-image, .modal-next-image {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background-color: rgba(0, 0, 0, 0.5);
            color: white;
            border: none;
            padding: 10px 15px;
            cursor: pointer;
            font-size: 18px;
            transition: background-color 0.3s ease;
        }

        .modal-prev-image:hover, .modal-next-image:hover {
            background-color: rgba(0, 0, 0, 0.7);
        }

        .modal-prev-image {
            left: 10px;
        }

        .modal-next-image {
            right: 10px;
        }
   

    .inventory-status {
        display: inline-block;
        margin-left: 10px;
        font-size: 0.9em;
        color: #666;
    }

    .add-to-cart:disabled {
        background-color: #cccccc;
        cursor: not-allowed;
        transform: none !important;
    }

    .out-of-stock {
        color: #ff0000;
    }

    .low-stock {
        color: #ffa500;
    }

    .in-stock {
        color: #008000;
    }

    .discount-container {
        display: inline-flex;
        align-items: center;
        background-color: #ff6b6b;
        color: white;
        padding: 0.3em 0.6em;
        border-radius: 7px;
        margin-top: 10px;
        margin-left: 5px;
        font-size: 0.9em;
        animation: pulse 1.5s infinite;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    }

    .discount-amount {
        margin-right: 0.3em;
        font-weight: bold;
    }

    .discount-percentage {
        font-size: 1.2em;
        font-weight: bold;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    }

    @keyframes pulse {
        0% {
            transform: scale(1);
        }
        50% {
            transform: scale(1.05);
        }
        100% {
            transform: scale(1);
        }
    }

    #modalProductImage.zoomed {
        max-width: 90%;
        max-height: 90%;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1001;
        transition: all 0.3s ease;
        box-shadow: 0 20px 50px rgba(0,0,0,0.4);
        cursor: zoom-out;
        object-fit: contain;
        background-color: rgba(0,0,0,0.8);
        max-width: 95%;
        max-height: 95%;
        margin: auto;
    }

    .modal-content.zoomed {
        display: none;
    }
