@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    width: 100%;
    font-family: 'Space Grotesk', sans-serif;
    background-color: #f5f5f5;


}

main {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

input, p, label {
    padding: 0;
    margin: 0 !important;
}

.header {
    width: 100%;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding: 1rem;
    margin: 0;
    margin-bottom: 1rem;
}

nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

nav .logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
}

nav .header-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 0;
}

nav .logo img {
    width: 70px;
    height: 70px;
    display: block;
}

section {
    width: 100%;
    padding: 1rem;
}

.section-header {
    margin-bottom: 1rem;
}

section h4 {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 0.5rem;
    line-height: 0.5;
}

section p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 1rem;
}

.images-grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding: 1rem 0 ;
}

.images-grid-container .image-container {
    position: relative;
    width: 100%;
    height: 200px;
    background-color: #fff;
    border: 2px dashed rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
}

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

.image-container .remove-image-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: #dc2626;
    border-radius: 50%;
    padding: 4px;
    width: 32px;
    height: 32px;
    transition: transform ease-in-out 0.3s;
}

.image-container .remove-image-btn i {
    font-size: 1rem;
    color: #fff;
    
}

.image-container .remove-image-btn:hover  {
    transform: scale(1.15);
}



.image-container:hover .fa-images {
    transform: translateY(-10px);
}

.image-container input[type="file"] {
    display: none;
}

.image-container i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #ff6464;
    transition: transform ease-out 0.3s;
}

.image-container span {
    font-size: 0.9rem;
    color: #666;
}

.input-selection {
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    background: #fff;
}

.input-selection p {
    margin: 0;
    font-size: 0.95rem;
    color: #666;
}

.button-container {
    display: flex;
    align-items: center;
    padding: 4px;
    border: none;
    background-color: #cbd5e1;
    border-radius: 36px;
    width: 56px;
    height: 30px;
    cursor: pointer;
    transition: background-color 0.25s ease;
}

.button-container.active {
    background-color: #dc2626;
}

.inner-circle {
    width: 22px;
    height: 22px;
    background-color: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    transition: transform 0.25s ease;
    transform: translateX(0);
}

.button-container.active .inner-circle {
    transform: translateX(26px);
}

.input-header {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    
}

#sizeInfo {
    display: none; 
}

.input-container select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

.input-container select option {
    padding: 0.5rem;
    
}

.input-container label, .char-counter {
    font-size: 0.875rem;
    color: #747474;
    margin-bottom: 0.5rem;
}

.optional-label {
    font-size: 0.75rem;
    color: #a0a0a0;
    font-weight: normal;
}

.input-container {
    margin-bottom: 1rem;
}

 input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    resize: none;
}

.description {
    height: 14.63rem;
    resize: none;
    
}

.input-header {
   position: relative;
}

.input-header i {
    position: absolute;
    left: 10px;
    top: 200%;
    transform: translateY(-50%);
    color: #333;
    pointer-events: none;
}

.item-price {
    padding-left: 1.5rem;
}

.input-grid-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.shipping-btn-container {
    border: 1px solid rgba(136, 0, 0, 0.15);
    background-color: #fff;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.shipping-btn-container:hover {
    border-color: rgba(136, 0, 0, 0.4);
    box-shadow: 0 0 0 3px rgba(136, 0, 0, 0.08);
}
.shipping-btn-container .container-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.container-header label {
    font-size: 0.95rem;
    font-weight: bold;
    color: #1a1a1a;
    cursor: pointer;
}

.container-header input {
    padding: 0;
    width: auto;
}

.shipping-note {
    font-size: 0.8rem;
    color: #666;
    margin: 0;
}

.shipping-cost {
    font-size: 0.8rem;
    font-weight: 500;
    color: #444;
    margin: 4px 0 0;
}




.shipping-btn-container.selected {
    border: 2px solid #dc2626;
    box-shadow: 0 0 0 4px rgba(136, 0, 0, 0.12), 
                0 2px 12px rgba(136, 0, 0, 0.15);
}

.shipping-btn-container.selected .container-header label {
    color: #dc2626; /* label turns red when selected */
}

.shipping-btn-container.selected .shipping-cost {
    color: #dc2626;
}

.cta-wrapper {
    display: flex;
    gap: 1rem;
}

button {
    width: 100%;
    background-color: #333;
    color: #fff;
    border: none;
    transition: background-color 0.3s ease;
}

.btn {
    padding: 0.75rem 1.5rem !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    border-radius: 4px !important;
    font-size: 1rem !important;
    cursor: pointer !important;
}

.draft-btn {
    background-color: #fff !important;
    color: #333 !important;
}
.draft-btn:hover {
    background-color: #f0f0f0 !important;
}

.post-btn {
    background-color: #dc2626 !important;
    color: #fff !important;
    font-weight: bold !important;
    border: none !important;
    transition: ease-in-out 0.3s !important;
}

.post-btn:hover {
    background-color: #d10a17 !important;
    transform: translateY(-1px);
}

.errorText {
    font-size: 0.825rem;
    color: #dc2626;

}

.error {
    border: 1px solid #dc2626 !important;
}


/* Modal Styles */ 

.modal-overlay {
    background: rgba(0, 0, 0, 0.1);
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;

}

.modal-overlay.show {
    display: flex;
}

/* saving modal */

.savingModal {
    width: 200px;
    height: 200px;
    background-color: #f0f0f0;
    /* border: 1px solid red; */
    border-radius: 8px;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2);
}

.savingModal.show {
    display: flex;
}

.m-content {
    display: flex;
    flex-direction: column;
}

.m-content .dots {
    /* border: 1px solid red; */
    display: flex;
    align-items: center;
    gap: 1rem;
}

.m-footer .defaults-btn {
    background-color: #dc2626;
    color: #fff ;
    font-weight: bold;
    border: none;
    transition: ease-in-out 0.3s;
}

.dots span {
    width: 10px;
    height: 10px;
    background-color: #dc2626;
    border-radius: 50%;
    animation: scaling 2.5s ease-in-out infinite;
}

/* dimensions modal */

.package-dimension {
    display: none;
    flex-direction: column;
    width: 100%;
    max-width: 370px;
    height: auto;
    background-color: #fff;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2);
}

.package-dimension.show {
    display: flex;
}

.package-dimension .m-header {
    margin-bottom: 1.5rem;
    line-height: 1.3;
    display: flex;
}

.package-dimension .title {
    display: block;
    flex-direction: column;

}

.package-dimension i {
    font-size: 1.5rem;
}

.m-header h5 {
    font-weight: 600;
}

.m-header p {
    color: #333;
    font-weight: 500;
}

.package-inputs {
    margin-bottom: 1rem;
}

.dimesions-input {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.dimesions-input label, .weight-input label {
    font-weight: 500;
}

.m-footer {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.m-footer .btn {
    white-space: nowrap;
    font-weight: 500;
}

.m-footer .confirm-btn {
    background-color: #dc2626;
    color: #fff;
    transition: ease-in-out 0.3s;
    
}

.m-footer .defaults-btn:hover {
    background-color: #d10a17;
    color: white;
    transform: translateY(1px);
}

.m-footer .confirm-btn:hover {
    color: white;
    background-color: #d10a17;
    transform: translateY(1px);
}

/* Courier Modal */
.courier-rates-modal {
    display: none;
    flex-direction: column;
    padding: 1rem;
    background-color: white;
    width: 100%;
    max-width: 650px;
    height: 80vh;
    overflow-y: auto;
    border-radius: 8px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
}

.courier-rates-modal .m-header {
    display: flex;
    justify-content: space-between;
}

.courier-rates-modal .modal-exit i {
    font-size: 1.5rem;
    
}

.modal-exit {
    cursor: pointer;
    transition: ease-in-out 0.3s;
}




.courier-rates-modal.show {
    display: flex;
}

.courier-rates-modal .m-content {
    display: flex;
    flex-direction: column;
    align-items: normal;
    justify-content: center;
}

.courier-rates-modal .m-footer {
    display: flex;
}

.loader {
    display: flex;
    align-items: center;
    justify-content: center;
    

}

.loader .dots {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 500px;
}

@keyframes scaling {
    0%, 100% {
        transform: scale(0.2);
        background-color: #d55a5a;
    }

    50% {
        transform: scale(1);
        background-color: #dc2626;
    }

}

.dots span:nth-child(1) {
    animation-delay: 0s;
}

.dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.dots span:nth-child(3) {
    animation-delay: 0.4s;
}

.dots span:nth-child(4) {
    animation-delay: 0.6s;
}

.savingModal .m-content h4 {
    font-size: 1rem;

}

/* Carrier */

.carrier-panel {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carrier-panel.show {
    display: flex;
}

.carrier-panel h5 {
    font-weight: 600;
    font-size: 1rem;
}

.carrier-rows-wrapper {
    display: flex;
    flex-direction: column;
    padding: 0.5rem;
    gap: 0.5rem;
}

.carrier-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #f0f0f0;
    padding: 1rem;
    border-radius: 8px;
    transition: border-color 0.3s ease-in-out ;
    cursor: pointer;
    box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.1);
}

.carrier-row:hover {
    border: 1px solid #dc2626;
    background-color: rgba(150, 0, 0, 0.1);

}

.carrier-row.selected {
    border: 2px solid #dc2626;
    background-color: rgba(150, 0, 0, 0.1);
}

.carrier-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}


.carrier-title p {
    font-size: 14px;
}


.carrier-image-wrapper img {
    width: 100px;
    height: 100px;
    object-fit: contain;
}

.carrier-title span {
    font-weight: 600;
}

.carrier-pricing {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.carrier-price {
    display: flex;
    align-items: flex-end;
    flex-direction: column;
    line-height: 1rem;
}

.carrier-pricing .form-input {
    display: flex;
    align-items: center;
    justify-content: center;
}

.carrier-price span {
    font-weight: 600;
}

.carrier-price p {
    font-size: 0.875rem;
}

/* successful modal */

.success-modal {
    width: 500px;
    height: 500px;
    border-radius: 8px;
    box-shadow: 0 4px 6px 0 rgba(0, 0, 0, 0.1);
    display: none;
    /* align-items: center; */
    flex-direction: column;
    background-color: #fff;
    padding: 1.5rem;

}

.success-modal.show {
    display: flex;
}

.success-modal .m-header {
    display: block;
    align-items: center;
    justify-content: center;
}

.m-icon-wrapper {
    width: 80px;
    height: 80px;
    border: 1px solid #a5d6a7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    background-color: #e8f5e9;
}

.m-icon-wrapper i {
    font-size: 2rem;
    color: #2e7d32;
}

.m-header-text {
    display: flex;
    align-items: center;
    flex-direction: column;
}

.m-header-text h5 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
}

.m-header-text p {
    font-size: 1rem;
    font-weight: 500;
    color: #333;
    letter-spacing: 0.02rem;
}

.m-header-text .item-title {
    font-weight: 600;
    color: #1a1a1a;
}

.m-product-info {
    /* border: 1px solid #f0f0f0; */
    background-color: #f7f7f7;
    width: 450px;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 1rem;

}



.product-image-wrapper {
    border-radius: 8px;
    width: 80px;
    height: 80px;
    border: 1px solid #f0f0f0;
}

.product-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.m-product-details #modalProductName {
    font-weight: 600;
}

.m-product-details #modalProductMeta {
    font-size: 0.875rem;
    color: #666;
}

.success-modal .m-footer {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 1rem;
}

.success-modal .m-footer .btn {
    width: 100%;
    max-width: 450px;
    cursor: pointer;
}

.success-modal .m-footer .view-listing-btn {
    background-color: #dc2626;
    color: #fff;
    font-weight: bold;
    border: none;
    transition: ease-in-out 0.3s;
}

.success-modal .m-footer .view-listing-btn:hover {
    background-color: #d10a17;
    color: white;
    transform: translateY(1px);
}

.success-modal .m-footer .new-listing-btn {
    background-color: #fff;
    color: #333;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.success-modal .m-footer .new-listing-btn:hover {
    background-color: #f0f0f0;
    color: #333;
    transform: translateY(1px);
}


/* Responsive */

@media (max-width: 576px) {
  .success-modal {
    width: 90%;
    height: auto;
  }

  .m-product-info {
    width: 100%;
  }

  .images-grid-container {
      grid-template-columns: 1fr;
  }

  .input-grid-wrapper {
      grid-template-columns: 1fr;
  }

  .cta-wrapper {
      flex-direction: column;
  }
}









