/* Reset and base */
body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #000;
}

/* Form styles */
.form-container {
    max-width: 400px;
    margin: 50px auto;
    padding: 20px;
}

/* Input group */
.input-group {
    position: relative;
    margin-bottom: 30px;
}

.input-group input {
    width: 100%;
    border: none;
    border-bottom: 2px solid #000000;
    font-size: 16px;
    padding: 10px 0;
    outline: none;
    background: transparent;
    color: black;
    transition: border-color 0.3s ease;
}

.input-group input:focus {
    border-bottom: 2px solid #000;
}

.input-group .toggle-password {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #888;
}

.input-group .toggle-password:hover {
    color: #000;
}

.input-underline {
    display: block;
    width: 100%;
    height: 2px;
    background: #ddd;
    transition: background-color 0.3s ease;
}

/* Password toggle */
.toggle-password {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    cursor: pointer;
}

.toggle-password img {
    width: 20px;
    height: 20px;
}

/* Forgot password and form options */
.form-options {
    text-align: right;
    margin-bottom: 20px;
}

.forgot-password {
    display: block;
    text-align: right;
    margin-bottom: 20px;
    font-size: 14px;
    color: #888;
    text-decoration: none;
}

.forgot-password:hover {
    cursor: pointer;
}

/* Buttons */
.login-btn,
.signup-btn {
    width: 100%;
    background-color: #000;
    color: #fff;
    border: none;
    padding: 12px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    transition: background-color 0.3s ease;
}

.login-btn:hover,
.signup-btn:hover {
    background-color: #555;
}

/* Signup link */
.signup-link {
    margin-top: 20px;
    font-size: 14px;
}

.signup-link a {
    color: #5d5d5d;
    text-decoration: none;
    font-weight: bold;
}

.signup-link a:hover {
    cursor: pointer;
}

/* Date of Birth container */
.dob-label {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 5px;
    display: block;
    color: #888;
}

.dob-container {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 30px;
}

.dob-container select {
    flex: 1;
    border: 2px solid #ddd;
    padding: 8px;
    font-size: 14px;
    outline: none;
    background-color: #fff;
    color: #333;
    transition: border-color 0.3s ease;
}

.dob-container select:focus {
    border-color: #000;
}

/* Alerts */
.alert {
    padding: 15px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    position: relative;
    animation: fadeIn 0.5s ease;
    display: none;
}

.alert-success {
    background-color: #dff0d8;
    color: #3c763d;
    border: 1px solid #3c763d;
}

.alert-error {
    background-color: #f2dede;
    color: #a94442;
    border: 1px solid #a94442;
}

.close-btn {
    color: #000;
    float: right;
    font-size: 20px;
    font-weight: bold;
    line-height: 15px;
    cursor: pointer;
    margin-left: 10px;
    position: absolute;
    right: 10px;
}

.close-btn:hover {
    color: #888;
}

/* Price and item metadata */
.price-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price {
    margin: 0;
    font-size: 1rem;
    color: #555;
    font-weight: lighter;
    margin-top: 3px;
}

.original-price {
    text-decoration: line-through;
    color: #888;
    font-size: 0.8rem;
}

.discounted-price {
    color: black;
    font-weight: bold;
    font-size: 1rem;
}

.regular-price {
    color: #333;
    font-size: 1rem;
}

.sale-count {
    color: #333;
    font-size: 0.9rem;
    font-weight: bold;
    margin-left: 10px;
}

/* Item title truncation */
.item-info h4 {
    font-size: 1.1rem;
    font-weight: bold;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
    width: 100%;
}

/* Stock label */
.stock-label {
    background-color: #f44336;
    color: white;
    padding: 2px 2px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
    z-index: 10;
    text-align: center;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive tweaks */
@media (max-width: 768px) {
    .form-container {
        padding: 15px;
    }

    .dob-container {
        flex-direction: column;
    }

    .dob-container select,
    .dob-container button {
        width: 100%;
        margin-bottom: 10px;
    }
}

/* Brand Story Section */
.brand-story {
    background: #f4f4f4;
    padding: 70px 8%;
}

.brand-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.brand-text {
    flex: 1;
    max-width: 600px;
    letter-spacing: 1px;
}

.brand-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #222;
    text-align: left;
}

.brand-subtitle {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 25px;
    color: #555;
}

.brand-text p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 20px;
}

.brand-image {
    flex: 1;
}

.brand-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

@media (max-width: 900px) {
    .brand-container {
        flex-direction: column;
        text-align: left;
        gap: 0px;
    }

    .brand-image {
        order: -1;
        margin-bottom: 40px;
    }

    .brand-title {
        font-size: 2rem;
    }
}

/* Collection Boxes Section */
.collection-boxes {
    padding: 30px 8%;
}

.collection-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
}

.collection-box {
    position: relative;
    display: block;
    overflow: hidden;
    text-decoration: none;
    color: #fff;
    aspect-ratio: 1 / 1;
}

.collection-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.collection-box::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    transition: background 0.3s ease;
}

.box-text {
    position: absolute;
    bottom: 40px;
    left: 40px;
    z-index: 2;
    max-width: 70%;
}

.box-subtitle {
    font-size: 0.8rem;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 10px;
    opacity: 0.9;
}

.box-text h3 {
    font-size: 1.8rem;
    margin: 0 0 15px 0;
}

.box-link {
    font-size: 0.85rem;
    letter-spacing: 1px;
}

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

.collection-box:hover::after {
    background: rgba(0, 0, 0, 0.5);
}

@media (max-width: 900px) {
    .collection-grid {
        grid-template-columns: 1fr;
    }

    .box-text {
        bottom: 25px;
        left: 25px;
    }
}

/* Section */
.categories-section {
  padding: 50px 8%;
  background: #f5f5f5;
}

.categories-title {
  font-size: 28px;
  letter-spacing: 3px;
  margin-bottom: 40px;
  text-align: left;
}

/* Grid */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

/* Card */
.category-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1.414; /* A4 Portrait */
  cursor: pointer;
}

.categoryh-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.category-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.category-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
  letter-spacing: 4px;
  font-size: 20px;
  font-weight: 500;
}

.category-card:hover .category-image {
  transform: scale(1.08);
}

/* Tablet */
@media (max-width: 1024px) {
  .categories-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Mobile */
@media (max-width: 768px) {
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .categories-section {
    padding: 40px 4%;
  }

  .category-overlay {
    font-size: 14px;
    letter-spacing: 2px;
  }
}